/* FaxFair site stylesheet. One file for every page. No framework, no build step.
   Design E, the app's look made clean for the web (Nico, 2026-11-01: "the sky background isn't
   clean on web", option D): a white page and a plain white header with the five-colour stripe
   under it, keeping the app's accents (rubber keys, a gray-green LCD, a teal Start button).
   Colours are copied from app/src/components/theme.ts. Like the app, the site is light only.

   Contrast (WCAG 2.1, computed 2026-11-01): ink/white 14.4, ink/band 13.3, ink/paper 13.4,
   ink/plastic 9.4, ink/key 11.2, ink-2/white 8.6, ink-2/band 7.9, ink-2/paper 8.0, ink-2/plastic 5.6,
   link/white 10.1, link/band 9.4, link/paper 9.4, link/plastic 6.6, focus/white 8.1, white/go 5.2, white/go-hover 6.3, lcd-ink/lcd 7.2, error/paper 6.8,
   success/paper 6.1, focus ring on sky 4.6. */

@font-face {
  font-family: "Chivo";
  src: url("/assets/fonts/chivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Michroma";
  src: url("/assets/fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("/assets/fonts/vt323-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Ground and machine */
  --ground: #FFFFFF;
  --band: #F6F6F3;      /* a quiet section band and the footer */
  --band-edge: #E6E5DF;
  --plastic: #D6D1C2;
  --plastic-hi: #E4E0D4;
  --plastic-lo: #CBC5B4;
  --plastic-edge: #ACA693;
  --key: #E7E3D7;
  --key-hover: #F0EDE4;
  --key-edge: #ACA693;
  --bezel: #3B3934;
  --lcd: #A7B198;
  --lcd-ink: #1D2318;

  /* Paper and ink */
  --paper: #F6F7F4;
  --paper-2: #ECEEEA;
  --ink: #2B2A25;
  --ink-2: #504C42;
  --paper-ink: #2F302C;
  --rule: rgba(47, 48, 44, 0.18);
  --rule-strong: rgba(47, 48, 44, 0.45);

  /* Actions and messages */
  --go: #1F7A70;
  --go-hover: #196B62;
  --go-edge: #13524B;
  --go-ink: #FFFFFF;
  --link: #1B3F80;
  --focus: #214D99;
  --error: #A3291C;
  --success: #1E6B3A;

  /* The stripe, left to right */
  --s1: #E8552A; --s2: #F2BE2E; --s3: #4F9E3C; --s4: #2A9BB4; --s5: #214D99;
  --stripe: linear-gradient(90deg, var(--s1) 0 20%, var(--s2) 20% 40%, var(--s3) 40% 60%, var(--s4) 60% 80%, var(--s5) 80% 100%);

  /* Type */
  --font-body: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Michroma", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  --font-lcd: "VT323", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: var(--font-body);
  --mono: var(--font-lcd);

  /* Shape */
  --wrap: 72rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --paper-shadow: 0 12px 22px rgba(30, 55, 70, 0.28);
  --plastic-shadow: 0 0 0 1px rgba(60, 55, 45, 0.28), inset 0 2px 0 #F1EEE5, inset 0 -4px 0 var(--plastic-edge);
  --section-pad: clamp(2rem, 4vw, 3rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2.25rem, 6.5vw, 3.6rem); font-weight: 860; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 820; letter-spacing: -0.02em; margin-top: 0; }
h3 { font-size: 1.1875rem; font-weight: 760; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 720; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--paper); color: var(--ink); padding: 0.6rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Small parts from the machine */
.eyebrow { font-family: var(--font-mark); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 0.75rem; }
.lcd {
  display: inline-block; font-family: var(--font-lcd); font-size: 1.35rem; line-height: 1; letter-spacing: 0.04em;
  color: var(--lcd-ink); background: var(--lcd); padding: 0.3rem 0.6rem 0.25rem; border-radius: 6px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--bezel);
}
.stripe { height: 6px; background: var(--stripe); }

/* Header: plain white, with the stripe under it */
.site-header { background: var(--ground); }
.site-header::after { content: ""; display: block; height: 4px; background: var(--stripe); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 0.7rem; padding-bottom: 0.8rem;
}
/* The app's brand: the five-bar mark next to the Michroma wordmark (app/src/components/ui.tsx StripeMark) */
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; min-height: 2.75rem; }
.stripe-mark { display: inline-flex; gap: 2px; flex: none; }
.stripe-mark i { display: block; width: 6px; height: 24px; }
.stripe-mark i:nth-child(1) { background: var(--s1); }
.stripe-mark i:nth-child(2) { background: var(--s2); }
.stripe-mark i:nth-child(3) { background: var(--s3); }
.stripe-mark i:nth-child(4) { background: var(--s4); }
.stripe-mark i:nth-child(5) { background: var(--s5); }
.wordmark { font-family: var(--font-mark); font-size: 1.125rem; letter-spacing: 0.01em; line-height: 1; }
.brand:hover .wordmark { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.app-icon { width: 3.5rem; height: 3.5rem; flex: none; border-radius: 22.5%; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0 0 3px; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9688rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-s);
}
.site-nav a:hover { background: var(--band); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

main { display: block; }
section { padding: var(--section-pad) 0; }
/* Two plain sections in a row share one gap instead of two (Nico, 2026-11-01: too much white space). */
section:not([class*="band-"]) + section:not([class*="band-"]) { padding-top: 0; }
.band-paper { background: var(--paper); color: var(--paper-ink); }
.band-plastic { background: var(--band); box-shadow: inset 0 1px 0 var(--band-edge), inset 0 -1px 0 var(--band-edge); }

.lede { font-size: 1.1875rem; max-width: 36em; }
@media (min-width: 48rem) { .lede { font-size: 1.3125rem; } }
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }

