/* Cleartext: reference-grade answers. Light, cool-gray ground, one deep-teal accent.
   UI: Schibsted Grotesk. Answers: Source Serif 4. Stamps, data and code: IBM Plex Mono. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-sunk: #eceff3;
  --line: #dde3e8;
  --line-strong: #c2ccd4;
  --ink: #0f1b26;
  --ink-2: #3a4957;
  --ink-3: #56636f;
  --accent: #0b6a70;
  --accent-strong: #074b50;
  --accent-tint: #e7f2f2;
  --accent-wash: #f5fafa;
  --accent-line: #a8cfd0;
  --ok: #1c6a3d;
  --ok-tint: #edf6f0;
  --ok-line: #a9d2b7;
  --warn: #7f4d00;
  --warn-tint: #fbf4e6;
  --warn-line: #e3c992;
  --sans: "Schibsted Grotesk", ui-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --top: 60px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); font-feature-settings: "ss01"; overflow-x: hidden; }
img, svg { max-width: 100%; }
[id] { scroll-margin-top: calc(var(--top) + 16px); }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
.i { flex: none; vertical-align: -3px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; color: #fff; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
pre { font-family: var(--mono); }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.topbar-in { max-width: 1440px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.015em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; cursor: pointer; flex: none; }
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 7px 11px; border-radius: 7px; }
.topnav a:hover { background: var(--bg-soft); color: var(--ink); }

.top-search { position: relative; flex: 1 1 auto; max-width: 440px; min-width: 0; margin-left: 18px; }
.top-search .i-search { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.top-search input { width: 100%; height: 38px; padding: 0 34px 0 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); font: 400 14.5px var(--sans); color: var(--ink); }
.top-search input::placeholder { color: var(--ink-3); }
.top-search input:focus { outline: none; background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 11px var(--mono); color: var(--ink-3); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--bg); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* search dropdown */
.search-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 100%; z-index: 60; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15,27,38,.14); max-height: min(70vh, 520px); overflow-y: auto; }
.sr-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sr-item:hover, .sr-item.is-active { background: var(--accent-tint); color: var(--ink); }
.sr-k { display: block; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.sr-t { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.sr-s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 400 14px/1.45 var(--serif); color: var(--ink-2); margin-top: 3px; }
.sr-all, .sr-empty { display: block; padding: 10px 14px; font-size: 13.5px; }
.sr-empty { color: var(--ink-3); }

/* ---------------------------------------------------------------- shell */
.shell { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.shell.has-rail { grid-template-columns: 272px minmax(0, 1fr) 236px; }
.sidebar { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; border-right: 1px solid var(--line); padding: 14px 14px 40px; background: var(--bg); overscroll-behavior: contain; }
.content { min-width: 0; padding: 28px 44px 72px; }
.content:focus { outline: none; }
.content > * { max-width: 48rem; }
.is-home .content > * { max-width: 62rem; }
.rail { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 32px 20px 40px 8px; font-size: 13.5px; }

/* sidebar tree */
.tree-h { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin: 20px 8px 6px; }
.tree-h:first-child { margin-top: 6px; }
.tree-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 7px; font-weight: 600; font-size: 14.5px; cursor: pointer; list-style: none; color: var(--ink); }
.tree-group summary::-webkit-details-marker { display: none; }
.tree-group summary span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 1px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; }
.tree-group[open] summary span:first-child::before { transform: rotate(45deg); margin-bottom: 4px; }
.tree-group summary:hover { background: var(--bg-soft); }
.count { font: 500 11.5px var(--mono); color: var(--ink-3); }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree-group ul { margin: 2px 0 8px 13px; padding-left: 8px; border-left: 1px solid var(--line); }
.tree li a { display: block; padding: 5px 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; border-radius: 6px; }
.tree li a:hover { background: var(--bg-soft); color: var(--ink); }
.tree li a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-strong); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.tree-flat { margin: 0 0 4px; }

