/* InsideCRA — site stylesheet (redesign, Oct 2026)
   Palette from the logo: indigo tile, cream, coral pupil, ink.
   Type: Source Serif 4 for headings and official text, Inter for explanation, JetBrains Mono for references.
   Zero-JS. Fonts are self-hosted (CSP font-src 'self'). */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/interlatin400normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/interlatin500normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/interlatin600normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/sourceserif4latin400normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/sourceserif4latin600normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("/static/fonts/sourceserif4latin400italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/jetbrainsmonolatin400normal.woff2") format("woff2"); }

:root {
  --indigo: #3C3489;        /* brand band */
  --indigo-2: #534AB7;      /* raised on indigo, hover */
  --indigo-3: #2E2770;      /* inputs on indigo */
  --indigo-tint: #ECEAF7;   /* chips, explanation badge */
  --on-indigo: #F7F3EC;
  --on-indigo-2: #DEDCF5;
  --lavender: #CECBF6;      /* eyebrow/breadcrumb on indigo */
  --cream: #F7F3EC;
  --paper: #FBF9F5;         /* official-text sheet head/foot */
  --white: #FFFFFF;
  --ink: #1C1B22;
  --ink-2: #2A2930;
  --ink-3: #3A3940;
  --ink-4: #45444B;
  --muted: #5B5A61;
  --line: #E5DFD3;
  --line-2: #ECE6DA;
  --coral: #D85A30;         /* fill with white text only */
  --coral-ink: #993C1D;
  --coral-dark: #4A1B0C;
  --coral-tint: #FAECE7;
  --coral-soft: #F0997B;    /* coral as text on ink */
  --teal: #085041;          /* CRARequired hand-offs only */
  --teal-tint: #E3EFE9;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 32px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-2); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
h2 { font-size: 38px; }
h3 { font-size: 22px; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--coral); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--indigo); color: var(--on-indigo); }
.site-header a { color: var(--on-indigo); }
.top-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 22px; letter-spacing: -0.01em; font-family: var(--sans); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; flex: 0 1 320px; }
.search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(247, 243, 236, 0.35); background: var(--indigo-3); color: var(--on-indigo); font: 400 15px var(--sans); }
.search input::placeholder { color: var(--lavender); }
.search button { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--coral); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.search button:hover { background: #C24E27; }
.nav { border-top: 1px solid rgba(247, 243, 236, 0.14); }
.nav > .wrap { display: flex; flex-wrap: wrap; gap: 2px 26px; font-size: 15px; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 8px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* ---------- Hero (home) and page heads ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lavender); }
.hero h1 { margin-top: 20px; font-size: 58px; line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--on-indigo-2); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.page-head { padding-top: 48px; padding-bottom: 56px; }
.crumbs { font-size: 14px; color: var(--lavender); }
.crumbs a { color: var(--on-indigo); }
.page-head .kicker { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--lavender); text-transform: uppercase; }
.page-head h1 { margin-top: 12px; font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; max-width: 24ch; }
.crumbs + h1 { margin-top: 18px; }
.page-head .tagline { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--on-indigo-2); }
.page-head .lede { margin-top: 14px; font-size: 18px; }

.badge { display: inline-block; padding: 4px 9px; border-radius: 6px; font: 400 12px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.badge-binding { background: var(--indigo); color: var(--on-indigo); }
.badge-explain { background: var(--indigo-tint); color: var(--indigo); }
.badge-guidance { background: var(--coral-tint); color: var(--coral-ink); }
.badge-now { background: var(--coral); color: #fff; font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 10px; font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #C24E27; color: #fff; }
.btn-ghost { background: transparent; color: var(--on-indigo); border: 1px solid rgba(247, 243, 236, 0.35); font-weight: 500; }
.btn-ghost:hover { background: var(--indigo-2); color: var(--on-indigo); }
.btn-teal { background: var(--teal); color: var(--cream); }
.btn-teal:hover { background: #0F6E56; color: var(--cream); }

/* ---------- Dates panel (home hero) ---------- */
.dates-panel { flex: 1 1 360px; min-width: 0; max-width: 440px; background: var(--cream); color: var(--ink); border-radius: 16px; padding: 28px; }
.dates-panel .label { color: var(--indigo); }
.dates-panel ol { list-style: none; margin: 18px 0 0; padding: 0; }
.dates-panel li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; }
.dates-panel li + li { margin-top: 20px; }
.dates-panel li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--indigo); }
.dates-panel li.now::before { background: var(--coral); }
.dates-panel li.future::before { background: transparent; border: 2px solid var(--indigo); }
.dates-panel .when { display: block; font-size: 13px; color: var(--muted); }
.dates-panel .when a { font-family: var(--mono); }
.dates-panel strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; }
.dates-panel .pill { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--coral-tint); color: var(--coral-ink); font-size: 12px; font-weight: 500; }
.dates-panel .note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-4); }

