/* ZEUS design system v2 — dark, gold, engineered. One file, no preprocessor.
   Tokens → base → layout → chrome → home → components → tools → footer → utilities → print. */

@font-face { font-family: 'Plex'; src: url('/assets/fonts/ibm-plex-sans-var.woff2') format('woff2'); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  /* ground */
  --bg: #090d14;            /* blue-black */
  --bg-2: #0d121b;          /* band */
  --surface: #121824;       /* cards, table body */
  --surface-2: #171f2d;     /* raised */
  --surface-3: #1c2534;     /* hover */
  --line: #222c3b;
  --line-2: #2f3b4d;
  --line-3: #46546a;
  /* text */
  --text: #eef1f5;
  --text-2: #b7c0cd;        /* 9.6:1 on bg */
  --text-3: #8b96a8;        /* 5.7:1 on bg */
  /* gold */
  --gold: #f5b323;          /* surfaces, rules */
  --gold-2: #ffcf5c;        /* gold text on dark, 11:1 */
  --gold-3: #c98b12;        /* deep gold */
  --gold-4: #7a5208;        /* shadow gold */
  --gold-tint: rgba(245,179,35,.08);
  --gold-line: rgba(245,179,35,.35);
  --metal: linear-gradient(135deg, #ffe08a 0%, #f5b323 38%, #d9931a 62%, #a8690c 100%);
  --metal-flat: linear-gradient(180deg, #ffc94d, #e9a41b);
  /* electric */
  --volt: #6b9dff;          /* links, 6.4:1 */
  --volt-2: #3d78f2;
  --volt-tint: rgba(107,157,255,.10);
  --ok: #4fc784; --warn: #f5b323; --bad: #ff6b6b;
  /* type */
  --sans: 'Plex', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --fs-0: 0.8125rem; --fs-1: 0.9375rem; --fs-2: 1.0625rem; --fs-3: 1.25rem; --fs-4: 1.5rem; --fs-5: 2rem; --fs-6: 2.75rem; --fs-7: 3.5rem;
  --lh-tight: 1.1; --lh-snug: 1.3; --lh-body: 1.6;
  /* space, radius, width */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r: 3px; --r-2: 6px;
  --w-page: 1280px; --w-prose: 74ch; --w-narrow: 64ch;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.7);
  --glow: 0 0 0 1px var(--gold-line), 0 0 40px -10px rgba(245,179,35,.35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--bg); }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-2); line-height: var(--lh-body); color: var(--text); background: var(--bg); font-feature-settings: 'ss01', 'cv05'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--volt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(107,157,255,.35); transition: color .15s, text-decoration-color .15s; }
a:hover { color: #8fb4ff; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.02em; margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 3.6rem); letter-spacing: -0.015em; line-height: 1.04; }
h1 em, .display em { font-style: italic; color: var(--gold-2); }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -0.01em; line-height: 1.08; margin-top: 0; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, var(--fs-5)); margin-top: var(--s-7); }
h3 { font-size: var(--fs-3); margin-top: var(--s-6); }
h4 { font-size: var(--fs-2); margin-top: var(--s-5); }
p, ul, ol { margin: 0 0 var(--s-4); }
h2 + p, h3 + p, h4 + p { margin-top: var(--s-3); }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: var(--s-2); }
strong { font-weight: 600; color: var(--text); }
small, .small { font-size: var(--fs-0); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: var(--r); color: var(--gold-2); }
pre { font-family: var(--mono); font-size: var(--fs-0); line-height: 1.55; background: #05080c; color: #d7dde6; padding: var(--s-4) var(--s-5); border-radius: var(--r-2); border: 1px solid var(--line); overflow-x: auto; margin: var(--s-4) 0 var(--s-5); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
sup { line-height: 0; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #0a0d12; padding: 8px 12px; z-index: 1000; border-radius: var(--r); font-weight: 600; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(245,179,35,.35); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--w-prose); }
.narrow { max-width: var(--w-narrow); }
.grid { display: grid; gap: var(--s-5); }
.side > *, .two > *, .tool > *, .grid > *, .cards > *, .prose, .hero .wrap > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.section { padding-block: var(--s-8); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--text-2); max-width: 60ch; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: var(--s-4); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--metal-flat); border-radius: 1px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-3); border-radius: var(--r); color: var(--text-2); }
.tag-live { border-color: var(--ok); color: var(--ok); }
.tag-plan { color: var(--text-3); }

