/* Layout concept: a cargo manifest. Strict grid, mono data labels like a bill of lading,
   one stencil wordmark and a dark harbor band up top; everything else stays quiet. */
:root {
  --bg: #f1f4f6;          /* cold steel ground */
  --surface: #ffffff;
  --ink: #0f1c2b;         /* harbor navy */
  --muted: #526171;
  --line: #d3dbe2;
  --accent: #9b1c24;      /* oxblood: the beef */
  --accent-ink: #ffffff;
  --frost: #dce9f1;       /* cold chain */
  --band: #0f1c2b;        /* hero / footer band */
  --band-ink: #e8eef3;
  --band-muted: #9fb0c0;
  --band-line: #26384b;
  --band-accent: #e8656b;
  --brand-red: #d7262e;
  --paper: #fbfaf7;       /* delivery-note paper */
  --paper-ink: #1a1f26;
  --ok: #1d6b4a;

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.75rem, 1.8rem + 4.4vw, 5.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1219; --surface: #111b25; --ink: #e3e9ef; --muted: #93a3b2; --line: #22313f;
    --accent: #e0585f; --accent-ink: #1b0507; --frost: #15293a;
    --band: #070d13; --band-ink: #e3e9ef; --band-muted: #8b9cad; --band-line: #1d2c3a; --band-accent: #e8656b;
    --paper: #18222c; --paper-ink: #e3e9ef; --ok: #5cc08f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1219; --surface: #111b25; --ink: #e3e9ef; --muted: #93a3b2; --line: #22313f;
  --accent: #e0585f; --accent-ink: #1b0507; --frost: #15293a;
  --band: #070d13; --band-ink: #e3e9ef; --band-muted: #8b9cad; --band-line: #1d2c3a; --band-accent: #e8656b;
  --paper: #18222c; --paper-ink: #e3e9ef; --ok: #5cc08f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-5); text-transform: uppercase; }
h2 { font-size: var(--step-4); text-transform: uppercase; }
h3 { font-size: var(--step-2); font-weight: 700; }
p { margin: 0; max-width: 65ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--f-stencil); font-weight: 800; font-size: 1.75rem; letter-spacing: 0.04em; line-height: 1; }
.brand b { color: var(--brand-red); font-weight: 800; }
.brand svg { width: 34px; height: 34px; flex: none; }
.bull .bull-fill { fill: var(--brand-red); }
.bull .bull-cut { fill: var(--band); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--band-line); color: var(--band-ink); font: 600 var(--step--1) var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.75rem; border-radius: var(--radius); cursor: pointer; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 0.9375rem; color: var(--band-muted); padding-block: 0.25rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--band-ink); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 0.7rem 1.1rem; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; font-family: var(--f-body); line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.site-nav .btn-primary { color: var(--accent-ink); }
@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-block: 0.5rem 1rem; gap: 0.5rem; }
  .js .site-nav.open { display: flex; }
}

/* ---------- hero band ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band .label { color: var(--band-muted); }
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.hero h1 { margin-block: 0.75rem 1.25rem; }
.hero h1 em { font-style: normal; color: var(--band-accent); }
.hero .lede { color: var(--band-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* delivery note (sample) */
.note { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; font-family: var(--f-mono); font-size: 0.8125rem; line-height: 1.5; box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 18px 40px -18px rgba(0,0,0,.6); transform: rotate(0.6deg); position: relative; }
.note::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 26px); border-radius: var(--radius) var(--radius) 0 0; }
.note-head { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; border-bottom: 1px dashed currentColor; padding-bottom: 0.6rem; margin-bottom: 0.6rem; }
.note-head strong { font-family: var(--f-stencil); font-size: 1.25rem; letter-spacing: 0.06em; }
.note dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.15rem 1rem; margin: 0 0 0.75rem; }
.note dt { opacity: 0.65; text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.08em; padding-top: 0.15em; }
.note dd { margin: 0; }
.note table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.note th, .note td { text-align: left; padding: 0.3rem 0.25rem; border-bottom: 1px dotted color-mix(in srgb, currentColor 35%, transparent); }
.note th { font-weight: 500; opacity: 0.65; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; }
.note td.r, .note th.r { text-align: right; }
.note-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; font-size: 0.75rem; }
.stamp { display: inline-block; border: 2px solid var(--accent); color: var(--accent); padding: 0.1rem 0.5rem; transform: rotate(-4deg); font-weight: 600; letter-spacing: 0.08em; }
.note-tag { position: absolute; top: -0.7rem; right: 1rem; background: var(--band); color: var(--band-muted); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 2px; border: 1px solid var(--band-line); }

