/* FCC Shared Econav - clean canonical */

nav.ecosystem-nav[data-fcc-econav] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

nav.ecosystem-nav[data-fcc-econav] a,
nav.ecosystem-nav[data-fcc-econav] .active {
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  border-radius: 0.2rem;
  white-space: nowrap;
  border: 2px solid transparent;
  margin: 0;
}

nav.ecosystem-nav[data-fcc-econav] a,
nav.ecosystem-nav[data-fcc-econav] a:visited {
  color: var(--text-dim, #9aa3b2);
  text-decoration: none;
}

nav.ecosystem-nav[data-fcc-econav] a:hover,
nav.ecosystem-nav[data-fcc-econav] a:focus-visible {
  color: var(--text, #f5f6f7);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

nav.ecosystem-nav[data-fcc-econav] .active {
  color: #ecfff3;
  background: linear-gradient(180deg, rgba(34,197,94,.42), rgba(22,101,52,.52));
  border-color: rgba(134,239,172,.78);
  box-shadow: inset 0 0 0 2px rgba(134,239,172,.28), 0 8px 18px rgba(10,32,18,.34);
}

.topbar .brand,
.topbar .brand a,
.topbar-content .brand,
.topbar-content .brand a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.fcc-econav-toggle-wrap {
  display: none;
}

@media (min-width: 901px) {
  html {
    scrollbar-gutter: stable;
  }

  .fcc-econav-scroll-target {
    transition: transform 180ms ease;
    will-change: transform;
  }
  .fcc-econav-scroll-target.fcc-econav-scroll-hide {
    transform: translateY(calc(-100% - 8px));
  }

  .fcc-econav-plane {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    min-height: 2.8rem !important;
    box-sizing: border-box !important;
  }

  .fcc-econav-plane > .brand,
  .fcc-econav-plane > .brand a {
    flex: 0 0 auto !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fcc-econav-scroll-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    position: relative !important;
  }

  .fcc-econav-scroll-wrap > nav.ecosystem-nav[data-fcc-econav],
  .fcc-econav-plane > nav.ecosystem-nav[data-fcc-econav] {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    min-width: 0 !important;
    /* mask-image managed dynamically by JS updateScrollState() */
  }
  .fcc-econav-scroll-wrap > nav.ecosystem-nav[data-fcc-econav]::-webkit-scrollbar,
  .fcc-econav-plane > nav.ecosystem-nav[data-fcc-econav]::-webkit-scrollbar {
    display: none !important;
  }

  .fcc-econav-arrow {
    flex: 0 0 auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    background: none !important;
    color: var(--text-dim, #9aa3b2) !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    padding: 0.1rem 0.25rem !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: opacity 120ms ease !important;
  }
  .fcc-econav-arrow:hover {
    opacity: 1 !important;
    color: var(--text, #f5f6f7) !important;
  }

  .fcc-econav-toggle-wrap {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .fcc-econav-arrow,
  .fcc-econav-scroll-wrap {
    display: contents !important;
  }
  .fcc-econav-arrow {
    display: none !important;
  }

  .fcc-econav-hamburger {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 0.65rem !important;
    row-gap: 0.3rem !important;
    position: relative !important;
    padding-right: 8.8rem !important;
  }

  .fcc-econav-hamburger .fcc-econav-brand,
  .fcc-econav-hamburger .brand,
  .fcc-econav-hamburger .brand a {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
    align-self: start;
  }

  .fcc-econav-hamburger .fcc-econav-toggle-wrap {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    grid-column: 2;
    grid-row: 1;
    position: absolute !important;
    top: 0.2rem !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fcc-econav-hamburger .fcc-econav-tip {
    font-size: 0.66rem;
    color: rgba(245, 246, 247, 0.82);
    background: rgba(12, 13, 15, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.2rem;
    padding: 0.16rem 0.35rem;
    white-space: nowrap;
    line-height: 1.1;
    order: 1;
  }

  .fcc-econav-hamburger .fcc-econav-toggle {
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(18, 21, 28, 0.9);
    color: #f5f6f7;
    border-radius: 0.2rem;
    min-height: 40px;
    min-width: 44px;
    padding: 0.22rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-grid !important;
    place-items: center !important;
    order: 2;
  }

  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] {
    position: absolute !important;
    right: 0;
    top: calc(100% + 0.35rem);
    display: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.3rem !important;
    width: max-content !important;
    min-width: 9.5rem;
    max-width: min(92vw, 18rem);
    padding: 0.45rem 0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.3rem;
    background: rgba(12, 13, 15, 0.98);
    z-index: 1200;
  }

  .fcc-econav-hamburger.fcc-econav-open nav.ecosystem-nav[data-fcc-econav] {
    display: flex !important;
  }

  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] a,
  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] .active {
    width: 100%;
    padding: 0.18rem 0.2rem;
    line-height: 1.15;
  }

  .fcc-econav-hamburger .fcc-econav-local-nav,
  .fcc-econav-hamburger .nav {
    display: none !important;
  }
}

/* 2026-02-17: mobile hamburger anti-slice guard (shared) */
@media (max-width: 900px) {
  .site-header,
  .topbar,
  .topbar-shell,
  .topbar-content,
  .topbar-inner,
  .fcc-econav-plane,
  .fcc-econav-hamburger {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  .site-header::before,
  .site-header::after,
  .topbar::before,
  .topbar::after,
  .topbar-shell::before,
  .topbar-shell::after,
  .topbar-content::before,
  .topbar-content::after,
  .fcc-econav-plane::before,
  .fcc-econav-plane::after,
  .fcc-econav-hamburger::before,
  .fcc-econav-hamburger::after {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
  }
}

/* BEGIN HEADER CAD9D2 OVERRIDE */
.topbar .brand,
.topbar .brand a,
.topbar .brand:hover,
.topbar .brand a:hover,
.topbar .brand:focus-visible,
.topbar .brand a:focus-visible,
.topbar-content .brand,
.topbar-content .brand a,
.topbar-content .brand:hover,
.topbar-content .brand a:hover,
.topbar-content .brand:focus-visible,
.topbar-content .brand a:focus-visible,
.fcc-econav-hamburger .fcc-econav-brand,
.fcc-econav-hamburger .brand,
.fcc-econav-hamburger .brand a,
.fcc-econav-hamburger .fcc-econav-brand:hover,
.fcc-econav-hamburger .brand:hover,
.fcc-econav-hamburger .brand a:hover {
  color: #e5e5e5 !important;
}

nav.ecosystem-nav[data-fcc-econav] a,
nav.ecosystem-nav[data-fcc-econav] a:visited,
nav.ecosystem-nav[data-fcc-econav] a:hover,
nav.ecosystem-nav[data-fcc-econav] a:focus-visible,
nav.ecosystem-nav[data-fcc-econav] .active,
.fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] a,
.fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] a:visited,
.fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] a:hover,
.fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] a:focus-visible,
.fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] .active {
  color: #e5e5e5 !important;
}
/* END HEADER CAD9D2 OVERRIDE */


/* BEGIN SHARED SIGN-IN BUTTON STYLES */
.fcc-econav-auth,
.topbar-auth.fcc-econav-auth {
  margin-left: 0.45rem;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.fcc-econav-desktop-themes {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: 0.55rem;
  flex: 0 0 auto;
}

.fcc-econav-desktop-themes-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(229, 229, 229, 0.88);
}

.fcc-econav-desktop-theme-btn {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.fcc-econav-desktop-theme-btn.fcc-econav-theme-black { background: #0c0d0f; }
.fcc-econav-desktop-theme-btn.fcc-econav-theme-atlas { background: #1e2430; }
.fcc-econav-desktop-theme-btn.fcc-econav-theme-forest { background: #1f3a2d; }

.fcc-econav-desktop-theme-btn.active {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24);
}

/* (removed: live chess badge styles — badge now lives on home page only) */

/* Notification Bell */
.fcc-notif-bell {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 30px;
  margin-left: 0.25rem;
  border-radius: 50%;
  color: rgba(229, 229, 229, 0.75);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.fcc-notif-bell:hover,
.fcc-notif-bell:focus-visible {
  color: #c7d2fe;
  background: rgba(199, 210, 254, 0.1);
  text-decoration: none;
  outline: none;
}
.fcc-notif-bell--unread {
  color: #c7d2fe;
}
.fcc-notif-bell-icon {
  display: block;
  flex-shrink: 0;
}
.fcc-notif-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  pointer-events: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
/* mobile bell touch target */
@media (max-width: 900px) {
  .fcc-notif-bell {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
}
/* hide bell on very narrow screens — link still accessible via /inbox/ */
@media (max-width: 480px) {
  .fcc-notif-bell { display: none !important; }
}

.fcc-auth-btn,
.fcc-auth-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.32rem 0.72rem;
  border-radius: 0.3rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 21, 28, 0.9);
  color: #e5e5e5;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.fcc-auth-btn:hover,
.fcc-auth-btn:focus-visible {
  color: #e5e5e5;
  text-decoration: none;
  border-color: rgba(199, 210, 254, 0.48);
  background: linear-gradient(180deg, rgba(199, 210, 254, 0.12), rgba(199, 210, 254, 0.04));
}

@media (min-width: 901px) {
  .fcc-econav-plane > .fcc-econav-auth {
    margin-left: 0.55rem;
  }
}

@media (max-width: 900px) {
  .fcc-econav-desktop-themes {
    display: none !important;
  }

  .fcc-econav-hamburger .fcc-econav-auth {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0.2rem 0 0 0;
    justify-content: flex-start;
  }

  .fcc-econav-hamburger .fcc-auth-btn {
    min-height: 30px;
    font-size: 0.78rem;
    padding: 0.28rem 0.64rem;
  }
}
/* END SHARED SIGN-IN BUTTON STYLES */

/* BEGIN SIGN-IN VISUAL LOCK OVERRIDE */
.fcc-auth-btn,
#authOpenBtn,
.fcc-auth-btn:link,
.fcc-auth-btn:visited,
.fcc-auth-btn:hover,
.fcc-auth-btn:focus,
.fcc-auth-btn:focus-visible,
.fcc-auth-btn:active,
#authOpenBtn:hover,
#authOpenBtn:focus,
#authOpenBtn:focus-visible,
#authOpenBtn:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 5px 12px !important;
  border-radius: 0.3rem !important;
  border: 0 !important;
  outline: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  background: rgba(18, 21, 28, 0.90) !important;
  color: #e5e5e5 !important;
  text-decoration: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 13px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.fcc-auth-btn:hover,
.fcc-auth-btn:focus-visible,
.fcc-auth-btn:active,
#authOpenBtn:hover,
#authOpenBtn:focus-visible,
#authOpenBtn:active {
  background: linear-gradient(180deg, rgba(199, 210, 254, 0.12), rgba(199, 210, 254, 0.04)) !important;
  color: #e5e5e5 !important;
  text-decoration: none !important;
}

.fcc-econav-auth,
.topbar-auth.fcc-econav-auth {
  margin-left: 8px !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

@media (max-width: 900px) {
  .fcc-econav-hamburger .fcc-econav-auth {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 3px 0 0 0 !important;
    justify-content: flex-start;
  }

  .fcc-econav-hamburger .fcc-auth-btn,
  .fcc-econav-hamburger #authOpenBtn {
    min-height: 44px !important;
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    padding: 8px 12px !important;
  }
}
/* END SIGN-IN VISUAL LOCK OVERRIDE */


/* BEGIN MOBILE MENU EXTRAS (BUG/THEMES/SIGNIN) */
@media (max-width: 900px) {
  .fcc-econav-hamburger .fcc-econav-auth {
    display: none !important;
  }

  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] .fcc-econav-mobile-extra {
    width: 100%;
    box-sizing: border-box;
  }

  .fcc-econav-hamburger .fcc-econav-mobile-link,
  .fcc-econav-hamburger .fcc-econav-mobile-link:visited {
    color: #e5e5e5 !important;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.2rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem 0.7rem;
    font-size: 0.875rem;
    line-height: 1.2;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .fcc-econav-hamburger .fcc-econav-mobile-themes {
    display: grid;
    gap: 0.28rem;
    padding: 0.26rem 0.1rem 0.1rem;
  }

  .fcc-econav-mobile-themes-title {
    font-size: 0.78rem;
    color: rgba(229, 229, 229, 0.88);
    line-height: 1;
    margin-left: 0.04rem;
  }

  .fcc-econav-mobile-themes-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .fcc-econav-theme-chip {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    padding: 0;
    cursor: pointer;
  }

  .fcc-econav-theme-black { background: #0c0d0f; }
  .fcc-econav-theme-atlas { background: #1e2430; }
  .fcc-econav-theme-forest { background: #1f3a2d; }

  .fcc-econav-theme-chip.active {
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24);
  }
}
/* END MOBILE MENU EXTRAS (BUG/THEMES/SIGNIN) */


/* IN-20260222 atlas active exact override */
html[data-fcc-v2-theme-preset="atlas"] nav.ecosystem-nav[data-fcc-econav] .active {
  outline: 1px solid #6e6e6e !important;
  outline-color: #6e6e6e !important;
  background-color: #1f222d !important;
  background-image: none !important;
  border-color: #6e6e6e !important;
  box-shadow: none !important;
}

/* IN-20260222 forest active exact override */
html[data-fcc-v2-theme-preset="forest"] nav.ecosystem-nav[data-fcc-econav] .active {
  outline: 1px solid #415f49 !important;
  outline-color: #415f49 !important;
  background-color: #1b2a21 !important;
  background-image: none !important;
  border-color: #415f49 !important;
  box-shadow: none !important;
}


/* IN-20260222 black active uses forest colors */
html[data-fcc-v2-theme-preset="black"] nav.ecosystem-nav[data-fcc-econav] .active {
  outline: 1px solid #415f49 !important;
  outline-color: #415f49 !important;
  background-color: #1b2a21 !important;
  background-image: none !important;
  border-color: #415f49 !important;
  box-shadow: none !important;
}


/* SHARED ECONAV MOBILE HAMBURGER MATCH ACCOUNT V1 */
@media (max-width: 900px) {
  .fcc-econav-hamburger .fcc-econav-tip {
    display: none !important;
  }

  .fcc-econav-hamburger .fcc-econav-toggle-wrap {
    z-index: 26020 !important;
    background: rgba(8, 10, 14, 0.96) !important;
    border: 2px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0.3rem !important;
    padding: 0.12rem 0.2rem !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38) !important;
  }

  .fcc-econav-hamburger .fcc-econav-toggle {
    min-width: 44px !important;
    min-height: 40px !important;
    padding: 0 0.4rem !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    border-radius: 0.2rem !important;
    border: 2px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(10, 12, 16, 0.95) !important;
    color: #e5e7eb !important;
    box-shadow: none !important;
  }

  .fcc-econav-hamburger.fcc-econav-open .fcc-econav-toggle {
    background: rgba(20, 24, 32, 0.98) !important;
    border-color: rgba(199, 210, 254, 0.55) !important;
  }

  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] {
    right: 0 !important;
    top: calc(100% + 0.35rem) !important;
    min-width: 12.5rem !important;
    max-width: min(92vw, 18rem) !important;
    padding: 0.5rem !important;
    gap: 0.3rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.3rem !important;
    background: rgba(8, 10, 14, 0.99) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45) !important;
    z-index: 26030 !important;
  }

  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] a,
  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] .active,
  .fcc-econav-hamburger .fcc-econav-mobile-link,
  .fcc-econav-hamburger .fcc-econav-mobile-link:visited {
    display: block !important;
    width: 100% !important;
    min-height: 38px !important;
    border: 2px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 0.2rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    padding: 0.45rem 0.55rem !important;
    line-height: 1.2 !important;
    font-size: 0.92rem !important;
    color: #e5e7eb !important;
    text-decoration: none !important;
  }

  .fcc-econav-hamburger nav.ecosystem-nav[data-fcc-econav] .active {
    border-color: rgba(125, 211, 252, 0.45) !important;
    background: rgba(125, 211, 252, 0.12) !important;
    box-shadow: none !important;
  }

  .fcc-econav-hamburger .fcc-econav-mobile-logout {
    border-color: rgba(253, 164, 175, 0.35) !important;
  }
}


/* Hub back-link (child → parent) */
.fcc-hub-back,
.fcc-hub-back:visited {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--dim, #9aa3b2);
  text-decoration: none;
  margin-bottom: 0.3rem;
  line-height: 1;
}
.fcc-hub-back:hover,
.fcc-hub-back:focus-visible {
  color: var(--text, #f5f6f7);
}

/* ── Unified Search ─────────────────────────────────────────────── */
.fcc-econav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.3rem;
  flex-shrink: 0;
}

/* Mobile-only icon button; hidden on desktop */
.fcc-econav-search-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 6px;
  color: var(--text-dim, #9aa3b2);
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1;
}
.fcc-econav-search-btn:hover,
.fcc-econav-search-btn:focus-visible {
  color: var(--text, #f5f6f7);
  border-color: var(--text-dim, #9aa3b2);
}

/* Desktop: always-visible pill */
.fcc-econav-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 170px;
  transition: width 0.2s ease;
  z-index: 9999;
}
.fcc-econav-search-input-wrap:focus-within {
  width: 240px;
}

/* Decorative search icon inside the pill */
.fcc-econav-search-pill-icon {
  position: absolute;
  left: 9px;
  color: var(--text-dim, #9aa3b2);
  pointer-events: none;
  display: flex;
  align-items: center;
  line-height: 1;
}

.fcc-econav-search-input {
  width: 100%;
  background: var(--panel, #111214);
  color: var(--text, #f5f6f7);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 20px;
  padding: 5px 11px 5px 30px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, width 0.2s ease;
}
.fcc-econav-search-input:focus {
  border-color: var(--accent, #c7d2fe);
}
.fcc-econav-search-input::placeholder {
  color: var(--text-dim, #9aa3b2);
  opacity: 0.7;
}

.fcc-econav-search-dropdown {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  min-width: 260px;
  background: var(--panel, #111214);
  border: 1px solid var(--border, #2a2a2a);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 24rem;
  overflow-y: auto;
}

.fcc-econav-search-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text, #f5f6f7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--line, #1e1e1e);
}
.fcc-econav-search-item:last-of-type { border-bottom: none; }
.fcc-econav-search-item:hover,
.fcc-econav-search-item-active {
  background: var(--panel-2, #15171a);
}

.fcc-econav-search-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 3.5rem;
}

.fcc-econav-search-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fcc-econav-search-title mark {
  background: transparent;
  color: var(--accent, #c7d2fe);
  font-weight: 600;
}

.fcc-econav-search-empty {
  padding: 0.75rem;
  text-align: center;
  color: var(--text-dim, #9aa3b2);
  font-size: 0.82rem;
}

.fcc-econav-search-see-all {
  display: block;
  padding: 0.5rem 0.75rem;
  text-align: center;
  color: var(--accent, #c7d2fe);
  font-size: 0.8rem;
  text-decoration: none;
  border-top: 1px solid var(--line, #1e1e1e);
  transition: background 0.1s;
}
.fcc-econav-search-see-all:hover {
  background: var(--panel-2, #15171a);
}

/* Mobile: show icon button, hide pill by default */
@media (max-width: 900px) {
  .fcc-econav-search-btn {
    display: flex;
  }
  .fcc-econav-search-input-wrap {
    display: none;
    position: fixed;
    top: calc(3.5rem + env(safe-area-inset-top, 0px));
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
  }
  .fcc-econav-search-input-wrap.is-open {
    display: flex;
    flex-direction: column;
  }
  .fcc-econav-search-pill-icon {
    display: none;
  }
  .fcc-econav-search-input {
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
  }
  .fcc-econav-search-dropdown {
    position: static;
    min-width: unset;
    margin-top: 0.25rem;
  }
}