/* ---------- header ---------- */
.hdr { background: rgba(9,13,20,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.18em; font-size: 1rem; }
.brand .wm { padding-top: 1px; }
.brand svg { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 2px 6px rgba(245,179,35,.35)); }
.brand .tld { color: var(--gold-2); font-weight: 500; letter-spacing: 0.02em; }
.nav { display: none; margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 12px; color: var(--text-2); text-decoration: none; font-size: var(--fs-1); font-weight: 500; border-radius: var(--r); transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a[aria-current="page"], .nav .nav-menu-btn[data-on] { color: #fff; box-shadow: inset 0 -1.5px 0 var(--gold); border-radius: 0; }
.nav .has-menu { position: relative; }
.nav-menu-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 12px; color: var(--text-2); font: inherit; font-size: var(--fs-1); font-weight: 500; border-radius: var(--r); cursor: pointer; transition: color .15s, background .15s; }
.nav-menu-btn svg { width: 10px; height: 7px; transition: transform .15s; }
.nav-menu-btn:hover, .has-menu.open .nav-menu-btn { color: #fff; background: var(--surface-2); }
.has-menu.open .nav-menu-btn svg { transform: rotate(180deg); }
.nav .menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-2); box-shadow: var(--shadow); display: none; z-index: 60; }
.menu::before { content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: linear-gradient(90deg, rgba(245,179,35,0), rgba(245,179,35,.8), rgba(245,179,35,0)); }
.nav .has-menu.open .menu { display: block; }
.menu a { display: block; padding: 9px 12px; color: var(--text); text-decoration: none; font-size: var(--fs-1); border-radius: var(--r); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--gold-tint); color: var(--gold-2); }
.mnav .m-group { padding: 12px var(--gutter) 4px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); border-top: 1px solid var(--line); }
.mnav .m-group + li a { border-top: 0; }
.nav-btn { margin-left: auto; background: none; border: 1px solid var(--line-2); color: #fff; padding: 8px 10px; border-radius: var(--r); font: inherit; font-size: var(--fs-1); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.nav-btn svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .nav { display: block; } .nav-btn { display: none; } }
.mnav { display: none; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mnav.open { display: block; }
.mnav ul { list-style: none; margin: 0; padding: var(--s-2) 0; }
.mnav a { display: block; padding: 13px var(--gutter); color: var(--text); text-decoration: none; font-weight: 500; border-top: 1px solid var(--line); }
.mnav a[aria-current="page"] { color: var(--gold-2); }
@media (min-width: 900px) { .mnav { display: none !important; } }

/* ---------- breadcrumbs + subnav ---------- */
.crumbs { font-size: var(--fs-0); color: var(--text-3); padding: var(--s-3) 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.subnav { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.subnav .wrap { display: flex; align-items: center; gap: var(--s-4); }
.subnav-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; display: none; }
@media (min-width: 700px) { .subnav-label { display: block; } }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 13px 10px; font-size: var(--fs-1); color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; transition: color .15s; }
.subnav a:hover { color: #fff; }
.subnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); font-weight: 600; }

/* ---------- page head (with horizon) ---------- */
.phead { position: relative; padding: var(--s-6) 0 var(--s-6); border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 100% 100%, rgba(245,179,35,.14), rgba(245,179,35,0) 55%), var(--bg); overflow: hidden; }
.phead::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, rgba(245,179,35,0), rgba(245,179,35,.7) 50%, rgba(245,179,35,0)); }
.phead h1 { max-width: 20ch; }
.phead .lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--text-2); max-width: 62ch; margin: var(--s-4) 0 0; line-height: 1.5; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.02em; }
.meta b { color: var(--gold-2); font-weight: 500; }
.meta a { color: inherit; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(600px, 86vh, 800px); display: flex; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(140px, 19vw, 220px); background: var(--bg); isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-sky svg { width: 100%; height: 100%; display: block; }
.hero-obj { position: absolute; z-index: -1; pointer-events: none; right: clamp(4%, 11vw, 16%); bottom: 11%; height: 68%; max-height: 640px; aspect-ratio: 420 / 640; filter: drop-shadow(0 24px 48px rgba(245,179,35,.18)); }
.hero-obj svg { width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; }
.hero-copy { max-width: 620px; }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 1.6rem + 5.4vw, 5.75rem); max-width: 11ch; letter-spacing: -0.02em; line-height: 0.98; }
.hero h1 em { padding-right: 0.04em; }
.hero .lede { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--text-2); max-width: 40ch; margin: var(--s-5) 0 0; line-height: 1.5; text-wrap: pretty; }
.hero .cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-line { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); margin: var(--s-7) 0 0; padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.12); }
.hero-line div { margin: 0; }
.hero-line dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hero-line dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hero-line dd small { font-size: 0.72rem; font-weight: 500; color: var(--text-2); margin-left: 4px; }
@media (max-width: 959px) { .hero { min-height: 0; flex-direction: column; align-items: stretch; padding-bottom: var(--s-7); } .hero-sky { top: auto; height: 58%; } .hero-obj { position: relative; z-index: 0; right: auto; bottom: auto; order: 2; height: auto; max-height: none; width: clamp(140px, 36vw, 220px); margin: var(--s-6) auto 0; filter: drop-shadow(0 20px 40px rgba(245,179,35,.24)); } .hero-line { gap: var(--s-3) var(--s-5); } .hero-line dd { font-size: 1.05rem; } }

