/* Sidecar QC: the "Night" look (Tyler picked it 2026-11-10). Shared by every page.
   Fonts are self-hosted (no third-party requests; the checker page's CSP allows only 'self').
   Atkinson Hyperlegible Next and Mono, SIL Open Font License 1.1 (see /fonts/OFL-*.txt). */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-next-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-next-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/atkinson-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #121826;
  --surface: #1a2233;
  --field: #0d121d;
  --fg: #e8ecf3;
  --muted: #a3adbd;
  --line: #2a3346;
  --line-strong: #66728a;
  --accent: #8fb0ff;
  --accent-hover: #b3caff;
  --button-bg: #ffffff;
  --button-fg: #121826;
  --button-hover: #dfe7ff;
  --night: #1b2335;
  --amber: #ffb224;
  --error: #ff9b91;
  --error-bg: #3b1f26;
  --warn: #ffc35c;
  --warn-bg: #3a2e14;
  --note: #b4c3da;
  --note-bg: #232c3d;
  --ok: #7fdca5;
  /* The light "paper" card (the delivery file list and the sample report) */
  --paper: #ffffff;
  --paper-ink: #141821;
  --paper-soft: #4b5361;
  --paper-line: #d3d9e0;
  --radius: 10px;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.55 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; margin: 0 0 20px; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
code, .mono { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-weight: 800; letter-spacing: -0.01em; color: #fff; text-decoration: none; font-size: 1.1rem; }
.wordmark:hover { color: #fff; }
.site-header nav a { font-weight: 600; }
.site-footer { color: var(--muted); font-size: 0.95rem; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--line); margin-top: 48px; }
.site-footer p { margin: 0 0 8px; max-width: 70ch; }

.lede { font-size: 1.2rem; line-height: 1.45; margin: 0 0 10px; max-width: 62ch; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.small { font-size: 0.98rem; color: var(--muted); }

.button { display: inline-block; font: inherit; font-weight: 600; background: var(--button-bg); color: var(--button-fg); border: 0; border-radius: 8px; padding: 12px 20px; cursor: pointer; min-height: 44px; text-decoration: none; }
.button:hover { background: var(--button-hover); color: var(--button-fg); }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button.secondary:hover { color: var(--accent-hover); box-shadow: inset 0 0 0 1px var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 20px 0; }

/* ---------- Caption checker ---------- */
.intro { padding: 16px 0 8px; }
.privacy { color: var(--muted); margin: 0; max-width: 62ch; }

.checker { margin: 24px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 28px 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer; text-align: center; }
.drop:hover, .drop.dragging { border-color: var(--accent); }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-title { font-weight: 600; color: var(--accent); }
.drop-hint { color: var(--muted); font-size: 0.95rem; }
.drop-name { font-family: var(--mono); font-size: 0.9rem; margin-top: 6px; overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.98rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select { font: inherit; font-weight: 400; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field); color: var(--fg); min-height: 44px; }
.field-help.invalid { color: var(--error); }
.sample { margin: 14px 0 0; color: var(--muted); font-size: 0.98rem; }
.link-button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.results { margin: 8px 0 32px; }
.summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 4px; }
.summary h2 { margin: 0; }
.summary-meta { color: var(--muted); margin: 0 0 16px; font-size: 0.98rem; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.88rem; font-weight: 600; }
.badge.error { background: var(--error-bg); color: var(--error); }
.badge.warning { background: var(--warn-bg); color: var(--warn); }
.badge.note { background: var(--note-bg); color: var(--note); }
.badge.ok { background: var(--note-bg); color: var(--ok); }
.verdict { margin: 0 0 16px; font-weight: 600; }

.finding { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.finding.error { border-left-color: var(--error); }
.finding.warning { border-left-color: var(--warn); }
.finding.note { border-left-color: var(--note); }
.finding > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; min-height: 44px; }
.finding > summary::marker { color: var(--muted); }
.finding-body { padding: 0 14px 14px; }
.finding-body p { margin: 0 0 10px; }
.rule-quote { color: var(--muted); font-size: 0.95rem; }
.rule-quote q { font-style: italic; }
.items { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.items th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 8px 6px 0; }
.items td { vertical-align: top; border-bottom: 1px solid var(--line); padding: 6px 8px 6px 0; }
.items td.mono { font-family: var(--mono); font-size: 0.86rem; white-space: nowrap; }
.items .cue-text { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.86rem; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.more { margin-top: 10px; }
.passed { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.passed li { padding: 2px 0; break-inside: avoid; }
.passed li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

.limits { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.limits h2 { font-size: 1.3rem; margin-bottom: 12px; }
.limits ul { padding-left: 20px; margin: 0 0 10px; }
.limits li { margin-bottom: 6px; }
.limits p { margin: 0; color: var(--muted); }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .fields { grid-template-columns: 1fr; }
  .passed { columns: 1; }
  .items thead { display: none; }
  .items, .items tbody, .items tr, .items td { display: block; width: 100%; }
  .items tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .items td { border: 0; padding: 2px 0; }
  .items td.mono { white-space: normal; }
}
