/* Steady On — site stylesheet
   Design: public-information poster. Poster red, white, deep navy text.
   Type: Cabin (a humanist sans modelled on Johnston and Gill). No italics. */

:root {
  --paper: #fbfbf9;
  --paper-2: #f1f2f0;
  --paper-3: #e3e5e1;
  --ink: #1b2630;
  --ink-2: #3e4a56;
  --ink-3: #64707c;
  --line: #d3d7d4;
  --red: #c8102e;
  --red-deep: #9f0c24;
  --red-soft: #fbe6e9;
  --green: #2f7a4f;
  --green-soft: #e4f1e8;
  --blue: #2b5f8a;
  --blue-soft: #e4edf5;
  --navy-soft: #e8ecf0;
  --footer-bg: #1b2630;
  --footer-ink: #f4f4f2;
  --radius: 8px;
  --font: "Cabin", "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --maxw: 1160px;
  --measure: 68ch;
  --shadow-ink: 4px 4px 0 var(--ink);
  --shadow-red: 6px 6px 0 var(--red);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141a21;
    --paper-2: #1c242d;
    --paper-3: #27313b;
    --ink: #f2f2f0;
    --ink-2: #c9cdd0;
    --ink-3: #9aa2aa;
    --line: #313c47;
    --red: #d6213c;
    --red-deep: #f05a70;
    --red-soft: #3a1a20;
    --green: #7fc399;
    --green-soft: #1d3326;
    --blue: #8ab8dc;
    --blue-soft: #1b2c3b;
    --navy-soft: #222d38;
    --footer-bg: #0d1218;
    --footer-ink: #f2f2f0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }

img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2.2em; }
h2::before { content: ""; display: block; width: 44px; height: 5px; background: var(--red); margin-bottom: .55rem; border-radius: 2px; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-top: 1.8em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }
p, ul, ol, table, blockquote, figure { margin: 0 0 1.15em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
em, i, cite { font-style: normal; font-weight: 700; }
small, .small { font-size: .9rem; color: var(--ink-2); }
hr { border: 0; border-top: 2px solid var(--line); margin: 2.5rem 0; }
blockquote { border-left: 5px solid var(--red); padding: .4rem 0 .4rem 1.2rem; font-size: 1.15rem; font-weight: 500; color: var(--ink-2); }
blockquote cite { display: block; font-weight: 400; font-size: .9rem; margin-top: .5rem; color: var(--ink-3); }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.measure { max-width: var(--measure); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10000; border-radius: 4px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Uppercase label style (the poster voice) ---------- */
.caps, .kicker, .card-kicker, .btn, .site-nav a, .brand, .pill, thead th, .callout-title, .footer-grid h3, .toc h2 { text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Header: solid poster red ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .12em; }
.brand:hover { color: #fff; }
.brand .mark { width: 32px; height: 32px; flex: 0 0 32px; color: #fff; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .55rem .8rem; text-decoration: none; font-weight: 700; font-size: .82rem; color: #fff; border-radius: 6px; position: relative; }
.site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav a[aria-current="true"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 3px; background: #fff; border-radius: 2px; }
.site-nav .nav-cta a { background: #fff; color: var(--red); margin-left: .5rem; padding: .6rem 1rem; }
.site-nav .nav-cta a:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid #fff; border-radius: 6px; padding: .45rem .7rem; color: #fff; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--red); box-shadow: 0 3px 0 var(--ink); padding: .6rem clamp(16px, 4vw, 40px) 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .nav-cta a { margin: .4rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow-ink); transition: transform .15s ease, box-shadow .15s ease, background .15s; cursor: pointer; font-family: var(--font); line-height: 1.2; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-red); color: var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--ink); }
.btn-primary:hover { color: #fff; background: var(--red-deep); }
.btn-amber { background: var(--ink); color: #fff; }
.btn-amber:hover { color: #fff; }
.btn-sm { padding: .5rem .9rem; font-size: .78rem; box-shadow: 3px 3px 0 var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem 1rem; margin: 1.6rem 0; }
@media (prefers-color-scheme: dark) { .btn { background: var(--paper-2); } }

/* ---------- Kickers & meta ---------- */
.kicker { font-size: .76rem; font-weight: 700; color: var(--red); margin: 0 0 .9rem; display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 2px; flex: 0 0 10px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .86rem; color: var(--ink-3); margin: 1.2rem 0 0; padding-top: .8rem; border-top: 2px solid var(--line); }
.article-meta span::before { content: "•"; margin-right: .5rem; color: var(--red); }
.article-meta span:first-child::before { content: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; margin: 1.4rem 0 0; color: var(--ink-3); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 .4rem 0 .1rem; color: var(--red); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Page header & article layout ---------- */
.page-head { padding: 1.2rem 0 2rem; }
.page-head h1 { margin-top: .4rem; max-width: 24ch; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 1000px) { .article-grid.has-toc { grid-template-columns: minmax(0, 1fr) 270px; } }
.article-body { max-width: var(--measure); }
.article-body > p:first-child { font-size: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li::marker { color: var(--red); font-weight: 700; }
.article-body .checklist, .article-body .steps { padding-left: 0; }
.hub-body { max-width: none; }

.toc { position: sticky; top: 90px; align-self: start; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; background: var(--paper-2); font-size: .92rem; }
.toc h2 { font-size: .74rem; margin: 0 0 .6rem; color: var(--ink-2); }
.toc h2::before { content: none; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a { display: flex; gap: .55rem; padding: .32rem 0; text-decoration: none; color: var(--ink-2); border-top: 1px solid var(--line); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--red); font-weight: 700; }
.toc li:first-child a { border-top: 0; }
.toc a:hover { color: var(--ink); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.4rem 0; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem 1.3rem 1.3rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-ink); text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
@media (prefers-color-scheme: dark) { .card { background: var(--paper-2); } }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-red); color: var(--ink); }
.card h3 { margin: .1rem 0 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card .card-kicker { font-size: .7rem; font-weight: 700; color: var(--red); }
.card .card-num { position: absolute; top: -14px; right: 14px; background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; padding: .2rem .6rem; border: 2px solid var(--ink); border-radius: 6px; letter-spacing: .05em; }
.card .card-icon { width: 44px; height: 44px; margin-bottom: .3rem; }
.card .card-icon svg { width: 44px; height: 44px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .card-icon .fill { fill: var(--red-soft); stroke: var(--ink); }
.card .card-icon .accent { stroke: var(--red); }
.card-more { margin-top: auto; font-weight: 700; font-size: .8rem; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.card-more::after { content: " →"; }
.card.card-amber { background: var(--ink); color: #fff; }
.card.card-amber h3, .card.card-amber p { color: #fff; }
.card.card-amber .card-kicker, .card.card-amber .card-more { color: #fff; }
.card.card-brick { background: var(--red); color: #fff; }
.card.card-brick h3, .card.card-brick p, .card.card-brick .card-kicker, .card.card-brick .card-more { color: #fff; }
.card.card-sage { background: var(--green-soft); }
.card.card-sky { background: var(--blue-soft); }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; overflow: hidden; }
@media (prefers-color-scheme: dark) { .checklist { background: var(--paper-2); } }
.checklist li { margin: 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist label { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; align-items: start; padding: .8rem 1rem; cursor: pointer; transition: background .15s; }
.checklist label:hover { background: var(--paper-2); }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist .box { width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; position: relative; margin-top: .1rem; transition: background .15s, border-color .15s; }
.checklist .box::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .18s cubic-bezier(.2,1.6,.4,1); }
.checklist input:checked + .box { background: var(--red); border-color: var(--ink); }
.checklist input:checked + .box::after { transform: rotate(45deg) scale(1); }
.checklist input:checked ~ .txt { color: var(--ink-3); }
.checklist input:focus-visible + .box { outline: 3px solid var(--red); outline-offset: 2px; }
.checklist .txt strong { color: var(--ink); }
.checklist input:checked ~ .txt strong { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--red); }
.checklist .txt small { display: block; color: var(--ink-3); }
.checklist-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .6rem 1rem; margin-top: 2rem; }
.checklist-head h2, .checklist-head h3 { margin: 0; }

.progress { margin: .8rem 0 1.2rem; }
.progress .bar { height: 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper-2); overflow: hidden; position: relative; }
.progress .bar::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--red); transition: width .4s ease; }
.progress .progress-label { font-size: .85rem; color: var(--ink-2); margin-top: .35rem; display: block; }

/* ---------- Callouts ---------- */
.callout { border: 2px solid var(--ink); border-left-width: 10px; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.6rem 0; background: var(--paper-2); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .callout-title { display: block; font-weight: 700; font-size: .74rem; margin-bottom: .3rem; }
.callout.tip { background: var(--navy-soft); border-left-color: var(--ink); }
.callout.tip .callout-title { color: var(--ink); }
.callout.note { background: var(--green-soft); border-left-color: var(--green); }
.callout.note .callout-title { color: var(--green); }
.callout.warn { background: var(--red-soft); border-left-color: var(--red); }
.callout.warn .callout-title { color: var(--red); }
.callout.info { background: var(--blue-soft); border-left-color: var(--blue); }
.callout.info .callout-title { color: var(--blue); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 2px solid var(--line); margin: 0; }
.steps > li:first-child { border-top: 0; }
.steps > li::before { content: counter(step, decimal-leading-zero); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--red); grid-column: 1; grid-row: 1; }
.steps > li > * { grid-column: 2; }
.steps > li { row-gap: .3rem; }
.steps h3, .steps h4 { margin-top: .1rem; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 2px solid var(--ink); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; margin: 0; }
th, td { text-align: left; padding: .7rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; border-top: 0; font-size: .74rem; }
tbody tr:nth-child(even) { background: var(--paper-2); }

/* ---------- Sections ---------- */
.section { padding: 3.2rem 0; }
.section-tight { padding: 2rem 0; }
.section-alt { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* ---------- Hero: the poster ---------- */
.hero-band { background: var(--red); color: #fff; box-shadow: inset 0 -3px 0 var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; padding: 3.5rem 0 3.5rem; position: relative; }
.hero .kicker { color: #fff; }
.hero .kicker::before { background: #fff; }
.hero h1 { color: #fff; display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.hero .h1-top { font-size: clamp(3.4rem, 8.5vw, 6.4rem); line-height: .95; text-transform: uppercase; letter-spacing: .02em; }
.hero .h1-sub { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hero .lede { color: #fff; opacity: .95; }
.hero .btn { background: #fff; color: var(--red); border-color: var(--ink); }
.hero .btn:hover { color: var(--red-deep); }
.hero .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 #fff; }
.hero .btn-primary:hover { color: #fff; box-shadow: 6px 6px 0 #fff; }
.hero-facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; }
.hero-facts li { border-top: 3px solid #fff; padding-top: .5rem; font-size: .9rem; color: #fff; min-width: 120px; margin: 0; }
.hero-facts strong { display: block; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.hero-art { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.4rem; box-shadow: 8px 8px 0 var(--ink); }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art .big3 { position: absolute; right: 1rem; top: -1.2rem; font-weight: 700; font-size: clamp(7rem, 14vw, 11rem); line-height: 1; color: var(--red); opacity: .12; pointer-events: none; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.4rem; } .hero-art { max-width: 440px; } }

/* shelf illustration colours */
.shelf .plank { fill: var(--red); stroke: #1b2630; stroke-width: 2.5; }
.shelf .bracket { fill: #1b2630; }
.shelf .tin { fill: #fff; stroke: #1b2630; stroke-width: 2.5; }
.shelf .tin-label { fill: #fbe6e9; stroke: #1b2630; stroke-width: 2; }
.shelf .tin-lid { fill: #e3e5e1; stroke: #1b2630; stroke-width: 2.5; }
.shelf .water { fill: #e4edf5; stroke: #1b2630; stroke-width: 2.5; }
.shelf .water-cap { fill: #2b5f8a; stroke: #1b2630; stroke-width: 2.5; }
.shelf .torch { fill: #1b2630; }
.shelf .torch-head { fill: #c8102e; stroke: #1b2630; stroke-width: 2.5; }
.shelf .beam { fill: #c8102e; opacity: .18; }
.shelf .radio { fill: #e3e5e1; stroke: #1b2630; stroke-width: 2.5; }
.shelf .radio-grille { stroke: #1b2630; stroke-width: 2; }
.shelf .radio-dial { fill: #c8102e; stroke: #1b2630; stroke-width: 2.5; }
.shelf .kit { fill: #fff; stroke: #1b2630; stroke-width: 2.5; }
.shelf .cross { fill: #c8102e; }
.shelf .line { stroke: #1b2630; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.shelf .tag { fill: #fff; stroke: #1b2630; stroke-width: 2; }
.shelf .bank { fill: #e4f1e8; stroke: #1b2630; stroke-width: 2.5; }
.shelf text { font-family: var(--font); font-weight: 700; fill: #1b2630; }

/* ---------- Calculator ---------- */
.calc { border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-ink); padding: 1.5rem; display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); margin: 1.5rem 0; }
@media (prefers-color-scheme: dark) { .calc { background: var(--paper-2); } }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc h2, .calc h3 { margin-top: 0; }
.calc h3::before { content: none; }
.calc-inputs { display: grid; gap: .8rem; align-content: start; }
.calc-inputs label { display: grid; gap: .25rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.calc-inputs input, .calc-inputs select { font: inherit; font-size: 1.05rem; padding: .55rem .7rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); width: 100%; text-transform: none; letter-spacing: 0; }
.calc-out { border-left: 2px solid var(--line); padding-left: 1.4rem; }
@media (max-width: 760px) { .calc-out { border-left: 0; padding-left: 0; border-top: 2px solid var(--line); padding-top: 1rem; } }
.calc-out table { font-size: .95rem; }
.calc-out .total { font-size: 1.35rem; font-weight: 700; margin: .4rem 0 1rem; }
.calc-out .total strong { color: var(--red); }

/* ---------- Newsletter ---------- */
.newsletter { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; padding: 1.8rem; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; margin: 2.5rem 0; box-shadow: 6px 6px 0 var(--red); }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter .kicker, .newsletter h2, .newsletter p { color: #fff; }
.newsletter .kicker::before { background: #fff; }
.newsletter h2 { margin: 0 0 .4rem; font-size: 1.4rem; }
.newsletter h2::before { content: none; }
.newsletter p { margin: 0; opacity: .92; }
.newsletter form { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter input[type=email] { flex: 1 1 200px; font: inherit; padding: .75rem .9rem; border: 2px solid #fff; border-radius: var(--radius); background: #fff; color: var(--ink); }
.newsletter .btn-primary { box-shadow: 4px 4px 0 #fff; }
.newsletter .form-note { flex-basis: 100%; font-size: .8rem; opacity: .85; }
.newsletter .form-note a { color: #fff; }
.form-msg { font-weight: 700; color: #fff; flex-basis: 100%; margin: 0; }

/* ---------- Scenario pages ---------- */
.phase-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.5rem 0 2rem; }
.phase { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: #fff; }
@media (prefers-color-scheme: dark) { .phase { background: var(--paper-2); } }
.phase h3 { margin: 0 0 .5rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: .5rem; }
.phase h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); flex: 0 0 12px; }
.phase.before h3::before { background: var(--green); }
.phase.during h3::before { background: var(--red); }
.phase.after h3::before { background: var(--blue); }
.phase ul { padding-left: 1.1rem; margin: 0; font-size: .96rem; }
.key-numbers { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1.4rem 0; }
.key-numbers div { border: 2px solid var(--ink); border-radius: var(--radius); padding: .9rem 1rem; background: var(--paper-2); }
.key-numbers strong { display: block; font-size: 1.5rem; color: var(--red); }
.key-numbers span { font-size: .88rem; color: var(--ink-2); }

/* ---------- Related & FAQ ---------- */
.related { padding: 2.5rem 0 3rem; border-top: 2px solid var(--ink); }
.related h2 { margin-top: 0; }
.faq details { border: 2px solid var(--ink); border-radius: var(--radius); margin-bottom: .8rem; background: #fff; }
@media (prefers-color-scheme: dark) { .faq details { background: var(--paper-2); } }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--red); line-height: 1; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 1.1rem 1rem; color: var(--ink-2); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Product cards ---------- */
.products { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1.5rem 0; }
.product { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: #fff; display: flex; flex-direction: column; gap: .4rem; }
@media (prefers-color-scheme: dark) { .product { background: var(--paper-2); } }
.product h3 { margin: 0; font-size: 1.1rem; }
.product .price { font-size: 1.2rem; font-weight: 700; color: var(--red); }
.product .why { font-size: .92rem; color: var(--ink-2); flex: 1; margin: 0; }
.product .btn { align-self: flex-start; margin-top: .5rem; }
.disclosure { font-size: .85rem; color: var(--ink-3); border: 1px dashed var(--line); padding: .7rem 1rem; border-radius: 6px; }

/* ---------- Footer ---------- */
.emergency-strip { background: var(--red); color: #fff; border-top: 3px solid var(--ink); }
.emergency-strip .wrap { display: flex; flex-wrap: wrap; gap: .4rem 2rem; padding-top: .8rem; padding-bottom: .8rem; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.emergency-strip span strong { font-size: 1.05rem; }
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 3rem 0 2rem; border-top: 3px solid var(--ink); }
.site-footer a { color: var(--footer-ink); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { font-size: .74rem; color: #fff; margin: 0 0 .8rem; padding-bottom: .4rem; border-bottom: 3px solid var(--red); display: inline-block; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.footer-grid li { margin-bottom: .4rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .92rem; opacity: .85; max-width: 32ch; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; font-size: .83rem; opacity: .85; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-bottom li { margin: 0; }
.footer-disclaimer { font-size: .8rem; opacity: .7; margin-top: 1.2rem; max-width: 90ch; }

/* ---------- Utilities ---------- */
.two-col { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.pill { display: inline-block; padding: .15rem .6rem; border: 2px solid var(--ink); border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--paper-2); }
.pill.amber { background: var(--navy-soft); } .pill.sage { background: var(--green-soft); } .pill.brick { background: var(--red-soft); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.big-number { font-size: clamp(3rem, 8vw, 5rem); line-height: 1; color: var(--red); font-weight: 700; }
.stat-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1.8rem 0; }
.stat { border-top: 4px solid var(--red); padding-top: .6rem; }
.stat strong { display: block; font-size: 1.9rem; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-2); }
.print-only { display: none; }
.sitemap-cols { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sitemap-cols h2 { font-size: 1.15rem; margin-top: 1rem; }
.sitemap-cols ul { padding-left: 1.1rem; }

/* ---------- Reveal animation (only with JS and a visible tab) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d5 { --i: 5; } .d6 { --i: 6; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .emergency-strip, .newsletter, .related, .toc, .cta-row, .nav-toggle, .no-print, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .print-only { display: block; }
  a { color: #000; text-decoration: none; }
  .checklist, .card, .callout, .table-wrap { box-shadow: none; break-inside: avoid; }
  .checklist .box { border-color: #000; }
  .article-grid { display: block; }
  h2::before { background: #000; }
}
.print-page .site-header, .print-page .site-footer, .print-page .emergency-strip { display: none; }
.print-page main { padding: 2rem 0; }
.print-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 3px solid var(--ink); padding-bottom: .8rem; margin-bottom: 1.5rem; }
.print-head .brand { color: var(--ink); font-size: .95rem; }
.print-head .brand .mark { color: var(--red); }
.print-cols { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.print-cols .checklist { margin-top: .4rem; }
.print-cols h3 { margin-top: 1rem; }
.fill-line { display: block; border-bottom: 1.5px solid var(--ink); height: 1.6em; margin: .3rem 0 .8rem; }

/* ---------- Printable poster ---------- */
.poster { background: var(--red); color: #fff; aspect-ratio: 210 / 297; max-width: 600px; margin: 0 auto; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; padding: 9% 8%; gap: 1.4rem; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.poster .poster-mark { width: 26%; height: auto; color: #fff; }
.poster p { margin: 0; color: #fff; }
.poster .poster-title { font-size: clamp(3rem, 12vw, 6.2rem); line-height: .92; letter-spacing: .04em; }
.poster .poster-sub { font-size: clamp(1.2rem, 4.2vw, 2.1rem); line-height: 1.15; }
.poster .poster-foot { font-size: .85rem; letter-spacing: .2em; opacity: .9; margin-top: 1.5rem; }
@media print {
  .poster-page .print-head, .poster-page .no-print { display: none !important; }
  .poster-page main { padding: 0; }
  .poster-page .wrap { max-width: none; padding: 0; }
  .poster { max-width: none; width: 100%; min-height: 96vh; border-radius: 0; aspect-ratio: auto; }
}

/* ---------- Delivery panel ---------- */
.delivery { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--red); color: #fff; padding: 1.8rem; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; margin: 2.5rem 0; box-shadow: 6px 6px 0 var(--ink); }
@media (max-width: 760px) { .delivery { grid-template-columns: 1fr; } }
.delivery .kicker, .delivery h2, .delivery p { color: #fff; }
.delivery .kicker::before { background: #fff; }
.delivery h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.delivery h2::before { content: none; }
.delivery p { margin: 0; opacity: .95; }
.delivery p a { color: #fff; text-decoration-color: #fff; font-weight: 700; }
.delivery .shops { display: flex; flex-wrap: wrap; gap: .6rem; }
.delivery .btn { background: #fff; color: var(--red); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.delivery .btn:hover { color: var(--red-deep); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1rem; max-width: 640px; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; background: #fff; box-shadow: var(--shadow-ink); margin: 1.5rem 0 2rem; }
@media (prefers-color-scheme: dark) { .contact-form { background: var(--paper-2); } }
.contact-form .form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-form label { display: grid; gap: .3rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 1.05rem; padding: .6rem .75rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); width: 100%; text-transform: none; letter-spacing: 0; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form button { justify-self: start; }
.contact-form .small { margin: 0; }