/* ---------- hero photograph ---------- */
.hero-photo { position: absolute; inset: 0; z-index: -3; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; display: block; }
.hero-photo img { object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,13,20,.42) 0%, rgba(9,13,20,.1) 32%, rgba(9,13,20,0) 58%, rgba(9,13,20,.7) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9,13,20,.9) 0%, rgba(9,13,20,.78) 34%, rgba(9,13,20,.3) 62%, rgba(9,13,20,0) 100%),
    radial-gradient(24% 22% at 79% 79%, rgba(255,214,107,.5), rgba(245,179,35,.22) 45%, rgba(245,179,35,0) 72%),
    radial-gradient(46% 40% at 80% 84%, rgba(245,179,35,.22), rgba(245,179,35,0) 70%); }
.hero-has-photo .hero-obj { filter: drop-shadow(0 24px 48px rgba(245,179,35,.22)) drop-shadow(0 0 2px rgba(0,0,0,.4)); }
.hero-credit { margin: var(--s-4) 0 0; font-size: 0.68rem; color: rgba(183,192,205,.5); max-width: 62ch; }
.hero-credit a { color: inherit; text-decoration-color: rgba(183,192,205,.3); }
@media (max-width: 959px) { .hero-photo img { object-position: 50% 62%; } .hero-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(9,13,20,.92) 46%, rgba(9,13,20,.45) 70%, rgba(9,13,20,.85) 100%), radial-gradient(60% 30% at 50% 88%, rgba(245,179,35,.22), rgba(245,179,35,0) 70%); } .hero-credit { max-width: none; } .hero-photo img { object-position: 50% 68%; } }