/* right rail */
.rail-h { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin: 0 0 8px; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 4px 10px; border-left: 2px solid var(--line); color: var(--ink-3); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.is-active { color: var(--accent-strong); border-left-color: var(--accent); font-weight: 600; }
.rail-card { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--bg); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; }
.rail-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rail-actions a, .linkish { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13.5px; text-align: left; }
.rail-actions a:hover, .linkish:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- document */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

.eyebrow { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; }
.eyebrow a { color: var(--accent); text-decoration: none; }
.doc-head h1, .notfound h1 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.14; letter-spacing: -.022em; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
.lede { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 18px; line-height: 1.55; }

.stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 0 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); font: 400 12.5px var(--mono); color: var(--ink-2); }
.stamp a { color: var(--ink-2); }
.stamp-main { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.stamp-data { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); }
.stamp-due { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 600; }
.stamp.is-due { border-color: var(--warn-line); background: var(--warn-tint); }

.answer { margin: 20px 0 8px; padding: 18px 22px 16px; border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--accent-wash); }
.answer-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.content .answer-label { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--accent-strong); margin: 0; padding: 0; border: 0; }
.wc { font: 400 12px var(--mono); color: var(--ink-3); }
.answer-text { font: 400 1.24rem/1.58 var(--serif); color: var(--ink); margin: 8px 0 14px; font-optical-sizing: auto; }
.answer-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.btn-quiet { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--ink-2); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn.is-done { border-color: var(--ok-line); color: var(--ok); }

.disclosure { display: flex; gap: 10px; margin: 16px 0 0; padding: 12px 14px; background: var(--warn-tint); border: 1px solid var(--warn-line); border-left: 4px solid var(--warn); border-radius: 8px; font-size: 14.5px; line-height: 1.5; }
.disclosure .i { color: var(--warn); margin-top: 3px; }
.disclosure p { margin: 0; }
.affiliated { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; color: var(--ink-2); line-height: 1.45; }
.affiliated .chip { white-space: nowrap; }
.sample-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--bg-soft); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.sample-note .i { color: var(--warn); margin-top: 1px; }

.content h2 { font-size: 1.32rem; line-height: 1.3; letter-spacing: -.012em; font-weight: 650; margin: 2.4rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.content h3 { font-size: 1.04rem; line-height: 1.35; font-weight: 650; margin: 1.6rem 0 .4rem; }
.h-anchor { margin-left: 4px; color: var(--ink-3); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity .12s; }
h2:hover .h-anchor, h3:hover .h-anchor, .h-anchor:focus-visible { opacity: 1; }
.prose { font-size: 16.5px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol, .content section > ul { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.2rem 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--line-strong); color: var(--ink-2); font-family: var(--serif); }
sup.cite a { font: 500 11px var(--mono); text-decoration: none; padding: 0 1px; }
sup.cite a:hover { text-decoration: underline; }
.updated { color: var(--ink-3); margin: 0 0 12px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0 1.2rem; background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg-soft); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
tbody th { font-weight: 600; }
caption { caption-side: bottom; text-align: left; padding: 9px 12px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--bg-soft); }
table.data td, table.data th { font-size: 14px; }
.recent td:first-child, .log td:first-child { white-space: nowrap; }

.cmp th[scope="row"] { width: 26%; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.cmp td.win { background: var(--ok-tint); }
.win-badge { display: inline-block; margin-left: 6px; padding: 0 5px; font: 500 10.5px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ok); border: 1px solid var(--ok-line); border-radius: 4px; vertical-align: 1px; white-space: nowrap; background: var(--bg); }
.tally { color: var(--ink-3); margin: 0 0 .5rem; font-size: 12.5px; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 20px 0 0; }
.pair-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.pair-item p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.pair-k { font: 600 11px var(--mono) !important; color: var(--ink-3) !important; letter-spacing: .08em; }
.pair-item .pair-name { font-weight: 700; color: var(--ink); font-size: 16px; margin: 2px 0 4px; }
.pair-vs { align-self: center; font: 600 12px var(--mono); color: var(--ink-3); text-transform: uppercase; }
.when-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.when { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--bg-soft); }
.content .when h3 { margin: 0 0 4px; font-size: 14.5px; }
.when p { margin: 0; font-size: 14.5px; }