.label { font: 400 12px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--indigo); }

/* ---------- Sections and grids ---------- */
.section { padding-top: 88px; padding-bottom: 24px; }
.grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--indigo); color: var(--ink); }
.card strong { font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .count { font: 400 13px var(--mono); color: var(--indigo); }
.card span { font-size: 14px; color: var(--muted); }
.card.feature { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); }
.card.feature span { color: var(--on-indigo-2); }
.card h3 { margin-top: 6px; }
.card p { font-size: 15px; color: var(--ink-4); }

.callout { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px 36px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.callout > div { flex: 1 1 420px; min-width: 0; }
.callout .title { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.callout p { margin-top: 8px; color: var(--ink-4); }

.disclaimer { padding-top: 56px; padding-bottom: 96px; }
.disclaimer p, p.disclaimer-text { max-width: 80ch; font-size: 14px; line-height: 1.65; color: var(--muted); }
.disclaimer strong { color: var(--ink); font-weight: 600; }

/* ---------- Article index ---------- */
.index-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.legend { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-4); }
.legend::before, .has-explain::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.number-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.number-grid a { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 84px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.number-grid a:hover { border-color: var(--indigo); }
.number-grid small { font: 400 12px var(--mono); color: var(--muted); }
.number-grid b { font: 600 26px/1 var(--serif); }
.number-grid .title { font-size: 12px; line-height: 1.35; color: var(--muted); }
.number-grid a.has-explain { border: 2px solid var(--indigo); padding: 13px; }
.has-explain::after { position: absolute; top: 10px; right: 10px; }
.list { list-style: none; margin: 28px 0 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.list li + li { border-top: 1px solid var(--line-2); }
.list a { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 20px; color: var(--ink); text-decoration: none; }
.list a:hover { background: var(--paper); }
.list .num { font: 400 13px var(--mono); color: var(--indigo); }

/* ---------- Reference page layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; padding-bottom: 96px; }
.layout-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.layout-aside { flex: 1 1 300px; min-width: 0; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.layout-main h2 { font-size: 32px; }

/* Official text: the paper sheet */
.official { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.official-head, .official-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 24px; background: var(--paper); }
.official-head { border-bottom: 1px solid var(--line-2); }
.official-head h2 { font: 600 15px var(--sans); letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.official-head p { font-size: 13px; color: var(--muted); }
.official-body { padding: 28px 32px; font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.official-body ol { list-style: none; margin: 0; padding: 0; }
.official-body li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
.official-body li + li { margin-top: 18px; }
.official-body .n { font: 400 14px var(--mono); color: var(--indigo); padding-top: 4px; }
.official-body ol ol { margin-top: 10px; }
.official-body ol ol li + li { margin-top: 10px; }
.official-body ol ol .n { color: var(--muted); }
.official-foot { border-top: 1px solid var(--line-2); justify-content: flex-start; gap: 6px 18px; font: 400 12px var(--mono); color: var(--muted); }

/* Explanation */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; color: var(--ink-3); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 32px; color: var(--ink); }
.prose h2 + * { margin-top: 14px; }
.prose h3 { font-size: 22px; color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-underline-offset: 3px; }
.prose .fact, a.fact { font: 400 0.8em var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--indigo-tint); color: var(--indigo); text-decoration: none; }
.prose blockquote.guidance { margin: 0; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table-scroll { overflow-x: auto; }

.stats { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font: 600 34px/1.1 var(--serif); color: var(--indigo); }
.stat strong { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; }
.stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.pitfalls { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pitfalls li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 18px 20px; background: var(--coral-tint); border-radius: var(--radius); font-size: 16px; line-height: 1.6; color: var(--coral-dark); }
.pitfalls li::before { content: "!"; font: 600 16px var(--mono); color: var(--coral-ink); }

.related { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.related a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.related a:hover { border-color: var(--indigo); }
.related small { font: 400 12px var(--mono); color: var(--indigo); text-transform: uppercase; }
.related strong { font-size: 16px; font-weight: 600; }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.pager a:hover { border-color: var(--indigo); background: var(--white); }
.pager a.next { text-align: right; }
.pager small { font-size: 13px; color: var(--muted); }
.pager strong { font-size: 16px; font-weight: 600; }

/* Aside boxes */
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box > strong:first-child { font-size: 14px; font-weight: 600; }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { padding: 6px 10px; border-radius: 6px; background: var(--indigo-tint); color: var(--indigo); font: 400 13px var(--mono); text-decoration: none; }
.chips a:hover { background: #DCD8F2; }
.box dl { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.box dt { color: var(--muted); }
.box dd { margin: 0; }
.watch { background: var(--ink); color: var(--cream); border-radius: 14px; padding: 24px; }
.watch .label { color: var(--coral-soft); }
.watch .title { margin-top: 10px; font: 600 22px/1.25 var(--serif); }
.watch .btn { margin-top: 18px; width: 100%; min-height: 48px; font-size: 16px; }
.handoff { background: var(--teal-tint); border-radius: var(--radius); padding: 20px; color: var(--teal); }
.handoff strong { display: block; font-size: 15px; font-weight: 600; }
.handoff a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C6BD; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; padding-top: 48px; padding-bottom: 48px; }
.foot-about { flex: 1 1 360px; min-width: 0; }
.foot .brand { color: var(--cream); font-size: 18px; }
.foot .brand svg { width: 28px; height: 28px; }
.foot-about p { margin-top: 14px; font-size: 14px; max-width: 52ch; }
.foot-about p.eco { margin-top: 10px; font-size: 13px; color: #9C998F; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; align-content: flex-start; }
.foot a { color: #C9C6BD; }
.foot a:hover { color: var(--cream); }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  h2, .layout-main h2 { font-size: 28px; }
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .page-head h1 { font-size: 34px; }
  .page-head .tagline { font-size: 19px; }
  .lede { font-size: 17px; }
  .section { padding-top: 64px; }
  .official-body { padding: 20px; font-size: 17px; }
  .official-body li { grid-template-columns: 28px 1fr; }
  .callout { padding: 24px; }
  .search { flex: 1 1 100%; }
  .list a { grid-template-columns: 64px 1fr; }
  .list a > :last-child { display: none; }
}

@media print {
  .site-header .top-bar, .nav, .site-footer, .watch, .handoff, .pager, .skip-link { display: none !important; }
  body { background: #fff; }
  .site-header { background: #fff; color: var(--ink); }
  .page-head .crumbs, .page-head .crumbs a, .page-head .tagline { color: var(--muted); }
}

/* ==========================================================================
   InsideCRA-only additions (applied with the redesign, Oct 2026).
   Pieces the kit does not style: notices, provenance line, data tables,
   fact lists, record lists, official-text structure, pointer sheets, search
   page, index variants. Palette tokens only.
   ========================================================================== */
.notices { padding-top: 24px; }
.notice { padding: 14px 18px; border-radius: var(--radius); background: var(--coral-tint); color: var(--coral-dark); font-size: 15px; }
.notice + .notice { margin-top: 10px; }
.notice a { color: var(--coral-ink); }

.stack > * + * { margin-top: 48px; }
.intro { padding-bottom: 0; }
.intro .prose { font-size: 19px; color: var(--ink-3); }
.prose.wide { max-width: none; }
.prose .summary { font-size: 19px; color: var(--ink-2); }
.note { padding: 16px 20px; border-left: 3px solid var(--indigo); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; color: var(--ink-4); }
.list + .note, .number-grid + .note { margin-top: 24px; }
p.reviewline { font-size: 14px; color: var(--muted); }

/* Provenance trail (standalone) */
.prov { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 16px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font: 400 12px/1.6 var(--mono); color: var(--muted); }
.official-foot .badge, .prov .badge { padding: 2px 7px; font-size: 11px; }
.official-foot code, .prov code { font-size: 12px; overflow-wrap: anywhere; }
.official-foot a, .prov a { color: var(--indigo); }

/* Official text structure */
.official-body li { grid-template-columns: 44px 1fr; }
.official-body li > div > p + p, .official-body li > div > ol + p { margin-top: 10px; }
.official-body > p { margin-top: 14px; }
.official-body > p:first-child, .official-body > h3:first-child { margin-top: 0; }
.official-body h3 { margin: 28px 0 14px; font: 600 15px var(--sans); letter-spacing: 0; color: var(--indigo); }
.official-body > ol > li.sub { margin-left: 44px; }
.official-body > ol > li.sub + li.sub { margin-top: 10px; }
.official-pointer { padding: 24px 28px; font-size: 16px; color: var(--ink-3); }
.official-pointer a { text-underline-offset: 3px; }

/* Fact lists (explanation support) */
.facts h2 { font-size: 26px; }
.layout-main .facts h2 { font-size: 26px; }
.fact-list { list-style: none; margin: 18px 0 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.fact-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; padding: 14px 20px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.fact-list li + li { border-top: 1px solid var(--line-2); }
.fact-list a.fact { justify-self: start; font-size: 12px; }
.fact-list .cite { display: inline-block; margin-left: 6px; font: 400 12px var(--mono); color: var(--muted); }
.facts-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Records and data tables */
dl.record { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px 20px; margin: 14px 0 0; font-size: 15px; }
dl.record dt { color: var(--muted); }
dl.record dd { margin: 0; overflow-wrap: anywhere; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); }
.table-scroll { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.prose .table-scroll { margin-top: 14px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { font: 400 12px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
table.data code { font-size: 12px; }

/* Index variants */
.number-grid.wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.number-grid.wide b { font-size: 22px; }
.list .item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list .item strong { font-weight: 600; }
.list .item span { font-size: 14px; color: var(--muted); }
.list.no-num a { grid-template-columns: 1fr auto; }

/* Pager and aside extras */
.pager a.prev:only-child { grid-column: 1; }
.pager-3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pager a.all { text-align: center; }
.box.continue ul { margin: 10px 0 0; padding-left: 1.1em; font-size: 15px; }
.box.continue li + li { margin-top: 4px; }
.page-head .kicker .badge { font-size: 11px; }
.page-head .tagline a.fact { font-style: normal; font-size: 0.6em; vertical-align: middle; }

/* Search page form (on cream, not on indigo) */
.search.search-page { flex: none; max-width: 560px; margin-bottom: 8px; }
.search.search-page input { background: var(--white); color: var(--ink); border-color: var(--line); }
.search.search-page input::placeholder { color: var(--muted); }
.result-count { margin-top: 20px; font-size: 14px; color: var(--muted); }

@media (max-width: 720px) {
  .official-body li { grid-template-columns: 36px 1fr; }
  .official-body > ol > li.sub { margin-left: 20px; }
  .official-pointer { padding: 20px; }
  .fact-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  dl.record { grid-template-columns: 1fr; gap: 2px; }
  dl.record dd + dt { margin-top: 10px; }
  .list.no-num a { grid-template-columns: 1fr; }
  .facts h2, .layout-main .facts h2 { font-size: 24px; }
}

/* Kit clash fixes: .card span and .site-header a are broader than the badge
   and dates-panel rules they meet. */
.card .badge { align-self: flex-start; font-size: 12px; }
.card .badge-binding { color: var(--on-indigo); }
.card .badge-explain { color: var(--indigo); }
.card .badge-guidance { color: var(--coral-ink); }
.site-header .dates-panel a { color: var(--indigo); }
.official-body ol ol li.sub { margin-left: 36px; }
@media (max-width: 720px) { .official-body ol ol li.sub { margin-left: 16px; } }
a.fact, .chips a { white-space: nowrap; }
@media (max-width: 720px) {
  .nav > .wrap { gap: 0 20px; padding-top: 4px; padding-bottom: 4px; }
  .nav a { padding: 7px 0; }
}
.layout-main .official-head h2 { font-size: 15px; }
.watch .btn, .callout .btn { line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
.number-grid.mid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.number-grid .title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 720px) { .number-grid.mid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
table.data td + td, table.data th + th { white-space: nowrap; }
table.data td:first-child { min-width: 180px; }
