/* ==========================================================================
   incFACTS - design system stylesheet
   v2.1 "modern almanac" retheme - 2026-08-09
   Warm paper, ink serif, vermillion audit-stamp accent, Fraunces display,
   Public Sans UI, self-hosted fonts (assets/fonts/), no external requests.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/fraunces-600.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, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/fraunces-700.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, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/publicsans-400.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, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/publicsans-600.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, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/publicsans-700.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, U+FFFD;
}
/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  --paper: #F6F8FB;
  --surface: #FFFFFF;
  --surface-sunk: #EBEFF6;
  --ink: #0D1B33;
  --ink-2: #4A5A75;
  --ink-3: #8291A9;
  --rule: #E2E6EE;
  --rule-strong: #A9B4C6;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --accent-wash: #FBE8DA;
  --verified: #0E8F4D;
  --verified-wash: #E2F3E9;
  --provisional: #B97A0B;
  --provisional-wash: #FBF0DC;
  --withheld: #5C6A82;
  --withheld-wash: #EBEEF4;
  --changed: #6E3B92;
  --changed-wash: #F0E8F8;
  --focus: #C2410C;

  --font-display: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-micro: 11px;
  --fs-xs: 12.5px;
  --fs-sm: 14px;
  --fs-base: 17px;
  --fs-md: 19px;
  --fs-lg: 22px;
  --fs-xl: 27px;
  --fs-2xl: 34px;
  --fs-value: 44px;

  --s-1: 2px;  --s-2: 4px;  --s-3: 8px;  --s-4: 12px; --s-5: 16px;
  --s-6: 24px; --s-7: 32px; --s-8: 48px; --s-9: 64px;

  --shadow-scroll: inset -12px 0 12px -12px rgb(0 0 0 / 0.25);
  --wrap: 1500px;
  --prose: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C111D;
    --surface: #111827;
    --surface-sunk: #16202F;
    --ink: #E7ECF6;
    --ink-2: #A3B0C8;
    --ink-3: #71809C;
    --rule: #212B3D;
    --rule-strong: #4E5D78;
    --accent: #FF9D5C;
    --accent-hover: #FFB988;
    --accent-wash: #33200F;
    --verified: #4CC38A;
    --verified-wash: #12271D;
    --provisional: #E2B34C;
    --provisional-wash: #2A2210;
    --withheld: #9AA7BE;
    --withheld-wash: #1B2231;
    --changed: #C1A3E8;
    --changed-wash: #211A2E;
    --focus: #FF9D5C;
  }
}

:root[data-theme="dark"] {
  --paper: #0C111D;
    --surface: #111827;
    --surface-sunk: #16202F;
    --ink: #E7ECF6;
    --ink-2: #A3B0C8;
    --ink-3: #71809C;
    --rule: #212B3D;
    --rule-strong: #4E5D78;
    --accent: #FF9D5C;
    --accent-hover: #FFB988;
    --accent-wash: #33200F;
    --verified: #4CC38A;
    --verified-wash: #12271D;
    --provisional: #E2B34C;
    --provisional-wash: #2A2210;
    --withheld: #9AA7BE;
    --withheld-wash: #1B2231;
    --changed: #C1A3E8;
    --changed-wash: #211A2E;
    --focus: #FF9D5C;
}

/* --- 2. Reset and base --------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(640px 300px at 50% 0, color-mix(in srgb, var(--accent) 7%, transparent), transparent 75%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.62;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.28; margin: 0 0 var(--s-4); font-weight: 600; }
h1 { font-size: 42px; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: var(--fs-xl); margin-top: var(--s-8); }
h3 { font-size: var(--fs-lg); margin-top: var(--s-6); }
h4 { font-size: var(--fs-base); margin-top: var(--s-5); }
p { margin: 0 0 var(--s-5); max-width: var(--prose); }
ul, ol { max-width: var(--prose); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--surface);
  color: var(--ink); padding: var(--s-3) var(--s-5); z-index: 50; border: 1px solid var(--rule-strong);
}
.skip:focus { left: var(--s-5); top: var(--s-3); }

/* --- 3. Header and footer ------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-strong);
}
.site-header .bar {
  max-width: var(--wrap); margin: 0 auto; height: 56px;
  padding: 0 var(--s-5);
  display: flex; align-items: center; gap: var(--s-6);
}
.brand { display: flex; align-items: baseline; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  letter-spacing: -0.015em; white-space: nowrap; line-height: 1;
}
.wordmark .wm-inc { font-weight: 800; color: var(--ink); }
.wordmark b { font-weight: 800; color: var(--accent); }
.brand:hover .wordmark b { color: var(--accent-hover); }
.site-nav {
  display: flex; gap: var(--s-5); font-family: var(--font-ui); font-size: var(--fs-sm);
  min-width: 0; flex: 1 1 auto;
}
.site-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.header-spacer { margin-left: auto; }

/* Narrow screens: the nav becomes a scrollable strip rather than forcing the whole document
   into horizontal scroll. Every destination stays a real crawlable link. */