/* ---------- photographs ---------- */
.photo { margin: var(--s-6) 0 var(--s-6); }
.photo picture, .photo img { display: block; width: 100%; height: auto; border-radius: var(--r-2); }
.photo img { background: var(--surface); box-shadow: var(--shadow); }
.photo figcaption { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); justify-content: space-between; padding: var(--s-3) 2px 0; font-size: var(--fs-0); color: var(--text-2); line-height: 1.5; }
.photo .cap { flex: 1 1 36ch; max-width: 64ch; }
.photo .cred { flex: 0 1 auto; color: var(--text-3); font-size: 0.72rem; }
.photo .cred a { color: var(--text-3); }
.photo-side { max-width: 560px; }
@media (min-width: 1000px) { .prose .photo-side { float: right; width: 46%; margin: 4px 0 var(--s-5) var(--s-6); } .prose h2, .prose .tbl, .prose .formula, .prose .chart, .prose .faq, .prose .note { clear: both; } }
.photo-wide { margin-top: var(--s-5); }
.credits { font-size: var(--fs-1); color: var(--text-2); }
.credits li { margin-bottom: 8px; }

/* ---------- home: data band ---------- */
.databand { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.db-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); padding: var(--s-4) 0 var(--s-3); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.db-title { color: var(--gold-2); }
.db-date { color: var(--text-3); text-transform: none; letter-spacing: 0.02em; }
.db-date a { color: var(--text-2); }
.db-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); border-top: 1px solid var(--line); }
.db { display: flex; flex-direction: column; gap: 3px; padding: var(--s-4) var(--s-4) var(--s-5) 0; border-right: 1px solid var(--line); margin-right: var(--s-4); }
.db:last-child { border-right: 0; }
.db .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.db .v { font-size: 1.45rem; font-weight: 600; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.db .v small { font-size: 0.72rem; font-weight: 500; color: var(--text-2); margin-left: 3px; }
.db .d { font-size: 0.72rem; color: var(--text-3); }
@media (max-width: 599px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db { border-bottom: 1px solid var(--line); padding-right: var(--s-3); margin-right: var(--s-3); } .db:nth-child(even) { border-right: 0; margin-right: 0; padding-right: 0; } .db:nth-last-child(-n+2) { border-bottom: 0; } .db .v { font-size: 1.25rem; } }

/* ---------- home: feature, index, tools, provenance ---------- */
.feature { padding: clamp(64px, 9vw, 120px) 0; }
.feature-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.feature-text p { color: var(--text-2); max-width: 46ch; }
.feature-text .display { margin-bottom: var(--s-4); }
.links { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); }
.links a { color: var(--gold-2); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,207,92,.35); padding-bottom: 2px; }
.links a:hover { border-bottom-color: var(--gold-2); }
.feature-chart .chart { margin: 0; }
.index { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.index-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 900px) { .index-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } .index-head { position: sticky; top: 96px; } }
.index-head p { color: var(--text-2); max-width: 36ch; margin: var(--s-4) 0 var(--s-5); }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.index-list li { margin: 0; }
.index-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'n t v' 'n d v'; gap: 2px var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: baseline; transition: background .15s; position: relative; }
.index-list a::before { content: ''; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 2px; background: var(--metal-flat); opacity: 0; transition: opacity .15s; }
.index-list a:hover { background: linear-gradient(90deg, var(--gold-tint), transparent 60%); }
.index-list a:hover .v { color: var(--gold-2); }
.index-list a:hover::before { opacity: 1; }
.index-list .n { grid-area: n; font-family: var(--mono); font-size: 0.75rem; color: var(--gold-2); padding-top: 4px; }
.index-list .t { grid-area: t; font-size: var(--fs-3); font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.index-list .d { grid-area: d; font-size: var(--fs-1); color: var(--text-2); max-width: 52ch; }
.index-list .v { grid-area: v; font-family: var(--mono); font-size: var(--fs-0); color: var(--text-3); white-space: nowrap; text-align: right; align-self: center; }
@media (max-width: 640px) { .index-list a { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: 'n t' 'n d' 'n v'; } .index-list .v { text-align: left; white-space: normal; color: var(--gold-2); margin-top: 4px; } }
.toolstrip { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.ts-head { margin-bottom: var(--s-5); }
.ts-head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.ts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ts-row a { display: flex; flex-direction: column; gap: 6px; padding: var(--s-5) var(--s-4) var(--s-5) 0; margin-right: var(--s-4); border-right: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; transition: color .15s; }
.ts-row a:last-child { border-right: 0; }
.ts-row a::after { content: '→'; color: var(--text-3); margin-top: auto; padding-top: var(--s-3); font-size: var(--fs-1); transition: color .15s, transform .15s; }
.ts-row a:hover::after { color: var(--gold-2); transform: translateX(4px); }
.ts-row .t { font-size: var(--fs-3); font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.ts-row .d { font-size: var(--fs-1); color: var(--text-2); }
@media (max-width: 599px) { .ts-row a { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding-right: 0; } .ts-row a:last-child { border-bottom: 0; } }
.prov { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); background: radial-gradient(90% 70% at 0% 100%, rgba(245,179,35,.10), rgba(245,179,35,0) 60%), var(--bg-2); }
.prov-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 900px) { .prov-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; } }
.prov p { color: var(--text-2); max-width: 50ch; }
.prov-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.prov-list li { margin: 0; display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); gap: 2px var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.prov-list .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); grid-row: span 2; padding-top: 4px; }
.prov-list .v { font-weight: 600; color: #fff; }
.prov-list .d { font-size: var(--fs-0); color: var(--text-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--r); font: inherit; font-weight: 600; font-size: var(--fs-1); letter-spacing: 0.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; min-height: 44px; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--metal-flat); color: #0a0d12; border-color: #d9931a; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px -10px rgba(245,179,35,.6); }
.btn-sun:hover { background: linear-gradient(180deg, #ffd66b, #f2ad25); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 28px -10px rgba(245,179,35,.8); }
.btn-ink { background: var(--surface-2); color: #fff; border-color: var(--line-3); }
.btn-ink:hover { background: var(--surface-3); border-color: var(--gold-line); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--line-3); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn-line:hover { border-color: var(--gold); }
.btn svg { width: 16px; height: 16px; }

/* ---------- cards / lists / routes ---------- */
.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { border-top: 2px solid var(--line-2); padding: var(--s-5) 0 var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); position: relative; transition: border-color .15s; cursor: pointer; }
.card h3 { margin: 0; font-size: var(--fs-3); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card:hover { border-top-color: var(--gold); }
.card p { margin: 0; color: var(--text-2); font-size: var(--fs-1); }
.card .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.card .go { margin-top: auto; padding-top: var(--s-2); font-size: var(--fs-0); color: var(--gold-2); font-weight: 500; }
.list-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list-lines li { margin: 0; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: baseline; }
.list-lines a { text-decoration: none; color: var(--text); font-weight: 500; }
.list-lines a:hover { color: var(--gold-2); }
.list-lines .r { font-family: var(--mono); font-size: var(--fs-0); color: var(--text-3); text-align: right; }
.routes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.route { background: var(--surface); padding: var(--s-5); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; min-height: 150px; position: relative; transition: background .15s; }
.route::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--metal-flat); opacity: 0; transition: opacity .15s; }
.route:hover { background: var(--surface-2); }
.route:hover::after { opacity: 1; }
.route .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.route .t { font-size: var(--fs-3); font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.route .d { font-size: var(--fs-1); color: var(--text-2); }
.route .v { margin-top: auto; padding-top: var(--s-3); font-family: var(--mono); font-size: var(--fs-0); color: var(--text-2); }

/* ---------- market strip ---------- */
.strip { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0; }
.strip .cell { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-right: 1px solid var(--line); margin-right: var(--s-4); }
.strip .cell:last-child { border-right: 0; }
.strip .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.strip .v { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.2; margin-top: 2px; }
.strip .v small { font-size: 0.72rem; font-weight: 500; color: var(--text-2); margin-left: 3px; }
.strip .d { font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }
@media (max-width: 599px) { .strip .cell { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding-right: 0; } .strip .cell:last-child { border-bottom: 0; } }

/* ---------- tables ---------- */
.tbl { margin: var(--s-4) 0 var(--s-5); border: 1px solid var(--line-2); border-radius: var(--r-2); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.tbl-cap { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-2); background: var(--surface-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); align-items: baseline; }
.tbl-cap b { font-weight: 600; color: #fff; font-size: var(--fs-1); }
.tbl-cap .u { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.02em; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-1); }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); background: var(--surface); position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line-3); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--gold-tint); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.k { font-weight: 600; color: #fff; white-space: nowrap; }
td .sub { display: block; font-size: var(--fs-0); color: var(--text-3); font-weight: 400; white-space: normal; }
.tbl-foot { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-0); color: var(--text-3); background: var(--bg-2); }
.tbl-foot a { color: var(--text-2); }
th.sort { cursor: pointer; user-select: none; }
th.sort::after { content: '↕'; margin-left: 6px; color: var(--line-3); font-family: var(--sans); }
th.sort[aria-sort="ascending"]::after { content: '↑'; color: var(--gold-2); }
th.sort[aria-sort="descending"]::after { content: '↓'; color: var(--gold-2); }
.tbl-compact td, .tbl-compact th { padding: 8px 12px; }
.bar { position: relative; height: 8px; background: var(--line); border-radius: 4px; min-width: 120px; margin-top: 6px; }
.bar i { position: absolute; top: 0; bottom: 0; background: var(--metal-flat); border-radius: 4px; }

