/* =====================================================================
   Signal Panel — design system
   Rule of thumb: what the machine says (readouts, commands) sits on dark
   instrument panels; what people wrote sits on calm, light surfaces.
   ===================================================================== */

@font-face { font-family: 'Red Hat Text'; src: url('/assets/fonts/red-hat-text.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Red Hat Text'; src: url('/assets/fonts/red-hat-text-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Red Hat Display'; src: url('/assets/fonts/red-hat-display.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Red Hat Mono'; src: url('/assets/fonts/red-hat-mono.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ecf0f1;
  --bg-2: #e2e8e9;
  --surface: #f8fafa;
  --paper: #ffffff;
  --ink: #0d2b30;
  --ink-2: #34535a;
  --ink-3: #56707a;
  --line: #c3cfd2;
  --line-2: #d9e1e3;
  --teal: #0b5a63;
  --teal-2: #0e717c;
  --teal-tint: #d6e7e8;
  --amber: #f0a535;
  --amber-ink: #6b4300;
  --amber-tint: #fbecd2;
  --ok: #24704a;
  --ok-tint: #dcefe3;
  --danger: #9b3227;
  --danger-tint: #f7e1dd;
  /* Instrument panels stay dark in both themes. */
  --panel: #0d2b30;
  --panel-2: #12363c;
  --panel-line: #24515a;
  --panel-ink: #e4f0f0;
  --panel-ink-2: #9fc0c4;
  --panel-accent: #7fd4da;
  --mark-bg: #0d2b30;
  --mark-line: #e4f0f0;

  --f-text: 'Red Hat Text', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-display: 'Red Hat Display', 'Red Hat Text', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Red Hat Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --fs: 1.125rem;
  --measure: 68ch;
  --r: 10px;
  --r-sm: 6px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --wrap: 1200px;
  --shadow: 0 1px 0 rgb(13 43 48 / 0.04), 0 8px 24px -12px rgb(13 43 48 / 0.18);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1517;
    --bg-2: #0f1d20;
    --surface: #122125;
    --paper: #152629;
    --ink: #e3eded;
    --ink-2: #b2c7ca;
    --ink-3: #8aa5aa;
    --line: #2a4247;
    --line-2: #1f3438;
    --teal: #74cbd2;
    --teal-2: #9adde2;
    --teal-tint: #173a3f;
    --amber: #f2b24c;
    --amber-ink: #f6cf8e;
    --amber-tint: #3a2a10;
    --ok: #7fd1a0;
    --ok-tint: #143223;
    --danger: #f19a8e;
    --danger-tint: #3b1a16;
    --panel: #071012;
    --panel-2: #0c1a1d;
    --panel-line: #20393e;
    --mark-bg: #e3eded;
    --mark-line: #0d2b30;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 10px 30px -14px rgb(0 0 0 / 0.7);
  }
}

html.text-lg { --fs: 1.3rem; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-wrap: break-word; background: var(--bg); color: var(--ink); font: 400 var(--fs)/1.62 var(--f-text); font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.18; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
strong, b { font-weight: 650; }
code, kbd { font-family: var(--f-mono); font-size: 0.88em; }
code { background: var(--teal-tint); color: var(--ink); padding: 0.08em 0.38em; border-radius: 4px; overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 1.7em; text-align: center; padding: 0.05em 0.45em 0.1em; border: 1px solid var(--line); border-bottom-width: 2.5px; border-radius: 5px; background: var(--paper); color: var(--ink); font-weight: 600; line-height: 1.35; white-space: nowrap; }
[hidden] { display: none !important; }
.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; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.i { width: 1em; height: 1em; flex: none; }
.i--ext { display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.25em; vertical-align: -0.05em; }
.i--arrow { display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.35em; vertical-align: -0.12em; transition: transform 0.15s; }
a:hover .i--arrow { transform: translateX(3px); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- Small parts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.25rem; border-radius: var(--r-sm); border: 1.5px solid transparent; font: 600 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--teal); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--ink:hover { color: var(--panel); } }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.95rem; font-weight: 500; text-decoration: none; cursor: pointer; font-family: var(--f-text); }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.chan { display: inline-grid; place-items: center; min-width: 2.1em; height: 1.55em; padding: 0 0.3em; border-radius: 4px; background: var(--ink); color: var(--amber); font: 600 0.78rem/1 var(--f-mono); letter-spacing: 0.04em; }
.tag { display: inline-block; font: 600 0.72rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.32em 0.55em; border-radius: 4px; border: 1px solid currentColor; }
.tag--fix { color: var(--teal); }
.tag--error { color: var(--amber-ink); background: var(--amber-tint); border-color: transparent; }
.tag--guide { color: var(--ink-2); }
.badge { display: inline-block; font: 600 0.72rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35em 0.6em; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); }
.badge--admin { background: var(--amber-tint); color: var(--amber-ink); }

.h-band { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); font-weight: 750; letter-spacing: -0.02em; }
.h-small { font-size: 1.15rem; font-weight: 700; }