@media (max-width: 860px) {
  .site-header .bar { gap: var(--s-4); padding: 0 var(--s-4); }
  .site-nav {
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    gap: var(--s-4); padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { height: 0; }
}

.site-footer {
  margin-top: var(--s-9);
  border-top: 1px solid var(--rule-strong);
  background: var(--surface);
  font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2);
}
.site-footer .inner { max-width: var(--wrap); margin: 0 auto; padding: var(--s-7) var(--s-5); }
.site-footer p { max-width: none; font-family: var(--font-ui); font-size: var(--fs-xs); }
.disclosure {
  border-left: 3px solid var(--rule-strong); padding-left: var(--s-4);
  margin: var(--s-5) 0;
}
.theme-toggle { display: inline-flex; gap: var(--s-2); align-items: center; }
.theme-toggle button {
  font-family: var(--font-ui); font-size: var(--fs-micro); text-transform: uppercase;
  letter-spacing: 0.06em; padding: var(--s-2) var(--s-3); cursor: pointer;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--rule-strong); border-radius: 2px;
}
.theme-toggle button[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); font-weight: 600; }

/* --- 4. Layout ----------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-8); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); align-items: start; }
@media (max-width: 999px) { .cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); } }

.rail { font-family: var(--font-ui); font-size: var(--fs-sm); }
.rail-block { border-top: 2px solid var(--rule-strong); padding-top: var(--s-3); margin-bottom: var(--s-7); }
.rail-block h2, .rail-block h3 {
  font-family: var(--font-ui); font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-2); margin: 0 0 var(--s-3); font-weight: 600;
}
.rail-block ul { list-style: none; margin: 0; padding: 0; }
.rail-block li { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.rail-block li:last-child { border-bottom: 0; }

.breadcrumb {
  font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb .sep { padding: 0 var(--s-3); color: var(--rule-strong); }

.urlnote {
  font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ink-3);
  border: 1px dashed var(--rule-strong); padding: var(--s-2) var(--s-3);
  display: inline-block; margin-bottom: var(--s-5); border-radius: 2px;
}

.lede { font-size: var(--fs-md); color: var(--ink); max-width: var(--prose); }
.section-note { font-size: var(--fs-sm); color: var(--ink-2); max-width: var(--prose); }
.eyebrow {
  font-family: var(--font-ui); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 var(--s-2);
}

/* --- 5. Tier chips ------------------------------------------------------- */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 2px; white-space: nowrap;
  border: 1px solid currentColor; line-height: 1.5;
}
.chip .g { font-size: 11px; line-height: 1; }
.chip-verified { color: var(--verified); background: var(--verified-wash); }
.chip-provisional { color: var(--provisional); background: var(--provisional-wash); }
.chip-withheld { color: var(--withheld); background: var(--withheld-wash); }
.chip-changed { color: var(--changed); background: var(--changed-wash); }

/* --- 6. Provenance block ------------------------------------------------- */