/* ---------- answer, notes, formula, facts ---------- */
.answer { position: relative; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(245,179,35,.10), rgba(245,179,35,.04)); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; border-radius: var(--r-2); }
.answer::before { content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; background: var(--metal-flat); border-radius: 2px; }
.answer p:last-child { margin-bottom: 0; }
.answer .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.note { border: 1px solid var(--line-2); border-radius: var(--r-2); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; font-size: var(--fs-1); background: var(--surface); color: var(--text-2); }
.note p:last-child { margin-bottom: 0; }
.note-warn { border-color: rgba(245,179,35,.4); }
.note-safety { border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.06); }
.note .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; display: block; }
.note-safety .k { color: var(--bad); }
.formula { font-family: var(--mono); font-size: var(--fs-1); background: #05080c; color: #e6ebf2; padding: var(--s-4) var(--s-5); border-radius: var(--r-2); border: 1px solid var(--line); margin: var(--s-4) 0; overflow-x: auto; line-height: 1.7; }
.formula .c { color: var(--text-3); }
.formula .y { color: var(--gold-2); }
.formula b { color: #fff; font-weight: 500; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin: var(--s-5) 0; }
.fact { background: var(--surface); padding: var(--s-4); }
.two .facts, .aside .facts { grid-template-columns: repeat(2, 1fr); }
.prose .facts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .prose .facts, .facts { grid-template-columns: repeat(2, 1fr); } }
.fact .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.fact .v { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--gold-2); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fact .v small { font-size: 0.78rem; font-weight: 500; color: var(--text-2); }
.fact .d { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; }

/* ---------- charts ---------- */
.chart { margin: var(--s-4) 0 var(--s-5); border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.chart figcaption { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-2); background: var(--surface-2); font-size: var(--fs-1); }
.chart figcaption b { font-weight: 600; color: #fff; }
.chart figcaption .u { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }
.chart svg { width: 100%; height: auto; display: block; padding: var(--s-3) var(--s-3) 0; }
.chart .src { padding: var(--s-2) var(--s-4) var(--s-3); font-size: var(--fs-0); color: var(--text-3); }
.chart .src a { color: var(--text-2); }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--text-2); }
.chart .lbl { fill: var(--text); font-family: var(--sans); font-size: 12px; }
.chart .ax { stroke: var(--line-3); }
.chart .grid { stroke: var(--line); }
.chart .b { fill: var(--gold); }
.chart .b2 { fill: var(--volt); }
.chart .b3 { fill: var(--line-3); }
.chart .rng { stroke: var(--gold); stroke-width: 10; stroke-linecap: round; }
.chart .ln { fill: none; stroke-width: 2; }
.chart .ln-a { stroke: var(--gold-2); } .chart .ln-b { stroke: var(--volt); } .chart .ln-c { stroke: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding: 0 var(--s-4); font-size: var(--fs-0); color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .lg-0 { background: var(--gold-2); } .legend .lg-1 { background: var(--volt); } .legend .lg-2 { background: var(--text-3); }

/* ---------- toc / sources / faq / next ---------- */
.toc { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; font-size: var(--fs-1); background: var(--bg-2); }
.toc .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: var(--s-6); }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold-2); }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.sources { font-size: var(--fs-1); }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 6px; color: var(--text-2); }
.sources a { word-break: break-word; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-2); font-weight: 500; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 var(--s-4); color: var(--text-2); max-width: 70ch; }
.faq .a p:last-child { margin: 0; }
.next { margin: var(--s-8) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.next .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.next ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.next li { margin: 0; }
.next a { display: block; border-top: 2px solid var(--line-2); padding: var(--s-3) 0; text-decoration: none; color: var(--text); font-weight: 500; font-size: var(--fs-1); transition: border-color .15s; }
.next a small { display: block; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.next a:hover { border-color: var(--gold); }

/* ---------- tool ---------- */
.tool { display: grid; gap: var(--s-5); grid-template-columns: 1fr; margin: var(--s-5) 0; }
@media (min-width: 900px) { .tool { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.tool-in { border: 1px solid var(--line-2); border-radius: var(--r-2); padding: var(--s-5); background: var(--surface); }
.tool-in h2 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s-5); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.tool-in h2 + h2, .tool-in .field + h2 { margin-top: var(--s-6); }
.field { display: grid; gap: 4px; margin-bottom: var(--s-4); }
.field label { font-size: var(--fs-1); font-weight: 500; color: var(--text); }
.field .h { font-size: var(--fs-0); color: var(--text-3); }
.field input, .field select { font: inherit; font-size: var(--fs-2); padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--text); width: 100%; min-height: 44px; transition: border-color .15s, box-shadow .15s; font-variant-numeric: tabular-nums; }
.field input:hover, .field select:hover { border-color: var(--line-3); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffcf5c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,179,35,.15); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field .unit { position: relative; }
.field .unit input { padding-right: 56px; }
.field .unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); }
.tool-out { position: sticky; top: 80px; }
.results { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-2); overflow: hidden; background: linear-gradient(180deg, #121824, #0b0f16); color: #fff; box-shadow: var(--glow); }
.results .rh { padding: var(--s-3) var(--s-5); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; }
.results .rh span:last-child { color: var(--gold-2); }
.results .rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.tool[data-tool="sizing"] .rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .results .rgrid, .tool[data-tool="sizing"] .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.results .r { background: rgba(9,13,20,.7); padding: var(--s-4) var(--s-5); }
.results .r .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.results .r .v { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--gold-2); margin-top: 4px; line-height: 1.1; font-variant-numeric: tabular-nums; transition: opacity .15s; }
.results .r .v small { font-size: 0.8rem; color: var(--text-2); font-weight: 500; margin-left: 3px; }
.results .r .d { font-size: 0.75rem; color: var(--text-2); margin-top: 4px; }
.results .rfoot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line-2); font-size: var(--fs-0); color: var(--text-2); }
.results .rfoot a { color: #fff; }
.assume { margin-top: var(--s-4); }
.assume summary { cursor: pointer; font-weight: 500; font-size: var(--fs-1); color: var(--text); min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; }
.assume summary::-webkit-details-marker { display: none; }
.assume summary::before { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg); transition: transform .15s; }
.assume[open] summary::before { transform: rotate(45deg); }
.assume .body { font-size: var(--fs-1); color: var(--text-2); padding-top: var(--s-3); }
.appl { border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--bg-2); margin-top: var(--s-4); }
.appl .ah { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-2); font-weight: 500; font-size: var(--fs-1); display: flex; justify-content: space-between; }
.appl .ah span { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); }
.appl table { font-size: var(--fs-0); }
.appl td, .appl th { padding: 6px 10px; }
.appl th { background: var(--bg-2); }
.appl input[type=number] { width: 64px; padding: 4px 6px; font: inherit; font-size: var(--fs-0); border: 1px solid var(--line-3); border-radius: var(--r); text-align: right; min-height: 32px; background: var(--bg); color: var(--text); }
.appl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }

