/* LatSouth — editorial data studio. Layout: one 1120px column, 16px gutters, 8-pt spacing scale.
   Type: Fraunces (display serif, optical size) + Inter (text/UI). Paper + ink + gold + teal. */
:root {
  --paper: #f7f5f0; --paper-2: #efece4; --paper-3: #e6e2d8; --ink: #0b1d3a; --ink-2: #3f4b66; --ink-3: #5b6782;
  --hair: rgba(11, 29, 58, .12); --hair-2: rgba(11, 29, 58, .22);
  --gold: #f2b83a; --gold-ink: #0b1d3a; --gold-text: #8a6100; --teal: #1a8c80; --teal-text: #0f6b61; --teal-soft: rgba(26, 140, 128, .14);
  --link: #0f6b61; --btn: #f2b83a; --btn-ink: #0b1d3a; --btn-2: #0b1d3a;
  --hero-bg: #0b1d3a; --hero-bg-2: #122d58; --hero-text: #f7f5f0; --hero-muted: #c3cbdc; --hero-hair: rgba(247, 245, 240, .16);
  --warn: #7a4e00; --warn-bg: #f4e7c9; --ok: #0f6b61; --sel: #f2b83a; --sel-ink: #0b1d3a;
  --map-base: rgba(11, 29, 58, .04); --map-stroke: rgba(11, 29, 58, .28); --map-cov: rgba(26, 140, 128, .78); --map-cov-stroke: #f7f5f0; --map-text: #0b1d3a; --map-num: #8a6100;
  --shadow: 0 1px 0 rgba(11, 29, 58, .04), 0 12px 32px -20px rgba(11, 29, 58, .25);
  --radius: 6px; --radius-lg: 10px; --max: 1120px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --fs-0: .8125rem; --fs-1: .9375rem; --fs-2: 1.0625rem; --fs-3: 1.25rem; --fs-4: 1.625rem; --fs-5: clamp(1.9rem, 3vw, 2.6rem); --fs-6: clamp(2.6rem, 4.5vw, 4.5rem);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1526; --paper-2: #111f36; --paper-3: #172a46; --ink: #f3efe6; --ink-2: #b2bbcb; --ink-3: #8d98ad;
    --hair: rgba(243, 239, 230, .12); --hair-2: rgba(243, 239, 230, .22);
    --gold-ink: #0b1d3a; --gold-text: #f2b83a; --teal-text: #5fd1c3; --teal-soft: rgba(95, 209, 195, .14);
    --link: #5fd1c3; --btn: #f2b83a; --btn-ink: #0b1d3a; --btn-2: #f3efe6;
    --hero-bg: #081224; --hero-bg-2: #0f2449; --hero-text: #f3efe6; --hero-muted: #b2bbcb; --hero-hair: rgba(243, 239, 230, .14);
    --warn: #f3c66a; --warn-bg: #2d2412; --ok: #5fd1c3; --sel: #f2b83a; --sel-ink: #0b1d3a;
    --map-base: rgba(243, 239, 230, .05); --map-stroke: rgba(243, 239, 230, .3); --map-cov: rgba(26, 140, 128, .85); --map-cov-stroke: #0a1526; --map-text: #f3efe6; --map-num: #f2b83a;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1526; --paper-2: #111f36; --paper-3: #172a46; --ink: #f3efe6; --ink-2: #b2bbcb; --ink-3: #8d98ad;
  --hair: rgba(243, 239, 230, .12); --hair-2: rgba(243, 239, 230, .22);
  --gold-ink: #0b1d3a; --gold-text: #f2b83a; --teal-text: #5fd1c3; --teal-soft: rgba(95, 209, 195, .14);
  --link: #5fd1c3; --btn: #f2b83a; --btn-ink: #0b1d3a; --btn-2: #f3efe6;
  --hero-bg: #081224; --hero-bg-2: #0f2449; --hero-text: #f3efe6; --hero-muted: #b2bbcb; --hero-hair: rgba(243, 239, 230, .14);
  --warn: #f3c66a; --warn-bg: #2d2412; --ok: #5fd1c3; --sel: #f2b83a; --sel-ink: #0b1d3a;
  --map-base: rgba(243, 239, 230, .05); --map-stroke: rgba(243, 239, 230, .3); --map-cov: rgba(26, 140, 128, .85); --map-cov-stroke: #0a1526; --map-text: #f3efe6; --map-num: #f2b83a;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
/* token aliases used by older selectors */
:root { --bg: var(--paper); --surface: var(--paper-2); --surface-2: var(--paper-3); --text: var(--ink); --muted: var(--ink-2); --line: var(--hair); --chip: var(--paper-3); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-2)/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); transition: color 150ms ease, text-decoration-color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--sel); color: var(--sel-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; letter-spacing: -.022em; line-height: 1.05; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: var(--fs-6); overflow-wrap: anywhere; }
h2 { font-size: var(--fs-5); line-height: 1.12; letter-spacing: -.018em; }
h3 { font: 600 var(--fs-3)/1.25 var(--sans); letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h4 { font: 600 var(--fs-2)/1.3 var(--sans); margin: 0 0 .5em; }
h2 em, h1 em { font-style: italic; font-weight: 500; color: var(--gold-text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
code { font-family: var(--mono); font-size: .86em; background: var(--paper-3); padding: .08em .4em; border-radius: 4px; }
pre { font-family: var(--mono); font-size: var(--fs-0); background: var(--paper-2); border: 1px solid var(--hair); padding: var(--s2); border-radius: var(--radius); overflow-x: auto; line-height: 1.5; }
hr { border: 0; border-top: 1px solid var(--hair); margin: var(--s5) 0; }
small, .small { font-size: var(--fs-0); }
.muted { color: var(--ink-2); }
.num, td.n, th.n, .ledger .n, .figure b, .price, .stat b, dd { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: -70px; background: var(--gold); color: var(--gold-ink); padding: var(--s1) var(--s2); border-radius: var(--radius); z-index: 50; font-weight: 600; }
.skip:focus { top: var(--s2); }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.prose { max-width: 68ch; }
.prose p, .prose li { font-size: var(--fs-2); line-height: 1.7; }
.prose p + p { margin-top: -.2em; }
section.band { padding-block: clamp(72px, 9vw, 112px); }
section.band + section.band { border-top: 1px solid var(--hair); }
.band.tint { background: var(--paper-2); }
.eyebrow { font: 600 .72rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); margin-bottom: var(--s2); }
.lead { font-size: var(--fs-3); color: var(--ink-2); max-width: 46rem; line-height: 1.5; text-wrap: pretty; }
.grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid > * { min-width: 0; }
.grid.c3.tight { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: var(--s4); transition: background-color 150ms ease, border-color 150ms ease; }
.band.tint .card { background: var(--paper); }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: var(--s2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.logo span b { color: var(--gold-text); font-weight: 600; }
.nav { display: none; align-items: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-1); padding: 8px 12px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-3); }
.nav a.btn { margin-left: var(--s1); color: var(--btn-ink); background: var(--btn); }
.nav a.btn:hover { background: var(--btn); filter: brightness(1.05); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 8px 14px; border: 1px solid var(--hair-2); border-radius: var(--radius); background: var(--paper); font-size: var(--fs-1); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--paper-3); }
.menu .sheet { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--hair-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); min-width: 230px; padding: var(--s1); display: flex; flex-direction: column; }
.menu .sheet a { padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: var(--radius); font-weight: 500; }
.menu .sheet a:hover { background: var(--paper-3); }
@media (min-width: 900px) { .nav { display: flex; } .menu { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 10px 20px; border-radius: var(--radius); border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; font-size: var(--fs-1); line-height: 1.2; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, filter 150ms ease; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--btn-2); border-color: var(--hair-2); }
.btn.ghost:hover { border-color: var(--btn-2); filter: none; }
.btn.hero-cta { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.hero-ghost { background: transparent; color: var(--hero-text); border-color: rgba(247, 245, 240, .45); }
.btn.hero-ghost:hover { border-color: var(--hero-text); filter: none; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: var(--fs-0); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% -10%, var(--hero-bg-2), transparent 60%), var(--hero-bg); color: var(--hero-text); padding-block: clamp(64px, 8vw, 112px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.hero .wrap { position: relative; display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); } }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--hero-text); max-width: 16ch; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero .lead { color: var(--hero-muted); }
.hero a:not(.btn) { color: var(--gold); }
.hero .hero-text, .hero .mapbox { position: relative; z-index: 1; }
.hero .map { --map-base: rgba(247, 245, 240, .05); --map-stroke: rgba(247, 245, 240, .28); --map-cov: rgba(26, 140, 128, .9); --map-cov-stroke: #0b1d3a; --map-text: #f7f5f0; --map-num: #f2b83a; width: min(100%, 460px); margin-inline: auto; }
.hero .wrap.foot { display: block; margin-top: var(--s5); }
.ph-text { min-width: 0; }
.constellation { position: absolute; left: -30px; bottom: -20px; width: 200px; height: 200px; opacity: .14; pointer-events: none; z-index: 0; }
.constellation line { stroke: var(--gold); stroke-width: 1; }
.constellation polygon { fill: var(--gold); }
@media (min-width: 900px) { .constellation { left: auto; right: -20px; top: -40px; bottom: auto; width: 320px; height: 320px; } }

/* Map */
.map { display: block; }
.map .base { fill: var(--map-base); stroke: var(--map-stroke); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map .cov { fill: var(--map-cov); stroke: var(--map-cov-stroke); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill 150ms ease; }
.map .hi { fill: var(--gold); stroke: var(--map-cov-stroke); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map text { font-family: var(--sans); font-size: 26px; font-weight: 600; fill: var(--map-text); paint-order: stroke; stroke: var(--map-cov-stroke); stroke-width: 6px; stroke-linejoin: round; letter-spacing: .02em; }
.map .lab-num { font-size: 24px; font-weight: 500; fill: var(--map-num); font-variant-numeric: tabular-nums; }
.map .lab-name.hi, .map .lab-num.hi { fill: var(--map-text); }
.page-map { width: 100%; max-width: 360px; margin-inline: auto; }
.page-map .map { width: 100%; }
.page-map .map .cov { fill: var(--teal-soft); stroke: var(--teal); }
.page-map .map .lab-name:not(.hi), .page-map .map .lab-num:not(.hi) { display: none; }

/* Registry ledger (home) */
.ledger { border-top: 1px solid var(--hair-2); }
.ledger-row, .ledger-head { display: grid; grid-template-columns: 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; align-items: baseline; }
.ledger-row { transition: background-color 150ms ease; }
.ledger-row:hover { background: var(--paper-2); box-shadow: 0 0 0 12px var(--paper-2); }
.ledger-head { display: none; font: 600 .7rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); padding: 10px 0; }
.ledger .flag { width: 26px; height: 18px; }
.ledger .c { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 1.35rem; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.ledger .reg { color: var(--ink-2); font-size: var(--fs-1); }
.ledger .reg small { display: block; color: var(--ink-3); font-size: var(--fs-0); font-variant-numeric: tabular-nums; margin-top: 2px; }
.ledger .n { white-space: nowrap; font-weight: 500; font-size: var(--fs-2); }
.ledger .n.key { font-weight: 600; font-size: 1.2rem; }
.ledger .n small, .ledger .t small { color: var(--ink-3); font-weight: 400; font-size: var(--fs-0); margin-left: 4px; }
.ledger .t { color: var(--ink-2); font-size: var(--fs-1); }
.ledger-row span[data-l]::before { content: attr(data-l); display: block; font: 600 .68rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.ledger-row .c::before { display: none; }
@media (max-width: 899px) {
  .ledger-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 0; }
  .ledger-row .c, .ledger-row .reg { grid-column: 1 / -1; }
  .ledger-row .reg { margin-top: -4px; margin-bottom: 6px; }
}
@media (min-width: 900px) {
  .ledger-head, .ledger-row { grid-template-columns: 1.35fr 1.55fr .95fr .95fr .7fr .8fr .95fr; }
  .ledger-row span[data-l]::before { display: none; }
  .ledger .n { text-align: right; }
  .ledger-head .n { text-align: right; }
}

/* Key figures (inner pages) */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair); margin: var(--s4) 0; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure { padding: 18px 16px 18px 0; min-width: 0; border-bottom: 1px solid var(--hair); }
.figure b { display: block; font: 600 clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem)/1.1 var(--sans); letter-spacing: -.02em; white-space: nowrap; overflow-wrap: normal; }
.figure:first-child b { color: var(--gold-text); }
.figure span { display: block; font-size: var(--fs-0); color: var(--ink-2); margin-top: 6px; line-height: 1.35; text-wrap: pretty; }
@media (min-width: 760px) { .figure { border-bottom: 0; } .figure + .figure { padding-left: 16px; border-left: 1px solid var(--hair); } }
@media (max-width: 759px) { .figure:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hair); } .figure:nth-last-child(-n+2) { border-bottom: 0; } }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: var(--s4); border-top: 1px solid var(--hero-hair); }
@media (min-width: 760px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-stats .figure { border-color: var(--hero-hair); }
.hero-stats .figure b { color: var(--hero-text); }
.hero-stats .figure:first-child b { color: var(--gold); }
.hero-stats .figure span { color: var(--hero-muted); }
.flag { width: 28px; height: 20px; border-radius: 3px; border: 1px solid var(--hair); flex: none; }

/* Tables: editorial */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--s1); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-1); }
th, td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font: 600 .7rem/1.3 var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; border-bottom: 1px solid var(--hair-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 150ms ease; }
td.n, th.n { text-align: right; white-space: nowrap; padding-left: 16px; }
td.d, th.d { white-space: nowrap; font-variant-numeric: tabular-nums; }
td:last-child, th:last-child { padding-right: 0; }
table.wide { min-width: 560px; }
@media (max-width: 640px) { td.opt, th.opt { display: none; } }
@media (max-width: 480px) { td.iso, th.iso { display: none; } }
td.pct { color: var(--ink-2); }
td a { color: var(--ink); text-decoration-color: var(--hair-2); }
td a:hover { color: var(--link); }
.caption { font-size: var(--fs-0); color: var(--ink-3); margin: 6px 0 var(--s4); line-height: 1.45; max-width: 68ch; }
progress.bar { display: block; width: clamp(56px, 6vw, 96px); height: 3px; border: 0; border-radius: 2px; background: var(--hair); margin: 6px 0 0 auto; appearance: none; -webkit-appearance: none; overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--hair); border-radius: 2px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 45%, var(--gold))); border-radius: 2px; }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 45%, var(--gold))); border-radius: 2px; }
.grid.tight table { font-size: var(--fs-0); }
.grid.tight th, .grid.tight td { padding: 8px 10px 8px 0; }
@media (max-width: 480px) {
  table { font-size: var(--fs-0); }
  th, td { padding-right: 8px; }
  td:first-child { hyphens: auto; }
  td.n, th.n { padding-left: 10px; }
  th { letter-spacing: .08em; white-space: normal; }
  td:last-child, th:last-child { padding-right: 0; }
  progress.bar { width: 44px; }
}
.code { font-family: var(--mono); font-size: var(--fs-0); color: var(--teal-text); margin-right: 8px; font-weight: 600; }