.prov {
  border: 1px solid var(--rule-strong); background: var(--surface);
  margin: var(--s-5) 0 var(--s-6);
}
.prov > summary, .prov-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: var(--surface-sunk); border-bottom: 1px solid var(--rule-strong);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2);
}
.prov-body { padding: var(--s-4); }
.prov dl { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: 0; }
.prov dt {
  font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.05em; padding-top: 1px;
}
.prov dd { margin: 0; font-family: var(--font-ui); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.prov dd.cite { font-family: var(--font-mono); white-space: nowrap; overflow-x: auto; }
.prov dd.mono { font-family: var(--font-mono); }
.prov-note {
  border-top: 1px solid var(--rule); margin-top: var(--s-4); padding-top: var(--s-3);
  font-family: var(--font-text); font-style: italic; font-size: var(--fs-sm); color: var(--ink-2);
}
.prov-reason {
  background: var(--provisional-wash); color: var(--provisional);
  border-left: 3px solid currentColor; padding: var(--s-3) var(--s-4);
  margin: 0 0 var(--s-4); font-family: var(--font-ui); font-size: var(--fs-sm); line-height: 1.5;
}
.prov-reason a { color: inherit; }
.prov-inline {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  padding: var(--s-2) 0;
}
.prov-withheld {
  font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--withheld);
  background: var(--withheld-wash); border: 1px solid var(--rule-strong);
  padding: var(--s-3) var(--s-4);
}

/* verification-age ring: CSS only, no JS, no layout shift */
.ring {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  vertical-align: -1px; margin-right: 4px; flex: none;
  background: conic-gradient(currentColor calc(var(--pct, 20) * 1%), var(--rule) 0);
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 42%);
          mask: radial-gradient(circle, transparent 40%, #000 42%);
}
.ring-fresh { color: var(--verified); }
.ring-due { color: var(--provisional); }
.ring-over { color: var(--focus); }

/* --- 7. Values ----------------------------------------------------------- */

.answer {
  font-size: var(--fs-md); line-height: 1.5; max-width: var(--prose);
  margin: 0 0 var(--s-6);
}
.value-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-3); }
.value {
  font-family: var(--font-mono); font-size: var(--fs-value); font-weight: 600;
  line-height: 1; letter-spacing: -0.02em;
}
.value-label { font-family: var(--font-ui); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
@media (min-width: 900px) { .value { font-size: 60px; } }

/* --- 8. Tables ----------------------------------------------------------- */

.table-scroll { overflow-x: auto; position: relative; }
.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) { .table-scroll { box-shadow: var(--shadow-scroll); } }

table.data {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-ui); font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums lining-nums;
}
table.data caption {
  text-align: left; font-family: var(--font-ui); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2);
  padding-bottom: var(--s-3);
}
/* NOTE: top must be 0, not 56px. .table-scroll sets overflow-x, which makes the wrapper a
   scrollport on BOTH axes, so a 56px offset pushes the header down over the first data row
   and hides it. Correctness over the sticky-header nicety. */
table.data thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface-sunk); color: var(--ink-2);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600; text-align: left; vertical-align: bottom;
  padding: var(--s-3) var(--s-4); border-bottom: 2px solid var(--rule-strong);
}
table.data tbody th, table.data tbody td {
  padding: var(--s-4); border-bottom: 1px solid var(--rule); vertical-align: top;
}
table.data tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
table.data tbody tr:hover, table.data tbody tr:focus-within { background: var(--accent-wash); }
table.data .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
table.data .tier { text-align: center; white-space: nowrap; }
table.data .code { font-family: var(--font-mono); color: var(--ink-2); }
table.data .empty { color: var(--ink-3); font-size: var(--fs-xs); }
table.data .sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 4; border-right: 1px solid var(--rule-strong); }
table.data tbody tr:hover .sticky-col { background: var(--accent-wash); }
table.data.compact tbody th, table.data.compact tbody td { padding: var(--s-2) var(--s-4); }

.coverage {
  margin: var(--s-5) 0 var(--s-6); max-width: 780px;
  font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2);
}
.coverage-bar { display: flex; height: 8px; border: 1px solid var(--rule-strong); margin-bottom: var(--s-3); }
.coverage-bar span { display: block; height: 100%; }
.cv-verified { background: var(--verified); }
.cv-provisional { background: var(--provisional); }
.cv-withheld { background: var(--withheld); }
.coverage-key { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.coverage-key b { font-family: var(--font-mono); font-weight: 600; }

.defs { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s-4) 0; margin-bottom: var(--s-5); max-width: 860px; }
.defs dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--s-3) var(--s-5); margin: 0; }
.defs dt { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink); }
.defs dd { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); font-family: var(--font-ui); }
@media (max-width: 560px) { .defs dl { grid-template-columns: 1fr; gap: var(--s-1) 0; } .defs dd { margin-bottom: var(--s-3); } }