/* ---------- fact strip ---------- */
.facts { border-top: 1px solid var(--band-line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 1.1rem 1rem 1.2rem 0; border-right: 1px solid var(--band-line); padding-left: 1rem; }
.facts li:first-child { padding-left: 0; }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--f-display); font-size: var(--step-3); font-weight: 800; line-height: 1; margin-bottom: 0.35rem; font-variant-numeric: tabular-nums; }
.facts span { color: var(--band-muted); font-size: 0.875rem; }
@media (max-width: 48rem) { .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts li { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--band-line); } .facts li:nth-last-child(-n+2) { border-bottom: 0; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.25rem; }
.section-head .lede { max-width: 60ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 60rem) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* range cards: case-end labels */
.range { display: flex; flex-direction: column; gap: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; min-width: 0; }
.range:hover { border-color: var(--accent); }
.range .code { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.range h3 { font-size: var(--step-3); text-transform: uppercase; }
.range p { color: var(--muted); font-size: 0.9375rem; }
.range .more { margin-top: auto; font-weight: 600; font-size: 0.9375rem; color: var(--accent); }

.who { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--ink); min-width: 0; }
.who h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 700; line-height: 1.3; }
.who p { color: var(--muted); font-size: 0.9375rem; }

/* steps (real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 1.25rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.8125rem; color: var(--accent); letter-spacing: 0.06em; }
.steps h3 { font-family: var(--f-body); font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.steps p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 56rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* region / port directory */
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
@media (max-width: 48rem) { .regions { grid-template-columns: minmax(0, 1fr); } }
.region { min-width: 0; }
.region-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.region-head h3 { font-size: var(--step-3); text-transform: uppercase; }
.region-head h3 a { text-decoration: none; }
.region-head h3 a:hover { color: var(--accent); }
.region-head .label { white-space: nowrap; }
.portlist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.portlist li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px dotted var(--line); display: flex; justify-content: space-between; gap: 0.75rem; }
.portlist a { text-decoration: none; }
.portlist a:hover { color: var(--accent); text-decoration: underline; }
.portlist .st { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
@media (max-width: 30rem) { .portlist { columns: 1; } }

.highlight { background: var(--frost); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.highlight > div { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.highlight h3 { font-size: var(--step-3); text-transform: uppercase; }
.highlight p { font-size: 0.9375rem; }
@media (max-width: 48rem) { .highlight { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.checks li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.checks li::before { content: ""; width: 1rem; height: 1rem; margin-top: 0.3rem; border: 2px solid var(--accent); border-radius: 2px; background: linear-gradient(135deg, transparent 45%, var(--accent) 45% 60%, transparent 60%); }
.checks strong { display: block; }
.checks span { color: var(--muted); font-size: 0.9375rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
table.data th, table.data td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--frost) 50%, var(--surface)); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; font-size: var(--step-1); line-height: 1.35; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0.95rem; font-family: var(--f-mono); font-size: 1.25rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 1.25rem; color: var(--muted); display: grid; gap: 0.75rem; }

/* CTA band */
.cta { background: var(--band); color: var(--band-ink); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.cta h2 { font-size: var(--step-4); }
.cta p { color: var(--band-muted); margin-top: 0.5rem; }

/* page header (inner pages) */
.page-head { padding-block: clamp(2rem, 1.5rem + 3vw, 3.75rem); }
.page-head h1 { font-size: var(--step-4); margin-block: 0.6rem 1rem; }
.page-head .lede { color: var(--band-muted); }
.crumbs { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--band-muted); display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--band-ink); text-decoration: underline; }
.head-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; }
@media (max-width: 56rem) { .head-grid { grid-template-columns: minmax(0, 1fr); } }

/* port fact sheet */
.sheet { border: 1px solid var(--band-line); border-radius: var(--radius); font-family: var(--f-mono); font-size: 0.8125rem; }
.sheet div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--band-line); }
.sheet div:last-child { border-bottom: 0; }
.sheet dt { color: var(--band-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.6875rem; padding-top: 0.15em; }
.sheet dd { margin: 0; color: var(--band-ink); }
.sheet dl { margin: 0; }

.prose { display: grid; gap: 1rem; }
.prose h2 { font-size: var(--step-3); margin-top: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: 65ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 56rem) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; align-content: start; }
.aside h3 { font-size: var(--step-2); text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--f-mono); font-size: 0.75rem; padding: 0.2rem 0.55rem; border: 1px solid var(--band-line); border-radius: 2px; color: var(--band-ink); }
.chips.light li { border-color: var(--line); color: var(--ink); background: var(--surface); }
.nearby { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.nearby a { display: inline-block; padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); font-size: 0.9375rem; }
.nearby a:hover { border-color: var(--accent); color: var(--accent); }