/* Editorial comparison */
.cmp { border-top: 1px solid var(--hair-2); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.cmp-head { font: 600 .7rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); padding: 10px 0; display: none; }
.cmp-row dt { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; margin: 0; }
.cmp-row dd { margin: 0; min-width: 0; }
.cmp-row dd.raw { color: var(--ink-2); }
.cmp-row dd.raw::before, .cmp-row dd.ours::before { display: block; font: 600 .68rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 2px; }
.cmp-row dd.raw::before { content: "Raw registry dump"; }
.cmp-row dd.ours::before { content: "LatSouth"; color: var(--teal-text); }
@media (min-width: 760px) {
  .cmp-head { display: grid; }
  .cmp-head, .cmp-row { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-row dd.raw::before, .cmp-row dd.ours::before { display: none; }
  .cmp-row dd.ours { border-left: 2px solid var(--teal); padding-left: 16px; margin-left: -18px; }
}

/* Badges, notes */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-0); font-weight: 500; background: var(--paper-3); color: var(--ink); white-space: nowrap; border: 1px solid var(--hair); }
.callout { border-left: 2px solid var(--gold); background: var(--paper-2); padding: var(--s2) var(--s3); border-radius: 0 var(--radius) var(--radius) 0; margin: var(--s3) 0; }