/* --- 9. Jurisdiction grid ------------------------------------------------ */

.jgrid { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-5) 0 var(--s-6); padding: 0; list-style: none; }
.jgrid li { margin: 0; }
.jgrid a {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule-strong); background: var(--surface); border-radius: 2px;
}
.jgrid a:hover { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.jgrid a[aria-current="page"] { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.jgrid a.dim { color: var(--ink-3); border-style: dashed; }

/* --- 10. Statutory quotation --------------------------------------------- */

.statute {
  background: var(--surface-sunk); border-left: 3px solid var(--rule-strong);
  padding: var(--s-5) var(--s-5) var(--s-4); margin: var(--s-5) 0; max-width: 820px;
}
.statute blockquote { margin: 0; font-family: var(--font-text); font-size: var(--fs-base); line-height: 1.55; }
.catchline {
  display: block; font-family: var(--font-ui); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2);
  margin-bottom: var(--s-3); font-weight: 600;
}
.elision { font-family: var(--font-mono); color: var(--ink-3); }
.statute .attrib {
  display: block; text-align: right; margin-top: var(--s-4);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2);
}

/* --- 11. Records (stacked tables on mobile) ------------------------------ */

.records { display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
.record {
  border: 1px solid var(--rule-strong); background: var(--surface); padding: var(--s-4);
}
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-3); }
.record-head h3 { margin: 0; font-size: var(--fs-base); }
.record dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: 0; font-family: var(--font-ui); font-size: var(--fs-sm); }
.record dt { color: var(--ink-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.record dd { margin: 0; }
@media (max-width: 560px) { .record dl { grid-template-columns: 1fr; } .record dd { margin-bottom: var(--s-3); } }

/* --- 12. Advertisement slots --------------------------------------------- */

.ad {
  border: 1px solid var(--rule); background: var(--surface-sunk);
  margin: var(--s-6) 0; padding: var(--s-3);
  contain: layout;
}
.ad::before {
  content: "Advertisement";
  display: block; font-family: var(--font-ui); font-size: var(--fs-micro);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.ad-inner {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--rule-strong); color: var(--ink-3);
  font-family: var(--font-mono); font-size: var(--fs-micro); text-align: center;
}
.ad-a .ad-inner { min-height: 90px; }
@media (max-width: 760px) { .ad-a .ad-inner { min-height: 250px; } }
.ad-b .ad-inner { min-height: 250px; }
.ad-c .ad-inner { min-height: 280px; }
.ad-b { position: sticky; top: 80px; }
@media (max-width: 999px) { .ad-b { display: none; } }
.ad-below { content-visibility: auto; contain-intrinsic-size: auto 320px; }

/* --- 13. Misc ------------------------------------------------------------ */

.callout {
  border: 1px solid var(--rule-strong); border-left: 3px solid var(--accent);
  background: var(--surface); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0;
  max-width: 860px; font-size: var(--fs-sm); font-family: var(--font-ui);
}
.callout h3 { margin-top: 0; font-family: var(--font-ui); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.callout p { font-family: var(--font-ui); font-size: var(--fs-sm); max-width: none; }
.callout :last-child { margin-bottom: 0; }
/* A caveat the reader must not skim past. Same furniture, provisional accent, wider so the
   arithmetic table inside it is not cramped. */
.callout-warn {
  border-left-color: var(--provisional); background: var(--provisional-wash);
  max-width: none;
}
.callout-warn h3 { color: var(--provisional); }
.callout-warn .table-scroll { margin: var(--s-4) 0; background: var(--surface); }

.ext { font-size: 0.8em; vertical-align: 1px; }

.change-entry { border-top: 1px solid var(--rule); padding: var(--s-5) 0; max-width: 860px; }
.change-entry:first-of-type { border-top: 2px solid var(--rule-strong); }
.change-meta { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: var(--s-3); }
.delta-old { color: var(--ink-3); text-decoration: line-through; font-family: var(--font-mono); }
.delta-new { color: var(--ink); font-weight: 600; font-family: var(--font-mono); }
.delta-arrow { color: var(--ink-3); padding: 0 var(--s-2); }

.gaps { font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--ink-2); }
.gaps li { margin-bottom: var(--s-2); }

.stat-row { display: flex; flex-wrap: wrap; gap: var(--s-7); margin: var(--s-5) 0 var(--s-7); }
.stat { border-top: 2px solid var(--rule-strong); padding-top: var(--s-3); min-width: 120px; }
.stat .n { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 600; display: block; line-height: 1.1; }
.stat .l { font-family: var(--font-ui); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }

.sortbtn {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}
.sortbtn::after { content: "\2195"; color: var(--ink-3); font-size: 10px; }
th[aria-sort="ascending"] .sortbtn::after { content: "\2191"; color: var(--accent); }
th[aria-sort="descending"] .sortbtn::after { content: "\2193"; color: var(--accent); }

.copybtn {
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 2px;
  font-family: var(--font-ui); font-size: var(--fs-micro); text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-2); cursor: pointer;
  padding: 1px 6px; margin-left: var(--s-3);
}
.copybtn:hover { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- 14. v2 additions: masthead, plates, tiles, charts, cartogram ---------- */

.masthead {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--s-7); align-items: end;
  border-bottom: 2px solid var(--rule-strong);
  padding-bottom: var(--s-6); margin-bottom: var(--s-6);
}
@media (max-width: 900px) { .masthead { grid-template-columns: 1fr; gap: var(--s-5); } }
.masthead h1 { margin-bottom: var(--s-4); }

/* Archival plate. Never a hero: no text is set over it and it never carries the H1. */
.plate { margin: 0 0 var(--s-5); }
.plate img {
  display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover;
  border: 1px solid var(--rule-strong); filter: saturate(0.78) contrast(1.02);
  background: var(--surface-sunk);
}
:root[data-theme="dark"] .plate img { filter: saturate(0.6) brightness(0.78); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plate img { filter: saturate(0.6) brightness(0.78); }
}
.masthead-plate { margin-bottom: 0; }
.masthead-plate img { max-height: 200px; }
.plate-cap {
  font-family: var(--font-ui); font-size: var(--fs-micro); color: var(--ink-3);
  margin: var(--s-2) 0 0; max-width: none; line-height: 1.45;
}
.plate-css { border: 1px solid var(--rule-strong); background: var(--surface-sunk);
  min-height: 120px; padding: var(--s-4); }

/* Stat tiles */
.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  background: var(--surface);
  border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong);
  margin: var(--s-6) 0 var(--s-7);
}
.tile {
  background: var(--surface); padding: var(--s-4) var(--s-5) var(--s-5);
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.tile .n {
  display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 600;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
}
.tile .l {
  display: block; font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2);
  margin-top: var(--s-3);
}
.tile .s {
  display: block; font-family: var(--font-ui); font-size: var(--fs-micro);
  color: var(--ink-3); margin-top: 2px;
}

