/* Prediction Market Laws
   Direction: "Contract". Big Shoulders for display, Public Sans for reading and data.
   Navy ink on white, an amber accent, and a five-step status scale shared by the map, badges and legends. */

@font-face { font-family: "Big Shoulders"; src: url("/fonts/bigshoulders-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/publicsans.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/publicsans-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #0f1720;
  --ink-2: #2c3644;
  --muted: #4a5565;
  --faint: #5d6675;
  --rule: #dce1e8;
  --rule-strong: #c3cad5;
  --wash: #f2f4f7;
  --amber: #f7cb5b;
  --amber-deep: #f2b705;
  --night-rule: #2b3644;
  --night-text: #c3cad5;

  --s-court: #c8102e;
  --s-lit: #f28c28;
  --s-enf: #f7cb5b;
  --s-law: #2a5bd7;
  --s-none: #e3e7ee;

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--s-law); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
b, strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.nowrap { white-space: nowrap; }
.kicker { font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; letter-spacing: 0.01em; }

/* Ticker */
.ticker { background: var(--ink); color: #fff; }
.ticker__inner { display: flex; align-items: stretch; min-height: 42px; }
.ticker__label { margin: 0; padding: 0 18px 0 0; display: flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); border-right: 1px solid var(--night-rule); }
.ticker__list { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 22px; border-right: 1px solid var(--night-rule); white-space: nowrap; color: #fff; text-decoration: none; font-size: 0.84375rem; height: 100%; }
.ticker__item:hover { color: #fff; background: #18222e; }
.ticker__item:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.ticker__date { font-family: var(--display); font-weight: 800; font-size: 0.9375rem; color: var(--amber); letter-spacing: 0.02em; }
.ticker__tag { font-weight: 700; }

/* Masthead */
.masthead { border-bottom: 2px solid var(--ink); background: var(--paper); }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.masthead__home { text-decoration: none; color: var(--ink); }
.masthead__home:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 40px; height: 38px; flex: none; }
.logo__text { font-family: var(--display); font-weight: 800; font-size: 1.625rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.logo--reversed { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule-strong); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.masthead__checked { margin: 0 0 0 auto; color: var(--muted); font-size: 0.8125rem; }

/* Type */
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; margin: 0 0 16px; letter-spacing: 0.002em; }
.h2--ruled { font-size: clamp(1.875rem, 2.6vw, 2.375rem); padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.625rem, 2.2vw, 2rem); line-height: 1.02; margin: 0 0 16px; }
.tick { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none; border: 2px solid var(--ink); }
.btn:hover { background: #26313f; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--wash); color: var(--ink); }

/* Hero */
.hero { padding: clamp(36px, 5vw, 56px) 0 0; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.hero__text { flex: 4.4 1 400px; min-width: 0; }
.hero__grid > .usmap { flex: 7.6 1 560px; min-width: 0; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(3.25rem, 6.4vw, 5.75rem); line-height: 0.9; letter-spacing: -0.004em; margin: 0; text-wrap: balance; }
.hero__lede { margin: 24px 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 42ch; }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }

/* Map */
.usmap { margin: 0; }
.usmap__canvas { position: relative; aspect-ratio: 1010 / 610; }
.usmap__svg { width: 100%; height: 100%; overflow: visible; }
.st { stroke: none; transition: filter 120ms ease; }
.st--court_blocked { fill: var(--s-court); }
.st--in_litigation { fill: var(--s-lit); }
.st--enforcement { fill: var(--s-enf); }
.st--legislation { fill: var(--s-law); }
.st--no_public_action { fill: var(--s-none); }
.usmap__state:hover .st, .usmap__state:focus-visible .st { filter: brightness(0.86) saturate(1.1); }
.usmap__state:focus { outline: none; }
.usmap__state:focus-visible .st { stroke: var(--ink); stroke-width: 2.5; }
.usmap__borders { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; pointer-events: none; }
.usmap__leader path { fill: none; stroke: #8a94a6; stroke-width: 0.8; }
.usmap__leader circle { fill: var(--ink); }
.usmap__labels { position: absolute; inset: 0; pointer-events: none; }
.lab { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: 0.04em; color: var(--ink); }
.lab--court_blocked:not(.lab--co), .lab--legislation:not(.lab--co) { color: #fff; }
.lab--co { transform: translate(0, -50%); display: inline-flex; align-items: center; gap: 4px; pointer-events: auto; text-decoration: none; padding: 2px 0; }
.lab--co:hover { text-decoration: underline; color: var(--ink); }
.lab__chip { width: 7px; height: 7px; border-radius: 1px; background: var(--s-none); }
.lab--court_blocked .lab__chip { background: var(--s-court); }
.lab--in_litigation .lab__chip { background: var(--s-lit); }
.lab--enforcement .lab__chip { background: var(--s-enf); }
.lab--legislation .lab__chip { background: var(--s-law); }
.lab--no_public_action .lab__chip { box-shadow: inset 0 0 0 1px var(--rule-strong); }
.usmap__readout { margin-top: 10px; min-height: 3em; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); max-width: 78ch; }
.usmap__readout-status { color: var(--muted); }

/* Status colour helpers */
.st-bg--court_blocked { background: var(--s-court); }
.st-bg--in_litigation { background: var(--s-lit); }
.st-bg--enforcement { background: var(--s-enf); }
.st-bg--legislation { background: var(--s-law); }
.st-bg--no_public_action { background: var(--s-none); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }

/* Yes/no split of real counts */
.split { margin-top: 28px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; background: var(--paper); }
.split__q { flex: 3 1 260px; min-width: 0; }
.split__kicker { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.split__question { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.625rem; line-height: 1.05; }
.split__data { flex: 5 1 420px; min-width: 0; }
.split__nums { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.875rem; font-weight: 600; }
.split__nums b { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; }
.split__bar { display: flex; height: 12px; gap: 2px; margin-top: 10px; }
.split__seg { flex-basis: 0; min-width: 3px; }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2); }
a.legend__item:hover { color: var(--ink); text-decoration: underline; }

/* Sections */
.section { padding: 64px 0; }
.section--top-rule { padding-top: 0; }
.section--quiet { background: var(--wash); }
.band { background: var(--wash); margin-top: 64px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 56px 0 60px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.section__head .h2 { margin-bottom: 0; }
.section__lede { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); max-width: 72ch; }
.section__more { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.section__foot { margin: 18px 0 0; font-size: 0.9375rem; font-weight: 600; }
.notice { margin: 22px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.cols { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; }
.cols__main { flex: 7 1 520px; min-width: 0; }
.cols__side { flex: 5 1 320px; min-width: 0; }

/* Question cards */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.qcard { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color 120ms ease; }
.qcard:hover { border-color: var(--ink); }
.block .qcard, .record .qcard { background: var(--paper); }
.qcard__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.78125rem; font-weight: 600; color: var(--muted); margin: 0; }
.pill { border: 1px solid var(--ink); border-radius: 999px; padding: 1px 9px; color: var(--ink); white-space: nowrap; }
.qcard__q { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.6875rem; line-height: 1.02; }
.qcard__q a { color: var(--ink); text-decoration: none; }
.qcard__q a:hover { text-decoration: underline; text-decoration-thickness: 2px; color: var(--ink); }
.qcard__clock p { margin: 0; }
.qcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.8125rem; }
.qcard__days { white-space: nowrap; }
.qcard__track { height: 6px; background: #e3e7ee; border-radius: 3px; margin-top: 7px; overflow: hidden; }
.qcard__fill { height: 100%; background: var(--ink); border-radius: 3px; }
.qcard__dash { height: 6px; border-radius: 3px; margin-top: 7px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
.qcard__ends { display: flex; justify-content: space-between; gap: 12px; font-size: 0.75rem; color: var(--muted); margin-top: 5px !important; }
.qcard__res { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.qcard__res b { color: var(--ink); }
.qcard__src { margin: auto 0 0; padding-top: 12px; border-top: 1px solid #e3e7ee; font-size: 0.78125rem; color: var(--muted); }
.qcard__src a { color: var(--muted); }

/* Resolved list */
.resolved { list-style: none; margin: 0; padding: 0; }
.resolved__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.resolved__row:last-child { border-bottom-color: var(--ink); }
.resolved__q { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.resolved__q a { color: var(--ink); text-decoration: none; }
.resolved__q a:hover { text-decoration: underline; }
.resolved__note { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.resolved__note a { color: var(--muted); }
.resolved__out { font-size: 0.875rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.resolved__out::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); }
.resolved__out--yes::before { background: var(--ink); }

/* Calendar */
.calendar { list-style: none; margin: 0; padding: 0; }
.calendar__row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 0.90625rem; line-height: 1.45; align-items: baseline; }
.calendar__row:last-child { border-bottom-color: var(--ink); }
.calendar__title { font-weight: 700; color: var(--ink); text-decoration: none; }
.calendar__title:hover { text-decoration: underline; }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed__item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.feed__title { font-weight: 700; color: var(--ink); text-decoration: none; }
.feed__title:hover { text-decoration: underline; }
.feed__text { font-size: 0.9375rem; line-height: 1.55; margin: 4px 0; color: var(--ink-2); max-width: 72ch; }
.feed__source { font-size: 0.78125rem; color: var(--muted); margin: 0; }
.feed__source a { color: var(--muted); }

/* Federal brief */
.fed-brief__lede { font-size: 1rem; line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; }
.fact { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.fact__label { font-size: 0.78125rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.fact__value { font-weight: 700; margin: 0 0 4px; }
.fact__meta { font-size: 0.875rem; color: var(--ink-2); margin: 0; }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 680px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.table thead th { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--ink); padding-top: 0; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table tbody th a { color: var(--ink); }
.table__case { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.table__case:hover { text-decoration: underline; }
.table__caption { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
.table__docket { display: block; color: var(--muted); font-size: 0.78125rem; margin-top: 2px; }
.table__text { font-size: 0.875rem; line-height: 1.5; min-width: 280px; color: var(--ink-2); }
.table__billtitle { display: block; font-size: 0.875rem; margin-bottom: 4px; color: var(--ink); }
.vs { font-style: italic; font-weight: 400; }

.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink); white-space: nowrap; background: var(--paper); }
.tag--preliminary_injunction_granted, .tag--charged, .tag--convicted { border-color: var(--s-court); color: #9d0c24; }
.tag--on_appeal, .tag--cert_petition_pending, .tag--remanded, .tag--pending { border-color: var(--ink); }
.tag--dismissed, .tag--settled, .tag--decided, .tag--preliminary_injunction_denied { color: var(--muted); }
.tag--bill-enacted { border-color: var(--s-law); color: #1f46ad; }
.tag--bill-failed, .tag--bill-vetoed { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 36px 0 0; font-size: 0.9375rem; }
.filters label { font-weight: 700; }
.filters select { font: inherit; min-height: 40px; padding: 6px 32px 6px 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230f1720'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; color: var(--ink); margin-right: 8px; }
.filters__count { color: var(--muted); margin-left: auto; }
.downloads { font-size: 0.875rem; color: var(--muted); }

/* How we sort */
.explain { max-width: 900px; }
.explain__list { margin: 0; }
.explain__row { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.explain__row dt { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.explain__row dd { margin: 0; line-height: 1.55; color: var(--ink-2); }
.explain__foot { margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }

/* Inner pages */
.page { padding-top: 24px; padding-bottom: 80px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 24px; font-size: 0.8125rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a5abbb; }
.crumbs a { color: var(--muted); }
.page__head { margin-bottom: 28px; }
.page__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.75rem, 5.4vw, 4.5rem); line-height: 0.92; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.page__lede { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); max-width: 64ch; margin: 0 0 24px; }
.how { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; background: var(--wash); max-width: 900px; }
.how__title { font-family: var(--display); font-weight: 800; font-size: 1.375rem; margin: 0 0 8px; }
.how ul { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }

.statehead { display: flex; align-items: center; gap: 28px; margin: 0 0 28px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.stateshape { width: 132px; height: 132px; flex: none; }
.statehead__text { min-width: 0; }
.statehead .page__title { margin-bottom: 14px; }
.statehead__status { margin: 0; }
.statehead__status .badge { font-size: 0.9375rem; }
.statehead__status .swatch { width: 12px; height: 12px; }

.record { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); }
.record__status { margin: 0 0 16px; }
.prose { font-size: 1.0625rem; line-height: 1.7; max-width: 68ch; color: var(--ink-2); }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.875rem; line-height: 1.05; margin: 40px 0 12px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose--page { margin-bottom: 40px; }
.block { margin-top: 48px; }
.block--tight { margin-top: 32px; }
.block > .h2--ruled + .qgrid, .block > .h2--ruled + .resolved { margin-top: 20px; }
.empty { color: var(--muted); font-size: 0.9375rem; }
.caution { border: 1px solid var(--s-enf); background: #fff8e6; border-radius: var(--radius); padding: 10px 14px; font-size: 0.875rem; color: var(--ink); max-width: 68ch; }

/* Case caption */
.case__kind { font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.case__caption { font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 0.98; margin: 0 0 14px; max-width: 24ch; }
.case__caption .vs { font-family: var(--sans); font-weight: 400; font-size: 0.55em; vertical-align: 0.2em; }
.case__court { font-size: 0.9375rem; color: var(--ink-2); margin: 0 0 16px; }
.question { border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 28px; max-width: 68ch; }
.question__label { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.question__text { font-size: 1.125rem; line-height: 1.5; margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.timeline__item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.timeline__date { font-size: 0.8125rem; font-weight: 700; color: var(--ink); padding-top: 3px; }
.timeline__label { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.timeline__body p { margin: 0; }
.timeline__body > p:not(.timeline__label):not(.timeline__source) { font-size: 0.96875rem; line-height: 1.6; color: var(--ink-2); }
.timeline__source { font-size: 0.78125rem; color: var(--muted); margin-top: 6px !important; }
.timeline__source a { color: var(--muted); }

/* Bills and case lists */
.bills, .caselist { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.bills__item { padding: 16px 0; border-top: 1px solid var(--rule); }
.bills__item p { margin: 0 0 4px; }
.bills__item > p:not(.bills__head):not(.bills__title):not(.timeline__source) { font-size: 0.96875rem; line-height: 1.6; color: var(--ink-2); }
.bills__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bills__id { font-weight: 700; }
.bills__date { color: var(--muted); font-size: 0.8125rem; }
.bills__title { font-weight: 700; color: var(--ink-2); font-size: 0.875rem; }
.caselist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: start; }
.caselist__name { font-weight: 700; font-size: 0.96875rem; color: var(--ink); }
a.caselist__name { text-decoration: none; }
a.caselist__name:hover { text-decoration: underline; }
.caselist__meta { grid-column: 1; font-size: 0.8125rem; color: var(--muted); }
.caselist .tag { grid-column: 2; grid-row: 1; }

.sources { font-size: 0.8125rem; padding-left: 1.5em; margin: 0; color: var(--muted); columns: 2 280px; column-gap: 32px; }
.sources li { margin-bottom: 6px; break-inside: avoid; }
.sources a { color: var(--ink-2); }
.source { word-break: break-word; }

.note { margin-top: 56px; padding: 18px 22px; background: var(--wash); border-radius: var(--radius); font-size: 0.8125rem; color: var(--ink-2); max-width: 860px; }
.note p { margin: 0; }

/* Side facts */
.record__side { align-self: start; position: sticky; top: 24px; }
.facts { margin: 0; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.facts > div:first-child { border-top: 2px solid var(--ink); }
.facts dt { font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0; font-size: 0.9375rem; }
.facts__note { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.facts__list { list-style: none; padding: 0; margin: 0; }
.facts__list li + li { margin-top: 4px; }
.facts--inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; margin: 12px 0; }
.facts--inline > div:first-child { border-top: 1px solid var(--rule); }
.facts--inline > .wide { grid-column: 1 / -1; }
.side-block { margin-top: 28px; }
.side-block__head, .peers__head { font-family: var(--display); font-weight: 800; font-size: 1.375rem; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.side-block .calendar__row { grid-template-columns: 72px minmax(0, 1fr); font-size: 0.84375rem; }
.side-block .tick { font-size: 1.0625rem; }
.peers { margin-top: 28px; font-size: 0.875rem; }
.peers ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* Federal */
.fedgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 48px; margin-top: 8px; }
.fedcard { border-top: 2px solid var(--ink); padding-top: 16px; }
.fedcard__name { font-size: 1.0625rem; line-height: 1.5; }
.points { font-size: 1rem; line-height: 1.65; max-width: 72ch; padding-left: 1.25em; color: var(--ink-2); }
.points li { margin-bottom: 0.6em; }
.year__head { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 28px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); max-width: 860px; }
.year .timeline__item:first-child { border-top: 0; }
.tl--major .timeline__item[data-importance="1"] { display: none; }
.toggle { font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 8px 12px; min-height: 40px; cursor: pointer; }
.toggle:hover { border-color: var(--ink); }

/* Footer */
.footer { background: var(--ink); color: var(--night-text); padding: 48px 0 36px; font-size: 0.875rem; margin-top: 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer a:hover { color: var(--amber); }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 48px; padding-bottom: 32px; border-bottom: 1px solid var(--night-rule); }
.footer__home { text-decoration: none; }
.footer__home .logo__text { color: #fff; }
.footer__notice { margin: 0; max-width: 72ch; line-height: 1.6; flex: 1 1 420px; }
.footer__notice b { color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; padding: 28px 0; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 10px; }
.footer__fine { margin: 0; padding-top: 20px; border-top: 1px solid var(--night-rule); font-size: 0.8125rem; }

@media (max-width: 860px) {
  .record { grid-template-columns: minmax(0, 1fr); }
  .record__side { position: static; }
  .masthead__checked { display: none; }
  .explain__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lab { font-size: 8.5px; letter-spacing: 0.02em; }
  .lab--co, .lab--small, .usmap__leader { display: none; }
  .ticker__label { display: none; }
  .masthead__inner { gap: 6px 24px; min-height: 0; }
  .logo__mark { width: 34px; height: 32px; }
  .logo__text { font-size: 1.375rem; }
  .masthead__nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav { flex-wrap: nowrap; gap: 20px; }
  .nav a { white-space: nowrap; }
  .feed__item, .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .resolved__row { grid-template-columns: minmax(0, 1fr) auto; }
  .resolved__row .resolved__body { grid-column: 1 / -1; grid-row: 2; }
  .calendar__row { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .filters__count { margin-left: 0; width: 100%; }
  .statehead { gap: 18px; align-items: flex-start; }
  .stateshape { width: 76px; height: 76px; margin-top: 4px; }
  .split { padding: 16px 18px; }
  .split__nums b { font-size: 2rem; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .qcard { padding: 18px 18px 16px; }
  .qcard__q { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .st, .qcard { transition: none; }
}
@media print {
  .ticker, .masthead nav, .filters, .footer, .usmap__readout { display: none; }
  a { color: inherit; }
}
