/* Supero design system (2026-11-05): tokens, fonts, background, header, footer, buttons,
   focus. Loaded on every page (static pages via build.py, Next pages via app/layout.jsx).
   Color meanings are fixed: --signal = live/allowed/flowing, --policy = enforced/denied.
   Neither is decorative. No gradients except the dot grid, no shadows, no glows. */
@font-face{font-family:'Inter';src:url(../fonts/inter.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url(../fonts/jetbrains-mono-400.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url(../fonts/jetbrains-mono-600.woff2) format('woff2');font-weight:600;font-display:swap}

:root{
  --bg:#0B1220; --bg-deep:#070C16; --surface:#0E1628; --surface-2:#111A2E;
  --line:#1E2A44; --line-subtle:#16203A; --line-strong:#2A3A5C; --line-control:#3A4D73;
  --text:#E6EDF7; --text-2:#C9D4E5; --text-3:#A9B6CC; --text-muted:#8A9BB8;
  --signal:#22D3EE; --policy:#F59E0B; --policy-tint:rgba(245,158,11,.06); --on-accent:#0B1220;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:auto}
body.h-page{margin:0;background-color:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.5;
  background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:24px 24px;-webkit-font-smoothing:antialiased}
:where(.h-page) a{color:var(--text);text-decoration:none}
:where(.h-page) a:hover{color:#fff}
.h-page a:focus-visible,.h-page button:focus-visible,.h-page [tabindex]:focus-visible{outline:2px solid var(--signal);outline-offset:2px;border-radius:6px}
.num,.h-page .num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.h-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.h-skip{position:absolute;left:-9999px;top:8px;z-index:50;background:var(--text);color:var(--bg)!important;padding:10px 14px;border-radius:8px}
.h-skip:focus{left:12px}
.h-wrap{max-width:1336px;margin:0 auto;padding-left:20px;padding-right:20px}
@media (min-width:768px){.h-wrap{padding-left:28px;padding-right:28px}}


/* type */
.h-eyebrow,.h-step{font-family:var(--mono);font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}
.h-step{font-size:12px}
.h-h1{font-size:clamp(36px,5vw,60px);font-weight:700;line-height:1.04;letter-spacing:-.035em}
.h-h2{font-size:clamp(26px,3vw,32px);font-weight:700;line-height:1.15;letter-spacing:-.02em}
.h-lead{font-size:19px;line-height:1.55;color:var(--text-3);max-width:560px}
.h-body{font-size:17px;line-height:1.6;color:var(--text-3)}
.h-code{font-family:var(--mono);font-size:.92em;color:var(--text-2)}
.h-ulink{color:var(--text-2)!important;text-decoration:underline!important;text-underline-offset:2px}
.h-tag{display:inline-block;font-family:var(--mono);font-size:11px;line-height:18px;font-weight:400;color:var(--text-muted);border:1px solid var(--line-control);border-radius:4px;padding:0 6px;vertical-align:middle;letter-spacing:0}

/* buttons */
.h-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 22px;border-radius:10px;font-size:16px;font-weight:600;line-height:1.2;border:1px solid transparent}
.h-btn-signal{background:var(--signal);color:var(--on-accent)!important}
.h-btn-signal:hover{background:#4FE0F3}
.h-btn-outline{border-color:var(--line-control);color:var(--text)!important;font-weight:400}
.h-btn-outline:hover{border-color:var(--text-muted)}
.h-btn-sm{min-height:40px;padding:9px 18px;font-size:15px;border-radius:8px}
.h-textlink{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;font-size:16px;color:var(--text-2)!important}
.h-textlink:hover{color:#fff!important}
.h-actions{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center}

/* announcement + header */
.h-announce{border-bottom:1px solid var(--line);padding:10px 20px;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;text-align:center}
.h-announce a{color:var(--text-2)}
.h-new{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.08em;color:var(--on-accent);background:var(--text);padding:2px 8px;border-radius:4px}
.h-header{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
html{scroll-padding-top:88px}
.h-header-row{display:flex;align-items:center;gap:24px;padding-top:16px;padding-bottom:16px}
.h-brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:20px;letter-spacing:-.02em;min-height:44px}
.h-mono{width:28px;height:28px;border-radius:7px;background:var(--text);color:var(--bg);display:inline-flex;align-items:center;justify-content:center;font-family:var(--mono);font-weight:600;font-size:17px;line-height:1}
.h-navlink{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:8px 10px;background:none;border:0;color:var(--text-2)!important;font:inherit;font-size:15px;cursor:pointer;border-radius:6px}
.h-navlink:hover{color:#fff!important}
.h-nav-panel{display:flex;align-items:center;gap:16px;flex:1 1 auto}
.h-nav-panel>nav{flex:1 1 auto}
.h-nav{display:flex;align-items:center;gap:2px}
.h-cta{display:flex;align-items:center;gap:4px}
.h-cta .h-btn{margin-left:8px}
.h-dd{position:relative}
.h-menu{display:none;position:absolute;top:calc(100% + 6px);left:0;min-width:230px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px;z-index:30}
.h-menu a{display:flex;align-items:center;min-height:40px;padding:8px 12px;border-radius:8px;color:var(--text-2)!important;font-size:15px}
.h-menu a:hover{background:var(--surface-2);color:#fff!important}
.h-burger{display:none;margin-left:auto;width:44px;height:44px;align-items:center;justify-content:center;background:none;border:1px solid var(--line-control);border-radius:8px;color:var(--text);cursor:pointer}
@media (max-width:1023.98px){
  .h-header-row{flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}
  .h-burger{display:inline-flex}
  .h-nav-panel{flex-basis:100%;flex-direction:column;align-items:stretch;gap:12px;padding:8px 0 16px;border-top:1px solid var(--line);max-height:calc(100vh - 72px);overflow-y:auto;overscroll-behavior:contain}
  .js .h-nav-panel{display:none}
  .js .h-header.is-open .h-nav-panel{display:flex}
  .h-nav{flex-direction:column;align-items:stretch}
  .h-navlink{width:100%;justify-content:space-between;font-size:16px}
  .h-menu{position:static;min-width:0;border:0;border-left:1px solid var(--line);border-radius:0;margin:0 0 6px 10px;padding:0 0 0 6px;background:none}
  .h-menu a{min-height:44px}
  .h-cta{flex-direction:column;align-items:stretch;gap:8px}
  .h-cta .h-btn{margin-left:0;min-height:48px}
}

/* footer */
.h-footer{border-top:1px solid var(--line);background:var(--bg);padding:48px 0 32px;font-size:14px}
.h-fcols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
.h-fbrand{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;max-width:300px}
.h-fbrand p{color:var(--text-muted);font-size:14px;line-height:1.55}
.h-fcol h2{font-size:13px;font-weight:600;color:var(--text);margin:0 0 8px}
.h-fcol a{display:inline-flex;align-items:center;min-height:44px;color:var(--text-3)!important}
.h-fcol a:hover{color:#fff!important}
@media (min-width:768px){.h-fcols{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1024px){.h-fcols{grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,1fr))}.h-fbrand{grid-column:auto}}
.h-legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;margin-top:32px;padding-top:20px;border-top:1px solid var(--line);color:var(--text-muted);font-size:13px}
.h-legal-links{display:flex;flex-wrap:wrap;gap:4px 20px}
.h-legal a{color:var(--text-3)!important;display:inline-flex;align-items:center;min-height:44px}

.h-header .h-navlink,.h-header .h-btn{white-space:nowrap}
.h-nav a[aria-current="page"],.h-menu a[aria-current="page"]{color:var(--text)!important;text-decoration:underline;text-decoration-color:var(--line-control);text-underline-offset:6px}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.h-nav,.h-menu,.h-fcol ul{list-style:none;margin:0;padding:0}
.h-fbrand p,.h-announce,.h-fcol h2{margin-top:0}
.h-footer .h-brand,.h-header .h-brand{color:var(--text)}
.h-menu.is-open{display:block}
/* Without JS the dropdowns open on hover or keyboard focus. */
html:not(.js) .h-dd:hover>.h-menu,html:not(.js) .h-dd:focus-within>.h-menu{display:block}
/* Desktop: hover opens a dropdown too; the ::before bridge keeps it open across the gap. */
@media (hover:hover) and (min-width:1024px){
  .h-dd:hover>.h-menu{display:block}
  .h-menu::before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}
}
/* "You are here": the dropdown or link that holds the current page. */
.h-dd.is-current>.h-navlink,.h-nav>li>a.h-navlink[aria-current="page"]{color:var(--text)!important;text-decoration:underline;text-decoration-color:var(--line-control);text-underline-offset:6px}
.h-announce-sep{color:var(--line-control)}
.h-tests{margin:12px 0 0;font-size:13px;color:var(--text-muted)}
