html, body { overflow-x: hidden; width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
/**
 * mobile-accordion.css
 * Mobile sidebar accordion sub-menus
 * Loaded globally via functions.php after components.css
 */

/* ── Slide-in keyframe for accordion groups ── */
@keyframes mobileGroupIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Group wrapper ── */
.mobile-nav-group {
  display: block;
  animation: mobileGroupIn 0.35s calc(var(--mi, 0) * 0.06s) cubic-bezier(.16,1,.3,1) both;
}

/* ── Toggle button — full-width, looks like a nav item ── */
.mobile-nav-item--toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  padding: 13px 16px !important;
  border-radius: 11px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-d, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted, #aaa);
  transition: background 0.2s, color 0.2s;
  /* Override the opacity/transform animation from .mobile-nav-item */
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.mobile-nav-item--toggle:hover,
.mobile-nav-group--active > .mobile-nav-item--toggle {
  background: var(--green-subtle, rgba(0,200,83,.08));
}

.mobile-nav-item--toggle:hover .mobile-nav-label,
.mobile-nav-item--toggle[aria-expanded="true"] .mobile-nav-label,
.mobile-nav-group--active > .mobile-nav-item--toggle .mobile-nav-label {
  color: var(--green, #00C853);
}

/* ── Chevron icon inside toggle ── */
.mobile-nav-chevron {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-faint, #666);
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), color 0.2s;
  /* prevent the generic .mobile-nav-item svg rule from interfering */
  transform: none !important;
}
.mobile-nav-item--toggle[aria-expanded="true"] .mobile-nav-chevron {
  transform: rotate(180deg) !important;
  color: var(--green, #00C853);
}

/* ── Sub-menu panel ── */
.mobile-sub-menu {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(.16,1,.3,1),
              opacity 0.28s ease,
              padding 0.28s ease;
  padding: 0 8px;
}

.mobile-sub-menu.open {
  max-height: 700px;
  opacity: 1;
  padding: 4px 8px 8px;
}

/* ── Individual sub-items ── */
.mobile-sub-item {
  display: block !important;
  padding: 10px 14px 10px 20px;
  margin-bottom: 2px;
  font-family: var(--font-d, inherit);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted, #aaa);
  border-left: 2px solid rgba(0, 200, 83, 0.2);
  border-radius: 0 9px 9px 0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, padding-left 0.2s;
}

.mobile-sub-item:hover {
  color: var(--green, #00C853);
  background: var(--green-subtle, rgba(0,200,83,.08));
  border-color: var(--green, #00C853);
  padding-left: 24px;
}

.mobile-sub-item.active {
  color: var(--green, #00C853);
  background: var(--green-subtle, rgba(0,200,83,.08));
  border-color: var(--green, #00C853);
  font-weight: 700;
}

/* ── Arrow icon on flat nav items ── */
.mobile-nav-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--text-faint, #666);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.mobile-nav-item:hover .mobile-nav-arrow,
.mobile-nav-item--active .mobile-nav-arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--green, #00C853);
}

img{max-width:100%;height:auto;}
img { max-width: 100%; height: auto; }

/* Logo Fix */

/* Logo sizing is controlled via Appearance → Customize → Logo & Branding.
   CSS custom properties are set by greenedge_logo_inline_css() in functions.php
   and consumed by components.css. Do not add hardcoded overrides here. */