/* ---------- footer ---------- */
.ftr { position: relative; background: #06090e; color: var(--text-2); margin-top: var(--s-9); border-top: 1px solid var(--line); overflow: hidden; }
.ftr::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, rgba(245,179,35,0), rgba(245,179,35,.8) 50%, rgba(245,179,35,0)); }
.ftr::after { content: ''; position: absolute; left: 50%; top: -140px; width: 900px; height: 260px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(245,179,35,.12), rgba(245,179,35,0) 70%); pointer-events: none; }
.ftop { position: relative; display: grid; gap: var(--s-7); grid-template-columns: 1fr; padding: var(--s-8) 0 var(--s-7); }
@media (min-width: 860px) { .ftop { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.fbrand p { font-family: var(--display); font-size: 1.45rem; color: var(--text); margin: var(--s-4) 0 0; letter-spacing: -0.005em; }
.fcols { display: grid; gap: var(--s-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fh { color: var(--text-3); font-size: 0.68rem; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin: 0 0 var(--s-3); }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin: 0 0 8px; }
.fcol a { color: var(--text-2); text-decoration: none; font-size: var(--fs-1); }
.fcol a:hover { color: #fff; }
.fbot { position: relative; border-top: 1px solid var(--line); padding: var(--s-5) 0 var(--s-7); font-size: var(--fs-0); color: var(--text-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-items: baseline; }
.fdisc { flex: 1 1 320px; }
.flegal { display: flex; gap: var(--s-4); }
.flegal a { color: var(--text-2); text-decoration: none; }
.flegal a:hover { color: #fff; }

/* ---------- 404 ---------- */
.err { padding: var(--s-9) 0; }
.err .code { font-family: var(--mono); color: var(--gold-2); font-size: var(--fs-1); }
.err h1 { margin-top: var(--s-3); }

/* ---------- utilities ---------- */
.muted { color: var(--text-2); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--s-6); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.flex { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.two { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.side { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .side .aside { position: sticky; top: 80px; } }
.aside .box { border-top: 2px solid var(--line-2); padding: var(--s-4) 0; font-size: var(--fs-1); margin-bottom: var(--s-4); }
.aside .box .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.aside .facts { margin: var(--s-3) 0 0; }
.aside .box ul { list-style: none; padding: 0; margin: 0; }
.aside .box li { margin: 0 0 6px; }
.aside .box a { text-decoration: none; color: var(--text); font-weight: 500; }
.aside .box a:hover { color: var(--gold-2); }
.aside .box a[aria-current="page"] { color: var(--gold-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print { :root { color-scheme: light; } body { background: #fff; color: #111; } .hdr, .ftr, .subnav, .nav-btn, .next, .tool-in, .hero-sky, .hero-obj, .hero-photo, .hero-shade { display: none; } a { color: inherit; text-decoration: none; } .tbl, .chart, .note, .results { background: #fff; color: #111; border-color: #999; box-shadow: none; } th, td.k, .fact .v, .results .r .v { color: #111; } }
