/* Group Exemption Desk, shared styles.
   Identity: a determination-letter file. Cream letter paper, navy ink, one wax-seal red used
   only for dates that cannot move. Numbers and section labels are set in a typewriter mono. */

@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f5f3ee;
  --card: #fffefa;
  --ink: #1b2130;
  --muted: #535a68;
  --rule: #d5d0c3;
  --rule-soft: #e6e1d5;
  --accent: #233f78;
  --accent-deep: #172c56;
  --tint: #e8edf6;
  --seal: #9a3a22;
  --seal-tint: #f6e8e1;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1140px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--body);
  font-size: 1.0625rem; line-height: 1.62; overflow-wrap: break-word;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
svg { display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); line-height: 1.07; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.14; }
h3 { font-size: 1.16rem; line-height: 1.32; font-weight: 600; }
h4 { font-size: 1.02rem; line-height: 1.32; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
strong { font-weight: 600; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* Header: full nav when wide, native details menu when narrow (no script) */
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); position: relative; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.28rem; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 24px; }
.site-nav a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 4px; font-weight: 600; font-size: 0.95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 16px; height: 16px; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu-panel { padding: 8px var(--gutter) 18px; border-top: 1px solid var(--rule); background: var(--card); }
.menu-panel ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: grid; }
@media (min-width: 560px) { .menu-panel ul { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.menu-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel .btn { margin-top: 14px; width: 100%; color: #fff; }
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; box-shadow: 0 18px 30px -20px rgba(20, 30, 60, 0.4); }
}
@media (max-width: 599px) {
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .header-tools .header-cta { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.25; text-decoration: none; text-align: center; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--tint); color: var(--accent-deep); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .actions .btn { width: 100%; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 100px); border-top: 1px solid var(--rule); }
.section-alt { background: var(--card); }
.label { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.intro { max-width: 66ch; margin-top: 16px; color: var(--muted); font-size: 1.04em; }
.cite { margin-top: 8px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.cite a { color: var(--muted); }
.cite a:hover { color: var(--accent); }
.fine { margin-top: 14px; font-size: 0.93rem; color: var(--muted); }
.mt-lg { margin-top: 40px; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 92px) clamp(52px, 8vw, 100px); }
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; } }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { max-width: 18ch; }
.hero h1 .date { color: var(--seal); }
.lede { margin-top: 22px; max-width: 60ch; font-size: 1.07em; }
.lede + .lede { margin-top: 12px; }

