:root {
  --navy: #1b2f4b;
  --mark: #1b2f4b;
  --page: #ffffff;
  --panel: #f4f2ec;
  --ink: #1d232b;
  --ink-mid: #39424e;
  --muted: #5a6470;
  --link: #1f4f8f;
  --border: #d9d5ca;
  --notice-bg: #f4f2ec;
  --demo-bg: #fbe9c6;
  --ins-bg: #e2f3e6;
  --ins-ink: #0c5427;
  --del-bg: #fbe4e4;
  --del-ink: #8a1c1c;
  --was-bg: #fff3b0;
  --was-ink: #4a3b00;
  --v-add: #1a7431;
  --v-add-fill: #d9f2df;
  --v-del: #b3261e;
  --v-del-fill: #fde2e0;
  --v-chg: #9a4a00;
  --v-chg-fill: #fbecd6;
  --v-law: #6b7480;
  --focus: #1f4f8f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --reading: Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mark: #a9c3e6;
    --page: #14191f;
    --panel: #1e252d;
    --ink: #eef0f2;
    --ink-mid: #d0d5da;
    --muted: #a3acb6;
    --link: #8ab8f2;
    --border: #38424d;
    --notice-bg: #1e252d;
    --demo-bg: #4a3710;
    --ins-bg: #13381f;
    --ins-ink: #b6f0c6;
    --del-bg: #431a1a;
    --del-ink: #ffc6c6;
    --was-bg: #4a3f0c;
    --was-ink: #fff1b8;
    --v-add: #6fd08f;
    --v-add-fill: #1b3a26;
    --v-del: #ff9a90;
    --v-del-fill: #45201f;
    --v-chg: #f2a74b;
    --v-chg-fill: #3d2c14;
    --v-law: #8d97a2;
    --focus: #8ab8f2;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-mid);
  font: 1.0625rem/1.6 var(--sans);
}

