/* ==================================================================
   app-shell.css — navigation shell shared by every user-facing page.
   Mobile is the design constraint; desktop swaps the bottom bar for
   group menus in the header. Uses the site's existing tokens.
   ================================================================== */
:root {
  --shl-header-h: 70px;
  --shl-bar-h: 64px;
  --shl-safe-b: env(safe-area-inset-bottom, 0px);
  --shl-safe-t: env(safe-area-inset-top, 0px);
  --shl-ease: cubic-bezier(.22,.8,.28,1);
  /* Shell colors are self-contained: some pages only define dark tokens,
     so the shell must not inherit --text / --line from the page. */
  --shl-surface: #0d1330;
  --shl-surface-2: #182046;
  --shl-ink: #ffffff;
  --shl-ink-2: #dfe5ee;
  --shl-ink-3: #a3adc2;
  --shl-rule: rgba(255,255,255,.14);
  --shl-accent: #FFD700;
  --shl-link: #4db8ff;
  --shl-focus: #FFD700;
  --shl-blue: #0066ff;
  --shl-sky: #00bfff;
  --shl-header-bg: rgba(10,14,39,.88);
  --shl-header-line: rgba(0,102,255,.40);
}
/* Keyed to what the page actually renders (set by app-shell.js), so the
   shell matches pages that only ship a dark theme. */
html.shl-on-light {
  --shl-surface: #ffffff;
  --shl-surface-2: #eef2fa;
  --shl-ink: #0d1224;
  --shl-ink-2: #2b3350;
  --shl-ink-3: #555e78;
  --shl-rule: rgba(10,20,60,.14);
  --shl-accent: #8a6d00;
  --shl-link: #0052cc;
  --shl-focus: #0052cc;
  --shl-header-bg: rgba(255,255,255,.92);
  --shl-header-line: rgba(0,82,204,.28);
}

/* Reserve header space before the shell renders: no layout shift.
   Only when scripting is on — without JS the legacy header stays usable. */
@media (scripting: enabled) {
  html:not(.shl-ready) body { padding-top: calc(var(--shl-header-h) + var(--shl-safe-t)); }
  html:not(.shl-ready) body:has(> .site-header) { padding-top: 0; }
  html:not(.shl-ready) .mobile-menu,
  html:not(.shl-ready) .mobile-app-nav,
  html:not(.shl-ready) .install-banner { display: none !important; }
}
.shl-noscript { padding: .8rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; border-bottom: 1px solid var(--shl-rule); }
.shl-noscript a { color: var(--shl-ink); }

.shl-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.shl-ico { width: 22px; height: 22px; flex: none; }
html.shl-locked, html.shl-locked body { overflow: hidden; }

