/* Copyright (c) 2026 Eric Espeland. All rights reserved. */
/* timewrights.com. The tokens are the app's own (bench/web/static/app.css),
   so the site and the app read as one thing. Only what the site needs is
   copied; the colours keep the app's contrast tuning. */

:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5c665d;   /* 4.5:1 or better on every light background (accessibility check, 6 October 2026) */
  --faint: #696f68;
  --green: #315847;
  --green-dark: #24402f;
  --coral: #a56642;
  --coral-text: #8f5530;   /* the coral for small text: 4.5:1 on the light backgrounds; the brand coral stays for borders */
  --paper: #fffdf8;
  --wash: #f4f0e8;
  --line: #d9d0c1;
  --line-soft: #e4ddd1;
  --chip-bg: #f0eadf;
  --warn: #8c601c;
  --warn-bg: #f3e7cf;
  --placeholder: #ebe5d9;
  --placeholder-ink: #5f675f;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-numeric: "Helvetica Neue", Arial, sans-serif;
  --t-meta: 0.8125rem;
  --t-row: 0.9rem;
  --t-body: 1.0625rem;
  --t-head: 1.25rem;
  --t-section: 1.6rem;
  --t-display: 2.4rem;
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem;
  --radius: 8px;
  --measure: 68ch;
  --page: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f0ece1;
    --muted: #b7bdae;
    --faint: #a3aa9b;
    --green: #6aa88b;
    --green-dark: #3a6f57;
    --coral: #e0925f;
    --coral-text: #e0925f;
    --paper: #1b2519;
    --wash: #10150e;
    --line: #33402e;
    --line-soft: #2a3527;
    --chip-bg: #263323;
    --warn: #e0b567;
    --warn-bg: #3c3117;
    --placeholder: #263323;
    --placeholder-ink: #b7bdae;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: normal; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-section); margin-top: var(--s-12); margin-bottom: var(--s-4); }
h3 { font-size: var(--t-head); margin-top: var(--s-6); margin-bottom: var(--s-2); }
p { margin: 0 0 var(--s-4); }
a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-dark); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--ink); } }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 2px; }
img, svg { max-width: 100%; height: auto; }
code { font-size: 0.92em; background: var(--chip-bg); padding: 0 0.25em; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); z-index: 10; }
.skip:focus { left: var(--s-4); top: var(--s-2); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 48rem) { .wrap { padding: 0 var(--s-8); } }
.measure { max-width: var(--measure); }

/* ---- Beta banner: this copy is never public ---- */
.beta-bar { background: var(--warn-bg); color: var(--warn); font-size: var(--t-meta); text-align: center; padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); }
.beta-bar strong { color: inherit; }

/* ---- Header ---- */
.site-head { background: var(--wash); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); padding-top: var(--s-3); padding-bottom: var(--s-3); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; }
.logo-slot {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none;
  border: 1.5px dashed var(--faint); border-radius: 6px; color: var(--placeholder-ink);
  font: 700 0.55rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-5); font-size: var(--t-row); }