/* ---------- Path chips: Settings › System › Storage ---------- */
.path { display: inline; font-family: var(--f-mono); font-size: 0.86em; font-weight: 500; line-height: 2; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.path__seg { display: inline; padding: 0.18em 0.5em; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.path__sep { color: var(--amber-ink); font-weight: 700; margin: 0 0.22em; }
@media (prefers-color-scheme: dark) { .path__sep { color: var(--amber); } }

/* ---------- Strip & masthead ---------- */
.strip { background: var(--ink); color: var(--bg); font-size: 0.86rem; }
.strip__in { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 0.45rem; }
.strip a { color: var(--amber); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .strip { background: var(--panel); color: var(--panel-ink-2); } }
@media (max-width: 720px) { .strip a { display: none; } .strip { font-size: 0.8rem; } }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.masthead__in { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font: 800 1.4rem/1 var(--f-display); letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); }
.nav ul { display: flex; gap: 0.25rem; }
.nav a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 1rem; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.hsearch { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.hsearch input { width: 14rem; border: 0; background: transparent; color: var(--ink); font: 1rem var(--f-text); padding: 0.6rem 0.8rem; min-height: 44px; }
.hsearch input:focus { outline: none; }
.hsearch:focus-within { outline: 3px solid var(--amber); outline-offset: 1px; }
.hsearch__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.hsearch__btn .i { width: 20px; height: 20px; }
.nav-toggle { display: none; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: 600 1rem var(--f-text); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 1020px) {
  .hsearch input { width: 10rem; }
  .nav a { padding-inline: 0.6rem; }
}
@media (max-width: 900px) {
  .masthead__in { flex-wrap: wrap; gap: 0.75rem; min-height: 64px; padding-block: 0.6rem; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .hsearch { order: 3; width: 100%; margin: 0; }
  .hsearch input { width: 100%; }
  .nav { order: 4; width: 100%; display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding-bottom: 0.5rem; }
  .nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--amber); padding-left: 0.9rem; }
  .no-js .nav { display: block; }
}

/* ---------- Crumbs & band heads ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: 0.92rem; color: var(--ink-3); margin-bottom: 1rem; }
.crumbs li + li::before { content: '›'; margin: 0 0.5rem; color: var(--amber-ink); font-weight: 700; }
@media (prefers-color-scheme: dark) { .crumbs li + li::before { color: var(--amber); } }
.crumbs a { color: var(--ink-2); }

.band-head { padding-block: clamp(2rem, 1.4rem + 2.6vw, 3.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--surface); }
.band-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 780; letter-spacing: -0.02em; max-width: 22ch; }
.band-head__kicker { display: flex; align-items: center; gap: 0.6rem; font: 600 0.78rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.band-head__lede { margin-top: 0.9rem; max-width: 60ch; font-size: 1.15em; color: var(--ink-2); }
.band-head__stamp { margin-top: 0.8rem; font-size: 0.92rem; color: var(--ink-3); }

/* ---------- Home ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px); background-size: 100% 2.5rem; mask-image: linear-gradient(90deg, transparent 40%, #000 100%); opacity: 0.7; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.hero__kicker span { font: 600 0.75rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45em 0.65em; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); }
.hero__h { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); font-weight: 800; letter-spacing: -0.024em; line-height: 1.02; max-width: 14ch; }
.hero__lede { margin-top: 1.25rem; font-size: 1.2em; color: var(--ink-2); max-width: 46ch; }
.hero__search { margin-top: 2rem; max-width: 40rem; }
.hero__label { display: block; font-weight: 650; margin-bottom: 0.5rem; }
.hero__field { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.4rem 0.4rem 1rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.hero__field:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.hero__field .i { width: 22px; height: 22px; color: var(--ink-3); }
.hero__field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 1.1rem var(--f-text); padding: 0.6rem 0.25rem; }
.hero__field input:focus { outline: none; }
.hero__popular { margin-top: 1.25rem; }
.hero__popular p { font: 600 0.75rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero::before { display: none; } }
@media (max-width: 520px) { .hero__field { flex-wrap: wrap; padding: 0.4rem; } .hero__field .i { display: none; } .hero__field input { padding-inline: 0.6rem; } .hero__field .btn { width: 100%; } }

/* ---------- Readout (instrument panel) ---------- */
.readout { background: var(--panel); color: var(--panel-ink); border-radius: calc(var(--r) + 4px); padding: 1.25rem 1.35rem 1.35rem; box-shadow: 0 30px 60px -30px rgb(7 30 34 / 0.55), inset 0 0 0 1px var(--panel-line); }
.readout__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--panel-line); }
.readout__title { font: 700 0.8rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--panel-ink); display: inline-flex; align-items: center; gap: 0.55rem; }
.readout__title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--panel-accent); box-shadow: 0 0 0 4px rgb(127 212 218 / 0.15); }
.readout__src { font: 500 0.75rem/1.2 var(--f-mono); color: var(--panel-ink-2); text-align: right; }
.readout__rows > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.72rem 0; border-bottom: 1px dashed var(--panel-line); align-items: baseline; }
.readout__rows dt { font: 600 0.75rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel-ink-2); }
.readout__rows dd { margin: 0; font: 600 1.02rem/1.35 var(--f-display); color: var(--panel-ink); overflow-wrap: anywhere; }
.readout__rows dd small { display: block; font: 400 0.85rem/1.4 var(--f-text); color: var(--panel-ink-2); margin-top: 0.15rem; }
.readout__note { margin-top: 1rem; font-size: 0.9rem; color: var(--panel-ink-2); }
.readout__link, .readout a { color: var(--panel-accent); }
.readout__link { display: inline-flex; align-items: center; margin-top: 0.9rem; font-weight: 650; }
.readout__link:hover { color: #fff; }
.readout--full .readout__rows > div { grid-template-columns: 10rem minmax(0, 1fr); }
@media (max-width: 520px) { .readout--full .readout__rows > div, .readout__rows > div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Bands ---------- */
.band { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.band--panel { background: var(--surface); border-block: 1px solid var(--line); }
.band__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.band__more { font-weight: 600; }
.band__kicker { font: 600 0.78rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem; }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.catgrid__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 1.2rem 1.25rem; background: var(--paper); }
.catgrid__head { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font: 700 1.1rem/1.25 var(--f-display); }
.catgrid__head:hover .catgrid__label { text-decoration: underline; text-underline-offset: 0.18em; }
.catgrid__n { margin-left: auto; font: 500 0.85rem/1 var(--f-mono); color: var(--ink-3); }
.catgrid__links { margin-top: 0.75rem; display: grid; gap: 0.3rem; }
.catgrid__links a { font-size: 0.96rem; color: var(--ink-2); text-decoration: none; }
.catgrid__links a:hover { color: var(--teal); text-decoration: underline; }
.catgrid__item--finder { background: var(--ink); color: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.catgrid__item--finder p { color: color-mix(in srgb, var(--bg) 85%, transparent); font-size: 0.98rem; }
.catgrid__item--finder a { color: var(--amber); font-weight: 650; display: inline-flex; align-items: center; }
.catgrid__item--finder strong { font: 750 1.15rem/1.25 var(--f-display); }
@media (min-width: 1180px) { .catgrid__item--finder { grid-column: span 2; } }
@media (prefers-color-scheme: dark) { .catgrid__item--finder { background: var(--panel); color: var(--panel-ink); } .catgrid__item--finder p { color: var(--panel-ink-2); } }
.catgrid__links li { display: flex; gap: 0.45rem; }
.catgrid__links li::before { content: '›'; color: var(--amber-ink); font-weight: 700; }
@media (prefers-color-scheme: dark) { .catgrid__links li::before { color: var(--amber); } }

.tools-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.tools-band__intro p:not(.band__kicker) { margin-block: 1rem 1.5rem; color: var(--ink-2); max-width: 44ch; }
.tools-band__list { counter-reset: t; border-top: 1px solid var(--line); }
.tools-band__list li { counter-increment: t; border-bottom: 1px solid var(--line); }
.tools-band__list a { display: grid; grid-template-columns: 3rem 1fr; padding: 1rem 0; color: var(--ink); text-decoration: none; }
.tools-band__list a::before { content: counter(t, decimal-leading-zero); grid-row: span 2; font: 600 0.85rem/1.8 var(--f-mono); color: var(--amber-ink); }
@media (prefers-color-scheme: dark) { .tools-band__list a::before { color: var(--amber); } }
.tools-band__list strong { font: 700 1.1rem/1.3 var(--f-display); }
.tools-band__list span { color: var(--ink-2); font-size: 0.98rem; }
.tools-band__list a:hover strong { color: var(--teal); }
@media (max-width: 900px) { .tools-band { grid-template-columns: 1fr; } }

.promise { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.promise ul { margin-block: 1.25rem; display: grid; gap: 0.8rem; }
.promise li { display: flex; gap: 0.8rem; align-items: flex-start; }
.promise li .i { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; padding: 0.2rem; border-radius: 50%; box-sizing: content-box; }
.promise__never .i { color: var(--danger); background: var(--danger-tint); }
.promise__always .i { color: var(--ok); background: var(--ok-tint); }
.band--promise { background: var(--bg-2); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

/* ---------- Rows (lists of pages) ---------- */
.rows { display: grid; border-top: 1px solid var(--line); }
.rows--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 2rem; }
.row { border-bottom: 1px solid var(--line); }
.row__link { display: grid; gap: 0.35rem; padding: 1.05rem 0.25rem 1.15rem; color: var(--ink); text-decoration: none; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--ink-3); }
.row__codes { font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-2); }
.row__title { font: 700 1.12rem/1.3 var(--f-display); }
.row__desc { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.row__link:hover .row__title { color: var(--teal); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }

/* ---------- Article ---------- */
.ahead { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 1.2rem + 2.4vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.ahead__kicker { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; color: var(--ink-3); margin-bottom: 0.9rem; }
.ahead h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.2rem); font-weight: 780; letter-spacing: -0.02em; max-width: 24ch; }
.ahead__codes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ahead__codes code { background: var(--panel); color: var(--panel-ink); padding: 0.35em 0.7em; font-size: 0.95rem; }
.plate { display: flex; flex-wrap: wrap; margin-top: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); width: fit-content; max-width: 100%; }
.plate > div { padding: 0.65rem 1.1rem; border-right: 1px solid var(--line); }
.plate > div:last-child { border-right: 0; }
.plate dt { font: 600 0.7rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.plate dd { margin: 0.2rem 0 0; font-weight: 600; font-size: 0.98rem; }
@media (max-width: 640px) { .plate { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .plate > div { border-right: 0; border-bottom: 1px solid var(--line); } .plate > div:nth-child(odd) { border-right: 1px solid var(--line); } .plate > div:last-child { border-bottom: 0; } .plate > div:last-child:nth-child(odd) { grid-column: span 2; border-right: 0; } .plate > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.risk { display: inline-flex; align-items: center; gap: 0.4rem; }
.risk::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.risk--safe::before { background: var(--ok); }
.risk--settings::before { background: var(--amber); }
.risk--data::before { background: var(--danger); }

.agrid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(15rem, 19rem); justify-content: space-between; gap: clamp(2rem, 1rem + 4vw, 5rem); padding-block: clamp(1.75rem, 1rem + 2vw, 3rem); }
.amain { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-content: start; }
/* Single-column grids must not grow to fit a long command line: keep their track shrinkable. */
.tool__main, .tool__aside, .cat__main, .cat__aside, .hub, .rr, .w11, .hc-list, .hc, .rr-help__list dd, .result__body, .promise > div { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.aside { position: relative; }
.aside .rail { position: sticky; top: 1.25rem; }
@media (max-width: 1000px) { .agrid { grid-template-columns: minmax(0, 1fr); } .aside { order: -1; } .aside .rail { position: static; } }

.quick { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--r-sm); padding: 1.15rem 1.35rem 1.25rem; }
.quick h2 { font: 700 0.78rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem; }
.quick p { font-size: 1.08em; }

/* Rail: the list of fixes / sections */
.rail { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 1rem 0.6rem 0.75rem; }
.rail__h { font: 700 0.75rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 0 0.6rem 0.65rem; }
.rail__list { position: relative; }
.rail__list li a { display: flex; gap: 0.7rem; padding: 0.45rem 0.6rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.rail__list li a:hover { background: var(--bg-2); }
.rail__n { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--line); font: 600 0.78rem/1 var(--f-mono); color: var(--ink-2); background: var(--paper); }
.rail__n--end .i { width: 0.8rem; height: 0.8rem; margin: 0; }
.rail__list a.is-current { background: var(--amber-tint); }
.rail__list a.is-current .rail__n { background: var(--amber); border-color: var(--amber); color: #2a1a00; }
.rail__list a.is-tried .rail__n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.rail--static { align-self: start; }
@media (max-width: 1000px) { .rail { padding-bottom: 0.5rem; } }

/* ---------- Prose ---------- */
.prose { font-size: 1em; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem); font-weight: 750; margin-top: 2.6rem; scroll-margin-top: 1.5rem; }
.prose h3 { font-size: 1.18rem; font-weight: 700; margin-top: 1.8rem; }
.prose > h2:first-child, .prose > section:first-child, .prose > section:first-child h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.45rem; }
.prose li > ul, .prose li > ol { margin-top: 0.45rem; }
.prose ul > li::marker { color: var(--amber-ink); }
.prose a[href^='https://']::after { content: '↗'; font-size: 0.8em; margin-left: 0.15em; text-decoration: none; display: inline-block; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 0.75rem/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.prose .table-wrap, .prose table { display: block; overflow-x: auto; }
.prose blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--ink-2); }
.why { color: var(--ink-2); font-style: italic; }

/* Steps: amber numbered nodes on a rail */
ol.steps { counter-reset: s; list-style: none; padding-left: 0; position: relative; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 2.75rem; min-height: 1.9rem; }
ol.steps > li + li { margin-top: 0.85rem; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0.05rem; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; border-radius: 6px; background: var(--amber); color: #2a1a00; font: 700 0.9rem/1 var(--f-mono); }
ol.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 0.9rem; top: 2.1rem; bottom: -0.75rem; width: 2px; background: var(--amber-tint); }
ol.steps > li > .cmd { margin-top: 0.75rem; }

/* Fix sections */
.fix { position: relative; padding: 1.5rem 0 0.5rem; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.prose > .fix { margin-top: 2.5rem; }
.prose > .fix:first-child { margin-top: 0; }
.fix > * + * { margin-top: 1rem; }
.fix h2 { margin-top: 0 !important; display: grid; gap: 0.35rem; }
.fix__n { font: 700 0.78rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); }
@media (prefers-color-scheme: dark) { .fix__n { color: var(--amber); } }
.fix__next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 1.5rem !important; padding: 0.8rem 1rem; border-radius: var(--r-sm); background: var(--bg-2); font-size: 0.95rem; }
.fix__next span { color: var(--ink-2); }
.fix__next a { font-weight: 650; }

