/* ═══════════════════════════════════════════════════════════════════════════
   Site chrome — topbar + curated dropdowns + mobile nav + footer.
   Rebuilt Linear-minimal (2026-07): small curated menus, lots of air, links in
   the HTML. Desktop dropdowns are pure CSS (hover / focus-within); JS only
   drives the mobile accordion + active-section underline (_shared/nav.js).
   Band adaptation (body.is-on-*) lives here, scoped to .topbar.
   Markup source: _shared/chrome.html, synced by scripts/build-chrome.cjs.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Website override: brand-bright teal-5 on dark (must stay — without it
   brand teal reads muddy #005B66 from the DS dark ramp). ── */
html.dark { --zen-teal-5: #7ADAE6; }

/* ── Base reset + body ──────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-manrope, "Manrope", system-ui, sans-serif);
  background: var(--background);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  /* 3-column grid: brand + nav grouped on the left, actions pinned right.
     The nav sits in an auto column right after the brand; actions live in the
     trailing 1fr column (justify-self:end) so they stay at the right edge and
     a font-swap width change in the nav never shifts the edges. */
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  transition: opacity 320ms cubic-bezier(0.22,1,0.36,1), transform 320ms cubic-bezier(0.22,1,0.36,1);
}
.topbar-brand { justify-self: start; }
.topbar-nav { justify-self: start; }
.topbar-actions { justify-self: end; }
.topbar--hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }

.topbar-brand { display: inline-flex; align-items: center; position: relative; z-index: 1; }
.topbar-brand img {
  height: 22px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: filter 280ms cubic-bezier(0.22,1,0.36,1);
}

.topbar-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); }
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-link {
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
  padding: 24px 0;               /* tall hit area bridges the gap to the panel */
  outline: none;                 /* no click focus-ring flash; keyboard uses :focus-visible below */
}
.nav-link:focus-visible { outline: 2px solid #7ADAE6; outline-offset: 3px; border-radius: 3px; }
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link { color: #fff; }

/* current-section underline */
.nav-item--current .nav-link { position: relative; color: #fff; }
.nav-item--current .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%); width: 18px; height: 1.5px;
  background: #fff; border-radius: 999px; pointer-events: none;
}

/* ── Desktop dropdown panels — pure CSS hover / focus-within ──────────────── */
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: -6px;              /* overlaps the nav-link padding → no dead gap */
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
  z-index: 50;
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
  opacity: 1; visibility: visible;
  transition: opacity 160ms ease, visibility 0s;
}
/* all panels left-align to their trigger for a consistent look */

.nav-panel-inner {
  display: flex;
  gap: 8px;
  background: var(--menu, #1D1612);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7);
  min-width: 300px;
}
.nav-panel-inner--2col { min-width: 560px; }
.nav-col { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 250px; }
.nav-col-label {
  font-family: var(--font-code); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-quaternary);
  margin: 6px 10px 6px;
}
.nav-tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px; border-radius: 10px;
  transition: background 160ms ease;
}
.nav-tile:hover { background: rgba(255,255,255,0.05); }
.nav-tile-t { font-family: var(--font-base); font-size: 14px; font-weight: var(--font-weight-medium); color: var(--text-primary); }
.nav-tile-d { font-family: var(--font-base); font-size: 12.5px; color: var(--text-tertiary); }
/* current page — persistent subtle fill + a dot after the title (text token,
   never brand colour per the nav hover rule). */
.nav-tile.is-current { background: rgba(255,255,255,0.06); }
.nav-tile.is-current .nav-tile-t { display: inline-flex; align-items: center; gap: 7px; }
.nav-tile.is-current .nav-tile-t::after {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-secondary);
}
/* "see all" links use the DS .link-cta atom; this is layout-only positioning */
.nav-see-all { margin: 12px 0 2px 12px; }