.nav a { color: var(--ink); text-decoration: none; padding: var(--s-2) 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.nav .btn { padding: var(--s-2) var(--s-4); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; background: var(--green); color: #fffdf8; text-decoration: none;
  padding: var(--s-3) var(--s-5); border-radius: var(--radius); font-weight: 700; font-size: var(--t-row);
  border: 1px solid var(--green); min-height: 44px; line-height: 1.5;
}
.btn:hover { background: var(--green-dark); color: #fffdf8; }
.btn.secondary { background: transparent; color: var(--green); }
.btn.secondary:hover { background: var(--chip-bg); color: var(--green-dark); }
@media (prefers-color-scheme: dark) {
  .btn { color: #10150e; }
  .btn:hover { color: #fffdf8; }
  .btn.secondary { color: var(--green); }
  .btn.secondary:hover { color: var(--ink); }
}
/* The header's Download button: .nav a (ink, green on hover and for the current page) would otherwise win */
.nav .btn, .nav .btn[aria-current="page"] { color: #fffdf8; text-decoration: none; }
.nav .btn:hover { color: #fffdf8; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .nav .btn, .nav .btn[aria-current="page"] { color: #10150e; }
  .nav .btn:hover { color: #fffdf8; }
}
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0; }

/* ---- Main ---- */
main { padding-bottom: var(--s-16); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.eyebrow { font-size: var(--t-meta); text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral-text); font-weight: 700; margin-bottom: var(--s-2); }
.page-head { padding: var(--s-12) 0 var(--s-6); }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: var(--t-meta); color: var(--muted); margin-bottom: var(--s-3); }
.crumbs a { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--t-row); }

/* Hero */
.hero { display: grid; gap: var(--s-8); padding: var(--s-12) 0 var(--s-8); align-items: center; }
@media (min-width: 60rem) { .hero { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); max-width: 16ch; }

/* Placeholders: anything not yet real looks unmistakably unfinished */
.ph {
  display: grid; place-items: center; text-align: center; background: var(--placeholder);
  color: var(--placeholder-ink); border: 1.5px dashed var(--faint); border-radius: var(--radius);
  font-size: var(--t-meta); padding: var(--s-6); min-height: 12rem;
}
.ph strong { display: block; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-1); }
.ph.wide { aspect-ratio: 16 / 10; min-height: 0; }
.ph-inline { background: var(--placeholder); color: var(--placeholder-ink); border: 1px dashed var(--faint); border-radius: 4px; padding: 0 0.35em; font-size: 0.92em; }

/* Cards and grids */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 40rem) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40rem) and (max-width: 56rem) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--wash); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--s-5); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; font-size: var(--t-row); }

.band { background: var(--wash); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: var(--s-8) 0; margin-top: var(--s-12); }
.band h2 { margin-top: 0; }