/* sources */
.sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sources li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 4px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sources li:target { background: var(--accent-tint); }
.src-n { font: 500 13px var(--mono); color: var(--accent-strong); }
.src-body a { font-weight: 550; overflow-wrap: anywhere; }
.src-meta { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.badge { display: inline-block; margin-left: 6px; padding: 0 6px; font: 500 10.5px/1.75 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 4px; vertical-align: 1px; }
.badge-primary { color: var(--ok); border-color: var(--ok-line); background: var(--ok-tint); }

/* audiences, faq, paa */
.aud { display: grid; grid-template-columns: 12.5rem 1fr; gap: 6px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.aud:first-child { border-top: 0; padding-top: 4px; }
.content .aud h3 { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.aud p { margin: 0; font-size: 15.5px; }
.faq { margin: 0; }
.faq-item { padding: 12px 0; border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; padding-top: 2px; }
.faq dt { font-weight: 650; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.paa { border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0; background: var(--bg); }
.paa summary { position: relative; padding: 12px 42px 12px 14px; font-weight: 600; cursor: pointer; list-style: none; }
.paa summary::-webkit-details-marker { display: none; }
.paa summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.paa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.paa summary:hover { background: var(--bg-soft); border-radius: var(--radius); }
.paa[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.paa-body { padding: 12px 14px; }
.paa-body p { margin: 0 0 8px; font: 400 15.5px/1.55 var(--serif); color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 550; text-decoration: none; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.card-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); text-decoration: none; background: var(--bg); }
.card-link:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-wash); }
.card-kind { display: block; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 3px; }
.card-title { font-weight: 600; line-height: 1.35; }

/* cite */
.cite-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; margin: 10px 0; }
.cite-label { grid-column: 1 / -1; margin: 0; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.cite-text { margin: 0; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.chips-label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; line-height: 1.6; color: var(--ink-2); text-decoration: none; background: var(--bg); white-space: nowrap; }
a.chip:hover { border-color: var(--accent); color: var(--accent-strong); text-decoration: none; }
.chip-ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-tint); font-weight: 600; }
.chip-warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-tint); font-weight: 600; }
.chip-neutral { color: var(--ink-2); font-weight: 600; }

/* lists of questions */
.qlist { list-style: none; margin: 0; padding: 0; }
.qrow { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qrow:first-child { padding-top: 4px; }
.qrow-q { font-weight: 650; font-size: 1.04rem; color: var(--ink); text-decoration: none; line-height: 1.35; }
.qrow-q:hover { color: var(--accent-strong); text-decoration: underline; }
.qrow-a { margin: 4px 0 4px; color: var(--ink-2); font: 400 15.5px/1.55 var(--serif); }
.qrow-meta { margin: 0; color: var(--ink-3); font-size: 12px; }
.row-kind { display: inline-block; margin-left: 8px; padding: 0 6px; font: 500 10.5px/1.75 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; vertical-align: 2px; white-space: nowrap; }
.domain-block .domain-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.1rem; }
.content .domain-block h2 { border: 0; margin: 0; padding: 0; }
.domain-block h2 a { color: var(--ink); text-decoration: none; }
.domain-block h2 a:hover { color: var(--accent-strong); text-decoration: underline; }