/* Date card, set like the face of a letter */
.letter { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(30, 30, 60, 0.04), 0 24px 40px -30px rgba(20, 30, 60, 0.5); }
.letter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 20px; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.letter-head h2 { font: inherit; letter-spacing: inherit; }
.letter-head span { color: var(--muted); }
.dates { list-style: none; margin: 0; padding: 6px 20px; }
.dates li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.dates li:last-child { border-bottom: 0; }
.dates time { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: var(--accent); }
.dates .key time { color: var(--seal); font-size: 1.35rem; }
.dates .key strong { font-size: 1.05rem; }
.dates p { font-size: 0.95rem; color: var(--muted); }
.letter-foot { border-top: 1px dashed var(--rule); padding: 12px 20px 16px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.letter-foot a { color: var(--muted); }

/* Proof strip */
.proof { border-top: 1px solid var(--rule); background: var(--card); padding-block: 36px; }
.proof h2 { font-family: var(--mono); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.proof-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.proof-grid li { border-top: 2px solid var(--ink); padding-top: 12px; }
.proof-num { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.3rem); line-height: 1.1; color: var(--ink); }
.proof-grid p { margin-top: 6px; font-size: 0.97rem; color: var(--muted); }
.proof-foot { margin-top: 18px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* Rule duties */
.two-col { display: grid; gap: 44px; margin-top: 40px; }
@media (min-width: 980px) { .two-col { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: start; } }
.duties { list-style: none; margin: 0; padding: 0; counter-reset: duty; display: grid; gap: 26px; }
.duties > li { counter-increment: duty; display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
.duties > li::before { content: counter(duty); grid-row: span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-family: var(--mono); font-weight: 500; }
.duties h3 { margin-top: 6px; }
.duties p { margin-top: 6px; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 20px; }
.panel h3 { margin-bottom: 8px; }
.panel ul { margin: 10px 0 0; padding-left: 20px; }
.panel li + li { margin-top: 6px; }
.panel + .panel { margin-top: 16px; }
.side > .panel + .panel { margin-top: 0; }
.panel-accent { background: var(--tint); border-color: #c8d3e6; }
.panel-seal { background: var(--seal-tint); border-color: #e3c7bb; }
.side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 980px) { .side.sticky { position: sticky; top: 24px; } }

.diagram { margin: 44px 0 0; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 20px; }
.diagram svg { width: 100%; height: auto; }
.diagram-wide { max-width: 900px; margin-inline: auto; }
.diagram-tall { display: none; }
@media (max-width: 639px) { .diagram-wide { display: none; } .diagram-tall { display: block; max-width: 360px; margin-inline: auto; } }
.diagram figcaption { margin-top: 14px; font-size: 0.97rem; color: var(--muted); max-width: 74ch; }

/* Lists of work */
.work { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.work li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.work svg { grid-row: span 2; width: 24px; height: 24px; margin-top: 3px; color: var(--accent); }
.work p { color: var(--muted); }

/* Who does what */
.roles { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.roles > li { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 6px; padding: 22px 20px; }
.roles > li.you { border-top-color: var(--seal); }
.roles .who { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.roles h3 { font-family: var(--display); font-size: 1.4rem; margin: 6px 0 10px; }
.roles ul { margin: 0; padding-left: 20px; }
.roles li li + li { margin-top: 6px; }
.never { margin-top: 20px; padding: 16px 18px; border-left: 4px solid var(--seal); background: var(--card); max-width: 80ch; }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 20px; }
.steps li::before { content: "Step " counter(step); display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 6px; }
.steps .when { font-family: var(--mono); font-size: 0.82rem; color: var(--seal); margin-bottom: 8px; }
.steps p { color: var(--muted); }
.steps p.when { color: var(--seal); }

/* Free sheet call-out */
.check { display: grid; gap: 32px; background: var(--card); border: 2px solid var(--accent); border-radius: 8px; padding: clamp(22px, 4vw, 46px); }
@media (min-width: 980px) { .check { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; } }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ticks li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--rule-soft); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: 0.97rem; }

/* Prices */
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--card); }
.ledger caption { caption-side: top; text-align: left; padding: 0 0 12px; font-weight: 600; font-size: 1.05rem; }
.ledger caption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.ledger th, .ledger td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.ledger thead th { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.ledger tbody tr:nth-child(odd) { background: var(--tint); }
.ledger tbody th { font-weight: 600; }
.ledger .num { text-align: right; font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.ledger .price { font-size: 1.3rem; }
.ledger .unit { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 479px) { .ledger th, .ledger td { padding: 13px 10px; } .ledger .price { font-size: 1.1rem; } }
.notes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.notes li { position: relative; padding-left: 24px; color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 10px; height: 2px; background: var(--accent); }

.terms { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.terms div { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 700px) { .terms div { grid-template-columns: 200px 1fr; } }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; }
.supplier { font-style: normal; line-height: 1.6; }
.supplier strong { display: block; }

/* FAQ */
.faq { display: grid; margin-top: 36px; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--rule-soft); }
.faq-item h3 { margin-bottom: 8px; }

/* Cards */
.cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 24px 22px; }
.card .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.card h3 { font-family: var(--display); font-size: 1.4rem; line-height: 1.22; margin-bottom: 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p { color: var(--muted); }

/* Closing */
.closing { background: var(--accent-deep); color: #fff; padding-block: clamp(52px, 7vw, 88px); }
.closing h2, .closing h3 { color: #fff; }
.closing a:not(.btn) { color: #fff; }
.closing-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; } }
.closing p { color: #dfe5f2; }
.closing .btn { background: #fff; color: var(--accent-deep); border-color: #fff; }
.closing .btn:hover { background: var(--tint); }
.closing .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.closing .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.closing :focus-visible { outline-color: #fff; }
.email-big { display: inline-block; margin-top: 10px; font-family: var(--mono); font-weight: 500; font-size: clamp(1.05rem, 0.85rem + 1.2vw, 1.5rem); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--card); padding-block: 40px 44px; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; } }
.site-footer h2 { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-list a { display: inline-block; padding: 4px 0; color: var(--ink); }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule-soft); }
.footer-base p + p { margin-top: 6px; }

/* Article and prose pages */
.page { padding-block: clamp(36px, 6vw, 72px); }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem); }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin-top: 44px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose .standfirst { margin-top: 18px; font-size: 1.12em; color: var(--muted); }
.prose .meta { margin-top: 14px; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.prose blockquote { margin: 18px 0 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--card); }
.prose blockquote p { margin: 0; }
.prose .panel { margin-top: 24px; }
.prose figure { margin: 26px 0 0; }
.sources { margin-top: 44px; padding-top: 20px; border-top: 1px dashed var(--rule); }
.sources h2 { margin-top: 0; font-family: var(--mono); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sources ul { font-size: 0.95rem; }
.crumb { font-family: var(--mono); font-size: 0.82rem; margin-bottom: 18px; }
.crumb a { color: var(--muted); }

/* Count-back timeline */
.countback { list-style: none; margin: 22px 0 0; padding: 0; }
.countback li { position: relative; padding: 0 0 20px 30px; }
.countback li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.countback li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--rule); }
.countback li:last-child { padding-bottom: 0; }
.countback li:last-child::after { display: none; }
.countback time { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.95rem; }
.countback p { margin-top: 2px; color: var(--muted); font-size: 0.98rem; }
.countback .key::before { background: var(--seal); border-color: var(--seal); }
.countback .key time { color: var(--seal); }
.countback .key p { color: var(--ink); font-weight: 600; }

/* Sample readiness sheet */
.sample-bar { background: var(--ink); color: #fff; font-size: 0.93rem; padding-block: 10px; }
.sample-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.sample-bar strong { font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; background: #fff; color: var(--ink); padding: 1px 8px; border-radius: 2px; }
.sheet { margin-top: 32px; background-color: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 30px 50px -42px rgba(20, 30, 60, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220'%3E%3Ctext x='20' y='150' transform='rotate(-24 160 110)' font-family='Courier New,monospace' font-weight='700' font-size='54' letter-spacing='8' fill='%231b2130' fill-opacity='0.045'%3ESAMPLE%3C/text%3E%3C/svg%3E"); }
.sheet-head { display: grid; gap: 16px; padding: clamp(20px, 3.5vw, 34px); border-bottom: 2px solid var(--ink); }
@media (min-width: 760px) { .sheet-head { grid-template-columns: 1fr auto; align-items: end; } }
.sheet-kicker { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.sheet-title { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-top: 6px; }
.stamp { justify-self: start; border: 3px double var(--seal); color: var(--seal); padding: 6px 12px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-3deg); }
.stamp span { display: block; font-size: 0.7rem; letter-spacing: 0.06em; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding: 16px clamp(16px, 3vw, 28px); border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.facts dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--mono); font-weight: 500; font-size: 1.15rem; }
.sheet-sec { padding: clamp(20px, 3.5vw, 34px); border-bottom: 1px solid var(--rule); }
.sheet-sec h3 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 12px; }
.sheet-sec .ledger { margin-top: 8px; }
.sheet-sec .ledger tbody tr.flag { background: var(--seal-tint); }
.sheet-foot { padding: 18px clamp(20px, 3.5vw, 34px) 24px; font-size: 0.9rem; color: var(--muted); }
.status { display: inline-block; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 8px; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; }
.status.act { color: var(--seal); }
.status.ok { color: var(--accent); }
.bar { margin-top: 14px; }
.bar svg { width: 100%; height: auto; }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 18px; height: 12px; border: 1px solid var(--ink); }

/* 404 */
.lost { padding-block: clamp(60px, 10vw, 120px); }
.lost .code { font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--seal); }
.mt { margin-top: 14px; }
.need { columns: 1; margin: 18px 0 0; padding-left: 20px; }
@media (min-width: 900px) { .need { columns: 2; column-gap: 48px; } }
.need li { break-inside: avoid; margin-bottom: 10px; }
.legend .k-main { background: var(--tint); }
.legend .k-other { background: var(--seal-tint); border: 1px dashed var(--seal); }
.mt-lg { margin-top: 40px; }
@media (max-width: 599px) {
  .ledger.stack thead { display: none; }
  .ledger.stack tr, .ledger.stack th, .ledger.stack td { display: block; }
  .ledger.stack tbody th { padding-bottom: 6px; }
  .ledger.stack td { padding-top: 0; }
  .ledger.stack td.num { text-align: left; white-space: normal; }
}
@media (max-width: 599px) {
  .ledger.stack td .status { margin-top: 4px; }
  .ledger.stack td:last-child { padding-bottom: 16px; }
}
.ledger tbody tr.flag { background: var(--seal-tint); }
@media (max-width: 599px) { .ledger.stack th, .ledger.stack td:not(:last-child) { border-bottom: 0; } }