/* ---------- Header ---------- */
.shl-header {
  position: sticky; top: 0; z-index: 1000;
  padding-top: var(--shl-safe-t);
  background: var(--shl-header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--shl-header-line);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
}
.shl-header-inner {
  height: var(--shl-header-h); max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: .75rem;
  padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
}
.shl-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; color: var(--shl-ink); }
.shl-brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 2px; flex: none; border: 2px solid var(--shl-accent); }
.shl-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.shl-brand-name {
  font-family: Montserrat, var(--font-display, system-ui), sans-serif; font-weight: 900; font-size: .9rem; letter-spacing: .035em; white-space: nowrap;
  background: linear-gradient(45deg, var(--shl-sky), var(--shl-blue), #ffd700);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--shl-ink);
}
html.shl-on-light .shl-brand-name { background: linear-gradient(45deg, #0052cc, #003d99, #8a6d00); -webkit-background-clip: text; background-clip: text; }
.shl-brand-sub { font: 600 .6rem/1.3 "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--shl-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.shl-topnav { display: none; margin-left: auto; }
.shl-topnav ul { list-style: none; display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; }
.shl-topnav-btn, .shl-topnav-link {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: 0 .75rem;
  font: 600 .88rem/1 "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .04em;
  color: var(--shl-ink); text-decoration: none;
  background: none; border: 0; border-radius: 8px; cursor: pointer; position: relative; transition: color .2s, background .2s;
}
.shl-topnav-btn:hover, .shl-topnav-btn[aria-expanded="true"], .shl-topnav-link:hover,
.shl-topnav-link[aria-current="page"], .shl-topnav-btn[aria-current="page"] { color: var(--shl-accent); background: rgba(255,215,0,.08); }
html.shl-on-light .shl-topnav-btn:hover, html.shl-on-light .shl-topnav-link:hover,
html.shl-on-light .shl-topnav-link[aria-current="page"], html.shl-on-light .shl-topnav-btn[aria-expanded="true"] { background: rgba(0,82,204,.07); }
.shl-topnav-link[aria-current="page"]::after, .shl-topnav-btn[aria-current="page"]::after {
  content: ''; position: absolute; left: .75rem; right: .75rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--shl-accent);
}
.shl-chev { width: 14px; height: 14px; transition: transform .2s var(--shl-ease); }
.shl-topnav-btn[aria-expanded="true"] .shl-chev, .shl-chev.is-up { transform: rotate(180deg); }

.shl-utils { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.shl-topnav + .shl-utils { margin-left: .75rem; }
.shl-iconbtn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 10px; border: 1px solid var(--shl-rule); background: transparent; color: var(--shl-ink); cursor: pointer;
}
.shl-iconbtn:hover { background: var(--shl-surface-2); }
.shl-iconbtn .shl-ico { width: 20px; height: 20px; }
.shl-ico-sun { display: none; }
html[data-theme="light"] .shl-ico-sun { display: block; }
html[data-theme="light"] .shl-ico-moon { display: none; }
.shl-pill {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .8rem;
  border-radius: 999px; border: 1px solid var(--shl-rule); background: transparent; color: var(--shl-ink-2);
  font: 600 .8rem/1 var(--font-body, system-ui); cursor: pointer; white-space: nowrap;
}
.shl-pill .shl-ico { width: 18px; height: 18px; color: var(--accent, var(--shl-accent)); }
.shl-pill:hover { color: var(--shl-ink); border-color: var(--accent, var(--shl-accent)); }

.shl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: 0 1rem;
  border-radius: 10px; border: 1px solid transparent; font: 700 .86rem/1 var(--font-body, system-ui);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.shl-btn-primary { background: #0057c2; color: #fff; }
.shl-btn-gold {
  border-radius: 999px; border: 2px solid var(--shl-accent); color: var(--shl-accent); background: transparent;
  font-family: Montserrat, var(--font-body, system-ui), sans-serif; letter-spacing: .02em; min-height: 42px; padding: 0 1.1rem;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.shl-btn-gold:hover { background: var(--shl-accent); color: #0a0e27; box-shadow: 0 10px 26px rgba(255,215,0,.25); transform: translateY(-1px); }
.shl-menubtn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; flex: none;
  border: 1px solid var(--shl-rule); border-radius: 10px; background: rgba(255,255,255,.05); cursor: pointer;
}
.shl-menubtn span { display: block; height: 2px; border-radius: 2px; background: var(--shl-ink); transition: transform .2s var(--shl-ease), opacity .2s; }
.shl-menubtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.shl-menubtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.shl-menubtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.shl-btn-primary:hover { filter: brightness(1.1); color: #fff; }
.shl-btn-quiet { background: transparent; color: var(--shl-ink-2); border-color: var(--shl-rule); }
.shl-btn-quiet:hover { color: var(--shl-ink); }
.shl-desktop-only { display: none; }

/* ---------- Bottom bar (mobile) ---------- */
.shl-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--shl-bar-h) + var(--shl-safe-b));
  padding: 0 env(safe-area-inset-right) var(--shl-safe-b) env(safe-area-inset-left);
  background: var(--shl-surface);
  border-top: 1px solid var(--shl-rule);
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
.shl-bar-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: 48px; padding: 0 2px;
  font: 600 .68rem/1 var(--font-body, system-ui); letter-spacing: .01em;
  color: var(--shl-ink-3); text-decoration: none; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shl-bar-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.shl-bar-item:hover { color: var(--shl-ink); }
.shl-bar-item[aria-current="page"], .shl-bar-item[aria-expanded="true"] { color: var(--shl-ink); }
.shl-bar-item[aria-current="page"] .shl-ico { color: var(--shl-accent); }
.shl-bar-item[aria-current="page"]::before {
  content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--shl-accent);
}
.shl-bar-item:active .shl-ico { transform: scale(.92); }

html.has-shl-bar body { padding-bottom: calc(var(--shl-bar-h) + var(--shl-safe-b)); }
html.has-shl-bar { scroll-padding-bottom: calc(var(--shl-bar-h) + var(--shl-safe-b)); }

/* Legacy floating controls: keep them clear of the bar, or retire them. */
html.has-shl-bar .a11y-fab { display: none !important; }
html.has-shl-bar .back-to-top { bottom: calc(var(--shl-bar-h) + var(--shl-safe-b) + 14px) !important; }
html.has-shl-bar .consent-banner { bottom: calc(var(--shl-bar-h) + var(--shl-safe-b) + 10px) !important; }
html.has-shl-bar .install-banner { display: none !important; }
/* Assistant launcher (assets/js/chat/widget.js) sits above the bar on mobile. */
@media (max-width: 899px) {
  html.has-shl-bar .asx-fab { bottom: calc(var(--shl-bar-h) + var(--shl-safe-b) + 14px) !important; right: 14px !important; width: 52px !important; height: 52px !important; }
  html.has-shl-bar .chat-widget { bottom: calc(var(--shl-bar-h) + var(--shl-safe-b) + 14px) !important; }
  html.has-shl-bar .asx-panel { bottom: calc(var(--shl-bar-h) + var(--shl-safe-b) + 76px) !important; height: min(62dvh, 520px) !important; }
}
html.shl-locked .asx-fab, html.shl-locked .asx-panel, html.shl-locked .chat-widget { visibility: hidden !important; }
html.has-shl-bar body:has(.consent-banner.show) .asx-fab,
html.has-shl-bar body:has(.shl-install.is-in) .asx-fab { visibility: hidden !important; }

/* ---------- Sheet (mobile bottom sheet / desktop popover) ---------- */
.shl-backdrop {
  position: fixed; inset: 0; z-index: 1190; background: rgba(4,7,20,.55);
  opacity: 0; transition: opacity .2s ease;
}
.shl-backdrop.is-open { opacity: 1; }
.shl-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  max-height: min(86dvh, 720px); overflow-y: auto; overscroll-behavior: contain;
  padding: .4rem 1.1rem calc(1.1rem + var(--shl-safe-b));
  background: var(--shl-surface); color: var(--shl-ink);
  border-radius: 18px 18px 0 0; border: 1px solid var(--shl-rule); border-bottom: 0;
  box-shadow: 0 -18px 50px rgba(0,0,0,.35);
  transform: translateY(100%); transition: transform .24s var(--shl-ease);
}
.shl-sheet.is-open { transform: none; }
.shl-sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--shl-rule); margin: .35rem auto .5rem; }
.shl-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .2rem; }
.shl-sheet-title { font: 800 1.25rem/1.2 var(--font-display, system-ui); margin: 0; }
.shl-sheet-lede { color: var(--shl-ink-3); font-size: .9rem; line-height: 1.55; margin: .1rem 0 .9rem; }