/* filter on ports hub */
.filter { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.filter input { font: inherit; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: min(26rem, 100%); }
.filter output { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }

/* form */
.form { display: grid; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 2vw, 2rem); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form legend { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0.75rem; grid-column: 1 / -1; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field .q { font-weight: 600; font-size: 0.875rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; max-width: 28rem; }
.opts label { display: flex; align-items: center; gap: 0.65rem; min-height: 2.875rem; padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-weight: 500; font-size: 0.9375rem; line-height: 1.2; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.opts label:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.opts input { width: 1.2rem; height: 1.2rem; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.opts label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.opts label:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 24rem) { .opts label { padding-inline: 0.65rem; gap: 0.5rem; font-size: 0.875rem; } }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.875rem; color: var(--muted); }
.alert { padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
@media (max-width: 40rem) { .form fieldset { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.site-footer { background: var(--band); color: var(--band-muted); font-size: 0.875rem; border-top: 4px solid var(--accent); }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 2.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--band-ink); text-decoration: underline; }
.site-footer .brand { color: var(--band-ink); margin-bottom: 0.75rem; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--band-line); padding-top: 1.25rem; font-family: var(--f-mono); font-size: 0.75rem; }

/* band sections reuse */
.band .lede { color: var(--band-muted); }
.band .sheet a { color: var(--band-ink); }
.band .sheet a:hover { color: var(--band-accent); }
.sources { font-size: 0.8125rem; color: var(--muted); display: grid; gap: 0.25rem; }
.sources a { color: inherit; }

/* trust badges (original artwork) */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust .wrap { padding-block: 2.25rem 1.75rem; display: grid; gap: 1.25rem; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.badge { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; align-items: center; min-width: 0; }
.badge strong { display: block; font-size: 0.875rem; line-height: 1.25; }
.badge span { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.seal { width: 5.5rem; height: 5.5rem; display: block; }
.seal .b-ring { fill: var(--bg); stroke: var(--ink); stroke-width: 2.2; }
.seal .b-inner { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 2.2; }
.seal .b-ringtext { font: 600 6.4px var(--f-mono); fill: var(--ink); }
.seal .b-fill { fill: var(--accent); }
.seal .b-mark { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal .b-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.seal .b-line.thin { stroke-width: 1.6; stroke-linecap: butt; }
.seal .b-mini { font: 700 8px var(--f-mono); fill: var(--surface); }
.seal .b-word { font: 800 11px var(--f-display); letter-spacing: 0.04em; fill: var(--ink); }
.seal .b-sub { font: 600 6.5px var(--f-mono); letter-spacing: 0.06em; fill: var(--muted); }
.trust-note { font-size: 0.75rem; color: var(--muted); max-width: none; }
@media (max-width: 64rem) { .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 44rem) {
  .badges { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 13rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .badge { scroll-snap-align: start; }
}

/* language switch */
.site-nav { order: 1; }
.lang { order: 2; font: 600 0.75rem var(--f-mono); letter-spacing: 0.08em; color: var(--band-ink); border: 1px solid var(--band-line); border-radius: var(--radius); padding: 0.4rem 0.6rem; text-decoration: none; line-height: 1; }
.lang:hover { border-color: var(--band-accent); color: var(--band-accent); }
.nav-toggle { order: 3; }
@media (max-width: 60rem) {
  .js .lang { margin-left: auto; order: 1; }
  .js .nav-toggle { margin-left: 0; order: 2; }
  .js .site-nav { order: 3; }
}
.lang-hint { background: var(--frost); color: var(--ink); font-size: 0.875rem; }
.lang-hint .wrap { display: flex; gap: 0.75rem 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 0.6rem; }
.lang-hint a { font-weight: 600; }
.lang-hint button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0.25rem 0.5rem; }

/* grade x certification matrix */
table.matrix td:first-child a { font-weight: 700; }
.m-sub { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.m-yes { color: var(--ink); white-space: nowrap; }
.m-req { color: var(--muted); font-style: italic; white-space: nowrap; }
.opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 36rem; }
@media (max-width: 30rem) { .opts-3 { grid-template-columns: minmax(0, 1fr); } }