/* Buttons: the teal Start key and the rubber keys */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: var(--radius-m);
  background: var(--go); color: var(--go-ink); border: 0;
  box-shadow: 0 4px 0 var(--go-edge), inset 0 1px 0 rgba(255,255,255,0.18);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  margin-bottom: 4px;
}
.button:hover { background: var(--go-hover); text-decoration: none; }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--go-edge); }
.button.secondary { background: var(--key); color: var(--ink); box-shadow: 0 4px 0 var(--key-edge), inset 0 1px 0 #F7F5EE; }
.button.secondary:hover { background: var(--key-hover); }
.button.secondary:active { box-shadow: 0 1px 0 var(--key-edge); }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.65; cursor: default; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button small { font-weight: 500; opacity: 0.9; }

/* Home hero */
.hero { padding-top: clamp(2.25rem, 6vw, 4.25rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { max-width: 12em; }
.hero .button-row { margin-top: 1.75rem; }
.hero-note { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink); }

/* Transmission report slips: printed on fax paper, in the app's receipt type */
.slips { margin: 0; position: relative; display: grid; gap: 1.25rem; justify-items: center; padding: 0.5rem 0 1rem; }
.slip {
  --slip-tilt: -1.2deg;
  width: min(100%, 22rem);
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--font-lcd); font-size: 1.2rem; line-height: 1.25;
  padding: 1.1rem 1.25rem 1.6rem;
  transform: rotate(var(--slip-tilt));
  filter: drop-shadow(0 10px 14px rgba(30, 55, 70, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.slip + .slip { --slip-tilt: 1.4deg; }
@media (min-width: 60rem) { .slip + .slip { margin-left: 3rem; } .slips { justify-items: start; } }
.slip-title { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--rule-strong); padding-bottom: 0.45rem; margin-bottom: 0.6rem; }
.slip dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 0.1rem 0.75rem; margin: 0; }
.slip dt { color: var(--ink-2); }
.slip dd { margin: 0; }
.status-ok { color: var(--success); }
.status-fail { color: var(--error); }
.status-ok::before, .status-fail::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%;
  background: currentColor; margin-right: 0.4em; vertical-align: 0.1em;
}
.slip-caption { font-size: 0.875rem; color: var(--ink); text-align: center; max-width: 22rem; margin: 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .slip { animation: feed 700ms cubic-bezier(.2,.7,.2,1) both; }
  .slip + .slip { animation-delay: 260ms; }
  @keyframes feed { from { opacity: 0.4; transform: translateY(-14px) rotate(var(--slip-tilt)); } to { opacity: 1; transform: translateY(0) rotate(var(--slip-tilt)); } }
}

/* Steps: a real sequence, so the numbers carry meaning */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 48rem) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.send-hero h1 { max-width: none; }
.send-hero .lede { margin-bottom: 1.5rem; }
.steps > li {
  counter-increment: step; margin: 0; background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius-m); padding: 1.25rem 1.25rem 1.4rem; box-shadow: var(--paper-shadow);
}
.steps > li::before {
  content: counter(step); display: inline-block; font-family: var(--font-lcd); font-size: 2rem; line-height: 1;
  color: var(--lcd-ink); background: var(--lcd); border-radius: 6px; padding: 0.15rem 0.6rem 0.1rem; margin-bottom: 0.8rem;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.3), 0 0 0 3px var(--bezel);
}
.steps h3 { margin-bottom: 0.35rem; }

