/* casestatuscheck.com — one stylesheet for every page. Tokens match the design canvas. */
:root {
  --bg: #F5F7F8; --surface: #FFFFFF; --ink: #11181C; --ink-2: #2B333B; --muted: #4B5560; --line: #DDE3E7; --line-2: #E8ECEF;
  --accent: #0B6B63; --accent-ink: #084F49; --accent-soft: #E3F1EF; --accent-bright: #2BB3A3;
  --blue: #1A4F92; --blue-soft: #E6EEF9; --amber: #8A4205; --amber-soft: #FCEFD9; --green: #17602F; --green-soft: #E4F3E9;
  --field: #9AA6B0; --radius: 18px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(23px, 2.4vw, 28px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: 0.06em; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 12px); align-items: center; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 800; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.main-nav a:hover { background: var(--bg); }
.main-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.disclaimer { max-width: 820px; font-size: 14px; color: var(--muted); }

/* Building blocks */
.card { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card-link { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.card-link:hover { border-color: var(--field); }
.card-dark { padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.card-dark .muted, .card-dark label { color: #C9D1D8; }
.callout { padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); color: #1C2B2A; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page { padding-top: 28px; }
.page > * + * { margin-top: 32px; }
.section > * + * { margin-top: 12px; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill-progress { background: var(--blue-soft); color: var(--blue); }
.pill-action, .pill-problem { background: var(--amber-soft); color: var(--amber); }
.pill-approved { background: var(--green-soft); color: var(--green); }
.pill-neutral { background: #EEF1F3; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; text-decoration: none; }
details.faq { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin-top: 10px; color: var(--muted); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.stat-value { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat-note { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Forms */
label { font-weight: 700; }
input, select, button { font: inherit; }
.field { height: 54px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--field); background: #fff; color: var(--ink); font-size: 17px; width: 100%; }
.field-receipt { font-family: var(--mono); font-size: 21px; letter-spacing: 0.08em; text-transform: uppercase; }
.field[aria-invalid="true"] { border-color: var(--amber); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-dark { background: var(--ink); }
.btn-bright { background: var(--accent-bright); color: #0B1F1D; font-weight: 800; }
.btn-bright:hover { background: #22998B; color: #0B1F1D; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.segmented button { min-width: 44px; height: 40px; padding: 0 12px; border: 0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Home and lookup tool */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-copy .lead { font-size: 19px; color: var(--muted); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; }
.lookup { flex: 1 1 420px; min-width: 0; padding: 28px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.turnstile { min-height: 65px; }
.result { display: flex; flex-direction: column; gap: 18px; }
.result:empty { display: none; }
.result-card { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.result-main { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.result-main h2 { font-size: clamp(26px, 3vw, 34px); }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ink-2); }
.official { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.official-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.result-help { padding: 22px 26px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 10px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .dot { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--field); }
.timeline li:first-child .dot { background: var(--accent); }
.timeline .line { flex: 1; width: 2px; background: var(--line); }
.timeline .step { padding-bottom: 18px; display: flex; flex-direction: column; gap: 3px; }
.timeline .date { font-size: 14px; font-weight: 700; color: var(--muted); }
.alert { padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1.5px solid #C7A27A; display: flex; flex-direction: column; gap: 12px; }
.alert-info { border-color: #9AB4D6; }
.loading { padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.notice-figure { margin: 0; flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.notice-field { padding: 10px 12px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.notice-field.hl { border: 2px solid var(--accent); background: var(--accent-soft); }
.notice-line { height: 10px; border-radius: 5px; background: #EEF1F3; }
.time-card .stat-value { font-size: 30px; }

/* Tables */
.table-box { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
thead th { background: var(--bg); font-size: 13px; color: var(--muted); }
tbody tr + tr, tbody tr { border-top: 1px solid var(--line-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody th { font-weight: 600; }
.table-wide { min-width: 720px; }

/* Charts */
.chart { width: 100%; height: auto; }
.chart text { font: 12px Inter, system-ui, sans-serif; fill: var(--muted); }
.chart .bar { fill: var(--accent); }
.chart .bar-label { fill: var(--ink); font-weight: 700; }

/* Two-column article */
.with-aside { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.with-aside > article { flex: 999 1 600px; min-width: 0; }
.with-aside > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.legal { max-width: 760px; }
.legal section + section { margin-top: 28px; }
.legal h2 { font-size: 24px; margin-bottom: 10px; }
.toc { display: flex; flex-direction: column; gap: 8px; }