/* ── Band adaptation — THE single source, scoped to .topbar ───────────────── */
/* TEAL band → warm-dark chrome + purple CTA + purple cursor */
body.is-on-teal .topbar .topbar-brand img { filter: brightness(0); }
body.is-on-teal .topbar .nav-link,
body.is-on-teal .topbar .nav-item:hover .nav-link,
body.is-on-teal .topbar .nav-item--current .nav-link { color: #1D1612; }
body.is-on-teal .topbar .nav-item--current .nav-link::after { background: #1D1612; }
body.is-on-teal .topbar .topbar-burger span { background: #1D1612; }
body.is-on-teal .topbar .social-pill { color: #1D1612; }
body.is-on-teal .topbar .social-pill:hover { color: #1D1612; background: rgba(29,22,18,0.08); }
/* Only the PRIMARY floating CTA takes a purple fill on the teal band. The
   secondary (outline) and tertiary (text) buttons must NOT become a purple
   pill — they just flip to dark ink for contrast on the bright teal. */
body.is-on-teal .topbar .btn-marketing:not(.btn-marketing--secondary):not(.btn-marketing--tertiary) { background: #7C4FE8; color: #FFFFFF; }
body.is-on-teal .topbar .btn-marketing:not(.btn-marketing--secondary):not(.btn-marketing--tertiary):hover  { background: #6B43D1; }
body.is-on-teal .topbar .btn-marketing:not(.btn-marketing--secondary):not(.btn-marketing--tertiary):active { background: #5D38B8; }
body.is-on-teal .topbar .btn-marketing--secondary { background: transparent; color: #1D1612; border-color: rgba(29,22,18,0.30); }
body.is-on-teal .topbar .btn-marketing--secondary:hover { background: rgba(29,22,18,0.08); border-color: rgba(29,22,18,0.55); }
body.is-on-teal .topbar .btn-marketing--tertiary { background: transparent; color: rgba(29,22,18,0.78); }
body.is-on-teal .topbar .btn-marketing--tertiary:hover { color: #1D1612; background: rgba(29,22,18,0.07); }
body.is-on-teal #cursor-portal { color: #7C4FE8; }

/* PURPLE band → white chrome (CTA stays the default teal pill) */
body.is-on-purple .topbar .topbar-brand img { filter: brightness(0) invert(1); }
body.is-on-purple .topbar .nav-link,
body.is-on-purple .topbar .nav-item:hover .nav-link,
body.is-on-purple .topbar .nav-item--current .nav-link { color: #FFFFFF; }
body.is-on-purple .topbar .nav-item--current .nav-link::after { background: #FFFFFF; }
body.is-on-purple .topbar .topbar-burger span { background: #FFFFFF; }
body.is-on-purple .topbar .social-pill { color: #FFFFFF; }
body.is-on-purple .topbar .social-pill:hover { color: #FFFFFF; background: rgba(255,255,255,0.12); }

/* BU light mode, no band under the topbar → dark chrome on the light page */
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .topbar-brand img { filter: brightness(0); }
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .nav-link { color: var(--text-secondary); }
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .nav-item:hover .nav-link,
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .nav-item--current .nav-link { color: var(--text-primary); }
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .nav-item--current .nav-link::after { background: var(--text-primary); }
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .topbar-burger span { background: var(--text-primary); }
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .social-pill { color: var(--text-secondary); }
html:not(.dark) body:not(.is-on-teal):not(.is-on-purple):not(.is-on-mesh) .topbar .social-pill:hover { color: var(--text-primary); }

/* When the mobile menu is open it fills the screen with var(--background), so
   the topbar logo + burger must follow the THEME default, not whichever band
   (is-on-teal/purple) happens to be under the topbar slot behind the overlay.
   Otherwise the teal-band inversion leaves a black logo on the dark menu. */
body.is-mobile-nav-open .topbar .topbar-brand img { filter: brightness(0) invert(1) !important; }
html:not(.dark) body.is-mobile-nav-open .topbar .topbar-brand img { filter: brightness(0) !important; }
body.is-mobile-nav-open .topbar .topbar-burger span { background: var(--text-primary) !important; }

/* ── Topbar actions ───────────────────────────────────────────────────────── */
.topbar-actions { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--gap-related, 8px); }
.topbar-social { display: none; align-items: center; gap: 4px; margin-right: 4px; }
@media (min-width: 1200px) { .topbar-social { display: inline-flex; } }

/* MCP install shortcut — a terminal-style tertiary that copies the install
   command. Shown only on wide desktop (like the social pills) so the actions
   row never crowds. */
.topbar-copy { display: none; }
@media (min-width: 1200px) { .topbar-copy { display: inline-flex; align-items: center; gap: 8px; } }
.topbar-copy-ico { flex: none; opacity: 0.65; }
.topbar-copy-cmd { font-family: var(--font-code); font-size: 12.5px; letter-spacing: -0.01em; white-space: nowrap; }
.topbar-copy.is-copied .topbar-copy-ico { opacity: 1; }
.social-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-radius: var(--radius-full, 999px); background: transparent;
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-family: var(--font-base); font-size: var(--text-small, 12px); font-weight: 500;
  letter-spacing: 0.01em; white-space: nowrap;
  transition: color 200ms ease, background 200ms ease;
}
.social-pill:hover { color: #fff; background: rgba(255,255,255,0.08); }
.social-pill:focus-visible { outline: 1px solid var(--border-accent); outline-offset: 2px; }
.social-pill-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Marketing pill CTA (DS atom — do not restyle) ────────────────────────── */
.btn-marketing {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gap-related, 8px);
  height: 48px; padding-inline: 28px; border-radius: var(--radius-full, 999px); border: none;
  background: #7ADAE6; color: rgba(29,22,18,1);
  font-family: var(--font-base); font-size: var(--text-large, 15px); font-weight: var(--font-weight-medium, 500);
  letter-spacing: 0; text-decoration: none; cursor: pointer; flex-shrink: 0;
  transition: background-color 180ms cubic-bezier(0.22,1,0.36,1), transform 180ms cubic-bezier(0.22,1,0.36,1);
}
.btn-marketing:hover { background: #62CCDC; }
.btn-marketing:active { transform: scale(0.98); background: #4DBFCE; }
.btn-marketing--purple { background: #7C4FE8; color: #FFFFFF; }
.btn-marketing--purple:hover  { background: #6B43D1; }
.btn-marketing--purple:active { transform: scale(0.98); background: #5D38B8; }
.btn-marketing--secondary { background: transparent; border: 1px solid rgba(255,255,255,0.22); color: var(--text-primary); }
.btn-marketing--secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.45); }
.btn-marketing--secondary:active { transform: scale(0.98); background: rgba(255,255,255,0.10); }
.btn-marketing--tertiary { background: transparent; border: 1px solid transparent; color: var(--text-secondary); }
.btn-marketing--tertiary:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.btn-marketing--tertiary:active { transform: scale(0.98); background: rgba(255,255,255,0.08); }
.btn-marketing--sm { height: 36px; padding-inline: 18px; font-size: 13px; gap: 6px; }
.btn-marketing:focus-visible { outline: 2px solid #7ADAE6; outline-offset: 2px; }
.btn-marketing--purple:focus-visible { outline-color: #7C4FE8; }
.btn-marketing--secondary:focus-visible,
.btn-marketing--tertiary:focus-visible { outline-color: rgba(255,255,255,0.55); }
.btn-marketing[disabled], .btn-marketing[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-marketing[aria-busy="true"] { color: transparent !important; pointer-events: none; position: relative; }
.btn-marketing[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 2px solid rgba(29,22,18,0.35); border-top-color: rgba(29,22,18,0.95);
  border-radius: 50%; animation: btn-mk-spin 720ms linear infinite;
}
.btn-marketing--purple[aria-busy="true"]::after { border-color: rgba(255,255,255,0.35); border-top-color: #FFFFFF; }
.btn-marketing--secondary[aria-busy="true"]::after,
.btn-marketing--tertiary[aria-busy="true"]::after { border-color: rgba(255,255,255,0.22); border-top-color: rgba(255,255,255,0.9); }
@keyframes btn-mk-spin { to { transform: rotate(360deg); } }
html:not(.dark) .btn-marketing--secondary { border-color: rgba(29,22,18,0.22); }
html:not(.dark) .btn-marketing--secondary:hover { background: rgba(29,22,18,0.06); border-color: rgba(29,22,18,0.45); }
html:not(.dark) .btn-marketing--secondary:active { background: rgba(29,22,18,0.10); }
html:not(.dark) .btn-marketing--tertiary:hover { background: rgba(29,22,18,0.05); }
html:not(.dark) .btn-marketing--tertiary:active { background: rgba(29,22,18,0.08); }
html:not(.dark) .btn-marketing--secondary:focus-visible,
html:not(.dark) .btn-marketing--tertiary:focus-visible { outline-color: rgba(29,22,18,0.55); }
html:not(.dark) .btn-marketing--secondary[aria-busy="true"]::after,
html:not(.dark) .btn-marketing--tertiary[aria-busy="true"]::after { border-color: rgba(29,22,18,0.22); border-top-color: rgba(29,22,18,0.9); }
button.link-cta { -webkit-appearance: none; appearance: none; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0 0 6px; cursor: pointer; }

/* ── Burger (mobile trigger) ──────────────────────────────────────────────── */
.topbar-burger {
  display: none; position: relative; z-index: 1;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.topbar-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform 220ms ease, opacity 180ms ease; }
.topbar-burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.topbar-burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .topbar { display: flex; justify-content: space-between; }  /* nav hidden → flex edges */
  .topbar-nav { display: none; }
  .topbar-social { display: none; }
  .topbar-actions .btn-marketing { display: none; }  /* mobile menu carries its own CTA */
  .topbar-burger { display: inline-flex; }
}
body.is-mobile-nav-open { overflow: hidden; }

/* ── Mobile nav overlay ───────────────────────────────────────────────────── */
.mobile-nav {
  /* full-viewport so the dark fill sits behind the transparent floating topbar
     too — no page content peeks through the 72px topbar strip. Top padding
     clears the topbar (72px) so the first item starts where it did before. */
  position: fixed; inset: 0; z-index: 80;
  background: var(--background, #1D1612);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px clamp(20px,5vw,40px) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 0s linear 240ms;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms ease, transform 240ms ease, visibility 0s; }
.mobile-nav-inner { display: flex; flex-direction: column; }
.mnav-group { border-bottom: 1px solid var(--border-subtle); }
.mnav-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-size: 22px; color: var(--text-primary); text-align: left;
}
.mnav-toggle::after { content: "+"; font-family: var(--font-code); font-size: 20px; color: var(--text-tertiary); transition: transform 200ms ease; }
.mnav-group.is-open .mnav-toggle::after { content: "−"; }
.mnav-panel { overflow: hidden; max-height: 0; transition: max-height 300ms cubic-bezier(0.22,1,0.36,1); }
.mnav-group.is-open .mnav-panel { max-height: 640px; }
.mnav-panel a { display: block; padding: 10px 0 10px 4px; font-family: var(--font-base); font-size: 15px; color: var(--text-secondary); }
.mnav-panel a:last-child { padding-bottom: 18px; }
.mnav-panel a:hover { color: var(--text-primary); }
.mnav-panel a.is-current, .mnav-link.is-current { color: var(--text-primary); font-weight: var(--font-weight-medium); }
.mnav-panel a.is-current::after {
  content: ""; display: inline-block; vertical-align: middle; margin-left: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--text-secondary);
}
.mnav-link {
  display: block; padding: 18px 0; border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display); font-size: 22px; color: var(--text-primary);
}
.mobile-nav-cta { padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-cta .btn-marketing { width: 100%; }

/* ── Audience switch (parked) ─────────────────────────────────────────────── */
body .audience-switch { display: none; }

/* ── O-cursor follower — RETIRED. Kept out site-wide (markup stays in the
   partial only so build-chrome has a stable region; never rendered). ── */
#cursor-portal { display: none !important; }

/* ── Back-to-top ──────────────────────────────────────────────────────────── */
.back-to-top {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: #7C4FE8; color: #7ADAE6;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background-color 220ms ease, transform 220ms cubic-bezier(0.22,1,0.36,1), box-shadow 220ms ease;
  box-shadow: 0 8px 24px -8px rgba(124,79,232,0.5);
}
.back-to-top:hover { background: #6A3FD8; transform: translateY(-3px); box-shadow: 0 12px 32px -8px rgba(124,79,232,0.65); }
.back-to-top:active { background: #5C36C2; transform: translateY(-1px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border-subtle); padding: clamp(56px,8vh,88px) clamp(20px,5vw,64px) 32px; }
.footer-inner { max-width: 1280px; margin-inline: auto; display: flex; flex-direction: column; gap: clamp(40px,6vh,64px); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.footer-logo img { height: 22px; width: auto; filter: brightness(0) invert(1); }
html:not(.dark) .footer-logo img { filter: brightness(0); }
.footer-blurb { font-family: var(--font-base); font-size: 14px; line-height: 1.55; color: var(--text-tertiary); margin: 0; }
.footer-social { display: flex; gap: 6px; }
.footer-social .social-pill { color: var(--text-tertiary); border: 1px solid var(--border-subtle); }
.footer-social .social-pill:hover { color: var(--text-primary); background: transparent; }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(30px,4vh,46px) clamp(20px,2.5vw,36px); }
.footer-col .footer-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-quaternary); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-family: var(--font-base); font-size: 14px; color: var(--text-secondary); transition: color 160ms ease; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom { max-width: 1280px; margin: clamp(48px,7vh,80px) auto 0; padding-top: 24px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-bottom p { font-family: var(--font-base); font-size: 13px; color: var(--text-quaternary); margin: 0; }
.footer-bottom a { color: var(--text-tertiary); }
.footer-bottom a:hover { color: var(--text-primary); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
}
@media (max-width: 479px) { .footer-cols { grid-template-columns: 1fr; } }

/* ── Cookie consent banner ─────────────────────────────────────────────────
   Subtle glass bar, centred at the bottom, injected by nav.js on first visit.
   Buttons are real DS .btn-marketing variants (no hand-rolled control). Blur
   >=16px carries the GPU-promotion trio in both states. */
.cookie-banner {
  position: fixed; z-index: 2147482000; left: 50%; bottom: 24px;
  transform: translate(-50%, 14px) translateZ(0);
  backface-visibility: hidden; will-change: transform;
  width: min(560px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px;
  padding: 14px 16px 14px 20px;
  background: rgba(29, 22, 18, 0.62);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle); border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.22,1,0.36,1), transform 300ms cubic-bezier(0.22,1,0.36,1);
}
.cookie-banner.is-visible { opacity: 1; transform: translate(-50%, 0) translateZ(0); }
.cookie-banner-text {
  margin: 0; flex: 1; font-family: var(--font-base); font-size: 13px;
  line-height: 1.45; color: var(--text-secondary);
}
.cookie-banner-text a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 8px; flex: none; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════
   Ask Docs — nav trigger button + Mintlify-powered side panel.
   Trigger lives in the Developers dropdown; the panel is injected
   into <body> by _shared/nav.js and talks to Mintlify's public
   docs-assistant API. Panel is chrome (solid bg over content).
═══════════════════════════════════════════════════════════ */
.nav-tile--ask { appearance: none; -webkit-appearance: none; background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }

.ask-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 260ms ease; }
.ask-overlay.is-open { opacity: 1; visibility: visible; }
.ask-panel { position: fixed; top: 0; right: 0; z-index: 121; height: 100dvh; width: min(420px, 94vw); display: flex; flex-direction: column; background: var(--background); border-left: 1px solid var(--border-subtle); transform: translateX(100%); transition: transform 320ms cubic-bezier(0.22,1,0.36,1); box-shadow: -24px 0 60px rgba(0,0,0,0.35); }
.ask-panel.is-open { transform: translateX(0); }
.ask-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); flex: none; }
.ask-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text-primary); }
.ask-close { appearance: none; background: none; border: 0; cursor: pointer; color: var(--text-tertiary); padding: 6px; margin: -6px; border-radius: 8px; line-height: 0; transition: color 160ms ease, background 160ms ease; }
.ask-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.ask-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ask-empty { margin: auto 0; display: flex; flex-direction: column; gap: 14px; }
.ask-empty-h { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.12; letter-spacing: -0.02em; color: var(--text-primary); }
.ask-empty-p { font-family: var(--font-base); font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.ask-suggests { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ask-suggest { appearance: none; text-align: left; background: none; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 13px; font-family: var(--font-base); font-size: 13.5px; color: var(--text-secondary); cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.ask-suggest:hover { border-color: var(--border); color: var(--text-primary); }
.ask-msg { display: flex; flex-direction: column; gap: 8px; }
.ask-msg--user { align-items: flex-end; }
.ask-msg-bubble { font-family: var(--font-base); font-size: 14px; line-height: 1.6; }
.ask-msg--user .ask-msg-bubble { max-width: 85%; background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); border-radius: 14px 14px 4px 14px; padding: 9px 14px; color: var(--text-primary); }
.ask-msg--assistant .ask-msg-bubble { color: var(--text-secondary); }
.ask-msg-bubble p { margin: 0 0 10px; } .ask-msg-bubble p:last-child { margin-bottom: 0; }
.ask-msg-bubble strong { color: var(--text-primary); font-weight: 600; }
.ask-msg-bubble code { font-family: var(--font-code); font-size: 12.5px; background: rgba(255,255,255,0.07); padding: 1px 5px; border-radius: 4px; }
.ask-msg-bubble pre { background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px; overflow-x: auto; margin: 0 0 10px; }
.ask-msg-bubble pre code { background: none; padding: 0; }
.ask-msg-bubble ul, .ask-msg-bubble ol { margin: 0 0 10px; padding-left: 18px; } .ask-msg-bubble li { margin: 3px 0; }
.ask-msg-bubble a { color: #7ADAE6; text-decoration: none; } .ask-msg-bubble a:hover { text-decoration: underline; }
.ask-sources { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.ask-sources-label { font-family: var(--font-code); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-quaternary); }
.ask-source { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-base); font-size: 12.5px; color: var(--text-tertiary); text-decoration: none; transition: color 160ms ease; }
.ask-source:hover { color: var(--text-primary); }
.ask-thinking { display: inline-flex; gap: 5px; padding: 4px 0; }
.ask-thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-quaternary); animation: askBlink 1.2s ease-in-out infinite; }
.ask-thinking span:nth-child(2) { animation-delay: 0.2s; } .ask-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes askBlink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.ask-form { flex: none; display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border-subtle); }
.ask-input { flex: 1; min-width: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 13px; font-family: var(--font-base); font-size: 14px; color: var(--text-primary); outline: none; transition: border-color 160ms ease; }
.ask-input:focus { border-color: var(--border); }
.ask-input::placeholder { color: var(--text-quaternary); }
.ask-send { appearance: none; flex: none; border: 0; cursor: pointer; width: 42px; border-radius: 10px; background: #7ADAE6; color: #0B1416; display: inline-flex; align-items: center; justify-content: center; transition: opacity 160ms ease; }
.ask-send:disabled { opacity: 0.4; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .ask-panel, .ask-overlay { transition: none; } .ask-thinking span { animation: none; } }