/* Promises */
.promises { display: grid; gap: 0; margin: 2rem 0 0; max-width: 52rem; }
.promises > div { display: grid; gap: 0.25rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--rule-strong); }
.promises > div:last-child { border-bottom: 1px solid var(--rule-strong); }
@media (min-width: 48rem) { .promises > div { grid-template-columns: 16rem 1fr; } }
.promises dt { font-weight: 800; }
.promises dd { margin: 0; }

/* Text blocks */
.split { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: var(--measure); }
.panel { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--paper-shadow); }

/* Price list, printed like a rate card */
.rate-card { width: 100%; max-width: 34rem; border-collapse: collapse; margin: 1.5rem 0 1rem; background: var(--paper); color: var(--paper-ink); box-shadow: var(--paper-shadow); }
.rate-card caption { text-align: left; font-weight: 800; padding-bottom: 0.5rem; color: var(--ink); }
.rate-card th, .rate-card td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--rule); text-align: left; }
.rate-card thead th { font-size: 0.9375rem; color: var(--ink-2); font-weight: 700; border-bottom: 2px solid var(--ink); }
.rate-card td, .rate-card thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.rate-card td:last-child { color: var(--ink-2); }
.rate-card tbody th { font-weight: 720; }

.placeholder { background: #FFF3B0; color: #2B2A25; padding: 0 0.2em; border-radius: 2px; }

.note { background: var(--paper); color: var(--paper-ink); border-left: 5px solid var(--go); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.sheet .note, .band-paper .note { background: var(--paper-2); }
.note > :last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--error); }

/* FAQ */
.faq { max-width: 48rem; margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--rule-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 760; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 1.35rem; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq details > div { padding: 0 0 1rem; }
.faq details > div > :last-child { margin-bottom: 0; }
.qa { max-width: 48rem; }
.qa h3 { margin-top: 1.6rem; }

/* Final call to action band: the machine's front panel */
.cta-band {
  background: var(--band);
  box-shadow: inset 0 1px 0 var(--band-edge), inset 0 -1px 0 var(--band-edge);
  border-top: 6px solid transparent;
  border-image: var(--stripe) 1;
  border-bottom: 0; border-left: 0; border-right: 0;
}
.cta-band .wrap { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band h2 { margin-bottom: 0.25rem; }
.cta-band p { margin: 0; }

/* Articles: a sheet of fax paper with a transmission header */
.sheet {
  background: var(--paper); color: var(--paper-ink); max-width: 48rem;
  margin: clamp(1rem, 4vw, 2.5rem) auto clamp(2rem, 6vw, 4rem);
  padding: 0 clamp(1rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem);
  border-radius: 4px; box-shadow: var(--paper-shadow);
}
.fax-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  font-family: var(--font-lcd); font-size: 1.15rem; letter-spacing: 0.03em; color: var(--ink-2); text-transform: uppercase;
  border-bottom: 1px dashed var(--rule-strong); padding: 0.75rem 0; margin-bottom: clamp(1.25rem, 4vw, 2.25rem);
}
.breadcrumbs { font-size: 0.875rem; margin: 0 0 0.75rem; color: var(--ink-2); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0; margin: 0; }
.breadcrumbs li + li { margin-top: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.25rem; color: var(--ink-2); }
.breadcrumbs a { color: var(--ink-2); }
.sheet h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); }
.sheet h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-top: 2.25rem; }
.sheet h3 { margin-top: 1.5rem; }
.dates { font-size: 0.9375rem; color: var(--ink-2); margin: -0.25rem 0 1.25rem; }
.answer { font-size: 1.1875rem; line-height: 1.55; }
@media (min-width: 48rem) { .answer { font-size: 1.25rem; } }
.sheet ol.howto { padding-left: 0; list-style: none; counter-reset: howto; }
.sheet ol.howto > li { counter-increment: howto; position: relative; padding-left: 2.6rem; margin-top: 0.9rem; }
.sheet ol.howto > li::before {
  content: counter(howto); position: absolute; left: 0; top: 0.05rem; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--go); color: var(--go-ink); font-weight: 800; font-size: 0.9375rem;
  display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 0 var(--go-edge);
}
.sheet ol.howto strong { display: block; }
.app-cta {
  margin: 2.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius-m);
  background: var(--band); box-shadow: inset 0 0 0 1px var(--band-edge);
  display: grid; gap: 0.9rem; color: var(--ink);
}
@media (min-width: 40rem) {
  .app-cta { grid-template-columns: 1fr auto; align-items: center; }
  .app-cta:has(.app-icon) { grid-template-columns: auto 1fr auto; }
}
.app-cta p { margin: 0; }
.related { border-top: 2px solid var(--ink); margin-top: 2.5rem; padding-top: 1rem; }
.related h2 { font-size: 1.25rem; margin-top: 0; }
.related ul { padding-left: 1.1rem; }
.sources { border-top: 1px dashed var(--rule-strong); margin-top: 2.5rem; padding: 1rem 0 0; font-size: 0.9375rem; }
.sources h2 { font-size: 1.125rem; margin-top: 0; }
.sources ol { padding-left: 1.3rem; }
.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
.compare { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.9688rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
.compare thead th { border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 720; }

/* Guides hub */
.guide-list { list-style: none; padding: 0; margin: 2rem 0 0; max-width: 48rem; display: grid; gap: 0.9rem; }
.guide-list li { margin: 0; padding: 1.1rem 1.25rem; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-m); box-shadow: var(--paper-shadow); }
.guide-list a { font-weight: 800; font-size: 1.1875rem; }
.guide-list p { margin: 0.25rem 0 0; color: var(--ink-2); }

