/* Shared platform header + mobile tab bar (v29): one source for the storefront, docs and Agent Nexus. */
:where(.unc-unified-header,.mobile-bottom-tabs,.mobile-more-sheet,.unc-info-panel){
  --accent-forest:#07442B;--accent-gold:#FDB819;--badge-green:#49F29D;--border-forest:#07442B;
  --border-light:rgba(216,231,172,.16);--text-cream:#FCF0D4;--text-cream-dim:#D8E5C4;--text-muted:#8FA678;
}
/* ========================================================================= */
/* UNIFIED CENTRAL PLATFORM NAVIGATION (APPLE STORE DOCK ARCHITECTURE)       */
/* ========================================================================= */

.market-header,
.market-header.unc-unified-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(1, 32, 26, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(216, 231, 172, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
  margin: 0;
  padding: 0;
}

.market-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px;
  gap: 14px;
  box-sizing: border-box;
}

/* BRAND & NETWORK CLUSTER */
.brand-network-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.market-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.market-brand img {
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(216, 231, 172, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-cream);
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 1px;
}





/* CENTRAL APP DOCK CLUSTER (NAV PANEL + CONNECT WALLET SIDE-BY-SIDE) */
.header-dock-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.central-nav-panel {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(4, 39, 28, 0.88);
  border: 1px solid rgba(216, 231, 172, 0.16);
  border-radius: 28px;
  padding: 3px 6px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-tab-btn,
.nav-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: var(--text-cream-dim);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-tab-btn:hover,
.nav-tab-link:hover {
  color: var(--text-cream);
  background: rgba(7, 68, 43, 0.5);
  text-decoration: none;
}

.nav-tab-btn.active,
.nav-tab-link.active,
.nav-tab-link[aria-current="page"] {
  color: var(--accent-gold);
  background: #01201A;
  border-color: rgba(253, 184, 25, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* "MORE ▾" DROPDOWN MENU */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nav-chevron {
  font-size: 9px;
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-cream-dim);
  line-height: 1;
}

.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: rgba(3, 40, 27, 0.98);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(216, 231, 172, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(253, 184, 25, 0.12);
  padding: 6px;
  z-index: 1200;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
  animation: navDropdownFade 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-btn,
.dropdown-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-cream);
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none!important;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
}

.dropdown-item-btn:hover,
.dropdown-item-link:hover {
  background: rgba(7, 68, 43, 0.85);
  border-color: rgba(216, 231, 172, 0.2);
  color: var(--accent-gold);
}

.dropdown-item-btn.active,
.dropdown-item-link.active,
.dropdown-item-link[aria-current="page"] {
  background: rgba(1, 32, 26, 0.95);
  border-color: rgba(253, 184, 25, 0.45);
  color: var(--accent-gold);
}

.dropdown-icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dropdown-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.dropdown-subtitle {
  font-size: 10px;
  color: #8FA678;
  line-height: 1.2;
}

.dropdown-divider {
  height: 1px;
  background: rgba(216, 231, 172, 0.12);
  margin: 4px 6px;
}

/* RIGHT-ALIGNED WALLET ACTIONS CLUSTER (SITS TIGHT BESIDE NAV DOCK) */
.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wallet-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #07442B 0%, #04271C 100%);
  color: var(--text-cream);
  border: 1px solid rgba(253, 184, 25, 0.4);
  border-radius: 24px;
  padding: 6px 15px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.wallet-pill-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: #0b5435;
  box-shadow: 0 0 12px rgba(253, 184, 25, 0.28);
  transform: translateY(-1px);
}

.wallet-pill-btn .wallet-icon {
  font-size: 13px;
  color: #49F29D;
  display: inline-block;
}

/* ROW 2: NON-OVERLAPPING SUB-NAVIGATION STRIP (MANDATORY FIX 1) */
.subnav-row-strip {
  width: 100%;
  border-top: 1px solid rgba(216, 231, 172, 0.08);
  background: rgba(1, 26, 20, 0.95);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 16px;
}
.subnav-row-strip::-webkit-scrollbar {
  display: none;
}
.subnav-scroll-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.subnav-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-cream-dim);
  background: rgba(7, 68, 43, 0.3);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.subnav-pill:hover,
