@font-face { font-family: "Oswald"; src: url("/assets/oswald-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: optional; }
@font-face { font-family: "Oswald"; src: url("/assets/oswald-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: optional; }
@font-face { font-family: "Oswald"; src: url("/assets/oswald-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: optional; }
@font-face { font-family: "Noto Sans"; src: url("/assets/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: optional; }
@font-face { font-family: "Noto Sans"; src: url("/assets/noto-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: optional; }
@font-face { font-family: "Noto Sans"; src: url("/assets/noto-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: optional; }
@font-face { font-family: "Noto Sans"; src: url("/assets/noto-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: optional; }

@layer base {
/* ============ GLASS COCKPIT TOKENS — cockpit.v1.css (production) ============
   Identity: frosted glass panels over a deep blue-charcoal void lit by a
   slow cyan glow and a faint engineered grid. Electric cyan is the only
   voltage. Glass reconciled to the Reactive Interface Bible RI-7.5:
   fallback-first (the 94% opaque panel below is the base; backdrop blur
   is an @supports upgrade at the end of this file, floating surfaces
   only), never stacked (nested cells are opaque --panel-2-solid),
   opaque under prefers-reduced-transparency, boundaries survive
   forced colours (RI-9.2). Full log: BUILD-NOTES-FOUNDATION.md.
   Panels are 94% opaque so every text pair holds against the solid
   panel colour named here. */
:root {
  color-scheme: light dark;
  --bg: #EEF3F6;
  --bg-deep: #DCE8EE;
  --panel-solid: #FFFFFF;
  --panel-2-solid: #E7EFF4;
  --glass: rgb(255 255 255 / 0.94);
  --glass-2: rgb(231 239 244 / 0.94);
  --ink: #0A1E2A;
  --muted: #3E5A6B;
  --cyan: #00AEEF;
  --cyan-text: #00698C;
  --cyan-deep: #005A78;
  --on-cyan: #00131C;
  --link: #00698C;
  --btn-bg: #00AEEF;
  --btn-ink: #00131C;
  --btn-bg-hover: #33BEFF;
  --field-bg: #FFFFFF;
  --field-border: #5B7A8C;
  --error: #B42318;
  --error-bg: #FDECEA;
  --ok: #14632D;
  --focus: #00698C;
  --hairline: rgb(10 30 42 / 0.16);
  --grid-line: rgb(0 105 140 / 0.07);
  --glow: rgb(0 174 239 / 0.16);
  --track: #D3E0E8;
  --ticker-bg: #0A1E2A;
  --ticker-ink: #D9F2FF;
  --ticker-hi: #4DD2FF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07090C;
    --bg-deep: #05070A;
    --panel-solid: #10151B;
    --panel-2-solid: #171E27;
    --glass: rgb(16 21 27 / 0.94);
    --glass-2: rgb(23 30 39 / 0.94);
    --ink: #EDF4F9;
    --muted: #AEC2D1;
    --cyan: #00C2FF;
    --cyan-text: #4DD2FF;
    --cyan-deep: #4DD2FF;
    --on-cyan: #00131C;
    --link: #4DD2FF;
    --btn-bg: #00C2FF;
    --btn-ink: #00131C;
    --btn-bg-hover: #33CFFF;
    --field-bg: #0B0F14;
    --field-border: #6E8799;
    --error: #FF9D94;
    --error-bg: #33151A;
    --ok: #7BD88F;
    --focus: #00C2FF;
    --hairline: rgb(255 255 255 / 0.09);
    --grid-line: rgb(255 255 255 / 0.04);
    --glow: rgb(0 194 255 / 0.14);
    --track: #232E3A;
    --ticker-bg: #0B0F14;
    --ticker-ink: #D9F2FF;
    --ticker-hi: #4DD2FF;
  }
}
:root[data-theme="dark"] {
  --bg: #07090C;
  --bg-deep: #05070A;
  --panel-solid: #10151B;
  --panel-2-solid: #171E27;
  --glass: rgb(16 21 27 / 0.94);
  --glass-2: rgb(23 30 39 / 0.94);
  --ink: #EDF4F9;
  --muted: #AEC2D1;
  --cyan: #00C2FF;
  --cyan-text: #4DD2FF;
  --cyan-deep: #4DD2FF;
  --on-cyan: #00131C;
  --link: #4DD2FF;
  --btn-bg: #00C2FF;
  --btn-ink: #00131C;
  --btn-bg-hover: #33CFFF;
  --field-bg: #0B0F14;
  --field-border: #6E8799;
  --error: #FF9D94;
  --error-bg: #33151A;
  --ok: #7BD88F;
  --focus: #00C2FF;
  --hairline: rgb(255 255 255 / 0.09);
  --grid-line: rgb(255 255 255 / 0.04);
  --glow: rgb(0 194 255 / 0.14);
  --track: #232E3A;
  --ticker-bg: #0B0F14;
  --ticker-ink: #D9F2FF;
  --ticker-hi: #4DD2FF;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.void { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.void::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
.void::after {
  content: ""; position: absolute; left: 50%; top: -38vh; width: 130vw; height: 76vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  animation: breathe 24s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .void::after { animation: none; } }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 20px; } }
h1, h2, h3 { font-family: "Oswald", sans-serif; font-weight: 600; line-height: 1.08; margin: 0; }
.display { font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a:active { opacity: 0.75; }
.skip-link { position: absolute; left: 20px; top: -60px; background: var(--panel-solid); color: var(--ink); padding: 10px 16px; z-index: 60; font-weight: 700; border: 1px solid var(--hairline); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header: translucent sticky chrome (M26) */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--glass); border-bottom: 1px solid var(--hairline); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); }
.brand .wordmark { display: block; height: 36px; width: auto; }
.brand .wordmark-for-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .wordmark-for-light { display: none; }
  :root:not([data-theme="light"]) .brand .wordmark-for-dark { display: block; }
}
:root[data-theme="dark"] .brand .wordmark-for-light { display: none; }
:root[data-theme="dark"] .brand .wordmark-for-dark { display: block; }
.brand .brand-toolz { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-text); }
.head-nav { display: flex; align-items: center; gap: 16px; }
.head-nav a { font-weight: 700; font-size: 0.95rem; }
.theme-wrap { position: relative; }
.theme-btn { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid var(--hairline); border-radius: 50%; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease; }
.theme-btn:hover { background: var(--panel-2-solid); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.theme-menu { position: absolute; right: 0; top: 56px; min-width: 220px; background: var(--panel-solid); color: var(--ink); border: 1px solid var(--hairline); border-radius: 14px; padding: 8px; z-index: 60; box-shadow: 0 18px 40px rgb(0 0 0 / 0.28); }
.theme-menu button { display: flex; width: 100%; align-items: center; gap: 10px; background: transparent; color: var(--ink); border: 0; border-radius: 10px; padding: 12px; font-family: "Oswald", sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; text-align: left; transition: background-color 150ms ease, transform 150ms ease; }
.theme-menu button:hover { background: var(--panel-2-solid); }
.theme-menu button:active { transform: scale(0.97); }
.theme-menu button:disabled { opacity: 0.45; cursor: not-allowed; }
.theme-menu button[aria-checked="true"] { outline: 2px solid var(--cyan-text); }
.theme-menu .menu-note { padding: 4px 12px 8px; font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Command search (M2) */
.palette { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 520px; background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 12px; padding: 4px 6px 4px 14px; }
.palette:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.palette label { font-family: "Oswald", sans-serif; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.palette input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 8px 4px; }
.palette input:focus-visible { outline: none; }
.palette .count { font-family: "Oswald", sans-serif; font-variant-numeric: tabular-nums; color: var(--cyan-text); font-weight: 600; white-space: nowrap; padding-right: 8px; }

/* Mobile header (owner order 2026-11-23): at phone widths the theme
   control sits in the top-right corner of the wordmark row and the hub
   search takes the full width of its own row. The theme scripts move
   the control in the DOM to right after the brand at these widths (a
   real DOM move, never a CSS reorder, so visual order and tab order
   stay identical - MWG css-layout guide); these rules give the nav
   links and the search their own full rows beneath it, and right-align
   the control on its row. Wide screens are untouched by this block. */
@media (max-width: 700px) {
  .site-head .theme-wrap { margin-left: auto; }
  .site-head .head-nav { flex: 1 1 100%; }
  .site-head .head-nav.nav-emptied { display: none; }
  .site-head .palette { flex: 1 1 100%; max-width: none; }
}

/* Live data ticker (M8) */
.ticker { background: var(--ticker-bg); color: var(--ticker-ink); }
.ticker .wrap { display: flex; gap: 10px 28px; flex-wrap: wrap; padding-block: 8px; font-size: 0.88rem; }
.ticker .t-label { font-family: "Oswald", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ticker-hi); font-weight: 600; }
.ticker strong { color: var(--ticker-hi); font-variant-numeric: tabular-nums; }

/* Hero */
.hero { padding-block: 34px 28px; }
.palette input[type="text"] { border: 0; background: transparent; padding: 8px 4px; border-radius: 0; }
.kicker { font-family: "Oswald", sans-serif; display: inline-block; border: 1px solid var(--cyan-text); color: var(--cyan-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.15rem, 8.6vw, 4.8rem); }
.hero h1 .two { color: var(--muted); }
.hero h1 .volt { color: var(--cyan-text); }
.hero .lede { font-size: 1.15rem; max-width: 36em; margin: 18px 0 24px; }
.hero .lede strong { font-weight: 700; }

/* Buttons: every state */
.btn { font-family: "Oswald", sans-serif; display: inline-block; background: var(--btn-bg); color: var(--btn-ink); border: 1px solid transparent; border-radius: 12px; font-size: 1.02rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 14px 22px; cursor: pointer; text-decoration: none; transition: background-color 150ms ease, transform 150ms ease; }
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-ink); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--panel-2-solid); color: var(--ink); border-color: var(--hairline); }
.btn.secondary:hover { background: var(--panel-2-solid); color: var(--ink); }
.btn .spinner { display: inline-block; width: 16px; height: 16px; border: 3px solid currentColor; border-top-color: transparent; border-radius: 50%; vertical-align: -3px; margin-right: 8px; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .spinner { animation-duration: 2000ms; } .btn, .theme-btn, .card, .tab { transition: none; } }
.receipt { margin: 10px 0 0; font-size: 0.95rem; color: var(--muted); font-weight: 500; }

/* Glass panels */
.glass { background: var(--glass); border: 1px solid var(--hairline); border-radius: 20px; }
.proof { display: flex; gap: 10px 26px; flex-wrap: wrap; padding: 14px 20px; margin-top: 26px; font-size: 0.95rem; }
.proof .n { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--cyan-text); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* Tabs (M5) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.tab { font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.92rem; background: var(--panel-solid); color: var(--ink); border: 1px solid var(--hairline); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease; }
.tab:hover { background: var(--panel-2-solid); }
.tab:active { transform: scale(0.97); }
.tab:disabled { opacity: 0.45; cursor: not-allowed; }
.tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }

/* Bento grid (M4) + live preview cards (M3) */
.tools { padding-block: 26px 56px; }
.tools h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); text-transform: uppercase; }
.group-title { font-family: "Oswald", sans-serif; font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin: 34px 0 14px; color: var(--ink); border-bottom: 2px solid var(--cyan); padding-bottom: 8px; }
.bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { background: var(--glass); border: 1px solid var(--hairline); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform 200ms ease, border-color 200ms ease; animation: rise 200ms ease both; }
.card:hover { transform: translateY(-2px); border-color: var(--cyan-text); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
.card .q { font-size: 0.95rem; color: var(--muted); margin: 0; }
.card h3 { font-size: 1.3rem; font-weight: 600; }
.card p.desc { margin: 0; color: var(--muted); flex: 1; }
.card a.go { font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.card.hero-card { grid-column: span 2; }
@media (max-width: 700px) { .card.hero-card { grid-column: span 1; } }
.card .tag { align-self: flex-start; font-family: "Oswald", sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-text); border: 1px solid var(--cyan-text); border-radius: 999px; padding: 3px 10px; }
.mini { border-top: 1px solid var(--hairline); padding-top: 14px; display: grid; gap: 10px; }
.mini .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .mini .row { grid-template-columns: 1fr; } }
.mini label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.mini input { width: 100%; font: inherit; padding: 10px 12px; background: var(--field-bg); color: var(--ink); border: 1px solid var(--field-border); border-radius: 12px; font-variant-numeric: tabular-nums; }
.mini input:hover { border-color: var(--ink); }
.mini input:active { border-color: var(--cyan-deep); }
.mini input:disabled { opacity: 0.5; cursor: not-allowed; }
.mini .mini-out { font-family: "Oswald", sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--cyan-text); font-variant-numeric: tabular-nums; }
.mini .mini-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.no-match { padding: 22px; font-size: 1.05rem; }

/* Calculator */
.calc-shell { padding-block: 30px 56px; }
.panel { padding: 24px; }
@media (max-width: 480px) { .panel { padding: 20px; } }
fieldset { border: 1px solid var(--hairline); background: var(--panel-2-solid); border-radius: 14px; padding: 18px; margin: 0 0 16px; min-width: 0; }
legend { font-family: "Oswald", sans-serif; letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase; background: var(--btn-bg); color: var(--btn-ink); border-radius: 8px; padding: 4px 12px; font-size: 0.88rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
input[type="number"], input[type="text"], select { width: 100%; font: inherit; padding: 12px; background: var(--field-bg); color: var(--ink); border: 1px solid var(--field-border); border-radius: 12px; transition: border-color 150ms ease, background-color 150ms ease; font-variant-numeric: tabular-nums; }
input[type="number"]:hover, select:hover { border-color: var(--ink); }
input[type="number"]:active, select:active { border-color: var(--cyan-deep); }
input[type="number"]:disabled, select:disabled { opacity: 0.5; cursor: not-allowed; }
input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; background: var(--error-bg); }
.field-error { color: var(--error); font-weight: 700; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input[type="checkbox"] { width: 24px; height: 24px; flex: none; accent-color: var(--cyan-deep); cursor: pointer; margin-top: 2px; }
.check input[type="checkbox"]:hover { outline: 2px solid var(--muted); }
.check input[type="checkbox"]:active { transform: scale(0.94); }
.check input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }
.check label { font-weight: 700; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .cols2 { grid-template-columns: 1fr; } }
/* Boxless big-number input (M11) */
.big-field label { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--muted); }
.big-field input { border: 0; border-bottom: 2px solid var(--cyan); border-radius: 0; background: transparent; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 2.1rem; padding: 4px 2px 8px; color: var(--ink); }
.big-field input:hover { border-color: var(--cyan-deep); }
.big-field input[aria-invalid="true"] { border-bottom-color: var(--error); background: var(--error-bg); }

/* Result instrument */
.verdict { border: 1px solid var(--hairline); border-radius: 14px; padding: 22px; margin: 8px 0 18px; background: var(--panel-2-solid); }
.verdict h3 { font-size: 1.6rem; text-transform: uppercase; }
.verdict p { margin: 8px 0 0; font-size: 1.05rem; }
.hero-figure { margin: 4px 0 18px; }
.hero-figure .hf-label { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--muted); display: block; }
.hero-figure .hf-value { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(3rem, 10vw, 4.2rem); line-height: 1.05; color: var(--cyan-text); font-variant-numeric: tabular-nums; display: block; }
.hero-figure .hf-sub { color: var(--muted); font-size: 0.95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { border: 1px solid var(--hairline); background: var(--panel-2-solid); border-radius: 14px; padding: 14px 16px; }
.stat-label { display: block; font-weight: 700; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: "Oswald", sans-serif; }
.stat-value { display: block; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.7rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.chart-box { border: 1px solid var(--hairline); border-radius: 14px; background: var(--panel-2-solid); padding: 16px; margin-bottom: 22px; }
.chart-box h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.chart-box .chart-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
#chart { width: 100%; height: 180px; display: block; touch-action: pan-y; cursor: crosshair; border-radius: 8px; }
.scrub-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.scrub-row label { font-weight: 700; font-size: 0.92rem; }
input[type="range"] { flex: 1 1 180px; accent-color: var(--cyan-deep); height: 32px; cursor: pointer; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]:disabled { opacity: 0.5; cursor: not-allowed; }
#scrubLabel { font-family: "Oswald", sans-serif; font-variant-numeric: tabular-nums; color: var(--cyan-text); font-weight: 600; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; gap: 6px; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.bar-amt { font-variant-numeric: tabular-nums; }
.track { height: 14px; background: var(--track); border-radius: 999px; overflow: hidden; }
.fill { height: 100%; background: var(--cyan); border-radius: 999px; }
.fill.keep { background: var(--ok); }
.note-box { border-left: 4px solid var(--cyan); background: var(--panel-2-solid); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 22px 0; }
.note-box p { margin: 0 0 10px; }
.note-box p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { border: 1px solid var(--hairline); padding: 10px; text-align: left; background: var(--panel-2-solid); }
.table-scroll { overflow-x: auto; }
footer { border-top: 1px solid var(--hairline); background: var(--glass); padding-block: 28px; margin-top: 0; }
footer .fine { color: var(--muted); font-size: 0.92rem; }
}

/* ============ GLASS UPGRADE (RI-7.5, fallback-first) ============
   Blur applies ONLY where a surface floats over changing content:
   the sticky header, floating panels and cards over the lit void,
   and the footer band. Nested cells never receive blur. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-head, .glass, .card, footer {
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-head, .glass, .card, footer, .theme-menu {
    background: var(--panel-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
/* ============ FORCED COLOURS (RI-9.2) ============
   Glass, masks and gradient borders vanish here, so every boundary is
   redrawn with real borders and system colours. */
@media (forced-colors: active) {
  .site-head, .glass, .card, .panel, fieldset, .verdict, .stat,
  .chart-box, .note-box, .theme-menu, .palette, th, td {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .fill { background: Highlight; }
  .track { border: 1px solid CanvasText; }
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, [tabindex]:focus-visible { outline-color: Highlight; }
  .btn, .tab[aria-selected="true"] { border: 1px solid ButtonText; }
}

/* ============ PAGE FURNITURE (guide, FAQ, capture, footer, consent) ============ */
.lede { font-size: 1.15rem; max-width: 42em; }
main .lede { margin: 14px 0 20px; }
.guide, .faq, .capture, .guides-bridge { margin-top: 40px; }
.guide h2, .faq h2, .capture h2, .guides-bridge h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); text-transform: uppercase; margin-bottom: 14px; }
.guide h3, .faq h3 { font-size: 1.25rem; margin: 26px 0 8px; }
.guide p, .faq p { max-width: 46em; }
.guide .updated { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-text); font-weight: 600; }
.guide .definition { font-size: 1.08rem; }
.sources { max-width: 46em; }
.sources li { margin-bottom: 8px; }
.disclaimer, .fine { color: var(--muted); font-size: 0.92rem; }
.qa { border-top: 1px solid var(--hairline); padding-top: 6px; }
.capture .nl-form { display: grid; gap: 14px; max-width: 560px; }
.capture .consent-line { color: var(--muted); font-size: 0.92rem; margin: 0; }
.nl-success { color: var(--ok); font-weight: 700; }
.upsell { border: 1px solid var(--hairline); border-radius: 20px; background: var(--panel-2-solid); padding: 24px; margin-top: 40px; }
.upsell h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); text-transform: uppercase; margin-bottom: 10px; }
.btn.inverted { background: var(--ink); color: var(--bg); }
.btn.inverted:hover { background: var(--cyan-deep); color: #FFFFFF; }
.undo-row { margin: 10px 0 0; }
.foot-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-nav a { font-weight: 700; }
.kollaz-sites-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.kollaz-sites-list { margin: 0 0 10px; padding-left: 20px; }
.kollaz-sites-plugins, .foot-contact { color: var(--muted); font-size: 0.95rem; }
.consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 80; padding: 8px; max-height: 100dvh; }
.consent[hidden] { display: none; }
.consent-card { max-width: 720px; margin-inline: auto; background: var(--panel-solid); color: var(--ink); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.28); max-height: calc(100dvh - 16px); overflow-y: auto; }
.consent-card h2 { font-size: 1.0625rem; line-height: 1.25; text-transform: uppercase; margin-bottom: 4px; }
.consent-body { font-size: 0.9375rem; line-height: 1.45; margin: 0; }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.consent-card .btn { min-height: 44px; }
.consent-link { background: transparent; border: 0; color: var(--link); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; }
.consent-link:hover { text-decoration-thickness: 3px; }
.consent-link:active { transform: scale(0.97); }
.consent-toggle { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.consent-toggle input { width: 24px; height: 24px; accent-color: var(--cyan-deep); }
.consent-note { color: var(--muted); font-size: 0.92rem; }
.btn-gold { background: var(--btn-bg); color: var(--btn-ink); }
.btn-ghost { background: var(--panel-2-solid); color: var(--ink); border-color: var(--hairline); }
.notfound-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Audit #9 (2026-11-23): while the consent banner is open, reserve
   room at the footer only, so the banner never covers the footer
   (or its Cookie settings button) and the first screen never moves. */
body.consent-open .site-footer { padding-bottom: 220px; }

/* Shared notice strip (hub handoff and shared-link notices). */
.share-notice { border: 1px solid var(--error); border-left: 6px solid var(--error); background: var(--error-bg); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; font-weight: 600; }

@media (max-width: 480px) {
  .consent { padding: 6px; }
  .consent-card { padding: 10px 12px; }
  .consent-body { font-size: 0.875rem; line-height: 1.4; }
  .consent-btns { gap: 6px; }
}