/* Inline SVG charts. Generated from the same numbers the tables render. */
.chart { margin: var(--s-6) 0; }
.chart svg { display: block; max-width: 100%; height: auto; }
.chart figcaption {
  font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2);
  margin-top: var(--s-3); line-height: 1.45;
}
.chart .ax { stroke: var(--rule); stroke-width: 1; }
.chart .axt, .chart .lbl, .chart .val {
  font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink-3);
}
.chart .lbl { fill: var(--ink-2); font-size: 10px; }
.chart .val { fill: var(--ink); font-size: 10px; }
.chart .bar { fill: var(--accent); opacity: 0.82; }
.chart .b-low { fill: var(--verified); }
.chart .b-high { fill: var(--provisional); }
.chart .b-mid { fill: var(--accent); }
.chart .b-hl, .chart .hl { fill: var(--changed); opacity: 1; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--s-6); }
.two-up .chart { margin: var(--s-4) 0; }

/* Tile cartogram */
.map svg { max-width: 620px; }
.map .tile rect { stroke: var(--rule-strong); stroke-width: 1; fill: var(--surface-sunk); }
.map .tile text {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; fill: var(--ink-2);
}
.map .m-a rect { fill: var(--withheld-wash); }
.map .m-a text { fill: var(--withheld); }
.map .m-b rect { fill: var(--accent-wash); }
.map .m-b text { fill: var(--accent); }
.map .m-c rect { fill: var(--verified-wash); }
.map .m-c text { fill: var(--verified); }
.map .m-d rect { fill: var(--changed-wash); }
.map .m-d text { fill: var(--changed); }
.map .m-x rect { fill: var(--provisional-wash); }
.map .m-x text { fill: var(--provisional); }
.map .m-none rect { fill: transparent; stroke-dasharray: 2 2; }
.map .m-none text { fill: var(--ink-3); }
.mapkey { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-4); }
.mk {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2);
}
.mk i { width: 13px; height: 13px; border: 2px solid var(--rule-strong); display: block; flex: none; }
.mk b { font-family: var(--font-mono); }
.mk.m-a i { background: var(--withheld-wash); border-color: var(--withheld); }
.mk.m-b i { background: var(--accent-wash); border-color: var(--accent); }
.mk.m-c i { background: var(--verified-wash); border-color: var(--verified); }
.mk.m-d i { background: var(--changed-wash); border-color: var(--changed); }
.mk.m-x i { background: var(--provisional-wash); border-color: var(--provisional); }
.mk.m-none i { background: transparent; border-style: dashed; border-width: 1px; }