h1, h2, h3 { color: var(--ink); font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #ffffff;
}
.skip-link:focus { top: 1rem; }

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

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.notice {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--notice-bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  text-align: center;
}
.notice-demo { background: var(--demo-bg); color: var(--ink); }
.beta-notice { padding: 0.75rem 1rem; background: var(--demo-bg); border-radius: 0.5rem; color: var(--ink); }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  /* Lines the wordmark up with the page content below. */
  padding: 1rem max(1rem, calc((100% - 56rem) / 2 + 1rem));
  background: var(--navy);
}
.site-name { display: inline-flex; align-items: center; gap: 0.5rem; color: #ffffff; font: 700 1.25rem var(--serif); text-decoration: none; }
.star { flex: none; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { display: inline-block; padding: 0.25rem 0; color: #ffffff; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.site-header :focus-visible { outline-color: #ffffff; }

.inner { max-width: 56rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.prose { max-width: 42rem; }

.lead { margin: 0 0 1.25rem; color: var(--ink); font-size: 1.2rem; line-height: 1.45; }
.muted { color: var(--muted); }
.crumbs { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; }
.nowrap { white-space: nowrap; }

.intro h1 { margin-bottom: 1rem; }
.intro p { text-wrap: pretty; }
.intro .lead { margin-bottom: 0.75rem; }

.browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.browse a { display: block; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--panel); text-decoration: none; }
.browse a:hover { border-color: var(--link); }
.browse-title { display: block; color: var(--link); font: 700 1.2rem var(--serif); text-decoration: underline; text-underline-offset: 0.15em; }
.browse-hint { color: var(--ink-mid); font-size: 0.95rem; }
.see-all { margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); font-weight: 600; }

.official-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }

.bill-list { margin: 0; padding: 0; list-style: none; }
.bill-list li { padding: 1rem 0; border-top: 1px solid var(--border); }
.bill-link { font-weight: 700; }
.bill-caption { margin: 0.15rem 0; color: var(--ink); }
.bill-meta { margin: 0; color: var(--muted); font-size: 0.9rem; }

.range-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.4rem 1.5rem; margin: 1.5rem 0; padding: 1.25rem; background: var(--panel); border-radius: 0.5rem; }
.facts dt { color: var(--ink); font-weight: 600; }
.facts dd { margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.tags li { padding: 0.15rem 0.6rem; border: 1px solid var(--border); border-radius: 1rem; }

/* Follow a subject: one click or tap selects the whole address, since copying it needs no script. */
.drawer.follow { margin: 1.25rem 0; }
.follow summary h2 { display: inline; margin: 0; font-family: inherit; font-size: inherit; }
.follow p { margin: 0.5rem 0; }
.feed-url { display: block; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.35rem; background: var(--page); font-family: var(--mono); font-size: 0.9rem; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.follow-links { font-size: 0.95rem; }
.legend { padding: 0.75rem 1rem; background: var(--panel); border-radius: 0.5rem; font-size: 0.95rem; }

ins, del { padding: 0 0.1em; border-radius: 2px; }
ins { background: var(--ins-bg); color: var(--ins-ink); text-decoration: underline; }
del { background: var(--del-bg); color: var(--del-ink); text-decoration: line-through; }

.bill-text { max-width: 44rem; font-family: var(--reading); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.bill-text p { position: relative; margin: 0 0 1rem; padding-left: 3.5rem; overflow-wrap: anywhere; }
.bill-text p.c { font-weight: 600; text-align: center; }
.bill-text p.i1 { padding-left: 5rem; }
.bill-text p.i2 { padding-left: 6.5rem; }
.bill-text p.i3 { padding-left: 8rem; }
.pl { position: absolute; left: 0; top: 0.3em; color: var(--muted); font: 0.75rem/1.4 var(--mono); text-decoration: none; }
.bill-text p:target { background: var(--panel); }

.glance { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }

.drawer { margin: 0 0 0.75rem; padding: 0.6rem 1rem; background: var(--panel); border-radius: 0.5rem; }
.drawer summary { color: var(--ink); font-weight: 600; cursor: pointer; }
.drawer[open] summary { margin-bottom: 0.75rem; }
.drawer .facts { margin: 0; padding: 0; background: none; }
.section-guide { margin-bottom: 1.25rem; }
.section-guide ol { margin: 0; padding: 0; list-style: none; }
.section-guide li { padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 0.95rem; overflow-wrap: anywhere; }

.sec-kind { display: inline-block; padding: 0 0.5rem; background: var(--navy); border-radius: 0.25rem; color: #ffffff; font: 600 0.75rem/1.6 var(--sans); }
.bill-text p.sec { padding-top: 0.6rem; border-top: 1px solid var(--border); font-weight: 600; }
.bill-text p.sec .pl { top: 0.9em; font-weight: 400; }

.view-switch { display: none; gap: 0.4rem; align-items: center; margin: 0 0 0.75rem; padding: 0; border: 0; }
.view-switch input { position: absolute; opacity: 0; }
.view-switch label { padding: 0.35rem 0.9rem; border: 1px solid var(--muted); border-radius: 1.25rem; cursor: pointer; font-size: 0.95rem; }
.view-switch input:checked + label { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.view-switch input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.clean, .legend-clean { display: none; }

@supports selector(:has(*)) {
  .view-switch { display: flex; }
  .text-view:has(#view-clean:checked) .marked,
  .text-view:has(#view-clean:checked) .legend-changes { display: none; }
  .text-view:has(#view-clean:checked) .clean,
  .text-view:has(#view-clean:checked) .legend-clean { display: block; }
}

.repeal { padding: 0.25rem 0 0.5rem; border-top: 1px solid var(--border); }
.repeal h3 { margin: 0.75rem 0 0.25rem; }
.repeal-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0.5rem; font-size: 0.95rem; }
.statute-text { font-family: var(--reading); overflow-wrap: anywhere; }

/* Our copy of the statutes, and previews of cited sections */
.statute-source { color: var(--muted); font-size: 0.95rem; }
.chapter-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0; }
.chapter-list { margin: 0; padding: 0; list-style: none; }
.chapter-list li { padding: 0.5rem 0; border-top: 1px solid var(--border); }
.statute-section { padding: 0.25rem 1rem 0.75rem; border-top: 1px solid var(--border); border-left: 4px solid transparent; scroll-margin-top: 1rem; }
/* Neutral on purpose: green and red mean bill changes. */
.statute-section:target { background: var(--panel); border-left-color: var(--focus); }
.statute-heading { margin: 0.75rem 0 0.5rem; font: 700 1rem/1.5 var(--reading); }
.statute-page .statute-text, .statute-popover .statute-text, .current-law .statute-text { margin: 0 0 0.6rem; line-height: 1.6; }
.statute-note { margin: 0.75rem 0 0.25rem; color: var(--muted); font-size: 0.9rem; font-style: italic; }
.statute-history { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }

.cite-preview {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; min-height: 1.5rem;
  margin: 0 0.15rem; padding: 0; border: 1px solid var(--link); border-radius: 50%;
  background: var(--page); color: var(--link); cursor: pointer; vertical-align: -0.3em;
}
.cite-preview:hover { background: var(--panel); }
.cite-preview:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.statute-popover {
  box-sizing: border-box; width: min(40rem, calc(100vw - 2rem)); max-height: 80vh; overflow: auto; padding: 0 1.25rem 1rem;
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--page); color: var(--ink);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.25);
}
.statute-popover::backdrop { background: rgb(0 0 0 / 0.35); }
/* Browsers without popover support show the text in place instead. */
.statute-popover:not(:popover-open) { display: none; }
.popover-bar {
  position: sticky; top: 0; display: flex; gap: 1rem; align-items: baseline; justify-content: space-between;
  padding: 1rem 0 0.5rem; background: var(--page); border-bottom: 1px solid var(--border);
}
.popover-bar h3 { margin: 0; font-size: 1.15rem; }
.popover-bar button { padding: 0.3rem 0.8rem; border: 1px solid var(--muted); border-radius: 1rem; background: var(--page); color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer; }
.bill-text .current-law { margin: 0 0 1rem 3.5rem; font-size: 1rem; }
.bill-text .current-law p { padding-left: 0; }

.ai-summary { padding-top: 0.25rem; border-top: 1px solid var(--border); }
.ai-summary h4 { margin: 1.25rem 0 0.25rem; color: var(--ink); font-size: 1rem; }
.ai-meta { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.4rem 1rem 0.4rem 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--ink); }
th.stage { padding-top: 1rem; font-size: 1rem; }
/* A panel, so the timeline reads as separate from the end of the bill text. */
.history { margin-top: 2.5rem; padding: 0.25rem 1.25rem 1rem; background: var(--panel); border-radius: 0.5rem; }
.history h2 { margin-top: 1rem; }
.history thead th:first-child { width: 9rem; }
.history td:last-child, .history th:last-child { padding-right: 0; }
.history tbody:last-child tr:last-child td { border-bottom: 0; }

.site-footer { padding: 2rem 1rem; background: var(--panel); border-top: 1px solid var(--border); font-size: 0.9rem; text-align: center; }
.site-footer p { max-width: 44rem; margin: 0 auto 0.5rem; }

@media (max-width: 36rem) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
  .bill-text p.i1, .bill-text p.i2, .bill-text p.i3 { padding-left: 3.5rem; }
}

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

@media print {
  .notice-demo, .site-header nav, .skip-link, .cite-preview, .staff-note, .chapter-nav { display: none; }
}

.committee-docs summary h2 { display: inline; margin: 0; font-family: inherit; font-size: inherit; }
.committee-docs h3 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.committee-docs h4 { margin: 1.25rem 0 0.25rem; font-size: 1rem; }
.committee-docs blockquote { margin: 0.75rem 0; padding: 0 0 0 1rem; border-left: 3px solid var(--border); color: var(--ink); }
.doc-source { color: var(--muted); font-size: 0.9rem; }
.fiscal { width: auto; min-width: min(100%, 24rem); margin: 0.75rem 0; }
.fiscal caption { padding-bottom: 0.4rem; color: var(--muted); font-size: 0.9rem; text-align: left; }
.fiscal td, .fiscal thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.fiscal tfoot th, .fiscal tfoot td { font-weight: 600; border-top: 2px solid var(--border); }
.added-by-us { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.doc-links a + a { margin-left: 1rem; }
.final-status, .version-notice { padding: 0.75rem 1rem; border-left: 4px solid var(--muted); background: var(--panel); border-radius: 0.25rem; }

/* Bill analysis and fiscal note pages */
.doc-page h2 { margin: 2rem 0 0.5rem; }
.doc-page blockquote { margin: 0.75rem 0; padding: 0 0 0 1rem; border-left: 3px solid var(--border); }
.attribution { color: var(--muted); font-size: 0.95rem; }
.reading-key { margin: 0 0 1.5rem; padding: 0.75rem 1.25rem; border: 1px solid var(--border); border-radius: 0.5rem; }
.reading-key h2 { margin: 0.25rem 0 0.5rem; font-size: 1.05rem; }
.reading-key ul { padding-left: 0; list-style: none; }
.reading-key li { margin: 0.5rem 0; }
.bottom-line { padding: 0.25rem 1.25rem 0.5rem; background: var(--panel); border-radius: 0.5rem; }
.bottom-line h2 { margin-top: 0.75rem; }
.bill-section { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.bill-section summary { cursor: pointer; }
.bill-section[open] summary { margin-bottom: 0.5rem; }
.section-number { margin-right: 0.35rem; font-weight: 600; }
.instruction { color: var(--muted); }
.level-2 { margin-left: 1.5rem; }
.level-3 { margin-left: 3rem; }

/* Staff text: headings copied from the bill, current law, removals */
.from-bill { font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--ink-mid); }
.from-bill::before { content: "From the bill · "; font-family: var(--sans); font-weight: 400; color: var(--muted); }
.reading-key .from-bill::before { content: none; }
h3.from-bill, h4.from-bill { margin: 1.25rem 0 0.25rem; }
.was { padding: 0 0.15em; border-radius: 0.2em; background: var(--was-bg); color: var(--was-ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.deleted-note { padding-left: 0.75rem; border-left: 4px double var(--muted); font-style: italic; }
.cite-link { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: pointer; }
.cite-link:hover { text-decoration-style: solid; }
.cite-link:focus-visible, .staff-note:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.from-bill .cite-link { margin-left: 0.5rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 400; }
.staff-note { margin-left: 0.4rem; padding: 0.05rem 0.6rem; border: 1px solid var(--link); border-radius: 1rem; background: var(--page); color: var(--link); font: inherit; font-size: 0.8rem; font-weight: 400; cursor: pointer; }
.staff-note:hover { background: var(--panel); }
.staff-popover .instruction { margin-top: 0; }

/* How a bill changed: green + added, red − removed, amber ~ reworded. Each also
   has a glyph, strike or under-bar and screen reader text, never color alone.
   The bill's own marks for changes to current law go gray here. */
.v-timeline { margin: 1.5rem 0; padding: 0; list-style: none; border-left: 3px solid var(--border); }
.v-timeline li { position: relative; margin: 0 0 1.25rem; padding-left: 1.25rem; }
.v-timeline li::before { content: ""; position: absolute; left: -0.55rem; top: 0.35rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--muted); }
.v-stage { display: block; font-weight: 700; }
.v-step { display: inline-block; margin-top: 0.2rem; }
.v-words { margin-left: 0.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.v-where { display: block; color: var(--muted); font-size: 0.9rem; }

/* Reading column: same measure as the bill page */
.v-stat, .v-key, .v-section, .v-diff .drawer { max-width: 46rem; }

/* Summary */
.v-stat { padding: 0.25rem 1.25rem 1rem; background: var(--panel); border-radius: 0.5rem; }
.v-stat h2 { margin: 0.75rem 0 0.5rem; font-size: 1.15rem; }
.v-lead { margin: 0 0 0.75rem; color: var(--ink); font-size: 1.1rem; line-height: 1.5; }
.v-words-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin: 0 0 0.75rem; font-variant-numeric: tabular-nums; }
.v-n { font-weight: 700; }
.v-n-add { color: var(--v-add); }
.v-n-del { color: var(--v-del); }
.v-n-chg { color: var(--v-chg); }
.v-blocks { display: inline-flex; gap: 2px; }
.v-blocks i { width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--border); }
.v-blocks .a { background: var(--v-add); }
.v-blocks .d { background: var(--v-del); }
.v-jump { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: 1.5rem; }
.v-jump li { margin: 0 0 0.3rem; break-inside: avoid; }
.v-jump .v-g { display: inline-block; width: 1.1em; font: 700 1rem var(--mono); text-align: center; }
.v-stat .muted { margin: 0.75rem 0 0; font-size: 0.9rem; }

/* Key */
.v-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.25rem 0 1.5rem; color: var(--muted); font-size: 0.9rem; }

/* Sections: a status bar, a status badge, a gutter column for glyphs */
.v-section { position: relative; margin: 2rem 0; padding: 0.1rem 0 0.1rem 1.75rem; border-left: 4px solid var(--v-chg); }
.v-section.v-added { border-left-color: var(--v-add); }
.v-removed-section { border-left: 4px dashed var(--v-del); }
.v-section h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; margin: 0.25rem 0 0.75rem; font-size: 1.2rem; }
.v-badge { padding: 0.1rem 0.6rem; border: 1px solid var(--v-chg); border-radius: 1rem; background: var(--v-chg-fill); color: var(--ink); font: 600 0.8rem var(--sans); }
.v-badge::before { content: "~ "; content: "~\00a0" / ""; color: var(--v-chg); font-family: var(--mono); font-weight: 700; }
.v-added .v-badge { border-color: var(--v-add); background: var(--v-add-fill); }
.v-added .v-badge::before { content: "+ "; content: "+\00a0" / ""; color: var(--v-add); }
.v-removed-section .v-badge { border-color: var(--v-del); background: var(--v-del-fill); }
.v-removed-section .v-badge::before { content: "− "; content: "−\00a0" / ""; color: var(--v-del); }

/* Paragraphs */
.v-p { position: relative; margin: 0.6rem 0; color: var(--ink); line-height: 1.65; overflow-wrap: anywhere; }
.v-same { color: var(--muted); }
.v-gutter { position: absolute; left: -1.45rem; top: 0; width: 1rem; text-align: center; font: 700 1.05rem/1.65 var(--mono); color: var(--v-chg); }
.v-p.v-added .v-gutter, .v-run-added .v-gutter { color: var(--v-add); }
.v-p.v-removed .v-gutter, .v-run-removed .v-gutter { color: var(--v-del); }

/* Whole paragraphs added or removed inside a changed section: a tinted block, glyph in the gutter, no strike (long struck text is unreadable) */
.v-p.v-added, .v-p.v-removed { padding: 0.3rem 0.6rem; border-radius: 0.3rem; }
.v-p.v-added { background: var(--v-add-fill); }
.v-p.v-removed { background: var(--v-del-fill); }
.v-p.v-added > .v-add, .v-p.v-removed > .v-del { padding: 0; background: none; box-shadow: none; text-decoration: none; }
.v-p.v-added .v-gutter, .v-p.v-removed .v-gutter { top: 0.3rem; }

/* Words: added = tint + thick under-bar; removed = tint + strike */
.v-add, .v-del { padding: 0.05em 0.15em; border-radius: 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.v-add { background: var(--v-add-fill); box-shadow: inset 0 -0.14em 0 var(--v-add); }
.v-del { background: var(--v-del-fill); text-decoration: line-through 0.1em var(--v-del); }

/* The bill's own markup for changes to current law: kept, but quiet and colorless on these pages */
.law-add { text-decoration: underline dotted 1px var(--v-law); text-underline-offset: 0.3em; }
.law-del { text-decoration: line-through 1px var(--v-law); }
.v-del .law-add { text-decoration: line-through 0.1em var(--v-del); }

/* Entirely new sections: plain text under a green bar; long ones fold after the opening lines */
.v-section.v-added .v-p { color: var(--ink); }
.v-more { margin: 0.6rem 0; }
.v-more summary, .v-run summary { position: relative; display: block; width: fit-content; padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 0.35rem; background: var(--panel); color: var(--ink); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.v-more summary::before, .v-run summary::before { content: "▸ "; content: "▸\00a0" / ""; }
.v-more[open] summary::before, .v-run[open] summary::before { content: "▾ "; content: "▾\00a0" / ""; }
.v-more summary::-webkit-details-marker, .v-run summary::-webkit-details-marker { display: none; }
.v-more summary { list-style: none; }
.v-run { margin: 0.6rem 0; }
.v-run summary { list-style: none; }
.v-run-added summary { border-color: var(--v-add); background: var(--v-add-fill); }
.v-run-removed summary { border-color: var(--v-del); background: var(--v-del-fill); }
.v-run-same summary { color: var(--muted); font-weight: 400; }
.v-run summary .v-gutter { left: -1.45rem; top: 0.35rem; line-height: 1.5; }
.v-run[open] summary, .v-more[open] summary { margin-bottom: 0.6rem; }

.v-gone { color: var(--ink); }

@media (max-width: 40rem) {
  .v-section { padding-left: 1.4rem; }
  .v-gutter, .v-run summary .v-gutter { left: -1.25rem; }
  .v-p.v-added, .v-p.v-removed { margin-left: -0.4rem; padding: 0.3rem 0.4rem; }
}
/* Whole removed paragraphs: no strike (hard to read at length); the − glyph, red tint and sr-only text carry it */
.v-p.v-removed .law-add { text-decoration: underline dotted 1px var(--v-law); }
.v-relabel { color: var(--v-chg); font-size: 0.85em; font-style: italic; }

.v-note { margin: 0.75rem 0 0; font-size: 0.9rem; }
.v-note summary { cursor: pointer; }

/* Bill page: the wording history opens the History panel */
.v-history { margin: 0 0 1.5rem; padding: 0 0 1rem; border-bottom: 1px solid var(--border); }
.v-history h3 { margin: 0.25rem 0 0.5rem; }
.v-mini { margin: 0 0 0.5rem; padding-left: 1.25rem; }
.v-mini li { margin: 0 0 0.4rem; }
.v-mini-step { font-weight: 600; }
.v-mini-meta { display: block; }
.v-mini-words { white-space: nowrap; }
.history-links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.history-links .official-links { margin: 0; }

/* Committees: bills grouped by where they stand, and a docket per meeting day. */
.cmte-list { margin: 0 0 2rem; padding: 0; list-style: none; }
.cmte-list li { padding: 0.85rem 0; border-top: 1px solid var(--border); }
.cmte-name { font-weight: 600; font-size: 1.05rem; }
.cmte-next { margin: 0.15rem 0; font-weight: 600; font-size: 0.95rem; }
.cmte-links { font-size: 0.95rem; }
.cmte-group { margin: 1rem 0; }
.cmte-group summary h2 { display: inline; margin: 0; font-family: inherit; font-size: 1.1rem; }
.cmte-earlier { margin-top: 1.75rem; }
.upcoming { margin: 1.25rem 0; padding: 0.9rem 1.25rem; border: 2px solid var(--navy); border-radius: 0.5rem; }
.upcoming h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.upcoming ul { margin: 0; padding: 0; list-style: none; }
.upcoming li { padding: 0.35rem 0; font-weight: 600; }
.upcoming li a, .upcoming-room { display: block; font-weight: 400; font-size: 0.95rem; }
.upcoming-room { color: var(--ink-mid); }
.upcoming .muted { margin: 0.5rem 0 0; font-size: 0.85rem; }
.meeting { margin: 1.75rem 0 0; }
.meeting h3 { margin: 0; font-size: 1.05rem; }
.meeting-meta { margin: 0.1rem 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
.docket { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--border); }
.docket-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(11rem, auto); grid-template-areas: "bill caption outcome" ". . tally"; gap: 0.15rem 1rem; padding: 0.55rem 0 0.55rem 0.85rem; border-bottom: 1px solid var(--border); align-items: baseline; }
.docket-row:last-child { border-bottom: 0; }
.docket-bill { grid-area: bill; font-weight: 600; white-space: nowrap; }
.docket-caption { grid-area: caption; color: var(--ink-mid); }
.docket-outcome { grid-area: outcome; text-align: right; font-size: 0.95rem; }
.docket-note { display: block; color: var(--muted); font-size: 0.85rem; }
.docket-heard .docket-outcome strong { font-weight: 400; color: var(--muted); }
.docket-reported { border-left: 3px solid var(--ink); margin-left: -3px; }
/* One mark per member: filled aye, ringed nay, faint for the rest. */
.tally { grid-area: tally; display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.tally-marks { display: inline-flex; gap: 2px; }
.tally-marks i { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.t-aye { background: var(--ink); }
.t-nay { box-shadow: inset 0 0 0 1.5px var(--ink); }
.t-out { box-shadow: inset 0 0 0 1px var(--border); }
@media (max-width: 40rem) {
  .docket-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "bill outcome" "caption caption" "tally tally"; }
  .tally { justify-content: flex-start; }
}

/* Statute pages: section links and the bills that would change a chapter. */
.sec-link { margin-left: 0.35rem; color: var(--muted); font-weight: 400; text-decoration: none; }
.sec-link:hover, .sec-link:focus-visible { color: var(--link); text-decoration: underline; }
.law-changes { margin: 1.25rem 0; }
.law-changes summary h2 { display: inline; margin: 0; font-family: inherit; font-size: 1.1rem; }
.law-bills { margin: 0 0 0.75rem; padding: 0; list-style: none; }
.law-bills > li { padding: 0.6rem 0; border-top: 1px solid var(--border); }
.law-progress { margin-left: 0.4rem; padding: 0.05rem 0.45rem; border: 1px solid var(--border); border-radius: 0.25rem; color: var(--ink-mid); font-size: 0.85rem; white-space: nowrap; }
.law-items { margin: 0.3rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.law-items li { margin: 0.15rem 0; }
.law-kind { display: inline-block; min-width: 5.6rem; font-weight: 600; }
.law-g { display: inline-block; width: 1.1em; font: 700 1rem var(--mono); text-align: center; }
.law-add { color: var(--v-add); }
.law-chg { color: var(--v-chg); }
.law-del { color: var(--v-del); }
.law-mov { color: var(--v-law); }
.law-more { margin-top: 0.3rem; }
.law-how { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.5rem 0 0.25rem; padding: 0.7rem 0.9rem; border-left: 3px solid var(--mark); background: var(--page); border-radius: 0 0.35rem 0.35rem 0; color: var(--ink-mid); font-size: 0.9rem; }
.law-how-icon { flex: none; margin-top: 0.1rem; color: var(--mark); }
.law-note { margin: 0.1rem 0 0.5rem; padding-left: 0.6rem; border-left: 3px solid var(--mark); color: var(--ink-mid); font-size: 0.9rem; }
.law-count { margin-left: 0.4rem; color: var(--muted); font-size: 0.9rem; }

/* This week: an overview table, then one day per row with a date tile beside it. */
.week h2 { margin-top: 2.25rem; }
.week-glance { margin: 0.75rem 0 1.5rem; padding: 0.75rem 0.9rem; overflow-x: auto; background: var(--panel); border-radius: 0.5rem; }
.week-glance table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.week-glance caption { margin-bottom: 0.4rem; color: var(--muted); font-size: 0.85rem; text-align: left; }
.week-glance th, .week-glance td { padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.week-glance thead th { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.week-glance tbody th { min-width: 9rem; text-align: left; font-weight: 600; font-size: 0.95rem; white-space: normal; }
.week-glance tbody tr:last-child > * { border-bottom: 0; }
.week-glance td { font: 600 1.15rem var(--serif); }
.week-glance td a { text-decoration: none; }
.week-glance td a:hover, .week-glance td a:focus-visible { text-decoration: underline; }
.glance-dow { display: block; }
.glance-none { color: var(--border); }
.pips { display: inline-flex; gap: 2px; margin-right: 0.5rem; vertical-align: 0.05em; }
.pip { width: 0.5rem; height: 0.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--mark); }
.pip.on { background: var(--mark); }
.pip.x { position: relative; box-shadow: none; }
.pip.x::before, .pip.x::after { content: ""; position: absolute; left: 0; top: 45%; width: 100%; height: 1.5px; background: var(--mark); transform: rotate(45deg); }
.pip.x::after { transform: rotate(-45deg); }
.week-day { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 1.25rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.day-tile { margin: 0; }
.day-tile time { display: flex; flex-direction: column; align-items: center; padding: 0.5rem 0.25rem 0.6rem; border-radius: 0.5rem; background: var(--navy); color: #ffffff; line-height: 1.1; }
.day-dow { font: 600 0.85rem var(--sans); }
.day-num { font: 600 2rem var(--serif); }
.day-month { font: 400 0.8rem var(--sans); opacity: 0.85; }
.day-body { margin: 0; padding: 0; list-style: none; min-width: 0; }
.milestone { margin: 0 0 0.35rem; }
.milestone summary { display: flex; align-items: baseline; gap: 0.25rem; padding: 0.35rem 0.25rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.milestone summary::marker { color: var(--muted); }
.milestone-label { font-weight: 600; }
.milestone-count { margin-left: auto; font: 600 1.1rem var(--serif); font-variant-numeric: tabular-nums; }
.milestone-bills { margin: 0.25rem 0 0.75rem; padding: 0; list-style: none; }
.milestone-bills li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0.75rem; padding: 0.25rem 0.25rem; font-size: 0.95rem; }
.milestone-bills li > a { font-weight: 600; white-space: nowrap; }
.milestone-bills li > span { color: var(--ink-mid); }
.meeting-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.meeting-row:last-child { border-bottom: 0; }
.meeting-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.meeting-room { display: block; color: var(--ink-mid); font-size: 0.9rem; }
.meeting-row.unlisted .meeting-what > a { text-decoration: line-through; }
.chamber { display: inline-block; margin-right: 0.4rem; padding: 0 0.4rem; border: 1.5px solid var(--mark); border-radius: 0.25rem; font: 600 0.75rem/1.5 var(--sans); vertical-align: 0.1em; }
.chamber-house { background: var(--navy); color: #ffffff; }
.chamber-senate { color: var(--ink); }
.week-note { margin-top: 0.75rem; font-size: 0.9rem; }
@media (max-width: 40rem) {
  .week-day { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .day-tile time { flex-direction: row; gap: 0.4rem; align-items: baseline; justify-content: flex-start; padding: 0.35rem 0.75rem; }
  .day-num { font-size: 1.25rem; }
  .meeting-row { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .meeting-notice { grid-column: 2; }
  .milestone-bills li { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .week-glance { padding: 0.5rem; }
  .week-glance th, .week-glance td { padding: 0.3rem 0.2rem; }
  .week-glance td { font-size: 1rem; }
  .week-glance tbody th { min-width: 7rem; font-size: 0.85rem; }
  .pips { display: none; }
}

/* About */
.on-page { margin: 1.5rem 0 1rem; padding: 0.75rem 1rem; background: var(--panel); border-radius: 0.5rem; }
.on-page ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.about h2 { scroll-margin-top: 1rem; }
.about-not { margin-top: 2rem; padding: 0.25rem 1.25rem 0.5rem; border-left: 3px solid var(--mark); }
.about-not h2 { margin-top: 0.75rem; }
.steps { margin: 1rem 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; margin: 0 0 0.9rem; padding-left: 2.75rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #ffffff; font: 700 1rem var(--serif); }
.steps strong { display: block; color: var(--ink); }
.nothing { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.5rem 1.5rem; margin: 1rem 0 1.25rem; padding: 1rem 1.25rem; background: var(--panel); border-radius: 0.5rem; list-style: none; color: var(--ink); }
.nothing li { display: flex; gap: 0.6rem; align-items: baseline; }
.nothing .pip { flex: none; width: 0.65rem; height: 0.65rem; }
.about-contact { margin-top: 2.5rem; padding: 0.25rem 1.25rem 0.5rem; background: var(--panel); border-radius: 0.5rem; }
.about-contact h2 { margin-top: 0.75rem; font-size: 1.25rem; }

/* Status */
.updated { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: 1.5rem 0 0; }
.updated p { margin: 0 0 0.35rem; }
.updated-when { color: var(--ink); font: 600 1.35rem/1.3 var(--serif); }
.readable { margin: 1rem 0; padding: 1rem 1.25rem; background: var(--panel); border-radius: 0.5rem; }
.readable label { display: block; margin-bottom: 0.5rem; }
.readable strong { color: var(--ink); font: 600 1.15rem var(--serif); font-variant-numeric: tabular-nums; }
.readable progress { display: block; width: 100%; height: 0.75rem; border: 1px solid var(--mark); border-radius: 0.4rem; background: var(--page); -webkit-appearance: none; appearance: none; overflow: hidden; }
.readable progress::-webkit-progress-bar { background: var(--page); }
.readable progress::-webkit-progress-value { background: var(--mark); }
.readable progress::-moz-progress-bar { background: var(--mark); }
@media (max-width: 40rem) {
  .updated { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .updated .day-tile time { flex-direction: row; gap: 0.4rem; align-items: baseline; justify-content: flex-start; padding: 0.35rem 0.75rem; }
  .updated .day-num { font-size: 1.25rem; }
}
