/* GeoLawWatch V2 */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece4;
  --text: #17212c;
  --muted: #5d6774;
  --line: #e2ddd2;
  --brand: #1a5a86;
  --brand-ink: #0f2a44;
  --accent: #e0951f;
  --focus: #2b7fd0;

  --o-live: #1e6fb8;
  --o-law: #17804d;
  --o-vetoed: #b3261e;
  --o-dead: #8b5a55;
  --o-paused: #8a6d1c;
  --o-ended: #7a828d;

  --t-live: #2477c4;
  --t-law: #22915a;
  --t-vetoed: #c0392b;
  --t-dead: #8d97a3;
  --t-none: #e7e3da;
  --t-ink-dark: #ffffff;
  --t-ink-light: #22313f;

  --sky-1: #0c2238;
  --sky-2: #16446b;
  --sky-3: #2c6b98;

  --radius: 12px;
  --shadow: 0 1px 2px rgb(20 30 40 / .06), 0 4px 16px rgb(20 30 40 / .05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1319;
    --surface: #141c25;
    --surface-2: #1a2430;
    --text: #e6ebf1;
    --muted: #98a4b3;
    --line: #26323f;
    --brand: #72b4e6;
    --brand-ink: #09141f;
    --accent: #f2a93b;
    --focus: #72b4e6;

    --o-live: #6cb0ee;
    --o-law: #5cc98f;
    --o-vetoed: #f07b72;
    --o-dead: #c9958f;
    --o-paused: #d8b75c;
    --o-ended: #9aa3ae;

    --t-live: #2f86d6;
    --t-law: #26945d;
    --t-vetoed: #c8473a;
    --t-dead: #465361;
    --t-none: #1a232d;
    --t-ink-light: #dbe5ef;

    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 4px 16px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 .55em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- masthead ---------- */
.masthead { background: var(--brand-ink); color: #dce9f5; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgb(255 255 255 / .06); }
.masthead-bar { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: #cfe6f7; }
.brand-dot { fill: var(--accent); }
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em; margin: 0; }
.brand-name b { color: var(--accent); font-weight: 700; }
.live-link { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #231500; font-weight: 700; font-size: .92rem; text-decoration: none; padding: 7px 14px; border-radius: 99px; white-space: nowrap; }
.live-link:hover, .live-link.is-current { filter: brightness(1.08); box-shadow: 0 0 0 3px rgb(242 169 59 / .3); }
.live-count { background: rgb(35 21 0 / .16); border-radius: 99px; padding: 0 8px; font-size: .8rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #b3261e; box-shadow: 0 0 0 0 rgb(179 38 30 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(179 38 30 / 0); } 100% { box-shadow: 0 0 0 0 rgb(179 38 30 / 0); } }
@media (max-width: 420px) { .live-link { padding: 6px 10px; font-size: .85rem; } .brand-name { font-size: 1.1rem; } }
.nav { display: none; gap: 2px; }
.nav a, .nav-ext a { color: #c4d6e8; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav-ext a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .12); }
.nav-ext { display: none; margin-left: auto; }
.nav-ext a { font-size: .88rem; border: 1px solid rgb(255 255 255 / .16); margin-left: 6px; }
@media (min-width: 980px) { .nav, .nav-ext { display: flex; } .menu { display: none; } }

.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; display: grid; gap: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: #dce9f5; border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 100%; background: var(--brand-ink); border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; padding: 8px; min-width: 220px; display: grid; box-shadow: 0 12px 40px rgb(0 0 0 / .35); }
.menu nav a { color: #dce9f5; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.menu nav a:hover { background: rgb(255 255 255 / .08); }
.menu hr { border-color: rgb(255 255 255 / .12); margin: 6px 0; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: #231500; font-weight: 600; padding: 10px 18px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.small { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn.big { padding: 14px 26px; font-size: 1.1rem; }
.more { font-weight: 600; text-decoration: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.cards { display: grid; gap: 14px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* bill card */
.bill { position: relative; border-left: 4px solid var(--oc, var(--line)); display: flex; flex-direction: column; gap: 8px; }
.bill.o-live { --oc: var(--o-live); }
.bill.o-law { --oc: var(--o-law); }
.bill.o-vetoed { --oc: var(--o-vetoed); }
.bill.o-dead { --oc: var(--o-dead); }
.bill.o-paused { --oc: var(--o-paused); }
.bill.o-ended { --oc: var(--o-ended); }
.bill-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.bill-id { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; }
.bill-id b { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.bill-sess { color: var(--muted); }
.bill-top .badge { margin-left: auto; }
.bill-title { font-size: 1.08rem; margin: 0; }
.bill-title a { color: var(--text); text-decoration: none; }
.bill-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.bill-title a:hover { color: var(--brand); }
.bill:hover { border-color: var(--line); box-shadow: 0 2px 4px rgb(20 30 40 / .08), 0 10px 30px rgb(20 30 40 / .08); border-left-color: var(--oc); }
.soundbite { color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: 4px; }
.fresh { background: var(--accent); color: #231500; font-weight: 700; padding: 1px 8px; border-radius: 99px; font-size: .75rem; }
.fresh.soft { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; }

.callout { position: relative; z-index: 1; margin: 0; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.callout.news { background: color-mix(in srgb, #7c4dcc 12%, transparent); border-left: 3px solid #7c4dcc; }
.callout.note { background: var(--surface-2); border-left: 3px solid var(--muted); }

/* badges + outcome colours */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: 2px 10px; border-radius: 99px; color: var(--oc); background: color-mix(in srgb, var(--oc) 13%, transparent); border: 1px solid color-mix(in srgb, var(--oc) 35%, transparent); white-space: nowrap; }
.o-live { --oc: var(--o-live); }
.o-law { --oc: var(--o-law); }
.o-vetoed { --oc: var(--o-vetoed); }
.o-dead { --oc: var(--o-dead); }
.o-paused { --oc: var(--o-paused); }
.o-ended { --oc: var(--o-ended); }

.pill-st { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; background: var(--brand-ink); color: #dce9f5; padding: 1px 6px; border-radius: 5px; margin-right: 4px; }

.flag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; border: 1px solid; }
.flag.ban { color: var(--o-law); border-color: currentColor; }
.flag.law { color: var(--o-law); }
.flag.live { color: var(--o-live); }
@media (prefers-color-scheme: dark) { .flag.ban { color: #5cc98f; } }
.flags { display: flex; gap: 8px; flex-wrap: wrap; }

/* stepper on bill page */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; padding: 0; max-width: 760px; }
.stepper li { position: relative; padding-top: 22px; font-size: .82rem; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 3px; background: var(--line); }
.stepper li.done::before { background: var(--oc); }
.stepper li:first-child::before { left: 8px; }
.stepper li:last-child::before { right: auto; width: 8px; }
.step-dot { position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.stepper li.done .step-dot { border-color: var(--oc); background: var(--oc); }
.stepper li.here .step-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--oc) 25%, transparent); }
.stepper li.done .step-label { color: var(--text); }
.stepper li.here .step-label { font-weight: 700; }
.step-label { display: block; padding-right: 8px; }

/* session bar */
.sbar { min-width: 0; }
.sbar-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sbar-label { font-weight: 600; font-size: .9rem; }
.sbar-track { display: block; width: 100%; height: 12px; margin: 6px 0 4px; }
.sbar-track .t { fill: var(--line); }
.sbar-track .f { fill: var(--o-live); }
.phase-adjourned .sbar-track .f { fill: var(--o-ended); }
.sbar-track .x { fill: var(--accent); }
.sbar-track .now { fill: var(--text); }
.sbar-ends { display: flex; justify-content: space-between; gap: 8px; }

/* ---------- sections ---------- */
.section { padding-block: 44px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin-bottom: .2em; font-size: 1.8rem; }
.section-head p { margin: 0; }
.band { background: var(--surface-2); border-block: 1px solid var(--line); }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.25fr 1fr; } }

.live-groups { display: grid; gap: 28px; }
.live-group { background: var(--surface-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 16px; }
.group-head { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 820px) { .group-head { grid-template-columns: 1fr minmax(280px, 420px); align-items: center; } }
.group-head h2 { font-size: 1.4rem; margin: 0; }
.group-head h2 a { color: inherit; text-decoration: none; }
audio { width: 100%; }

/* events */
.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.event time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; padding-top: 2px; }
.event-bill { text-decoration: none; color: var(--text); margin-right: 6px; white-space: nowrap; }
.event-bill b { margin-right: 2px; }
.event.meeting .event-text::before { content: "◆ "; color: var(--accent); }
@media (max-width: 520px) { .event { grid-template-columns: 1fr; gap: 2px; } }
.timeline .event { grid-template-columns: 8.5rem 1fr; }

.law-list { list-style: none; margin: 0; padding: 0; }
.law-list li { border-bottom: 1px solid var(--line); }
.law-list a { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; font-size: .93rem; }
.law-list a:hover .law-what { color: var(--brand); }
.law-when { color: var(--o-law); font-weight: 600; font-size: .85rem; }

/* ---------- tile map ---------- */
.tilemap { display: block; width: 100%; height: auto; }
.tile rect { fill: var(--tc); transition: filter .15s ease; }
.tile text { text-anchor: middle; font-family: var(--sans); pointer-events: none; fill: var(--ti); }
.tile .ab { font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.tile .n { font-size: 11px; opacity: .8; }
.tile .seed { fill: var(--accent); stroke: var(--tc); stroke-width: 1.2; }
.tile .sitting { fill: var(--ti); opacity: .9; }
.tile:hover rect, .tile:focus rect { filter: brightness(1.12) saturate(1.1); stroke: var(--text); stroke-width: 2; }
.t-live { --tc: var(--t-live); --ti: var(--t-ink-dark); }
.t-law { --tc: var(--t-law); --ti: var(--t-ink-dark); }
.t-vetoed { --tc: var(--t-vetoed); --ti: var(--t-ink-dark); }
.t-dead { --tc: var(--t-dead); --ti: var(--t-ink-dark); }
.t-none { --tc: var(--t-none); --ti: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; font-size: .82rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; background: var(--tc); display: inline-block; }

.state-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.state-card { padding: 0; border-left: 4px solid var(--tc); }
.state-card a { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.state-card a:hover .state-name { color: var(--brand); }
.state-name { font-weight: 600; }
.state-flags { display: flex; gap: 6px; margin-top: 4px; }
.state-flags:empty { display: none; }

/* ---------- inner pages ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 32px 0 28px; margin-bottom: 32px; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.bill-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.05rem; margin-bottom: 10px; }
.bill-kicker > span:not(.badge):not(.pill-st) { color: var(--muted); }
.bill-page h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 42ch; }
.bill-layout { display: grid; gap: 32px; padding-bottom: 48px; }
@media (min-width: 980px) { .bill-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.bill-aside, .state-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 980px) { .bill-aside, .state-aside { position: sticky; top: 84px; } }
.aside-h { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8em; }
.facts dl { display: grid; grid-template-columns: 7rem 1fr; gap: 8px 12px; margin: 0 0 16px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .sbar { margin: 4px 0 16px; }
.facts-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

.prose { font-size: 1.05rem; }
.prose section { margin-bottom: 36px; }
.prose h2 { font-size: 1.45rem; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose ul, .prose ol:not(.events) { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.pull { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 24px; }
.prose .callout { margin-bottom: 16px; }
.billtext summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 6px 0; }
.billtext pre { white-space: pre-wrap; word-wrap: break-word; font: .88rem/1.6 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 70vh; overflow: auto; }

.state-layout { display: grid; gap: 32px; padding-bottom: 48px; }
@media (min-width: 980px) { .state-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }
.session-block { margin-bottom: 36px; }
.session-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 6px; }
.session-head h2 { margin: 0; font-size: 1.35rem; }

/* explorer */
.filters { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; position: sticky; top: 60px; z-index: 3; }
@media (min-width: 820px) { .filters { grid-template-columns: 2fr 1fr 1fr; align-items: end; } .filters .chips { grid-column: 1 / -1; } }
@media (max-width: 819px) { .filters { position: static; } }
.filters label { display: grid; gap: 4px; }
.f-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.filters input[type=search], .filters select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips legend { float: left; margin-right: 8px; }
.chips label { display: inline-block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; cursor: pointer; color: var(--oc, var(--text)); }
.chips input:checked + span { background: var(--oc, var(--text)); color: var(--surface); border-color: transparent; }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.result-count { font-weight: 600; color: var(--muted); }
.result-group { margin-bottom: 32px; }
.group-title { font-size: 1.3rem; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.group-title a { color: inherit; text-decoration: none; }

/* calendar */
.cal-card { padding: 12px 12px 16px; margin-bottom: 28px; }
.cal-scroll { overflow-x: auto; }
.cal { display: block; min-width: 760px; width: 100%; height: auto; font-family: var(--sans); }
.cal .grid { stroke: var(--line); }
.cal .month { font-size: 11px; fill: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cal .row-bg { fill: transparent; }
.cal-row:hover .row-bg { fill: var(--surface-2); }
.cal .lbl { font-size: 13px; font-weight: 600; fill: var(--text); }
.cal .sub { font-size: 10px; fill: var(--muted); }
.cal .bar.now { fill: var(--o-live); }
.cal .bar.future { fill: color-mix(in srgb, var(--o-live) 35%, transparent); }
.cal .bar.past { fill: color-mix(in srgb, var(--t-dead) 45%, transparent); }
.cal .xover { fill: var(--accent); }
.cal .today { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.cal .today-lbl { font-size: 10px; fill: var(--accent); font-weight: 700; }
.cal .nodates { font-size: 11px; fill: var(--muted); font-style: italic; }
.sw.cal-now { background: var(--o-live); }
.sw.cal-future { background: color-mix(in srgb, var(--o-live) 35%, transparent); }
.sw.cal-past { background: color-mix(in srgb, var(--t-dead) 45%, transparent); }
.sw-x { width: 3px; height: 14px; background: var(--accent); display: inline-block; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; margin-bottom: 48px; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); }
.table tbody th a { color: var(--text); font-weight: 600; text-decoration: none; }
.table td.phase-sitting { color: var(--o-live); font-weight: 600; }
@media (max-width: 720px) {
  .cal-table thead { display: none; }
  .cal-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .cal-table th, .cal-table td { border: 0; padding: 4px 12px; }
  .cal-table th, .cal-table td:nth-child(2), .cal-table td:last-child { grid-column: 1 / -1; }
}

.month-block { margin-bottom: 28px; }
.month-h { font-size: 1.1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); position: sticky; top: 60px; background: var(--bg); padding: 8px 0; margin: 0; z-index: 1; }

/* about */
.whats-new { border-top: 4px solid var(--accent); margin-bottom: 36px; }
.whats-new h2 { border: 0; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .glossary { grid-template-columns: 1fr; } .glossary dd { margin-bottom: 8px; } }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.keywords span { font-size: .82rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
details > summary { cursor: pointer; }
.cta { text-align: center; margin: 24px 0 4px; }

/* footer */
.site-footer { background: var(--brand-ink); color: #b9cadb; padding: 40px 0 24px; margin-top: 24px; }
.site-footer a { color: #dce9f5; }
.site-footer .muted { color: #93a8bd; }
.site-footer .brand-name { color: #fff; margin-bottom: .5em; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer-h { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #93a8bd; margin-bottom: .8em; }
.footer-base { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 28px; padding-top: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .masthead, .site-footer, .filters, .bill-aside .facts-links { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; }
  .billtext pre { max-height: none; }
}

/* editorial rich text (summaries, fiscal notes) */
.rich h1, .rich h2 { font-size: 1.2rem; border: 0; padding: 0; margin: 1.4em 0 .5em; }
.rich h3, .rich h4, .rich h5 { font-family: var(--sans); font-size: 1rem; margin: 1.2em 0 .4em; }
.rich table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 1em; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.rich th { background: var(--surface-2); }
.rich pre { white-space: pre-wrap; }

/* map legend extras */
.legend a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.legend a:hover { color: var(--brand); }
.sw-seed { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 0 3px; }
.sw-sitting { width: 16px; height: 3px; border-radius: 2px; background: var(--muted); display: inline-block; }

/* home: the map is the page */
.home-map { max-width: 1060px; padding-top: 28px; padding-bottom: 36px; }
.home-map .tilemap { margin: 0 auto; }
.map-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 1.25rem; margin: 0 0 14px; }
.map-caption .muted { font-family: var(--sans); font-size: .85rem; }
.home-map .legend { justify-content: center; font-size: .9rem; margin-top: 22px; }
.t-edge-live { --tc: var(--t-live); }
.t-edge-law { --tc: var(--t-law); }
.t-edge-vetoed { --tc: var(--t-vetoed); }
.t-edge-dead { --tc: var(--t-dead); }
.t-edge-none { --tc: var(--t-none); }