/* Table extras */
table.data .rank {
  width: 40px; text-align: right; font-family: var(--font-mono); color: var(--ink-3);
  font-size: var(--fs-xs); padding-right: var(--s-3);
}
table.data .small { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.45; white-space: normal; }
table.data th.small, table.data td.small { max-width: 420px; }
table.data .strong { font-weight: 600; color: var(--ink); }
table.data .up { color: var(--provisional); }
table.data .down { color: var(--accent); }
table.data .na, .na { color: var(--ink-3); font-size: var(--fs-xs); font-style: italic; }
table.data .unres, .unres {
  color: var(--provisional); font-size: var(--fs-xs);
  border-bottom: 1px dotted currentColor; cursor: help;
}
table.data .yes { color: var(--verified); }
table.data .no { color: var(--provisional); }
table.data .closed { color: var(--provisional); }
table.data .open { color: var(--verified); font-weight: 600; }
table.data td.cov, table.data th.cov {
  text-align: center; font-size: var(--fs-xs); padding-left: 4px; padding-right: 4px;
}
table.data td.cov.yes { color: var(--verified); }
table.data td.cov.no { color: var(--ink-3); }
table.data td.formula, .record dd.formula {
  font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2);
}

/* Cards */
.cards { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-7); max-width: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.cards li { margin: 0; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden; }
.cards li:hover { border-color: var(--accent); }
.cards a {
  display: block; padding: var(--s-4) var(--s-5); text-decoration: none; height: 100%;
}
.cards a:hover { background: var(--accent-wash); }
.cards b {
  display: block; font-family: var(--font-text); font-size: var(--fs-base); font-weight: 600;
  color: var(--accent); margin-bottom: var(--s-2);
}
.cards span {
  display: block; font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2);
  line-height: 1.5;
}