/* Template gallery: each card is a sheet with its download keys */
.gallery { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.gallery > li { margin: 0; display: grid; grid-template-rows: auto 1fr; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-m); box-shadow: var(--paper-shadow); overflow: hidden; }
.gallery figure { margin: 0; background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: 0.9rem 0.9rem 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; background: #FFF; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.gallery .card-body { padding: 0.9rem 1rem 1.1rem; display: grid; gap: 0.5rem; align-content: start; }
.gallery h3 { font-size: 1.0625rem; margin: 0; }
.gallery p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
/* On a phone a full-width sheet per card makes the gallery several screens long: put the sheet beside its text. */
@media (max-width: 33.99rem) {
  .gallery { gap: 1rem; }
  .gallery > li { grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: none; }
  .gallery figure { border-bottom: 0; border-right: 1px solid var(--rule); padding: 0.75rem 0.6rem; }
  .gallery .card-body { padding: 0.75rem 0.85rem 0.9rem; }
}
.downloads { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.25rem; }
.downloads a, .downloads button {
  font: inherit; font-size: 0.875rem; font-weight: 760; text-decoration: none; color: var(--ink); border: 0; cursor: pointer;
  padding: 0.4rem 0.65rem; border-radius: var(--radius-s); background: var(--key); box-shadow: 0 2px 0 var(--key-edge);
  min-height: 2.25rem; display: inline-flex; align-items: center;
}
.downloads a:hover, .downloads button:hover { background: var(--key-hover); }
.downloads .primary { background: var(--go); color: var(--go-ink); box-shadow: 0 2px 0 var(--go-edge); }
.downloads .primary:hover { background: var(--go-hover); }

/* Cover sheet pages */
.cover-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.cover-hero h1 { max-width: 18em; }
.cover-hero .button-row { margin-top: 1.5rem; }
.cover-hero .breadcrumbs, .cover-hero .breadcrumbs a { color: var(--ink); }
.cover-gallery { padding-top: 0; }
.maker-band h2 { margin-bottom: 0.4rem; }
.maker-band .privacy-line { color: var(--ink-2); margin-bottom: 1.5rem; }
.gallery h4 { font-size: 1.0625rem; margin: 0; }

/* Cover sheets by use: the sheet beside what to write on it, then its download keys */
.by-use { padding-top: 0; }
.uses { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (min-width: 60rem) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uses > li { margin: 0; display: flow-root; padding: 1.1rem 1.15rem 1.2rem; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-m); box-shadow: var(--paper-shadow); }
.uses figure { float: left; width: 6rem; margin: 0.2rem 1rem 0.5rem 0; }
@media (min-width: 30rem) { .uses figure { width: 8rem; margin-right: 1.25rem; } }
.uses img { display: block; width: 100%; height: auto; background: #FFF; border: 1px solid var(--rule); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.uses h3 { font-size: 1.1875rem; margin: 0 0 0.4rem; }
.uses p { margin: 0 0 0.6rem; font-size: 0.9688rem; }
.uses .use-design { font-size: 0.875rem; color: var(--ink-2); }
.uses .downloads { clear: both; padding-top: 0.25rem; }
.sheet.plain { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.sheet section:not(.sources) { padding: 0; }
.sheet.plain > h2:first-of-type { margin-top: 0.5rem; }
.notice-sample { margin: 0.5rem 0 1.25rem; padding: 1rem 1.25rem; border: 1.5px solid var(--ink); border-radius: var(--radius-s); background: #FFFFFF; font-size: 0.9688rem; }
.notice-sample p { margin: 0; }

/* Filled-in examples: an image with notes beside it */
.example { display: grid; gap: 1.5rem; margin: 2rem 0; align-items: start; }
@media (min-width: 56rem) { .example { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.example img { width: 100%; height: auto; background: #FFF; box-shadow: 0 4px 14px rgba(30, 55, 70, 0.22); border: 1px solid var(--rule); }
.example ul { padding-left: 1.1rem; }
.example-block + .example-block { border-top: 1px dashed var(--rule-strong); margin-top: 2.5rem; padding-top: 0.5rem; }
.examples .example-block h2 { margin-top: 2rem; }
.jump ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump li + li { margin-top: 0; }
.jump a { display: inline-block; padding: 0.35rem 0.7rem; border-radius: var(--radius-s); background: var(--key); box-shadow: 0 2px 0 var(--key-edge); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem; }
.jump a:hover { background: var(--key-hover); }

/* Legal pages */
.legal h2 { font-size: 1.375rem; }
.legal ul { padding-left: 1.2rem; }

/* Footer: a quiet band */
.site-footer {
  background: var(--band);
  box-shadow: inset 0 1px 0 var(--band-edge); padding: 2.5rem 0 3rem; font-size: 0.9375rem; color: var(--ink);
}
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 2rem; }
.footer-cols h2 { font-family: var(--font-mark); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li + li { margin-top: 0.3rem; }
.site-footer a { color: var(--ink); }
.site-footer p { max-width: 48rem; }

/* Older cover sheet tool (kept until the new maker replaces it) */
.tool-intro { padding-bottom: 1.5rem; }
.tool { padding-top: 0; }
.tool-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64rem) { .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; } }
.tool-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.tool-form legend { font-weight: 800; font-size: 1.125rem; padding: 0; margin-bottom: 0.6rem; }
.field-row { display: grid; gap: 0.9rem; margin-bottom: 0.9rem; }
@media (min-width: 30rem) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.3rem; margin-bottom: 0.9rem; }
.field-row .field { margin-bottom: 0; }
.field label { font-weight: 700; font-size: 0.9688rem; }
.field .hint { font-size: 0.875rem; color: var(--ink-2); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #FFFFFF;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-s); padding: 0.6rem 0.7rem; width: 100%; min-height: 2.9rem;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--go); margin: 0; }
.templates { display: grid; gap: 0.6rem; }
@media (min-width: 30rem) { .templates { grid-template-columns: repeat(3, 1fr); } }
.template-option { position: relative; }
.template-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.template-option label { display: block; height: 100%; padding: 0.7rem 0.8rem; border-radius: var(--radius-s); background: var(--key); box-shadow: 0 3px 0 var(--key-edge); cursor: pointer; }
.template-option label span { display: block; font-size: 0.875rem; color: var(--ink-2); font-weight: 400; }
.template-option label strong { display: block; }
.template-option input:checked + label { background: var(--lcd); color: var(--lcd-ink); box-shadow: inset 0 2px 5px rgba(0,0,0,0.3); }
.template-option input:checked + label span { color: var(--lcd-ink); }
.template-option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.preview-col { position: relative; }
@media (min-width: 64rem) { .preview-col { position: sticky; top: 1rem; } }
.preview-frame { background: #FFFFFF; box-shadow: var(--paper-shadow); }
.preview-frame svg { display: block; width: 100%; height: auto; }
@media (min-width: 64rem) { .preview-frame { max-width: calc((100vh - 10rem) * 0.7727); margin: 0 auto; } }
.preview-actions { margin-top: 1rem; }
.status { min-height: 1.6em; margin: 0.75rem 0 0; font-size: 0.9375rem; }
.status.error { color: var(--error); font-weight: 700; }
.privacy-line { font-size: 0.9375rem; color: var(--ink-2); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }

@media print {
  body.printing-sheet > *:not(.print-root) { display: none !important; }
  body.printing-sheet { background: #FFFFFF; }
  body.printing-sheet .print-root { display: block !important; }
  body.printing-sheet .print-root svg { width: 100%; height: auto; display: block; }
  .site-header, .site-footer, .skip-link { display: none; }
  body, html { background: #FFFFFF; }
}
.print-root { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