.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
@media (min-width: 48rem) { .promises { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .promises { grid-template-columns: repeat(5, 1fr); } }
.promises li { border-top: 3px solid var(--green); padding-top: var(--s-3); }
.promises strong { display: block; font-family: var(--font-display); font-weight: normal; font-size: var(--t-head); }

.areas { display: grid; gap: var(--s-6); }
.area { display: grid; gap: var(--s-5); align-items: start; padding-top: var(--s-6); border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .area { grid-template-columns: 1fr 1.2fr; } }
.area h3 { margin-top: 0; font-size: var(--t-section); }
.area ul { padding-left: 1.2em; }
.limits { font-size: var(--t-row); color: var(--muted); border-left: 3px solid var(--line); padding-left: var(--s-3); }

.status { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); background: var(--paper); }
.status dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); margin: 0; }
.status dt { font-weight: 700; }
.status dd { margin: 0; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-row); }
th, td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--wash); }
td.num, th.num { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Guides and jobs ---- */
.guide { display: grid; gap: var(--s-8); }
@media (min-width: 60rem) { .guide { grid-template-columns: minmax(0, var(--measure)) 18rem; justify-content: space-between; } }
.guide-body { max-width: var(--measure); }
.guide > * { min-width: 0; }
.guide-body img, .guide-body picture, .guide-body svg { max-width: 100%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-4) 0; }
.chips li { background: var(--chip-bg); border-radius: 999px; padding: var(--s-1) var(--s-3); font-size: var(--t-meta); }
.risk { border-left: 4px solid var(--coral); background: var(--wash); padding: var(--s-4) var(--s-5); margin: var(--s-6) 0; border-radius: 0 var(--radius) var(--radius) 0; }
.risk .label { color: var(--coral-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--t-meta); display: block; margin-bottom: var(--s-1); }
.risk p { margin: 0; }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s-6) 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s-6) 3rem; border-left: 1px solid var(--line); margin-left: 1rem; }
ol.steps > li:last-child { border-left-color: transparent; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: -1rem; top: -0.1rem; width: 2rem; height: 2rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fffdf8;
  font: 700 var(--t-row)/1 var(--font-numeric);
}
@media (prefers-color-scheme: dark) { ol.steps > li::before { color: #10150e; } }
.note { font-size: var(--t-row); margin: var(--s-2) 0 0; }
.note b { text-transform: uppercase; font-size: var(--t-meta); letter-spacing: 0.05em; }
.note.check b { color: var(--green); }
.note.beware b { color: var(--coral-text); }
.done { border: 1px solid var(--green); border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
.done .label { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--t-meta); display: block; }
.done p { margin: 0; }
.rail { font-size: var(--t-row); }
.rail section { border-top: 1px solid var(--line); padding: var(--s-4) 0; }
.rail h2 { font-size: var(--t-head); margin: 0 0 var(--s-2); }
.rail ul { padding-left: 1.1em; margin: 0; }
.rail li a { display: inline-block; min-height: 24px; padding: 2px 0; }
.app-note { background: var(--wash); border-radius: var(--radius); padding: var(--s-4) var(--s-5); font-size: var(--t-row); margin-top: var(--s-8); }
.app-note p { margin: 0; }
.in-app { background: var(--wash); border-radius: var(--radius); padding: var(--s-5) var(--s-6); margin-top: var(--s-8); }
.in-app h2 { margin-top: 0; }
.in-app ul { padding-left: 1.2em; }
.in-app li { margin-bottom: var(--s-2); }
.in-app p:last-child { margin-bottom: 0; }
.summary-only { border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--s-5); }
.video-link { display: block; text-decoration: none; }
.video-link .t { text-decoration: underline; }
.video-link .by { display: block; color: var(--muted); font-size: var(--t-meta); }
.ref-list { padding-left: 1.1em; }
.ref-list li { margin-bottom: var(--s-2); }

/* Ladder */
.ladder { list-style: none; padding: 0; margin: 0; }
.ladder li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.ladder .n { font: 700 var(--t-row)/1 var(--font-numeric); color: var(--muted); }
.ladder .meta { display: block; font-size: var(--t-meta); color: var(--muted); }
.tag { display: inline-block; font-size: var(--t-meta); background: var(--chip-bg); border-radius: 4px; padding: 0 var(--s-2); margin-left: var(--s-2); color: var(--muted); }

/* Glossary */
.glossary dt { font-family: var(--font-display); font-size: var(--t-head); margin-top: var(--s-5); scroll-margin-top: var(--s-4); }
.glossary dd { margin: var(--s-1) 0 0; max-width: var(--measure); }
.letters { display: flex; flex-wrap: wrap; gap: var(--s-1); list-style: none; padding: 0; }
.letters a { display: inline-grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }

/* Pricing and download */
.price-card { border: 2px solid var(--green); border-radius: var(--radius); padding: var(--s-8); background: var(--paper); max-width: 34rem; }
.price { font: 700 3rem/1 var(--font-numeric); margin: var(--s-4) 0 var(--s-2); }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: var(--s-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.dl-row { display: grid; gap: var(--s-3); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .dl-row { grid-template-columns: 10rem 1fr auto; align-items: start; } }
.dl-row h3 { margin: 0; }
.hash { font: var(--t-meta)/1.4 ui-monospace, Menlo, monospace; word-break: break-all; color: var(--muted); }
.warnbox { background: var(--warn-bg); color: var(--ink); border-radius: var(--radius); padding: var(--s-4) var(--s-5); font-size: var(--t-row); margin-top: var(--s-3); }
.warnbox strong { color: var(--warn); }

details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
summary { cursor: pointer; font-weight: 700; min-height: 24px; }
details[open] summary { margin-bottom: var(--s-2); }

/* Forms (placeholders only; nothing posts anywhere) */
.form-ph { border: 1.5px dashed var(--faint); border-radius: var(--radius); padding: var(--s-5); background: var(--wash); max-width: 34rem; }
.form-ph label { display: block; font-weight: 700; font-size: var(--t-row); margin-bottom: var(--s-1); }
.form-ph input[type="email"] { width: 100%; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-sm, 5px); font: inherit; background: var(--paper); color: var(--ink); min-height: 44px; }
.form-ph .consent { display: flex; gap: var(--s-2); font-weight: normal; margin: var(--s-3) 0; }

/* Changelog */
.release { border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-8); }
.release h2 { margin: 0; }
.release h3 { font-family: var(--font-body); font-size: var(--t-row); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.release ul { padding-left: 1.2em; max-width: var(--measure); }
.release li { margin-bottom: var(--s-2); }

/* Sponsor and disclosure */
.disclosure { background: var(--chip-bg); border-radius: var(--radius); padding: var(--s-3) var(--s-4); font-size: var(--t-row); margin-bottom: var(--s-6); }
.sponsor-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); position: relative; }
.sponsor-card .label { position: absolute; top: var(--s-3); right: var(--s-3); font-size: var(--t-meta); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); padding: 0 var(--s-2); border-radius: 4px; }