.subnav-pill.active {
  background: var(--accent-forest);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* STICKY BOTTOM 7-ITEM SPA TAB BAR (MANDATORY FIX 1 & 2) */
.mobile-bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(1, 32, 26, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border-forest);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 8px;
  min-width: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.tab-item:hover,
.tab-item.active {
  color: var(--accent-gold);
  background: rgba(7, 68, 43, 0.45);
}
.tab-item svg {
  stroke: currentColor;
}

@media (max-width: 1120px) {
  .central-nav-panel {
    gap: 2px;
    padding: 3px 6px;
  }
  .nav-tab-btn,
  .nav-tab-link {
    padding: 5px 10px;
    font-size: 11.5px;
  }
}
@media (max-width: 820px) {
  .market-header-inner { padding: 8px 12px; }
  .central-nav-panel { display: none; }
  .mobile-bottom-tabs { display: flex; min-height: 56px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tab-item { font-size: 11px !important; }
  .tab-item svg { width: 18px !important; height: 18px !important; }
}

/* v29: section headers. One large title + an "i" button; explanations live in the info panel (Apple Store pattern). */
.unc-sechead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.unc-sechead-title{display:flex;align-items:center;gap:10px;min-width:0}
.unc-sechead-title h1,.unc-sechead-title h2{margin:0;font-size:clamp(26px,3.4vw,40px);font-weight:750;letter-spacing:-.035em;line-height:1.1;color:#FCF0D4}
.unc-info-btn{flex:0 0 auto;width:28px;height:28px;min-height:28px;padding:0;border-radius:50%;border:1px solid rgba(216,231,172,.35);background:transparent;color:#D8E5C4;font:600 14px/1 Georgia,"Times New Roman",serif;font-style:italic;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.unc-info-btn:hover:not(:disabled),.unc-info-btn[aria-expanded="true"],.unc-info-btn[aria-expanded="true"]:hover{border-color:#FDB819;color:#FDB819;background:rgba(253,184,25,.08)}
.unc-info-panel{margin:0 0 18px;padding:16px 18px;border:1px solid rgba(216,231,172,.16);border-radius:16px;background:rgba(4,51,34,.6);color:#D8E5C4;font-size:14px;line-height:1.6}
.unc-info-panel[hidden]{display:none}
.unc-info-panel p{margin:0 0 8px}.unc-info-panel p:last-child{margin-bottom:0}
.unc-info-panel ol{margin:6px 0 8px;padding-left:20px}
.unc-info-panel .unc-info-kicker{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#FDB819;margin:0 0 6px}

/* v29: one compact header height on every page and width. unc-ui.css sizes .unc-unified-header for the older two-row
   header (76 px, and 126 px under 1100 px); the platform header is a single row, so its inner row sets the height. */
:root:has(.market-header.unc-unified-header){--unc-header-height:69px}
body .market-header.unc-unified-header{display:block!important;min-height:0!important;padding:0!important;gap:0!important}
@media(max-width:820px){:root:has(.market-header.unc-unified-header){--unc-header-height:61px}}
@media(max-width:640px){.unc-sechead .view-actions-toolbar{display:flex;gap:8px;width:100%}.unc-sechead .view-actions-toolbar>*{flex:1 1 0;margin:0;padding-inline:12px}}

/* v53 profile pill: after a wallet connects, the header button shows the account and opens /capital-markets/#account */
.wallet-pill-btn.is-profile{gap:8px;padding-left:6px;border-color:rgba(216,231,172,.28)}
.wallet-pill-btn.is-profile .wallet-btn-label{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px}
.acct-avatar{width:28px;height:28px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;color:#FCF0D4;font-weight:750;font-size:14px;background:#07442B}
.acct-chev{font-size:11px;color:#BAC7A0}
@media(max-width:640px){.wallet-pill-btn.is-profile .wallet-btn-label{font-size:12.5px}}

/* v60: pages with legacy global styles (the Demo Lab's desk.css and /unc-ui.css) style every <button>; keep the
   platform header's own geometry there so it matches every other page (61 px under 820 px, 69 px above). */
.market-header.unc-unified-header button{margin:0}
/* v60: the Demo Lab prototypes style every <button> (for example `.unc-workspace button`, gold and filled). The platform
   chrome restates its own button look at higher specificity so the header and tab bar are identical on every page. */
.market-header.unc-unified-header .wallet-pill-btn{width:auto;max-width:none;min-height:44px;background:linear-gradient(135deg,#07442B 0%,#04271C 100%);color:var(--text-cream);border:1px solid rgba(253,184,25,.4);border-radius:24px;padding:6px 15px;font-size:12.5px;font-weight:600;line-height:1.2;letter-spacing:normal;text-transform:none;box-shadow:0 2px 8px rgba(0,0,0,.25);white-space:nowrap}
.market-header.unc-unified-header .wallet-pill-btn:hover{border-color:var(--accent-gold);color:var(--accent-gold);background:#0b5435}
.market-header.unc-unified-header .wallet-pill-btn.is-profile{padding-left:6px;border-color:rgba(216,231,172,.28)}
.market-header.unc-unified-header .nav-tab-btn{width:auto;max-width:none;min-height:0;background:transparent;color:var(--text-cream-dim);border:1px solid transparent;border-radius:20px;padding:6px 13px;font-size:13px;font-weight:600;line-height:1.2;letter-spacing:normal;text-transform:none;box-shadow:none;white-space:nowrap}
.market-header.unc-unified-header .nav-tab-btn:hover{color:var(--text-cream);background:rgba(7,68,43,.5)}
.market-header.unc-unified-header .nav-tab-btn.active{color:var(--accent-gold);background:#01201A;border-color:rgba(253,184,25,.45);box-shadow:0 2px 6px rgba(0,0,0,.35)}
.mobile-bottom-tabs .tab-item{width:auto;max-width:none;min-height:0;margin:0;font-size:9.5px;background:transparent;color:var(--text-muted);border:none;border-radius:8px;padding:4px 6px;font-weight:600;line-height:normal;letter-spacing:normal;text-transform:none;box-shadow:none}
.mobile-bottom-tabs .tab-item:hover,.mobile-bottom-tabs .tab-item.active{color:var(--accent-gold);background:rgba(7,68,43,.45)}
.market-header.unc-unified-header,.mobile-bottom-tabs,.mobile-more-sheet{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.5}
.market-header.unc-unified-header .market-brand{color:var(--accent-gold);font-size:15px}
.market-header.unc-unified-header .nav-tab-link{color:var(--text-cream-dim)}
.market-header.unc-unified-header .nav-tab-link:hover{color:var(--text-cream)}
.market-header.unc-unified-header .nav-tab-link.active,.market-header.unc-unified-header .nav-tab-link[aria-current="page"]{color:var(--accent-gold)}

/* unc-mark (v73): the transparent mustache sits directly on the green, 64 px wide (Six) */
html body img.unc-logo,html body .unc-unified-header>.unc-brand>.unc-logo,html body .unc-brand>img,html body .market-brand img,html body img[src*="unc-mark-192"]{width:64px!important;height:auto!important;min-width:0!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:0!important;flex:0 0 auto!important}@media(max-width:800px){html body img.unc-logo,html body .unc-unified-header>.unc-brand>.unc-logo,html body .unc-brand>img,html body .market-brand img,html body img[src*="unc-mark-192"]{width:56px!important}}
/* v74 polish: the header sits on the same 1240 px grid as the page content (20 px minimum gutters) */
.market-header-inner{max-width:none;padding-left:max(20px,calc((100% - 1240px) / 2));padding-right:max(20px,calc((100% - 1240px) / 2))}
@media (max-width:820px){.market-header-inner{padding-left:16px;padding-right:16px}}

/* v75 polish: brand sub-labels never below 10 px (they were 8 px on phones) */
html body .unc-unified-header>.unc-brand>span>small,html body .unc-brand small,html body .unc-header .brand span,html body .brand-sub{font-size:10px!important;letter-spacing:.12em!important;line-height:1.3!important}
