/* v9: an institutional publication. Normal mode reads like an official guidance page;
   emergency mode is the same identity after the power cut: dark, low-power, yellow as signal. */

:root {
  --blue: #004494;
  --blue-dark: #082b7a;
  --blue-ink: #0b1f4a;
  --yellow: #ffd617;
  --red: #da2131;
  --green: #467a39;

  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --text: #262b38;
  --text-2: #515560;
  --line: #cfd2d8;
  --line-soft: #e3e5e9;
  --link: #004494;
  --accent: #004494;          /* buttons, focus, numbers */
  --on-accent: #ffffff;
  --head-bg: #004494;         /* page head band */
  --head-text: #ffffff;
  --menu-bg: #ffffff;
  --menu-text: #004494;
  --check: #004494;
  --ok: #467a39;
  --focus: #ffd617;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-mode="emergency"] {
  --bg: #070b16;
  --bg-alt: #0d1426;
  --surface: #0f172b;
  --text: #e6e9f0;
  --text-2: #9aa3b8;
  --line: #27324d;
  --line-soft: #1a2440;
  --link: #ffd617;
  --accent: #ffd617;
  --on-accent: #070b16;
  --head-bg: #0b1226;
  --head-text: #ffffff;
  --menu-bg: #070b16;
  --menu-text: #e6e9f0;
  --check: #ffd617;
  --ok: #7fc06b;
  --focus: #ffffff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--blue-ink); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Honesty strip ─────────────────────────────────── */
.notice-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.howknow summary { list-style: none; cursor: pointer; padding: 8px 0; color: var(--text-2); }
.howknow summary::-webkit-details-marker { display: none; }
.howknow summary b { color: var(--text); }
.howknow-q { color: var(--link); text-decoration: underline; white-space: nowrap; }
.howknow-q::after { content: " ▾"; text-decoration: none; display: inline-block; }
.howknow[open] .howknow-q::after { content: " ▴"; }
.howknow-body { padding: 4px 0 14px; max-width: 70ch; color: var(--text); }
.howknow-body p { margin: 0 0 8px; }

/* ── Emergency alert strip ─────────────────────────── */
.alert-strip { display: none; background: var(--yellow); color: #0b0b0b; font-size: 14px; font-weight: 700; }
:root[data-mode="emergency"] .alert-strip { display: block; }
.alert-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.alert-row svg { width: 22px; height: 22px; stroke-width: 2.2; flex: none; }
.alert-row .alert-clock { margin-left: auto; font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.alert-row .alert-text { font-weight: 400; }
.alert-row .alert-text b { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.hazard { height: 6px; background: repeating-linear-gradient(-45deg, #0b0b0b 0 10px, var(--yellow) 10px 20px); display: none; }
:root[data-mode="emergency"] .hazard { display: block; }

/* ── Header ────────────────────────────────────────── */
.site-header { background: var(--bg); }
.site-header-row { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  background: var(--blue); color: #fff; font: 700 24px/1 var(--font); letter-spacing: -.02em;
  border-bottom: 8px solid var(--yellow); padding-top: 6px;
}
:root[data-mode="emergency"] .brand-mark { background: var(--yellow); color: #070b16; border-bottom-color: #070b16; box-shadow: inset 0 -8px 0 #070b16, 0 0 0 1px var(--yellow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 22px; letter-spacing: -.01em; }
.brand-text span { font-size: 14px; color: var(--text-2); }
.head-tools { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; }

.ship { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.ship svg { width: 20px; height: 20px; color: var(--link); }
.ship select {
  font: 700 14px var(--font); color: var(--link); background: transparent; border: 0; border-bottom: 2px solid var(--link);
  padding: 4px 18px 4px 2px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 6px top 55%, right 1px top 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.ship select option { color: #000; background: #fff; }

/* Emergency switch */
.mode-switch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 2px solid var(--text);
  background: transparent; color: var(--text); font: 700 14px var(--font); padding: 6px 12px 6px 8px;
}
.mode-switch .knob { position: relative; width: 36px; height: 20px; background: var(--line); border-radius: 0; flex: none; transition: background .2s; }
.mode-switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--bg); transition: transform .2s; }
.mode-switch[aria-checked="true"] { border-color: var(--yellow); color: var(--yellow); }
.mode-switch[aria-checked="true"] .knob { background: var(--yellow); }
.mode-switch[aria-checked="true"] .knob::after { transform: translateX(16px); background: #070b16; }

.menu { background: var(--menu-bg); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.menu .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.menu .wrap::-webkit-scrollbar { display: none; }
.menu a {
  color: var(--menu-text); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
  padding: 14px 16px 11px; border-bottom: 3px solid transparent;
}
.menu a:first-child { margin-left: -16px; }
.menu a:hover, .menu a.is-cur { border-bottom-color: var(--accent); }

/* ── Page head ─────────────────────────────────────── */
.page-head { background: var(--head-bg); color: var(--head-text); padding: 20px 0 40px; position: relative; overflow: hidden; }
:root[data-mode="emergency"] .page-head { border-bottom: 1px solid var(--line); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 32px; font-size: 14px; }
.crumbs li { display: flex; align-items: center; color: rgba(255,255,255,.85); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); margin: 0 12px 0 8px; opacity: .8; }
.crumbs a { color: #fff; }
.page-kicker { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); font-weight: 700; }
.page-head h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.02em; max-width: 20ch; }
:root[data-mode="emergency"] .page-head h1 [data-h1-normal] { display: none; }
[data-h1-emergency] { display: none; }
:root[data-mode="emergency"] .page-head h1 [data-h1-emergency] { display: inline; }
.page-lede { margin: 0 0 28px; font-size: 19px; line-height: 1.5; max-width: 62ch; color: rgba(255,255,255,.92); }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); font-size: 14px; }
.page-meta div { display: flex; gap: 6px; }
.page-meta dt { color: rgba(255,255,255,.75); }
.page-meta dt::after { content: ":"; }
.page-meta dd { margin: 0; font-weight: 700; }

/* ── Layout ────────────────────────────────────────── */
.layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 996px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 48px; }
  .side { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
}
.main { min-width: 0; }

.toc { display: none; }
@media (min-width: 996px) { .toc { display: block; margin-bottom: 24px; } }
.toc-title { font-weight: 700; margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol > li > a { display: block; padding: 7px 0 7px 14px; border-left: 3px solid var(--line-soft); text-decoration: none; color: var(--text); font-size: 15px; }
.toc a.is-cur { border-left-color: var(--accent); font-weight: 700; color: var(--link); }
.toc-parts a { display: flex; gap: 8px; padding: 4px 0 4px 28px; border-left: 3px solid var(--line-soft); text-decoration: none; color: var(--text-2); font-size: 14px; }
.toc-parts a.is-cur { border-left-color: var(--accent); color: var(--link); }
.toc-parts .ok { color: var(--ok); margin-left: auto; font-weight: 700; }

/* Status card: at the top on mobile, sticky in the sidebar on desktop */
.status-card { border: 1px solid var(--line); border-top: 4px solid var(--accent); background: var(--surface); padding: 16px 18px; }
.status-title { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 700; }
.status-big { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.status-card.is-ok .status-big { color: var(--ok); }
.gauge { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 3px; margin-bottom: 10px; }
.gauge i { height: 10px; background: var(--line-soft); }
.gauge i.on { background: var(--accent); }
.status-small { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.status-small span { color: var(--text); font-weight: 700; }
.status-link { font-size: 14px; font-weight: 700; }

/* ── Sections ──────────────────────────────────────── */
.sec { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line-soft); }
.sec:last-child { border-bottom: 0; margin-bottom: 0; }
.sec > p { max-width: 70ch; }
.sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
.sec-n { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 38px; background: var(--accent); color: var(--on-accent); font-size: 20px; transform: translateY(-3px); }
h3.sub { font-size: 20px; margin: 32px 0 12px; }
.small { font-size: 14px; color: var(--text-2); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0; }
.fact { background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.fact b { font-size: 30px; line-height: 1; color: var(--link); letter-spacing: -.02em; }
.fact span { font-size: 14px; color: var(--text-2); }

.callout { display: flex; gap: 14px; padding: 16px 18px; background: var(--bg-alt); border-left: 6px solid var(--accent); margin: 24px 0 0; max-width: 78ch; }
.callout svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 1px; }
.callout p { margin: 0; }
.kit-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; margin: 20px 0 8px; background: var(--bg-alt); border-left: 6px solid var(--accent); }
.kit-all[hidden] { display: none; }
.kit-all p { margin: 0; }
.kit-all-title { font-weight: 700; font-size: 18px; }
.kit-all .btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.kit-all .tag-sponsored { background: transparent; color: inherit; border-color: currentColor; }
.callout p + p { margin-top: 4px; }
.callout-title { font-weight: 700; }
.callout-warn { border-left-color: var(--yellow); }
.callout-warn svg { color: #8a6d00; }
:root[data-mode="emergency"] .callout-warn svg { color: var(--yellow); }

/* ── Form ──────────────────────────────────────────── */
.form { display: grid; gap: 28px; margin-top: 24px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.field > label, .field legend { font-weight: 700; padding: 0; }
.help { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.field-where { margin-bottom: 28px; max-width: 360px; }
.select { min-height: 44px; padding: 8px 36px 8px 12px; font: 700 16px var(--font); color: var(--text); background-color: var(--surface); border: 1px solid var(--text-2); border-radius: 0; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--link) 50%), linear-gradient(135deg, var(--link) 50%, transparent 50%);
  background-position: right 16px top 50%, right 10px top 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.num { display: inline-flex; border: 1px solid var(--text-2); width: max-content; }
.num button { width: 44px; height: 44px; border: 0; background: var(--bg-alt); color: var(--link); font: 700 22px var(--font); cursor: pointer; }
.num button:hover { background: var(--accent); color: var(--on-accent); }
.num input { width: 56px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 700 18px var(--font); color: var(--text); background: var(--surface); -moz-appearance: textfield; }
.num input::-webkit-inner-spin-button, .num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.radios label, .checks label { position: relative; cursor: pointer; }
.radios input, .checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radios label > span { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--text-2); padding: 12px 14px 12px 44px; background: var(--surface); height: 100%; }
.radios label > span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border: 2px solid var(--text-2); border-radius: 50%; background: var(--surface); }
.radios input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.radios input:checked + span::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, var(--surface) 5px); }
.radios small { color: var(--text-2); font-size: 13px; }
.radios input:focus-visible + span, .checks input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.checks label > span { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; }
.checks label > span::before { content: ""; width: 22px; height: 22px; border: 2px solid var(--text-2); background: var(--surface); flex: none; }
.checks input:checked + span::before { border-color: var(--check); background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/16px no-repeat; }
:root[data-mode="emergency"] .checks input:checked + span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='%23070b16' stroke-width='3'/%3E%3C/svg%3E"); }

/* ── Checklist ─────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text-2); margin: 16px 0 24px; align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; display: inline-block; }
.lg-ess { background: var(--accent); }
.lg-rec { border: 2px solid var(--text-2); }
.cc { display: inline-block; font: 700 11px/1 var(--mono); padding: 3px 4px; border: 1px solid var(--line); color: var(--text-2); letter-spacing: .04em; }
.tag-sponsored { display: inline-block; font: 700 10px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; padding: 3px 5px; background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--line); vertical-align: 1px; }

.part { border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; scroll-margin-top: 16px; }
.part-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.part-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--blue); color: #fff; }
:root[data-mode="emergency"] .part-icon { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.part-icon svg { width: 24px; height: 24px; }
.part-head h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.part-head .part-code { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); font-weight: 700; margin-bottom: 2px; }
.part-count { margin-left: auto; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.part-count b { color: var(--text); }
.part.is-ok .part-count { color: var(--ok); font-weight: 700; }
.part.is-ok .part-count::before { content: "✓ "; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 14px; padding: 16px 18px; border-top: 1px solid var(--line-soft); }
.row:first-child { border-top: 0; }
@media (min-width: 720px) { .row { grid-template-columns: 156px minmax(0, 1fr) 210px; } }
.row-check { grid-row: 3; margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media (min-width: 720px) { .row-check { grid-row: 1 / span 2; margin-top: 0; padding-top: 1px; } }
.add-btn { display: block; max-width: 100%; cursor: pointer; }
.add-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.add-btn > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 100px; max-width: 100%; height: 38px; padding: 0 10px; box-sizing: border-box; background: var(--yellow); color: #0b0b0b; border: 2px solid #0b0b0b; border-radius: 4px; box-shadow: 0 3px 0 #0b0b0b; transition: transform .08s, box-shadow .08s, background .15s; }
.add-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.add-btn b { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; line-height: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-btn .add-on { display: none !important; }
.add-btn:hover > span { background: #ffe14d; }
.add-btn:active > span { transform: translateY(3px); box-shadow: 0 0 0 #0b0b0b; }
.add-btn input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.add-btn input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue-ink); box-shadow: 0 1px 0 var(--blue-ink); transform: translateY(2px); }
.add-btn input:checked + span .add-off { display: none !important; }
.add-btn input:checked + span .add-on { display: block !important; }
.add-btn svg.add-on { stroke-width: 3; }
:root[data-mode="emergency"] .add-btn > span { border-color: var(--yellow); box-shadow: 0 3px 0 #000; }
:root[data-mode="emergency"] .add-btn input:checked + span { background: transparent; color: var(--yellow); border-color: var(--yellow); box-shadow: none; }
.row-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 700; font-size: 17px; cursor: pointer; }
.row-name .badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; }
.badge-ess { background: var(--accent); color: var(--on-accent); }
.badge-rec { border: 1px solid var(--text-2); color: var(--text-2); }
.row-detail { margin: 2px 0 0; font-size: 15px; color: var(--text-2); max-width: 62ch; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; align-items: center; }
.row-qty { font-weight: 700; }
.row-qty::before { content: attr(data-label) " "; font-weight: 400; color: var(--text-2); }
/* −/+ for how many of the pick go in the Amazon basket */
.buy-qty { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.buy-qty b { min-width: 2ch; text-align: center; color: var(--text); }
.buy-qty button {
  width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  font: 700 16px/1 inherit; color: var(--link); background: transparent;
  border: 1px solid currentColor; border-radius: 2px; cursor: pointer;
}
.buy-qty button:hover:not(:disabled) { background: var(--link); color: var(--on-accent, #fff); }
.buy-qty button:disabled { opacity: .35; cursor: default; }
.is-have .buy-qty { display: none; }
.row-src { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.row-src-rest { display: contents; }
.row-src-rest[hidden] { display: none; }
.cc-you { border-color: var(--accent); color: var(--accent); }
.cc-more { background: var(--bg-alt); border-style: dashed; cursor: pointer; }
.cc-more:hover { color: var(--text); border-color: var(--text-2); }
.row-buy { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin-top: 10px; }
@media (min-width: 720px) { .row-buy { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; padding-left: 16px; border-left: 1px solid var(--line-soft); } }
.row-buy .pick { color: var(--text-2); }
.row-buy .pick b { color: var(--text); font-weight: 700; }
.row-buy .pick-link { display: inline; color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-soft); text-underline-offset: 3px; }
.row-buy .pick-link:hover { text-decoration-color: currentColor; }
.row-buy a:not(.pick-link) { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.row-buy a svg { width: 14px; height: 14px; stroke-width: 2.2; }
.row-buy .where { color: var(--text-2); }
.row-buy .where b { color: var(--text); }
.row.is-have .row-name > span:first-child { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--ok); }
.row.is-have > * { opacity: .35; }
.have-pick { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 6px; font-size: 14px; white-space: nowrap; line-height: 1.3; font-weight: 700; color: var(--text); cursor: pointer; }
.have-pick input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--check); }
.row.is-rec { background: var(--bg-alt); }

.more { border-top: 1px solid var(--line); }
.more summary { cursor: pointer; padding: 12px 18px; font-weight: 700; font-size: 14px; color: var(--link); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "− "; }

/* ── Summary ───────────────────────────────────────── */
.result { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 640px) { .result { grid-template-columns: 1.1fr 1fr; } }
.result-main { padding: 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .result-main { border-bottom: 0; border-right: 1px solid var(--line); } }
.result-label { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 700; }
.result-value { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.result.is-ok .result-value { color: var(--ok); }
.result-note { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.result-side { padding: 22px; display: grid; gap: 14px; align-content: start; }
.result-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.result-side dt { color: var(--text-2); }
.result-side dd { margin: 0; font-weight: 700; text-align: right; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; background: var(--bg-alt); border-bottom: 2px solid var(--accent); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.table td:first-child { font-weight: 700; }
.table td small { display: block; font-weight: 400; color: var(--text-2); }
.table .empty td { text-align: center; color: var(--ok); font-weight: 700; padding: 24px; }
.table a { font-weight: 700; white-space: nowrap; }
/* Sources: fit the column instead of scrolling sideways. */
.table-sources a { white-space: normal; overflow-wrap: anywhere; }
.table-sources th, .table-sources td { padding-left: 10px; padding-right: 10px; }
.table-sources td:nth-child(n+4) { white-space: nowrap; }
@media (max-width: 599px) { .table-sources th:first-child, .table-sources td:first-child { display: none; } .table-sources th { white-space: normal; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; font: 700 16px var(--font); cursor: pointer; text-decoration: none; border: 2px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
:root[data-mode="emergency"] .btn-primary:hover { background: #fff; border-color: #fff; }
.btn-secondary { background: transparent; color: var(--link); }
/* Same look as "Email me my list". */
.btn-outline { background: var(--surface); color: var(--link); border-color: var(--link); border-radius: 4px; font-size: 17px; transition: background .15s; }
.btn-outline:hover { background: var(--bg-alt); }
.btn-outline svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.btn-secondary:hover { background: var(--bg-alt); }


/* ── Footer ────────────────────────────────────────── */
.site-footer { background: var(--blue); color: #fff; font-size: 14px; }
:root[data-mode="emergency"] .site-footer { background: #000; border-top: 1px solid var(--line); }
.site-footer a { color: #fff; }
.footer-cols { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.footer-cols p { margin: 0 0 8px; color: rgba(255,255,255,.88); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: #fff !important; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 16px; border-bottom-width: 5px; padding-top: 4px; }
.footer-h { font-weight: 700; color: #fff !important; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.footer-base { background: var(--blue-dark); padding: 14px 0; color: rgba(255,255,255,.8); }
:root[data-mode="emergency"] .footer-base { background: #000; border-top: 1px solid var(--line); }

/* ── Public information posters ────────────────────────
   Home-front register: flat colour, condensed caps, a mark where the crown would sit.
   Calm EU blue in normal mode; wartime red once the lights go out. */
:root {
  --poster-font: Oswald, "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --pa-bg: #004494; --pa-fg: #ffffff; --pa-em: #ffd617;
  --pb-bg: #ffd617; --pb-fg: #0b1f4a; --pb-em: #004494;
  --pc-bg: #f3efe4; --pc-fg: #004494; --pc-em: #0b1f4a;
}
:root[data-mode="emergency"] {
  --pa-bg: #c8202c; --pa-fg: #fff6e8; --pa-em: #ffffff;
  --pb-bg: #ffd617; --pb-fg: #0b0b0b; --pb-em: #c8202c;
  --pc-bg: #0b0b0b; --pc-fg: #ffd617; --pc-em: #ffffff;
}
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; margin: 32px 0 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
@media (max-width: 719px) { .posters { grid-auto-columns: 72%; margin-right: -16px; padding-right: 16px; } }
.poster, .poster-band {
  position: relative; margin: 0; isolation: isolate; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-family: var(--poster-font); text-transform: uppercase;
}
.poster::before, .poster-band::before { content: ""; position: absolute; inset: 0; background: var(--paper); opacity: .14; mix-blend-mode: multiply; z-index: -1; pointer-events: none; }
.poster::after, .poster-band::after { content: ""; position: absolute; inset: 8px; border: 2px solid currentColor; opacity: .35; pointer-events: none; }
.poster { aspect-ratio: 3 / 4; padding: 26px 18px 14px; }
.poster-a { background: var(--pa-bg); color: var(--pa-fg); --em: var(--pa-em); }
.poster-b { background: var(--pb-bg); color: var(--pb-fg); --em: var(--pb-em); }
.poster-c { background: var(--pc-bg); color: var(--pc-fg); --em: var(--pc-em); }
.poster-mark {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: 3px solid currentColor; font: 700 22px/1 var(--poster-font); letter-spacing: 0; margin-bottom: auto;
}
.poster-icon { width: 46px; height: 46px; stroke-width: 1.6; margin-bottom: auto; }
.poster-text { margin: 14px 0; font-weight: 600; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.08; letter-spacing: .02em; }
.poster-text u { text-decoration-thickness: 3px; text-underline-offset: 4px; }
.poster-text strong { display: block; margin-top: 10px; font-weight: 700; font-size: 1.22em; line-height: 1; color: var(--em); }
.poster figcaption, .poster-band figcaption { margin-top: auto; font: 500 9.5px/1.2 var(--poster-font); letter-spacing: .14em; opacity: .75; }

.poster-band { margin-top: 36px; padding: 30px 20px 18px; background: var(--pa-bg); color: var(--pa-fg); --em: var(--pa-em); }
.poster-band .poster-mark { margin-bottom: 0; }
.poster-band .poster-text { font-size: clamp(24px, 3.4vw, 34px); }
.poster-band .poster-text strong { font-size: 1.5em; }
@media print { .posters, .poster-band { display: none !important; } }

.row { scroll-margin-top: 80px; }
.row.is-flash { animation: row-flash 2.4s ease-out; }
@keyframes row-flash { 0%, 40% { background: color-mix(in srgb, var(--yellow) 35%, transparent); } 100% { background: transparent; } }

/* ── Sticky basket + sidebar "Email me my list" ─────── */
.mailme { position: fixed; right: 16px; bottom: 16px; z-index: 15; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100% - 32px); }
.basket-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; background: var(--yellow); color: var(--blue-ink); border: 2px solid var(--blue-ink); font: 700 16px var(--font); text-decoration: none; box-shadow: 0 6px 18px rgba(11, 31, 74, .28); }
.basket-btn[hidden] { display: none; }
.basket-btn:hover { background: #fff; }
.basket-btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.basket-btn .tag-sponsored { background: transparent; color: inherit; border-color: currentColor; }
:root[data-mode="emergency"] .basket-btn { border-color: #070b16; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.mailme-open { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 16px; padding: 14px 18px; background: var(--surface); color: var(--link); border: 2px solid var(--link); border-radius: 4px; font: 700 17px var(--font); cursor: pointer; transition: background .15s; }
.mailme-open svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.mailme-open:hover { background: var(--bg-alt); }
.mailme-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.mailme-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; background: transparent; color: var(--text); }
.mailme-dialog::backdrop { background: rgba(11, 31, 74, .55); }
:root[data-mode="emergency"] .mailme-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.mailme-panel { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 20px 22px 22px; }
.mailme-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mailme-head h2 { margin: 0; font-size: 22px; }
.mailme-close { flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; background: none; border: 0; color: var(--text); font: 400 28px/1 var(--font); cursor: pointer; }
.mailme-close:hover { background: var(--bg-alt); }
.mailme-panel label { display: block; font-weight: 700; margin-bottom: 8px; }
.mailme-row { display: flex; gap: 8px; }
.mailme-row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; font: 16px var(--font); color: var(--text); background: var(--bg); border: 2px solid var(--text-2); }
.mailme-note { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
@media print { .mailme { display: none !important; } }

/* ── Toast ─────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--blue-ink); color: #fff; padding: 12px 18px; font-size: 15px; font-weight: 700; border-left: 6px solid var(--yellow); transition: transform .25s, visibility .25s; z-index: 20; max-width: calc(100% - 32px); visibility: hidden; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.stock-out { color: var(--red); font-weight: 700; font-size: 13px; }
.row-buy .bundle { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 4px; }
.row-buy .bundle li { padding-left: 12px; position: relative; line-height: 1.35; }
.row-buy .bundle li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--accent); }
.row-buy .bundle li.is-out .pick-link { text-decoration: line-through; color: var(--text-2); }
.bundle-qty { color: var(--text-2); font-weight: 700; white-space: nowrap; }
:root[data-mode="emergency"] .stock-out { color: var(--yellow); }
.toast { bottom: 84px; } /* clear the sticky basket button */
:root[data-mode="emergency"] .toast { background: var(--yellow); color: #070b16; border-left-color: #070b16; }

/* ── The switch-over: the screen goes black, the mode swaps underneath, then it comes back ── */
.blackout { position: fixed; inset: 0; z-index: 50; background: #000; opacity: 0; pointer-events: none; transition: opacity .45s ease-out; }
.blackout.is-on { opacity: 1; transition-duration: .16s; transition-timing-function: ease-in; }

/* ── Print: a clean paper checklist ────────────────── */
@media print {
  :root, :root[data-mode="emergency"] { --bg: #fff; --bg-alt: #fff; --surface: #fff; --text: #000; --text-2: #333; --line: #999; --line-soft: #ccc; --link: #000; --accent: #000; --on-accent: #fff; --check: #000; --head-bg: #fff; --head-text: #000; }
  .notice-strip, .alert-strip, .hazard, .menu, .ship, .mode-switch, .side, .actions, .toast, .skip, .row-buy a:not(.pick-link), .have-pick, .basket-btn, .kit-all, .mailme, .mailme-open, .mailme-dialog, #about .facts { display: none !important; }
  .page-head { color: #000; padding: 0 0 12px; border-bottom: 2px solid #000; }
  .page-head .crumbs, .page-lede, .page-meta { display: none; }
  .page-kicker { color: #000; }
  .layout { display: block; padding: 12px 0; }
  .sec { break-inside: auto; padding-bottom: 16px; margin-bottom: 16px; }
  .part { break-inside: avoid; }
  .part-icon { background: #000 !important; color: #fff !important; border: 0 !important; }
  .site-footer { background: #fff !important; color: #000; border-top: 1px solid #000; }
  .site-footer *, .footer-base { color: #000 !important; background: #fff !important; }
  .footer-cols { padding: 8px 0; }
  .brand-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── Blog ─────────────────────────────────────────────── */
.notice-plain { margin: 0; padding: 8px 0; font-size: 14px; }
.article-wrap { padding-top: 40px; padding-bottom: 72px; }
.article { max-width: 70ch; font-size: 18px; line-height: 1.65; }
.article h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin: 44px 0 12px; letter-spacing: -.01em; }
.article h3 { font-size: 20px; margin: 28px 0 8px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: 6px; }
.article table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 20px 0; }
.article th, .article td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.article th { background: var(--bg-alt); }
.article .callout { font-size: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 14px; opacity: .9; }
.pick-card { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--line-soft); border-left: 6px solid var(--yellow); background: var(--surface); font-size: 16px; }
.pick-card ul { margin: 6px 0 12px; }
.pick-card-k { margin: 0; font-size: 14px; color: var(--text-2); }
.pick-card-go { display: flex; align-items: center; gap: 12px; margin: 0; }
.pick-card a:not(.btn) { font-weight: 700; }
.cta-box { margin: 48px 0 0; padding: 22px 24px; background: var(--bg-alt); border-left: 6px solid var(--accent); max-width: 70ch; }
.cta-box h2 { margin: 0 0 6px; font-size: 22px; }
.cta-box p { margin: 0 0 14px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-list li { border: 1px solid var(--line-soft); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post-list h2 { font-size: 21px; line-height: 1.25; margin: 0; }
.post-list p { margin: 0; color: var(--text-2); }
.post-list .more { margin-top: auto; font-weight: 700; }
.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