/* Steps */
ol.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--hair-2); }
ol.steps li { counter-increment: s; padding: var(--s3) 0 var(--s3) 64px; position: relative; border-bottom: 1px solid var(--hair); margin: 0; }
ol.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: var(--s3); font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 1.5rem; color: var(--gold-text); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
ol.steps li strong { display: block; margin-bottom: 4px; font-size: var(--fs-3); font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; letter-spacing: -.01em; }

/* FAQ */
.faq { border-top: 1px solid var(--hair-2); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--fs-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-weight: 400; flex: none; font-family: var(--serif); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: var(--s3); margin: 0; max-width: 68ch; line-height: 1.65; }

/* Price plates */
.plate { border: 1px solid var(--hair-2); border-radius: var(--radius-lg); padding: var(--s4); background: var(--paper); display: flex; flex-direction: column; gap: var(--s2); transition: border-color 150ms ease, box-shadow 150ms ease; }
.plate:hover { border-color: var(--ink-3); }
.band.tint .plate { background: var(--paper); }
.plate.featured { border-color: var(--gold); box-shadow: var(--shadow); }
.plate h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 1.55rem; letter-spacing: -.018em; line-height: 1.12; margin: 0; }
.plate .count { color: var(--teal-text); font-weight: 600; font-size: var(--fs-0); letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.plate .count b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plate .price { font: 600 2.4rem/1 var(--sans); letter-spacing: -.03em; margin: var(--s1) 0 0; }
.plate .price small { font: 500 var(--fs-0)/1.3 var(--sans); letter-spacing: 0; color: var(--ink-2); display: block; margin-top: 6px; }
.plate .sub { color: var(--ink-2); font-size: var(--fs-1); margin: 0; line-height: 1.55; }
.plate dl.inside { margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; border-top: 1px solid var(--hair); padding-top: var(--s2); }
.plate dl.inside dt { font: 600 .68rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.plate dl.inside dd { margin: 0; font-size: var(--fs-1); color: var(--ink); line-height: 1.5; }
.plate .per { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px 12px; font-size: var(--fs-0); color: var(--ink-2); }
.plate .per > span { min-width: 0; overflow-wrap: normal; }
.plate .per b { color: var(--ink); font-weight: 600; white-space: nowrap; margin-right: 4px; }
.plate .actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: var(--s1); }
.plate .actions .btn { width: 100%; }
.plate .actions .alt { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-0); }
.price-table td:first-child { font-weight: 600; }