.shl-group + .shl-group { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--shl-rule); }
.shl-group-title { display: flex; align-items: center; gap: .5rem; font: 700 .78rem/1 var(--font-body, system-ui); color: var(--shl-ink-3); margin: 0 0 .45rem; letter-spacing: .02em; }
.shl-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .45rem; border-radius: 6px; border: 1px solid var(--shl-rule); font-size: .68rem; color: var(--shl-ink-2); }
.shl-tag-ico { width: 11px; height: 11px; }

.shl-list { list-style: none; margin: 0; padding: 0; }
.shl-item {
  display: flex; align-items: center; gap: .8rem; box-sizing: border-box; width: calc(100% + 1.2rem);
  min-height: 52px; padding: .55rem .6rem; margin: 0 -.6rem;
  border-radius: 12px; text-decoration: none; color: var(--shl-ink); background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit;
}
.shl-item:hover { background: var(--shl-surface-2); color: var(--shl-ink); }
.shl-item[aria-current="page"] { background: var(--shl-surface-2); }
.shl-item[aria-current="page"] .shl-item-label::after { content: 'You are here'; margin-left: .5rem; font-size: .7rem; font-weight: 600; color: var(--shl-accent); }
.shl-item-ico {
  width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--shl-surface-2); color: var(--shl-link);
}
.shl-item-ico .shl-ico { width: 20px; height: 20px; }
.shl-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shl-item-label { font-weight: 600; font-size: .96rem; display: inline-flex; align-items: center; gap: .35rem; }
.shl-item-desc { font-size: .8rem; color: var(--shl-ink-3); line-height: 1.35; }
.shl-ext { width: 13px; height: 13px; color: var(--shl-ink-3); }
.shl-compact { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0; font-size: .86rem; }
.shl-compact a { color: var(--shl-ink-2); text-decoration: none; padding: .35rem 0; }
.shl-compact a:hover, .shl-compact a[aria-current="page"] { color: var(--shl-ink); text-decoration: underline; text-underline-offset: 3px; }
.shl-steps { margin: 0 0 .5rem 1.2rem; padding: 0; line-height: 1.9; font-size: .95rem; }
.shl-inline-ico { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- Install card ---------- */
.shl-install {
  position: fixed; z-index: 1150; left: .75rem; right: .75rem;
  bottom: calc(var(--shl-bar-h) + var(--shl-safe-b) + .75rem);
  display: grid; grid-template-columns: 40px 1fr; gap: .4rem .8rem; align-items: start;
  padding: .9rem; border-radius: 16px;
  background: var(--shl-surface); color: var(--shl-ink);
  border: 1px solid var(--shl-rule); box-shadow: 0 16px 40px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s var(--shl-ease);
}
.shl-install.is-in { opacity: 1; transform: none; }
.shl-install img { border-radius: 10px; background: #fff; }
.shl-install-title { font-weight: 700; margin: 0 0 .15rem; font-size: .95rem; }
.shl-install-body { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--shl-ink-2); }
.shl-install-actions { grid-column: 1 / -1; display: flex; gap: .5rem; justify-content: flex-end; }

/* ---------- Footer panel ---------- */
.shl-footer {
  position: relative; z-index: 1; margin-top: 2rem;
  border-top: 1px solid var(--shl-header-line);
  background: linear-gradient(180deg, rgba(10,14,39,.55), rgba(5,8,22,.92));
  color: var(--shl-ink-2);
}
html.shl-on-light .shl-footer { background: linear-gradient(180deg, #f4f6fb, #e9eef8); }
.shl-footer-inner { max-width: 1280px; margin: 0 auto; padding: 1.6rem 1rem 1.4rem; display: flex; flex-direction: column; gap: 1.4rem; font-size: .86rem; }
.shl-fbar ul { list-style: none; margin: 0; padding: .4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem;
  border: 1px solid var(--shl-rule); border-radius: 16px; background: rgba(255,255,255,.035); }
html.shl-on-light .shl-fbar ul { background: #fff; }
.shl-ftile {
  width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  border-radius: 12px; border: 0; background: none; color: var(--shl-ink-2); text-decoration: none; cursor: pointer;
  font: 600 .78rem/1 "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .05em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.shl-ftile-ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  color: var(--shl-sky); background: rgba(0,191,255,.10); border: 1px solid rgba(0,191,255,.28); }
html.shl-on-light .shl-ftile-ico { color: var(--shl-link); background: rgba(0,82,204,.07); border-color: rgba(0,82,204,.2); }
.shl-ftile-ico .shl-ico { width: 19px; height: 19px; }
.shl-ftile:hover, .shl-ftile[aria-current="page"] { color: var(--shl-accent); background: rgba(255,215,0,.07); }
.shl-ftile:hover .shl-ftile-ico { color: var(--shl-accent); border-color: rgba(255,215,0,.45); background: rgba(255,215,0,.10); }
.shl-fgrid { display: grid; gap: 1.4rem; }
.shl-fbrand { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.shl-fbrand-copy { margin: 0; max-width: 38ch; color: var(--shl-ink-3); line-height: 1.6; }
.shl-fhead { margin: 0 0 .6rem; font: 700 .72rem/1 "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--shl-accent); }
.shl-fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.shl-fcol a, .shl-fstatic { display: inline-flex; align-items: center; gap: .55rem; min-height: 36px; color: var(--shl-ink-2); text-decoration: none; overflow-wrap: anywhere; }
.shl-fcol a:hover { color: var(--shl-accent); }
.shl-fico { width: 17px; height: 17px; color: var(--shl-sky); }
html.shl-on-light .shl-fico { color: var(--shl-link); }
.shl-flegal { display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--shl-rule); font-size: .78rem; color: var(--shl-ink-3); }
.shl-footer-id { margin: 0; }
.shl-footer-id strong { color: var(--shl-ink-2); font-weight: 600; }
.shl-footer-links { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1rem; }
.shl-footer-links a, .shl-linkbtn { display: inline-flex; align-items: center; gap: .3rem; color: var(--shl-ink-3); text-decoration: none; background: none; border: 0; padding: .45rem 0; font: inherit; cursor: pointer; }
.shl-footer-links a:hover, .shl-linkbtn:hover { color: var(--shl-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tooltip ([data-tip]) ---------- */
.shl-tip {
  position: fixed; z-index: 1400; max-width: 260px; padding: .55rem .75rem; pointer-events: none;
  border-radius: 10px; border: 1px solid rgba(255,215,0,.45);
  background: #0b112c; color: #fff; font: 500 .78rem/1.45 Poppins, var(--font-body, system-ui), sans-serif;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.shl-tip.is-below { transform: translateY(-4px); }
.shl-tip.is-in { opacity: 1; transform: none; }

/* ---------- Progressive disclosure ---------- */
.shl-collapsed { display: none !important; }
.shl-disclose {
  display: flex; align-items: center; justify-content: center; gap: .35rem; width: 100%; min-height: 48px; margin-top: .9rem;
  border-radius: 12px; border: 1px dashed var(--shl-rule); background: transparent; color: var(--shl-ink-2);
  font: 600 .88rem/1 var(--font-body, system-ui); cursor: pointer;
}
.shl-disclose:hover { color: var(--shl-ink); border-style: solid; }

/* ---------- Focus ---------- */
.shl-header :focus-visible, .shl-bar :focus-visible, .shl-sheet :focus-visible,
.shl-install :focus-visible, .shl-footer :focus-visible, .shl-disclose:focus-visible {
  outline: 3px solid var(--shl-focus); outline-offset: 2px; border-radius: 10px;
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .shl-bar { display: none; }
  html.has-shl-bar body { padding-bottom: 0; }
  html.has-shl-bar { scroll-padding-bottom: 0; }
  html.has-shl-bar .back-to-top { bottom: 1.2rem !important; }
  html.has-shl-bar .consent-banner { bottom: .75rem !important; }
  .shl-header-inner { padding: 0 1.5rem; gap: 1rem; }
  .shl-sheet:not(.is-popover) { left: 50%; right: auto; width: 520px; bottom: auto; top: 50%; border-radius: 18px; border-bottom: 1px solid var(--shl-rule);
    transform: translate(-50%, -46%); opacity: 0; transition: transform .2s var(--shl-ease), opacity .2s ease; }
  .shl-sheet:not(.is-popover).is-open { transform: translate(-50%, -50%); opacity: 1; }
  .shl-sheet:not(.is-popover) .shl-sheet-grip { display: none; }
  .shl-sheet.is-popover {
    right: auto; bottom: auto; width: 360px; max-height: min(78vh, 640px); padding: .9rem 1rem 1rem;
    border-radius: 14px; border-bottom: 1px solid var(--shl-rule); box-shadow: 0 18px 48px rgba(0,0,0,.35);
    transform: translateY(-6px); opacity: 0; transition: transform .16s var(--shl-ease), opacity .16s ease;
  }
  .shl-sheet.is-popover.is-open { transform: none; opacity: 1; }
  .shl-sheet.is-popover .shl-sheet-grip, .shl-sheet.is-popover .shl-sheet-head { display: none; }
  .shl-install { left: auto; right: 1.25rem; bottom: 1.25rem; width: 380px; }
  .shl-footer-inner { padding: 2rem 1.5rem 1.6rem; }
  .shl-fbar ul { grid-template-columns: repeat(6, 1fr); }
  .shl-fgrid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 2rem; }
  .shl-flegal { flex-direction: row; align-items: center; justify-content: space-between; padding-right: 4.5rem; }
}
@media (min-width: 1100px) {
  .shl-topnav { display: block; }
  .shl-desktop-only { display: inline-flex; }
  .shl-menubtn { display: none; }
  .shl-brand-name { font-size: 1.02rem; }
}
@media (min-width: 1100px) and (max-width: 1320px) {
  .shl-brand-sub { display: none; }
  .shl-topnav-btn, .shl-topnav-link { padding: 0 .55rem; }
  .shl-pill .shl-pill-label { display: none; }
}
@media (max-width: 599px) {
  .shl-pill .shl-pill-label { display: none; }
  .shl-pill { padding: 0 .6rem; min-height: 40px; }
}
@media (max-width: 380px) {
  .shl-brand-sub { display: none; }
  .shl-brand-name { font-size: .8rem; }
  .shl-pill .shl-pill-label { display: none; }
  .shl-pill { padding: 0 .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .shl-sheet, .shl-backdrop, .shl-install, .shl-chev { transition: none !important; }
}
@media print {
  .shl-header, .shl-bar, .shl-sheet, .shl-backdrop, .shl-install, .shl-tip, .shl-fbar { display: none !important; }
  html.has-shl-bar body { padding-bottom: 0; }
}

/* ==================================================================
   Grouped header dropdowns, slide-in drawer, persona pill, rich footer
   (the navigation style Alvin prefers, 2026-10-22)
   ================================================================== */
.shl-header-inner { height: 74px; }
.shl-brand img { width: 46px; height: 46px; }
.shl-drop { position: relative; }
.shl-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 1100;
  min-width: 280px; padding: .55rem; border-radius: 14px;
  background: rgba(10,14,39,.97); border: 1px solid rgba(0,102,255,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
html.shl-on-light .shl-drop-menu { background: #fff; border-color: rgba(0,82,204,.2); box-shadow: 0 20px 50px rgba(10,20,60,.18); }
.shl-drop-menu::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: inherit; border-left: 1px solid rgba(0,102,255,.35); border-top: 1px solid rgba(0,102,255,.35); }
.shl-drop-head { font: 700 .66rem/1 "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--shl-ink-3); padding: .45rem .8rem .6rem; border-bottom: 1px solid var(--shl-rule); margin-bottom: .35rem; }
.shl-drop-item { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem .8rem; border-radius: 9px; color: var(--shl-ink); text-decoration: none; transition: background .2s, color .2s; }
.shl-drop-item .shl-ico { width: 17px; height: 17px; margin-top: .15rem; color: var(--shl-sky); flex: none; }
html.shl-on-light .shl-drop-item .shl-ico { color: var(--shl-link); }
.shl-drop-item > span { display: flex; flex-direction: column; gap: 2px; }
.shl-drop-label { font: 600 .9rem/1.25 var(--font-body, system-ui); }
.shl-drop-desc { font-size: .76rem; line-height: 1.35; color: var(--shl-ink-3); }
.shl-drop-item:hover, .shl-drop-item:focus-visible, .shl-drop-item[aria-current="page"] { background: rgba(255,215,0,.10); color: var(--shl-accent); }
.shl-drop.is-open > .shl-topnav-btn { color: var(--shl-accent); background: rgba(255,215,0,.08); }

.shl-pill { min-height: 38px; padding: 0 .9rem; border-color: var(--accent, var(--shl-accent)); color: var(--accent, var(--shl-accent));
  background: color-mix(in srgb, var(--accent, #00bfff) 12%, transparent); font-family: "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .04em; transition: transform .2s, box-shadow .2s; }
.shl-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, #00bfff) 30%, transparent); }
.shl-pill .shl-ico { width: 15px; height: 15px; }
.shl-pill-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.shl-btn-cta { border-radius: 999px; min-height: 40px; padding: 0 1.1rem; color: #fff; border: 0;
  background: linear-gradient(135deg, var(--shl-blue), var(--shl-sky)); box-shadow: 0 8px 22px rgba(0,102,255,.35);
  font-family: Montserrat, var(--font-body, system-ui), sans-serif; transition: transform .2s, box-shadow .2s; }
.shl-btn-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,191,255,.45); }

/* drawer */
.shl-overlay { position: fixed; inset: 0; z-index: 1190; background: rgba(0,0,0,.65); opacity: 0; transition: opacity .25s; }
.shl-overlay.is-open { opacity: 1; }
.shl-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200; width: min(86vw, 360px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 1.1rem 1.1rem calc(1.2rem + var(--shl-safe-b));
  background: linear-gradient(160deg, #0d1330, #070b1d); color: var(--shl-ink); border-left: 1px solid rgba(255,215,0,.25);
  box-shadow: -18px 0 50px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .28s var(--shl-ease);
}
html.shl-on-light .shl-drawer { background: linear-gradient(160deg, #ffffff, #eef1fb); border-left-color: rgba(0,82,204,.2); }
.shl-drawer.is-open { transform: none; }
.shl-mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.shl-mm-head img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--shl-accent); background: #fff; padding: 2px; }
.shl-mm-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--shl-rule); background: none; color: var(--shl-ink); cursor: pointer; }
.shl-mm-group { margin-bottom: 1rem; }
.shl-mm-title { font: 700 .68rem/1 "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--shl-ink-3); margin: 0 0 .45rem .2rem; }
.shl-mm-link { display: flex; align-items: center; gap: .7rem; min-height: 46px; padding: .55rem .6rem; border-radius: 9px; color: var(--shl-ink); text-decoration: none; font-size: 1rem; }
.shl-mm-link .shl-ico { width: 18px; height: 18px; color: var(--shl-sky); }
html.shl-on-light .shl-mm-link .shl-ico { color: var(--shl-link); }
.shl-mm-link:hover, .shl-mm-link:focus-visible { background: rgba(255,255,255,.07); color: var(--shl-accent); }
.shl-mm-link[aria-current="page"] { color: var(--shl-accent); background: rgba(255,215,0,.08); }
.shl-mm-persona { padding-top: 1rem; margin-bottom: 1rem; border-top: 1px solid var(--shl-rule); }
.shl-chip { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 42px; margin-bottom: .45rem; padding: 0 .8rem; border-radius: 999px;
  border: 1px solid var(--shl-rule); background: rgba(255,255,255,.04); color: var(--shl-ink-2); font: 600 .85rem/1 var(--font-body, system-ui); cursor: pointer; }
.shl-chip .shl-ico { width: 15px; height: 15px; }
.shl-chip.is-active { border-color: var(--accent, var(--shl-accent)); color: var(--accent, var(--shl-accent)); background: color-mix(in srgb, var(--accent, #00bfff) 14%, transparent); }
.shl-mm-prefs .shl-list { margin-top: .2rem; }
.shl-mm-legal { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--shl-rule); }
.shl-drawer :focus-visible, .shl-drop-menu :focus-visible { outline: 3px solid var(--shl-focus); outline-offset: 2px; }

/* footer additions */
.shl-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.shl-socials a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--shl-blue), var(--shl-sky)); transition: transform .3s var(--shl-ease), box-shadow .3s; }
.shl-socials a .shl-ico { width: 18px; height: 18px; }
.shl-socials a:hover { transform: translateY(-4px) rotate(8deg); box-shadow: 0 10px 24px rgba(0,191,255,.45); }
.shl-fcol a:hover { padding-left: 4px; transition: padding .2s, color .2s; }
.shl-pwa-badge { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; padding: .3rem .8rem; border-radius: 999px;
  font: 600 .7rem/1.2 "Roboto Condensed", var(--font-body, system-ui), sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: #34d399; border: 1px solid rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.shl-pwa-badge .shl-ico { width: 14px; height: 14px; }
@media (min-width: 900px) { .shl-pwa-badge { align-self: center; } }
@media (prefers-reduced-motion: reduce) { .shl-drawer, .shl-overlay, .shl-socials a, .shl-pill, .shl-btn-cta { transition: none !important; } }
@media print { .shl-drawer, .shl-overlay, .shl-drop-menu { display: none !important; } }

/* The drawer's Preferences offers Accessibility tools; hide the floating duplicate. */
html.shl-ready .a11y-fab { display: none !important; }