/* ---- Footer ---- */
.site-foot { background: var(--wash); border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-12); font-size: 0.75rem; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: 0 0 var(--s-5); font-size: var(--t-row); }
.foot-nav a { color: var(--ink); }
/* The footnotes run the full width, in italics, as in the app. */
.notices { max-width: none; font-style: italic; }
.notices p { margin-bottom: var(--s-2); }

/* ---- Print: guides at the bench ---- */
@media print {
  :root { --paper: #fff; --wash: #fff; --ink: #000; --muted: #333; }
  .beta-bar, .site-head .nav, .foot-nav, .skip, .app-note, .in-app, .actions, .print-hide, .sponsor-card { display: none !important; }
  body { font-size: 11pt; }
  .guide { display: block; }
  .rail { border-top: 1px solid #999; margin-top: 1rem; }
  a { color: #000; }
  .guide-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  ol.steps > li { break-inside: avoid; }
  ol.steps > li::before { background: #fff; color: #000; border: 1px solid #000; }
  .print-url { display: block !important; }
}
.print-url { display: none; font-size: var(--t-meta); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Space between a page's heading and its lead */
h1 + .lead, h1 + .chips, .hero h1 + .lead { margin-top: var(--s-4); }
/* Phone header: keep the button beside the links */
@media (max-width: 30rem) {
  .nav { gap: var(--s-1) var(--s-4); }
  .nav .btn { padding: var(--s-2) var(--s-3); min-height: 44px; }
}

/* Store badges: official artwork, unaltered; Apple's is a placeholder until listed */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: var(--s-3) 0; }
.badge-google { height: 60px; width: auto; display: block; }   /* Google's artwork has its own padding */
.ph-badge { display: inline-grid; place-items: center; text-align: center; height: 40px; min-width: 120px; padding: 0 var(--s-3);
  border: 1.5px dashed var(--faint); border-radius: 8px; background: var(--placeholder); color: var(--placeholder-ink);
  font-size: 0.7rem; line-height: 1.2; text-decoration: none; }
.ph-badge span { font-size: 0.6rem; }
.store-credits { font-size: var(--t-meta); }

/* ---- The interim mark (the app's TW ring, until the finished logo) ---- */
/* The logo (TimeWrights' official, 3 October 2026): 140 px tall on desktop and tablet, 90 on phones (Eric's sizes). */
.brand-logo { display: block; height: 140px; width: auto; flex: none; }
@media (max-width: 40rem) { .brand-logo { height: 90px; } }
.brand-logo.dark { display: none; }
@media screen and (prefers-color-scheme: dark) { .brand-logo.light { display: none; } .brand-logo.dark { display: block; } }
.tm { font-size: 0.55em; vertical-align: super; margin-left: 0.05em; }

/* ---- Revenue: placements, shop links, suppliers ---- */
.slot-open { border-style: dashed; background: var(--placeholder); margin: var(--s-6) 0; }
.sponsor-card { margin: var(--s-6) 0; max-width: var(--measure); }
.sponsor-card .sponsor-logo { display: block; max-height: 3rem; width: auto; margin-bottom: var(--s-3); }
.slot-house { margin: var(--s-6) 0; }
.sponsor-card.example { margin: 0; }
.banner-ph { aspect-ratio: 728 / 90; min-height: 0; padding: var(--s-3); }
.release-sponsor { border-top: 1px solid var(--line-soft); padding-top: var(--s-3); }
.buy { white-space: normal; font-size: var(--t-row); }
.buy a { white-space: nowrap; }
.suppliers { display: grid; gap: var(--s-4) var(--s-6); }
@media (min-width: 48rem) { .suppliers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .suppliers { grid-template-columns: repeat(3, 1fr); } }
.supplier { border-top: 1px solid var(--line-soft); padding-top: var(--s-3); }
.supplier h3 { margin-top: 0; }
.supplier p { margin-bottom: var(--s-2); }
table.placements td, table.placements th { vertical-align: top; }
.issue { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); background: var(--wash); }
.sponsor-list { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); list-style: none; padding: 0; }
@media print { .slot-house, .slot-open, .disclosure { display: none !important; } }

/* Round 2: banner spaces, labels, regional shop links */
.slot-open { padding-top: var(--s-8); }
.banner-slot { margin: var(--s-6) 0; position: relative; }
.banner-slot .banner-ph { aspect-ratio: 728 / 90; max-width: 728px; min-height: 0; padding: var(--s-2) var(--s-4); }
@media (max-width: 40rem) { .banner-slot .banner-ph { aspect-ratio: 320 / 100; max-width: 320px; } }
.banner-slot img { display: block; max-width: 100%; height: auto; }
.banner-label { position: absolute; top: 4px; right: 4px; font-size: var(--t-meta); background: var(--paper); color: var(--muted); padding: 0 var(--s-2); border-radius: 3px; }
.buy.regions { display: grid; gap: var(--s-1); }
.region-name { color: var(--muted); font-size: var(--t-meta); }

/* Round 3: stacked tables on phones, at a glance */
@media (max-width: 40rem) {
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
  table.stack th[scope="row"] { font-size: 1.05rem; padding: 0 0 var(--s-1); border: 0; }
  table.stack td { border: 0; padding: var(--s-1) 0; }
  table.stack td.num { text-align: left; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: var(--t-meta); font-weight: 700; }
  table.stack td.empty { display: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.glance { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.glance li { border-top: 3px solid var(--green); padding-top: var(--s-3); font-size: var(--t-row); color: var(--muted); }
.glance strong { display: block; font: 2rem/1.1 var(--font-display); color: var(--ink); }

table.compare td { text-align: center; width: 7rem; }
table.compare th[scope="row"] { font-weight: normal; }

.shot { margin: 0; }
.shot img { display: block; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(23,33,27,.10); }
.shot figcaption { margin-top: var(--s-2); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

h2.h3 { font-size: var(--t-head); margin-top: var(--s-6); margin-bottom: var(--s-2); }
.card > h2.h3:first-child, .card h2.h3 { margin-top: 0; }

/* The calibers index: a jump bar to each type, then each type by maker. */
.cal-jump { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-6); }
.cal-jump a { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; text-decoration: none; }
.cal-kind { margin-top: var(--s-8); scroll-margin-top: var(--s-4); }
.cal-maker { margin: var(--s-5) 0 var(--s-2); }
.cal-app { color: var(--muted); }
.cal-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .3rem var(--s-4); }

/* A support video: as wide as the text column, never wider. */
.support-video { margin: var(--s-4) 0; }
.support-video video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper, #f4f0e8); }
.support-video figcaption { margin-top: var(--s-2); }