/* CTA band */
.cta-band { background: radial-gradient(900px 400px at 90% 0%, var(--hero-bg-2), transparent 60%), var(--hero-bg); color: var(--hero-text); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px) var(--s4); text-align: center; }
.cta-band h2 { color: var(--hero-text); }
.cta-band p { color: var(--hero-muted); max-width: 52rem; margin-inline: auto; }
.cta-band .btns { justify-content: center; }
.cta-band a:not(.btn) { color: var(--gold); }

/* Breadcrumbs, page head */
.crumbs { font-size: var(--fs-0); color: var(--ink-3); padding-block: var(--s2); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--hair-2); }
.crumbs a { color: var(--ink-3); }
.page-head { padding-block: var(--s3) var(--s5); display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); align-items: center; }
.page-head.with-map { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .page-head.with-map { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: var(--s2); }
.page-head .meta { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }

/* Section link lists */
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.link-list a { padding: 6px 12px; border: 1px solid var(--hair-2); border-radius: 999px; background: transparent; color: var(--ink); text-decoration: none; font-size: var(--fs-0); font-weight: 500; transition: border-color 150ms ease, background-color 150ms ease; }
.link-list a:hover { border-color: var(--teal); background: var(--teal-soft); }

/* Two-column sidebar layout */
.cols { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
.cols > * { min-width: 0; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } .cols .side { position: sticky; top: 88px; } }
.main h2 { margin-top: var(--s6); }
.main h2:first-of-type { margin-top: var(--s5); }
.side .card + .card { margin-top: var(--s3); }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--s2); margin: 0; font-size: var(--fs-1); }
dl.kv dt { color: var(--ink-2); }
dl.kv dd { margin: 0; min-width: 0; }
.side dl.kv dd { overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--hair-2); background: var(--paper); padding-block: var(--s6) var(--s4); color: var(--ink-2); font-size: var(--fs-1); }
.site-footer .cols4 { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .site-footer .cols4 { grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: var(--s5); } }
.site-footer h4 { color: var(--ink-3); font: 600 .68rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brandline { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: var(--s2); }
.site-footer .brandline img { width: 30px; height: 30px; border-radius: 7px; }
.site-footer .tag { font-family: var(--serif); font-optical-sizing: auto; font-size: 1.15rem; font-style: italic; color: var(--ink); max-width: 30ch; line-height: 1.4; margin-bottom: var(--s2); }
.site-footer .micro { font-size: var(--fs-0); color: var(--ink-3); max-width: 52ch; line-height: 1.5; }
.site-footer .postal span, .site-footer .postal a { white-space: nowrap; }  /* wraps only at the "·" separators */
.site-footer .legal { margin-top: var(--s5); padding-top: var(--s2); border-top: 1px solid var(--hair); font-size: var(--fs-0); color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); }
.site-footer .legal .mark { width: 26px; height: 29px; opacity: .75; flex: none; }
.site-footer .legal .mark polygon { fill: var(--gold-text); }
.site-footer .legal .mark line { stroke: var(--gold-text); stroke-width: 1; opacity: .6; }

/* Changelog */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hair-2); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--hair); margin: 0; }
.timeline time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: var(--fs-1); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Samples */
.sample-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--hair); }
.sample-row:last-child { border-bottom: 0; }
.sample-row .t { min-width: 0; }
.sample-row .t b { display: block; font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.sample-row .t span { color: var(--ink-2); font-size: var(--fs-0); }

/* 404 */
.err { text-align: center; padding-block: var(--s8); }
.err h1 { font-size: var(--fs-6); }
.err .link-list { justify-content: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer .legal, .btns, .menu, .cta-band, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero .lead, .hero .eyebrow { color: #000; }
  .table-wrap { overflow: visible; }
}