.facts { margin: 20px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.aliases { margin: -6px 0 0; }
.notes { overflow-wrap: anywhere; font-size: 14.5px; color: var(--ink-2); }
.pending-note, .thin-note { display: flex; gap: 8px; margin-top: 2rem; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--bg-soft); font-size: 14px; color: var(--ink-2); }
.ext-links { padding-left: 1.2rem; }
.ext-links li { margin: 4px 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.stats > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stats dt { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.stats dd { margin: 6px 0 0; font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }

.status-key { display: grid; gap: 8px; margin: 0; }
.status-key > div { display: flex; align-items: baseline; gap: 12px; }
.status-key dt { flex: 0 0 7rem; }
.status-key dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.downloads { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.row-q { font-size: 13px; margin-left: 4px; white-space: nowrap; }

/* checklists */
.meta-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.meta-strip > div { border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }
.meta-strip dt { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.meta-strip dd { margin: 0; font-size: 14.5px; font-weight: 550; }
.progress { color: var(--accent-strong); margin: 0 0 6px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 2.1rem 1fr; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.step-check { padding-top: 2px; }
.step-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.content .step h3 { margin: 0 0 4px; font-size: 1.02rem; }
.step-n { color: var(--accent); margin-right: 6px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.step.is-done h3 { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.done-box { margin: 0; padding: 14px 16px; border: 1px solid var(--ok-line); background: var(--ok-tint); border-radius: var(--radius); }

/* glossary + topics */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.az a { font: 500 13px var(--mono); padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.az a:hover { border-color: var(--accent); }
.terms { margin: 0; }
.term, .terms > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 700; }
.terms dd { margin: 4px 0 0; }
.terms dd p { margin: 0 0 4px; color: var(--ink-2); }
.term:target { background: var(--accent-tint); margin: 0 -10px; padding: 12px 10px; border-radius: 8px; }
.topic-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.content .topic-group h2 { font-size: 1.05rem; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.person { border-top: 1px solid var(--line); margin-top: 1.5rem; }

/* ---------------------------------------------------------------- home */
.hero { padding: 34px 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 12px; }
.hero-sub { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 22px; max-width: 40rem; }
.hero-search { position: relative; display: flex; align-items: center; max-width: 46rem; }
.hero-search .i-search { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.hero-search input { width: 100%; height: 60px; padding: 0 118px 0 50px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: 400 1.08rem var(--sans); color: var(--ink); background: var(--bg); box-shadow: 0 1px 2px rgba(15,27,38,.06); }
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.hero-search .btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 18px; }
.hero-search .search-pop { top: calc(100% + 8px); }
.hero-try { margin: 12px 0 0; color: var(--ink-3); }
.hero-try a { margin: 0 4px; font-family: var(--mono); font-size: 13px; }
.pop-grid, .dom-grid, .vs-grid, .ref-grid, .plain-list, .how { list-style: none; margin: 0; padding: 0; }
.pop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pop { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--bg); }
.pop:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.pop-q { display: block; font-weight: 650; line-height: 1.35; }
.pop-a { display: block; margin-top: 5px; font: 400 14.5px/1.5 var(--serif); color: var(--ink-2); }
.dom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dom { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.dom-head { display: flex; align-items: baseline; justify-content: space-between; }
.content .dom h3 { margin: 0; font-size: 1.08rem; }
.dom h3 a { color: var(--ink); text-decoration: none; }
.dom h3 a:hover { color: var(--accent-strong); text-decoration: underline; }
.dom p { margin: 4px 0 8px; }
.dom ul { list-style: none; padding: 0; margin: 0; }
.dom li { padding: 4px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.dom li a { text-decoration: none; }
.dom li a:hover { text-decoration: underline; }
.vs-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.vs { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 14.5px; background: var(--bg); }
.vs:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-wash); }
.vs-x { font: 600 10.5px var(--mono); text-transform: uppercase; color: var(--ink-3); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list a { text-decoration: none; font-weight: 550; }
.plain-list a:hover { text-decoration: underline; }
.ref { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ref-t { font-weight: 550; }
.ref-m { color: var(--ink-3); font-size: 12px; text-align: right; }
.ref:hover .ref-t { text-decoration: underline; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how li { border-top: 2px solid var(--accent); padding-top: 10px; counter-increment: how; }
.how li::before { content: "0" counter(how); font: 600 12px var(--mono); color: var(--accent); }
.how p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.how .how-t { font-weight: 700; color: var(--ink); }

/* search page, 404 */
.page-search { margin: 8px 0 12px; }
.results { list-style: none; padding: 0; margin: 0; }
.results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.results .sr-t { font-size: 1.04rem; }
.results .sr-s { -webkit-line-clamp: 3; font-size: 15px; }
.notfound { padding: 40px 0; }
.notfound .hero-search { margin: 18px 0; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 20px; }
.footer-in { max-width: 1440px; margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 28px; font-size: 14px; }
.footer-name { font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.footer-brand p { margin: 0 0 8px; color: var(--ink-2); }
.footer-own { font-size: 13px; }
.footer-h { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin: 0 0 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 5px 0; }
.footer li a { color: var(--ink-2); text-decoration: none; }
.footer li a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-legal { max-width: 1440px; margin: 0 auto; padding: 14px 24px 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .shell.has-rail { grid-template-columns: 256px minmax(0, 1fr); }
  .shell { grid-template-columns: 256px minmax(0, 1fr); }
  .rail { display: none; }
  .content { padding: 28px 36px 64px; }
}
@media (max-width: 1100px) {
  .topnav { display: none; }
  .top-search { max-width: none; }
}
@media (max-width: 960px) {
  .shell, .shell.has-rail { display: block; }
  .nav-toggle { display: inline-flex; }
  .top-search { margin-left: 4px; }
  .sidebar { position: fixed; top: var(--top); left: 0; bottom: 0; height: auto; width: min(88vw, 320px); z-index: 45; transform: translateX(-102%); visibility: hidden; transition: transform .2s ease, visibility .2s; border-right: 1px solid var(--line-strong); }
  .nav-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(15,27,38,.32); }
  .content { padding: 22px 24px 56px; }
  .footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .pop-grid, .dom-grid, .two-col, .how, .topic-groups, .when-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .pair { grid-template-columns: 1fr; }
  .pair-vs { justify-self: center; }
  /* comparison table becomes stacked cards */
  .cmp-wrap { border: 0; overflow: visible; background: none; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td, .cmp caption { display: block; width: 100%; }
  .cmp tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
  .cmp th[scope="row"] { width: 100%; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
  .cmp td { display: grid; grid-template-columns: minmax(6.5rem, 38%) 1fr; gap: 10px; border-bottom: 1px solid var(--line); }
  .cmp tr td:last-child { border-bottom: 0; }
  .cmp td::before { content: attr(data-label); font-weight: 600; font-size: 13px; color: var(--ink-3); }
  .cmp caption { caption-side: bottom; border: 0; background: none; padding: 4px 0; }
}
@media (max-width: 560px) {
  :root { --top: 56px; }
  .topbar-in { padding: 0 12px; gap: 8px; }
  .brand-name { display: none; }
  .kbd { display: none; }
  .top-search input { padding-right: 10px; }
  .top-search .search-pop { position: fixed; left: 8px; right: 8px; top: calc(var(--top) + 4px); }
  .content { padding: 18px 16px 48px; }
  .answer { padding: 16px 16px 14px; }
  .answer-text { font-size: 1.14rem; }
  .hero { padding-top: 18px; }
  .hero-search input { height: 54px; padding: 0 14px 0 44px; font-size: 1rem; }
  .hero-search .i-search { left: 15px; }
  .hero-search .btn { display: none; }
  .footer-in { grid-template-columns: 1fr 1fr; padding: 28px 16px 18px; gap: 20px; }
  .footer-legal { padding: 12px 16px 24px; }
  .cite-row { grid-template-columns: 1fr; }
  .cite-row .btn { justify-self: start; }
  .stamp { gap: 4px 12px; }
  .status-key > div { display: block; }
  .ref { flex-direction: column; gap: 0; }
  .ref-m { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .sidebar, .rail, .footer, .answer-tools, .sample-note, .step-check { display: none !important; }
  .shell, .shell.has-rail { display: block; }
  .content { padding: 0; }
  a { color: var(--ink); }
}