/* Command blocks: dark instrument panel */
.cmd { background: var(--panel); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--panel-line); color: var(--panel-ink); }
.cmd__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.45rem 0.5rem 0.45rem 1rem; background: var(--panel-2); border-bottom: 1px solid var(--panel-line); }
.cmd__shell { font: 600 0.75rem/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--panel-ink-2); }
.cmd__shell b { color: var(--amber); font-weight: 700; }
.cmd__copy { min-height: 36px; min-width: 4.5rem; padding: 0.3rem 0.8rem; border-radius: 5px; border: 1px solid var(--panel-line); background: transparent; color: var(--panel-ink); font: 600 0.85rem var(--f-text); cursor: pointer; }
.cmd__copy:hover { border-color: var(--panel-accent); color: var(--panel-accent); }
.cmd__copy.is-done { border-color: var(--panel-accent); color: var(--panel-accent); }
.cmd pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; }
.cmd code { background: none; color: var(--panel-ink); padding: 0; font-size: 1rem; font-weight: 500; white-space: pre; overflow-wrap: normal; }
.cmd code::before { content: '> '; color: var(--panel-accent); }
.cmd__how { border-top: 1px solid var(--panel-line); font-size: 0.9rem; }
.cmd__how summary { cursor: pointer; padding: 0.55rem 1rem; color: var(--panel-ink-2); list-style-position: inside; }
.cmd__how summary:hover { color: var(--panel-ink); }
.cmd__how p { padding: 0 1rem 0.85rem; color: var(--panel-ink); }
.cmd__how kbd { background: var(--panel-2); color: var(--panel-ink); border-color: var(--panel-line); }
.cmd__how strong { color: #fff; }

/* Asides */
.note, .caution, .warning { border-radius: var(--r-sm); padding: 0.95rem 1.15rem 1rem 3rem; position: relative; }
.note::before, .caution::before, .warning::before { position: absolute; left: 1rem; top: 1rem; font: 700 0.95rem/1 var(--f-mono); width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%; }
.note { background: var(--teal-tint); }
.note::before { content: 'i'; background: var(--teal); color: var(--bg); }
.caution { background: var(--amber-tint); }
.caution::before { content: '!'; background: var(--amber); color: #2a1a00; }
.warning { background: var(--danger-tint); border-left: 4px solid var(--danger); }
.warning::before { content: '!'; background: var(--danger); color: #fff; }
.note > * + *, .caution > * + *, .warning > * + * { margin-top: 0.5rem; }

/* Windows 11 / 10 variants */
.os { border-left: 3px solid var(--line); padding-left: 1.1rem; }
.os > * + * { margin-top: 0.9rem; }
.os__label { font: 700 0.75rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.os-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.os-switch__label { font-weight: 650; }
.os-switch [role='group'] { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.os-switch button { min-height: 40px; padding: 0.35rem 0.95rem; border: 0; background: var(--paper); color: var(--ink); font: 600 0.95rem var(--f-text); cursor: pointer; }
.os-switch button + button { border-left: 1px solid var(--line); }
.os-switch button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.os-switch__hint { font-size: 0.88rem; color: var(--ink-3); }
html[data-os='11'] .os[data-os='10'], html[data-os='10'] .os[data-os='11'] { display: none; }
html[data-os] .os { border-left: 0; padding-left: 0; }
html[data-os] .os__label { display: none; }

/* Escalation & sources */
.escalate { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 1.5rem; scroll-margin-top: 1rem; }
.escalate h2 { font-size: 1.4rem; font-weight: 750; }
.escalate > p { margin-top: 0.5rem; color: var(--ink-2); }
.escalate__list { margin-top: 1.1rem; display: grid; gap: 0.6rem; }
.escalate__list li > a, .escalate__list li > div { display: grid; gap: 0.15rem; padding: 0.85rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; position: relative; }
.escalate__list li > a { padding-right: 2.5rem; }
.escalate__list li > a:hover { border-color: var(--teal); }
.escalate__list li > a .i--ext { position: absolute; right: 1rem; top: 1.05rem; color: var(--teal); }
.escalate__list span { color: var(--ink-2); font-size: 0.95rem; }
.escalate__warn { display: flex; gap: 0.75rem; margin-top: 1.1rem; padding: 0.9rem 1rem; border-radius: var(--r-sm); background: var(--bg-2); font-size: 0.95rem; }
.escalate__warn .i { width: 1.4rem; height: 1.4rem; color: var(--teal); margin-top: 0.1rem; }
.sources { font-size: 0.95rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1.25rem; }
.sources h2 { font: 700 0.78rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem; }
.sources ul { margin-block: 0.5rem 0.8rem; display: grid; gap: 0.35rem; }
.sources li::before { content: '›'; color: var(--amber-ink); font-weight: 700; margin-right: 0.5rem; }

.related { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.related h2 { margin-bottom: 1.25rem; }

/* ---------- Category, index, filter ---------- */
.cat { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 1rem + 4vw, 4.5rem); padding-block: 2rem 3.5rem; }
.cat__main { display: grid; gap: 2rem; align-content: start; }
.cat__aside { display: grid; gap: 1.25rem; align-content: start; }
.symptoms h2 { margin-bottom: 0.8rem; }
.box { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 1.2rem 1.25rem 1.3rem; }
.box p { margin-block: 0.5rem 1rem; color: var(--ink-2); font-size: 0.98rem; }
.box h2 + ul { margin-top: 0.75rem; }
.catlist a { display: flex; align-items: center; gap: 0.65rem; padding: 0.4rem 0; color: var(--ink); text-decoration: none; font-size: 0.96rem; }
.catlist a:hover { color: var(--teal); text-decoration: underline; }
@media (max-width: 900px) { .cat { grid-template-columns: 1fr; } }

.filter { margin-block: 2rem 1.5rem; max-width: 40rem; }
.filter__label { display: block; font-weight: 650; margin-bottom: 0.5rem; }
.filter input { width: 100%; min-height: 52px; padding: 0.7rem 1rem; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: 1.08rem var(--f-text); }
.filter--big input { font: 500 1.25rem var(--f-mono); min-height: 60px; }
.filter__status { margin-top: 0.6rem; font-size: 0.92rem; color: var(--ink-3); min-height: 1.4em; }
.filter__empty { margin-block: 1rem 3rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.jump ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.jump a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--ink-2); text-decoration: none; padding: 0.25rem 0; }
.jump a:hover { color: var(--teal); }
.group { padding-block: 2rem 0.5rem; scroll-margin-top: 1rem; }
.group:last-of-type { padding-bottom: 3rem; }
.group__h { display: flex; align-items: center; gap: 0.75rem; font-size: 1.35rem; font-weight: 750; margin-bottom: 1rem; }
.group__h a { color: var(--ink); text-decoration: none; }
.group__h a:hover { color: var(--teal); text-decoration: underline; }
.group__n { margin-left: auto; font: 500 0.9rem/1 var(--f-mono); color: var(--ink-3); }
.kinds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

/* Error codes */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 0.75rem; }
.code { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 1rem 1.1rem 1.1rem; display: grid; gap: 0.5rem; align-content: start; scroll-margin-top: 1rem; }
.code:target { outline: 3px solid var(--amber); outline-offset: 2px; }
.code__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; }
.code__id code { background: var(--panel); color: var(--panel-ink); font-size: 1rem; font-weight: 600; padding: 0.2em 0.55em; }
.code__name { font: 600 0.85rem/1.3 var(--f-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.code__meaning { font-size: 0.98rem; }
.code__try { font-size: 0.93rem; color: var(--ink-2); }
.code__more { font-size: 0.93rem; font-weight: 600; }

.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 0 2.5rem; padding-block: 2rem 3.5rem; }
.gloss > div { padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.gloss dt { font: 700 1.1rem/1.3 var(--f-display); }
.gloss dd { margin: 0.35rem 0 0; color: var(--ink-2); }
.gloss > div:target { background: var(--amber-tint); }

/* Text pages */
.tpage { padding-block: 2.5rem 4rem; display: grid; grid-template-columns: minmax(0, var(--measure)); }
.tpage--toc { grid-template-columns: 16rem minmax(0, var(--measure)); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.tpage--toc .rail { position: sticky; top: 1.25rem; }
@media (max-width: 1000px) { .tpage--toc { grid-template-columns: minmax(0, 1fr); } .tpage--toc .rail { position: static; } }

/* ---------- Tools ---------- */
.hub { padding-block: 2.5rem 4rem; display: grid; gap: 2.5rem; }
.truth { max-width: 62rem; padding: 1.5rem 1.6rem; border-radius: var(--r); background: var(--ink); color: var(--bg); }
.truth h2 { color: var(--bg); font-size: 1.4rem; margin-bottom: 0.7rem; }
.truth p + p { margin-top: 0.7rem; }
.truth p { color: color-mix(in srgb, var(--bg) 88%, transparent); }
@media (prefers-color-scheme: dark) { .truth { background: var(--panel); color: var(--panel-ink); box-shadow: inset 0 0 0 1px var(--panel-line); } .truth h2, .truth p { color: var(--panel-ink); } }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.toolcard a { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.5rem; padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.toolcard a:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .toolcard a:hover { transform: translateY(-2px); } }
.toolcard__n { font: 600 0.8rem/1 var(--f-mono); color: var(--amber-ink); }
@media (prefers-color-scheme: dark) { .toolcard__n { color: var(--amber); } }
.toolcard__title { font: 750 1.25rem/1.25 var(--f-display); }
.toolcard__desc { color: var(--ink-2); font-size: 0.98rem; }
.toolcard__go { font-weight: 650; color: var(--teal); }

.tool { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 1rem + 4vw, 4.5rem); padding-block: 2rem 4rem; }
.tool--wide { grid-template-columns: minmax(0, 1fr) 19rem; }
.tool__main { display: grid; gap: 2rem; align-content: start; min-width: 0; }
.tool__aside { display: grid; gap: 1.25rem; align-content: start; }
.tool__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.tool__hint { width: 100%; font-size: 0.9rem; color: var(--ink-3); }
.tool__more h2, .notes h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.tool__more p { color: var(--ink-2); }
@media (max-width: 1000px) { .tool, .tool--wide { grid-template-columns: minmax(0, 1fr); } }

.sees { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 1.15rem 1.2rem 1.2rem; font-size: 0.95rem; }
.sees__h { font: 700 0.75rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sees__h + .sees__list { margin-top: 0.65rem; }
.sees__list + .sees__h { margin-top: 1.2rem; }
.sees__list { display: grid; gap: 0.45rem; }
.sees__list li { position: relative; padding-left: 1.6rem; }
.sees__list li::before { position: absolute; left: 0; top: 0.12rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; display: grid; place-items: center; font: 700 0.72rem/1 var(--f-mono); }
.sees__list--yes li::before { content: '✓'; background: var(--ok-tint); color: var(--ok); }
.sees__list--no li::before { content: '×'; background: var(--danger-tint); color: var(--danger); font-size: 0.9rem; }
.sees__foot { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.9rem; }

.notes__list { display: grid; gap: 0.75rem; }
.notes__list li { padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--r-sm); background: var(--paper); }
.notes__list li.is-amber { border-left-color: var(--amber); }
.notes__list strong { display: block; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 0.2rem; }
.notes__list p { color: var(--ink-2); font-size: 0.98rem; }

/* Health check */
.hc-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); position: sticky; top: 0.5rem; z-index: 5; }
.meter { flex: 1 1 12rem; height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); transition: transform 0.3s; }
.hc-group__h { font-size: 1.55rem; font-weight: 780; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
.hc-group__h span { font: 500 0.88rem/1 var(--f-mono); color: var(--ink-3); }
.hc-group__intro { margin-top: 0.4rem; color: var(--ink-2); }
.hc-list { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.hc { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 1.35rem 1.4rem 1.2rem; display: grid; gap: 1rem; scroll-margin-top: 5rem; }
.hc:target { outline: 3px solid var(--amber); outline-offset: 2px; }
.hc.is-done { background: var(--surface); }
.hc.is-done .hc__n { background: var(--ok); color: #fff; }
.hc__head { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: center; }
.hc__n { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--ink); color: var(--amber); font: 700 1rem/1 var(--f-mono); }
.hc__title { font-size: 1.25rem; font-weight: 750; }
.hc__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; font-size: 0.9rem; color: var(--ink-3); }
.hc__why { color: var(--ink-2); }
.hc__results { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hc__results > div { padding: 0.8rem 0.95rem; border-radius: var(--r-sm); font-size: 0.96rem; }
.hc__results dt { display: flex; align-items: center; gap: 0.4rem; font: 700 0.75rem/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }
.hc__results dd { margin: 0; }
.hc__good { background: var(--ok-tint); }
.hc__good dt { color: var(--ok); }
.hc__bad { background: var(--bg-2); }
.hc__bad dt { color: var(--ink-2); }
.hc__link { font-weight: 650; }
.hc__done label { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; cursor: pointer; min-height: 44px; }
.hc__done input, .w11 input[type='radio'] { width: 1.3rem; height: 1.3rem; accent-color: var(--teal); }
@media (max-width: 640px) { .hc__results { grid-template-columns: 1fr; } .hc { padding: 1.1rem; } }

/* Report reader */
.rr { display: grid; gap: 1rem; }
.rr--battery { padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.rr textarea { width: 100%; min-height: 13rem; resize: vertical; padding: 1rem 1.1rem; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--panel); color: var(--panel-ink); font: 0.95rem/1.55 var(--f-mono); }
.rr textarea::placeholder { color: var(--panel-ink-2); opacity: 1; }
.rr__actions, .rr__file { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.75rem; }
.rr__file label { cursor: pointer; }
.rr__file input:focus-visible + .rr__filename, .rr__file:focus-within label { outline: 3px solid var(--amber); outline-offset: 2px; }
.rr__filename { font: 0.9rem var(--f-mono); color: var(--ink-3); }
.rr__out:empty { display: none; }
.result { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.result__head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.result__kind { font: 700 0.72rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.result__title { font-size: 1.3rem; font-weight: 750; margin-top: 0.35rem; }
.result__body { padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: 0.9rem; }
.result code { white-space: nowrap; }
.result dl { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.result dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-2); }
.result dt { font: 600 0.75rem/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.result dd { margin: 0; overflow-wrap: anywhere; }
.result dd small { display: block; color: var(--ink-2); font-size: 0.9rem; margin-top: 0.15rem; }
.result .next { padding: 0.85rem 1rem; border-radius: var(--r-sm); background: var(--teal-tint); }
.result .next.is-amber { background: var(--amber-tint); }
.result .next.is-ok { background: var(--ok-tint); }
.result .next strong { display: block; margin-bottom: 0.2rem; }
@media (max-width: 640px) { .result dl > div { grid-template-columns: 1fr; gap: 0.2rem; } }
.rr-help h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.rr-help__list { display: grid; gap: 1.25rem; }
.rr-help__list > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.rr-help__list dt { font-weight: 700; }
.rr-help__list dd { margin: 0; display: grid; gap: 0.6rem; }
.rr-help__list dd p { color: var(--ink-2); font-size: 0.96rem; }
.rr-help .tool__hint { margin-top: 1.25rem; }
@media (max-width: 640px) { .rr-help__list > div { grid-template-columns: 1fr; } }

/* Symptom finder */
.sf { max-width: 46rem; }
.sf__trail { font-size: 0.92rem; color: var(--ink-3); margin-bottom: 1rem; }
.sf__trail button { font: inherit; background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; }
.sf__node { padding-block: 0.5rem 2rem; scroll-margin-top: 1rem; }
.sf.is-ready .sf__node { display: none; }
.sf.is-ready .sf__node.is-active { display: block; }
.sf__node + .sf__node { border-top: 1px solid var(--line); padding-top: 2rem; }
.sf.is-ready .sf__node + .sf__node { border-top: 0; padding-top: 0.5rem; }
.sf__q { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 780; margin-bottom: 1.25rem; }
.sf__q:focus { outline: none; }
.sf__opts { display: grid; gap: 0.6rem; }
.sf__opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.85rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.sf__opt:hover { border-color: var(--ink); color: var(--ink); }
.sf__opt .i--arrow { color: var(--teal); }
.sf__again { margin-top: 1.25rem; }

/* Windows 11 readiness */
.w11 { display: grid; gap: 1rem; }
.w11__req { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 1.15rem 1.3rem 1.2rem; margin: 0; display: grid; gap: 0.7rem; scroll-margin-top: 1rem; }
.w11__req legend { float: left; width: 100%; display: flex; align-items: center; gap: 0.75rem; font: 750 1.2rem/1.3 var(--f-display); padding: 0; }
.w11__req legend + * { clear: both; }
.w11__n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 6px; background: var(--ink); color: var(--amber); font: 700 0.9rem/1 var(--f-mono); }
.w11__need, .w11__how { font-size: 0.98rem; }
.w11__how { color: var(--ink-2); }
.w11__hint { font-size: 0.93rem; padding: 0.6rem 0.85rem; border-radius: var(--r-sm); background: var(--teal-tint); }
.w11__answers { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.w11__answers label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; font-weight: 550; }
.w11__req.is-yes { border-color: var(--ok); }
.w11__req.is-no { border-color: var(--danger); }
.w11__result { display: block; }
.w11__result:empty { display: none; }
.verdict { border-radius: var(--r); padding: 1.25rem 1.35rem; background: var(--panel); color: var(--panel-ink); }
.verdict h2 { color: var(--panel-ink); font-size: 1.35rem; margin-bottom: 0.5rem; }
.verdict p + p { margin-top: 0.5rem; }
.verdict a { color: var(--panel-accent); }
.verdict.is-ready h2::before { content: '✓ '; color: var(--panel-accent); }

/* ---------- Footer ---------- */
.foot { margin-top: 0; background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, transparent); padding-block: 3rem 2rem; font-size: 0.95rem; }
@media (prefers-color-scheme: dark) { .foot { background: var(--panel); color: var(--panel-ink-2); border-top: 1px solid var(--panel-line); } }
.foot a { color: var(--bg); text-decoration: none; }
.foot a:hover { color: var(--amber); text-decoration: underline; }
@media (prefers-color-scheme: dark) { .foot a { color: var(--panel-ink); } }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot__about p { margin-top: 1rem; max-width: 42ch; }
.foot__notice { font-size: 0.86rem; opacity: 0.85; }
.brand--foot { --mark-bg: var(--bg); --mark-line: var(--ink); color: var(--bg); }
@media (prefers-color-scheme: dark) { .brand--foot { --mark-bg: var(--panel-ink); --mark-line: var(--panel); color: var(--panel-ink); } }
.foot__h { font: 700 0.75rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
.foot__col li + li { margin-top: 0.5rem; }
.foot__base { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: 0.88rem; }
.foot__never { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.04em; }
.foot .linklike { color: var(--bg); }
@media (max-width: 1000px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Consent ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--paper); border-top: 2px solid var(--ink); box-shadow: 0 -12px 30px -18px rgb(0 0 0 / 0.4); }
.consent__sheet { padding-block: 1.1rem 1.25rem; display: grid; gap: 0.75rem; }
.consent__h { font-size: 1.15rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent__form { display: grid; gap: 0.6rem; }
.consent__row { display: flex; gap: 0.6rem; align-items: flex-start; }
.has-consent body { padding-bottom: var(--consent-h, 0); }

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --paper: #fff; --ink: #000; --ink-2: #222; }
  .strip, .masthead, .foot, .aside, .related, .os-switch, .cmd__copy, .cmd__how, .tool__aside, .tool__actions, .hc__done, .hc-progress, .consent, .fix__next { display: none !important; }
  .agrid, .tool { display: block; }
  .readout, .cmd { background: #fff !important; color: #000 !important; box-shadow: none; border: 1px solid #999; }
  .readout *, .cmd * { color: #000 !important; }
  a { color: #000; }
  .fix, .hc { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Long unbroken strings (URLs, STOP_CODE_NAMES) must wrap rather than widen the page on phones. */
.prose a, .ahead h1, .band-head h1, .row__title, .code__name, .rail__t, .escalate__list span { overflow-wrap: anywhere; }