/* Citation article, statutes page */
.jbox { border: 1px solid var(--rule-strong); margin-bottom: var(--s-4); background: var(--surface); }
.jbox > summary {
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; cursor: pointer;
  padding: var(--s-3) var(--s-4); background: var(--surface-sunk);
  font-family: var(--font-ui); font-size: var(--fs-sm);
}
.jbox > summary .code { font-family: var(--font-mono); font-weight: 600; }
.jbox .jcount { color: var(--ink-3); font-size: var(--fs-xs); margin-left: auto; }
.jbody { padding: var(--s-4) var(--s-5); }
.cite { border-top: 1px solid var(--rule); padding-top: var(--s-4); margin-top: var(--s-4); }
.cite:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.cite-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.cite-id { font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.cite-act { font-family: var(--font-ui); font-size: var(--fs-xs); color: var(--ink-2); margin: var(--s-2) 0 0; }
.cite-meta { font-size: var(--fs-xs); color: var(--ink-3); margin: 0 0 var(--s-2); max-width: none; }
.withheld-note {
  border-left: 3px solid var(--provisional); background: var(--provisional-wash);
  color: var(--provisional); padding: var(--s-3) var(--s-4);
  font-family: var(--font-ui); font-size: var(--fs-sm); max-width: 780px;
}
.withheld-note a { color: inherit; }

.faq { border-bottom: 1px solid var(--rule); padding: var(--s-3) 0; max-width: 780px; }
.faq summary { cursor: pointer; font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.faq p { margin: var(--s-3) 0 0; font-size: var(--fs-sm); }

.cal-block { border-top: 2px solid var(--rule-strong); padding-top: var(--s-4); margin-top: var(--s-6); }
.cal-block h3 { margin-top: 0; display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

@media print {
  .site-header, .rail, .ad, .theme-toggle, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .prov { break-inside: avoid; }
  .plate { display: none; }
}

/* ---- glossary term tooltips (YNJ GlossaryTerm pattern, static edition) ---- */
a.term {
  color: inherit;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  position: relative;
  cursor: help;
}
a.term:hover, a.term:focus-visible { text-decoration-style: solid; }
a.term .tip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 60;
  width: 19rem;
  max-width: 82vw;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-sm);
  font-family: var(--font-ui);
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.12);
  border-radius: 6px;
  text-decoration: none;
}
a.term:hover .tip, a.term:focus-visible .tip { display: block; }
a.term .tip b { display: block; margin-bottom: 2px; }
a.term .tip i {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: var(--accent);
  font-size: var(--fs-micro);
}
/* keep the panel inside the viewport when the term sits near the left edge of
   a table cell: cells clip horizontally, so allow the panel to escape */
dl.glossary .aka {
  margin: 4px 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  font-family: var(--font-ui);
}
dl.glossary dt { scroll-margin-top: 80px; }


/* ---- Daylight Ledger overrides (2026-08-09, Doug: "put up with /daylight") ---- */
.stat, .prov, .callout, .cards a, .receipt { border-radius: 14px; }
.chip { border-radius: 99px; padding: 3px 11px; }
.eyebrow { color: var(--accent); background: var(--accent-wash); display: inline-block;
  border-radius: 99px; padding: 6px 14px; letter-spacing: 0.12em; }
.site-nav a[aria-current="page"] { color: var(--accent); }
a.term .tip { border-radius: 12px; border-left-width: 1px;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 14%, transparent); }
h2 { font-weight: 700; letter-spacing: -0.02em; }
.lede { color: var(--ink-2); }


/* header theme toggle (moved up from the footer, 2026-08-09) */
.htoggle { margin-left: auto; display: flex; gap: 2px; border: 1px solid var(--rule);
  border-radius: 99px; padding: 2px; background: var(--surface); }
.htoggle button { border: 0; background: transparent; color: var(--ink-3); font: 600 11px var(--font-ui);
  padding: 4px 10px; border-radius: 99px; cursor: pointer; }
.htoggle button[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); }
.header-spacer { display: none; }

/* ---- glossary index cards + detail (2026-08-10) ---- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px; margin: var(--s-6) 0; }
.gcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  color: inherit; border: 1px solid var(--rule); border-radius: 14px;
  padding: 20px 22px; background: var(--surface); }
.gcard:hover { border-color: var(--accent); }
.gcard .gterm { font-family: var(--font-display); font-size: var(--fs-lg);
  font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.gcard .gdef { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.gcard .gmore { font-family: var(--font-ui); font-size: var(--fs-micro);
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-top: auto; }
.gcard:hover .gmore { color: var(--accent); }
.gdetail { max-width: 72ch; font-size: var(--fs-md); line-height: 1.7; }
.gdetail p { margin: 0; }
.aka { font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--ink-2);
  background: var(--accent-wash); display: inline-block; border-radius: 99px;
  padding: 6px 14px; margin: 0 0 var(--s-4); }

/* prov blocks: header background follows the container's rounded corners */
.prov-head { border-radius: 13px 13px 0 0; }

/* homepage all-jurisdictions chart expander */
details.allchart { margin: var(--s-4) 0 var(--s-6); }
details.allchart > summary { cursor: pointer; font-family: var(--font-ui);
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent);
  padding: 8px 0; list-style-position: inside; }
details.allchart > summary:hover { color: var(--accent-hover); }
