/* Gesetzblick – calm, readable, few moving parts. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1c1f23;
  --muted: #5d6670;
  --line: #e2e1dc;
  --field-line: #878c93; /* borders of inputs: at least 3:1 against the page (WCAG 1.4.11) */
  --accent: #1d5fa8;
  --accent-ink: #ffffff;
  --accent-soft: #e6eef8;
  --ins-bg: #d8f0de;
  --ins-ink: #0d5428;
  --del-bg: #fbe0de;
  --del-ink: #8f1d17;
  --warn-bg: #fdf1d8;
  --warn-ink: #6d4a07;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 28, .05), 0 2px 8px rgba(20, 24, 28, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
  color-scheme: light dark;
}
/* Dark colours: from the system setting, unless the visitor picked a scheme (data-theme on <html>, see theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181b; --surface: #1f2226; --ink: #e9e7e2; --muted: #a3a9b0; --line: #33373c; --field-line: #737a82;
    --accent: #7fb0ec; --accent-ink: #0f1a27; --accent-soft: #233446;
    --ins-bg: #1d3d27; --ins-ink: #a9e5b8; --del-bg: #4a2422; --del-ink: #f4b4ae;
    --warn-bg: #3d3115; --warn-ink: #f0d68f;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #16181b; --surface: #1f2226; --ink: #e9e7e2; --muted: #a3a9b0; --line: #33373c; --field-line: #737a82;
  --accent: #7fb0ec; --accent-ink: #0f1a27; --accent-soft: #233446;
  --ins-bg: #1d3d27; --ins-ink: #a9e5b8; --del-bg: #4a2422; --del-ink: #f4b4ae;
  --warn-bg: #3d3115; --warn-ink: #f0d68f;
  --shadow: none; color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
/* Blue is reserved for things you can click. Text links are also underlined; whole rows show a chevron. */
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
h1, h2, h3, p { margin: 0 0 .6em; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
code { font-size: .9em; background: var(--accent-soft); padding: .05em .3em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* Header & footer */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1040px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-x { color: #e09400; font-weight: 600; }
.mini-search { position: relative; }
.mini-search input[type=search] { width: min(300px, 40vw); padding: 8px 12px 8px 36px; font-size: 15px; }
.field-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; padding: 0; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.actions .icon-button { min-height: 44px; min-width: 44px; color: var(--accent); border-color: var(--field-line); }
.icon-button:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.page { max-width: 1040px; margin: 0 auto; padding: 28px 24px 64px; }
.footer { max-width: 1040px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer p { margin: 0 0 6px; }
.footer-links { display: flex; gap: 18px; }

/* Controls */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=search], input[type=file], select, textarea {
  background: var(--surface); border: 1px solid var(--field-line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input[type=search]:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
textarea { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
button:hover, .button:hover { filter: brightness(1.08); }
button:disabled { opacity: .65; cursor: progress; }
.button-secondary { background: var(--surface); color: var(--accent); border-color: var(--field-line); }
.button-small { min-height: 32px; padding: 0 12px; font-size: 14px; gap: 6px; }
.button-secondary.is-on { color: var(--ins-ink); background: var(--ins-bg); border-color: transparent; }
.link { font-weight: 600; }

/* Home */
.hero { padding: 36px 0 28px; max-width: 720px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -.03em; margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.search { display: flex; gap: 10px; margin: 22px 0 10px; max-width: 680px; }
.search input { font-size: 18px; padding: 12px 16px; min-height: 52px; }
.search button { min-height: 52px; }
.hint { color: var(--muted); font-size: 15px; }
.pill { display: inline-block; margin: 4px 6px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.block { margin-top: 40px; }
.block-head { margin-bottom: 14px; }
.block-head h2 { font-size: 24px; margin-bottom: 2px; }
.block-head p { color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.empty strong { color: var(--ink); }

/* Law list */
.law-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.law-list li + li { border-top: 1px solid var(--line); }
.law-row { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; color: inherit; text-decoration: none; }
.law-row:hover { background: var(--accent-soft); }
.law-row:hover .law-row-title { color: var(--accent); }
.row-chevron { color: var(--muted); }
.law-row:hover .row-chevron { color: var(--accent); }
.abbr { justify-self: start; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.law-row-main { display: flex; flex-direction: column; min-width: 0; }
.law-row-title { font-weight: 600; }
.law-row-sub { color: var(--muted); font-size: 14px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--muted); white-space: nowrap; }
.chip-new, .chip-added { background: var(--ins-bg); color: var(--ins-ink); }
.chip-error, .chip-removed { background: var(--del-bg); color: var(--del-ink); }
.chip-modified { background: var(--warn-bg); color: var(--warn-ink); }
.chip-moved { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }

/* Cards (bills) */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; }
.steps { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; }
.arrow { color: var(--line); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }

/* Page headers */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.eyebrow { font-weight: 700; color: var(--muted); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.page-title { font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -.02em; }
.subtitle { color: var(--muted); font-size: 18px; }
.section-title { font-size: 22px; margin-top: 32px; }
.law-head { margin-bottom: 20px; }
.law-meta { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.actions form { margin: 0; }
.message { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }
.message-success { background: var(--ins-bg); color: var(--ins-ink); }
.message-info { background: var(--accent-soft); color: var(--ink); }
.message-error { background: var(--del-bg); color: var(--del-ink); }

/* Changes box on law page */
.changes-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px; box-shadow: var(--shadow); }
.changes-box h2 { font-size: 19px; }
.changes-box p:last-child { margin: 0; }
.version-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Reader */
.reader-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.reader-head h2 { font-size: 24px; margin: 0; }
.reader-tools { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.part { font-size: 15px; text-transform: none; color: var(--muted); margin: 28px 0 8px; padding-top: 8px; font-weight: 700; }
.part span { font-weight: 400; }
.norm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.norm summary { cursor: pointer; padding: 14px 18px; display: flex; gap: 14px; align-items: baseline; list-style: none; }
.norm summary::-webkit-details-marker { display: none; }
.norm summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }
.norm[open] summary::after { content: "–"; }
.norm summary:hover { background: var(--accent-soft); border-radius: var(--radius); }
.norm-label { font-weight: 700; white-space: nowrap; }
.norm-title { font-weight: 500; }
.norm-body { padding: 0 18px 18px 18px; font: 18px/1.65 var(--font-text); max-width: 76ch; }
.norm-body p { margin: 0 0 .7em; }
.unit { margin: 0 0 .2em; }
.unit-number, .unit-letter, .unit-item { padding-left: 1.2em; }
.item { display: grid; grid-template-columns: 2.2em 1fr; }
.item .marker { margin: 0; }
.marker { font-family: var(--font); font-weight: 700; margin-right: .5em; color: var(--muted); }
.text-tail { margin-top: .4em; }
.inner { margin: 1.2em 0 .4em; }
.inner-head { font: 700 16px/1.4 var(--font); margin: 0 0 .5em; color: var(--ink); }
.inner-head span { font-weight: 500; }
.abstract { max-width: 75ch; white-space: pre-line; }
.steps-list { margin: 8px 0 0; padding-left: 1.3em; }
.steps-list li { margin-bottom: 4px; }
.timeline li.is-minor::before { background: var(--line); }
.timeline .links { align-items: center; }
.small { font-size: 14px; }
.error-text { color: var(--del-ink); }
a.chip { text-decoration: none; }

/* Compare */
.picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 18px 0 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.picker label { flex: 1; min-width: 220px; font-weight: 600; font-size: 14px; color: var(--muted); }
.picker select { margin-top: 4px; color: var(--ink); font-size: 16px; }
.picker-arrow { padding-bottom: 10px; color: var(--muted); font-size: 20px; }
.summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.summary-text { font-size: 21px; font-weight: 700; margin: 0; }
.summary-tools { display: flex; gap: 18px; align-items: center; margin: 0; font-size: 15px; flex-wrap: wrap; }
.legend { display: flex; gap: 8px; }
ins, del { text-decoration: none; border-radius: 3px; padding: 0 .12em; }
ins { background: var(--ins-bg); color: var(--ins-ink); }
del { background: var(--del-bg); color: var(--del-ink); text-decoration: line-through; text-decoration-thickness: 1px; }
.change { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.status-modified { border-left-color: #d9a43a; }
.status-added { border-left-color: #3f9d5d; }
.status-removed { border-left-color: #c8483e; }
.status-moved { border-left-color: var(--accent); }
.change-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.change-head h2 { font-size: 19px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.context { color: var(--muted); font-weight: 500; font-size: 15px; }
.row { padding: 10px 0; border-top: 1px solid var(--line); }
.change-head + .row { border-top: 0; padding-top: 0; }
.row-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.row-text { font: 18px/1.7 var(--font-text); margin: 0; max-width: 80ch; white-space: pre-line; }
.sources { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.quiet summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.about { margin-top: 36px; color: var(--muted); font-size: 15px; }
.about summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.about p { margin-top: 10px; max-width: 75ch; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 12px; }
.about dl { margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 4px 10px; }
.about dt { font-weight: 600; }
.about dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-family: ui-monospace, monospace; font-size: 12px; }

/* Bill timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline-date { color: var(--muted); font-size: 14px; margin: 0; }
.timeline h3 { font-size: 19px; margin-bottom: 2px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; }
.note { background: var(--warn-bg); color: var(--warn-ink); padding: 8px 12px; border-radius: 8px; font-size: 14px; }

/* Import */
.import-form { display: grid; gap: 18px; max-width: 760px; margin-top: 20px; }
.import-form label { font-weight: 600; display: grid; gap: 6px; }
.import-form button { justify-self: start; }
.error-box { max-width: 640px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-inner, .page { padding-left: 16px; padding-right: 16px; }
  .mini-search { display: none; }
  .search { flex-direction: column; }
  .law-row { grid-template-columns: 1fr; gap: 4px; }
  .law-row-status { justify-self: start; }
  .reader-tools { max-width: none; }
  .picker-arrow { display: none; }
  .change-head { flex-direction: column; gap: 6px; }
  .norm-body, .row-text { font-size: 17px; }
}
.more { margin-top: 12px; }
.bill-row { grid-template-columns: 1fr auto auto; }
@media (max-width: 640px) { .bill-row { grid-template-columns: 1fr; } }
.message-warning { background: var(--warn-bg); color: var(--warn-ink); font-weight: 400; }
.partial summary { cursor: pointer; }
.unapplied { margin: 10px 0 0; padding-left: 1.2em; max-height: 360px; overflow: auto; }
.unapplied li { margin-bottom: 10px; }
.instruction { font: 15px/1.5 var(--font-text); color: var(--ink); }
.affects { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.affects li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.text-hits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.text-hits li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.text-hit-law { display: block; font-weight: 600; margin-bottom: 6px; text-decoration: none; color: var(--ink); }
.text-hit { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.text-hit:hover .norm-label { color: var(--accent); }
.snippet { display: block; color: var(--muted); font: 16px/1.55 var(--font-text); }
mark { background: var(--warn-bg); color: var(--ink); border-radius: 3px; padding: 0 .1em; }
.filters-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0; }
.pill.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 19px; margin-top: 26px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* What's new */
.feed { list-style: none; padding: 0; margin: 18px 0 0; }
.feed-day h2 { font-size: 16px; color: var(--muted); margin: 22px 0 8px; }
.feed-item { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.feed-main { display: flex; flex-direction: column; min-width: 0; }
.feed-title { font-weight: 600; }
.feed-link { font-size: 14px; }
@media (max-width: 640px) { .feed-item { flex-direction: column; gap: 4px; } }
.topnav { display: flex; gap: 4px; margin-right: auto; margin-left: 12px; }
.topnav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav a:hover { background: var(--accent-soft); color: var(--accent); }
a.ref { color: var(--accent); text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
a.ref:hover { text-decoration-color: var(--accent); }
.norm-tools { margin: 0; padding: 0 18px 14px; }
.button-quiet { min-height: 32px; padding: 0 10px; font-size: 14px; font-weight: 600; background: transparent; color: var(--accent); border: 1px solid var(--line); }
mark.shared, p.shared { background: var(--warn-bg); box-shadow: 0 0 0 3px var(--warn-bg); }
.history { list-style: none; padding: 0; margin: 0; }
.status-unchanged { border-left-color: var(--line); }
.norm-tools { display: flex; gap: 8px; }

/* Bill progress */
.progress { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); }
.station { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 4px; }
.station::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.station:first-child::before { display: none; }
.station.is-done::before, .station.is-current::before, .station.is-stopped::before { background: var(--accent); }
.station-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--surface); border: 3px solid var(--line); color: var(--muted); }
.is-done .station-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.is-current .station-dot { border-color: var(--accent); }
.is-stopped .station-dot { border-color: var(--del-ink); color: var(--del-ink); }
.station-label { font-weight: 600; font-size: 14px; line-height: 1.3; margin-top: 4px; }
.station-date { color: var(--muted); font-size: 13px; }
.is-open .station-label { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) {
  .progress { grid-template-columns: 1fr; gap: 10px; }
  .station { flex-direction: row; text-align: left; gap: 10px; }
  .station::before { display: none; }
  .station-label { margin: 0; }
}

/* Compare: views, navigation, folds */
.view-split { display: none; }
[data-view="split"] .view-inline { display: none; }
[data-view="split"] .view-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
[data-view="split"] .view-split .row-text { max-width: none; font-size: 16px; }
.split-head { display: block; font: 700 13px/1.4 var(--font); color: var(--muted); margin-bottom: 4px; }
@media (max-width: 820px) {
  [data-view="split"] .view-inline { display: block; }
  [data-view="split"] .view-split { display: none; }
  .view-toggle { display: none !important; }
}
.view-toggle { display: inline-flex; gap: 4px; }
.view-toggle .pill { margin: 0; cursor: pointer; font: inherit; font-size: 14px; min-height: 32px; padding: 2px 12px; }
.view-toggle .pill[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.change-nav { position: fixed; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); z-index: 5; }
.change-nav button { min-height: 40px; min-width: 44px; padding: 0 12px; font-size: 18px; }
.change-count { font-size: 14px; color: var(--muted); min-width: 6em; text-align: center; }
.fold { display: inline; min-height: 0; padding: 0 6px; margin: 0 2px; font: 600 14px/1.6 var(--font); background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 4px; }
.change h2:focus { outline: none; }
@media (min-width: 821px) { main[data-view="split"].page { max-width: 1320px; } }



/* Print: just the text, black on white; changes stay visible without colour. */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #bbb; --accent: #000; --accent-soft: #fff;
    --ins-bg: #fff; --ins-ink: #000; --del-bg: #fff; --del-ink: #000; --warn-bg: #fff; --warn-ink: #000; --shadow: none; color-scheme: light; }
  body { font-size: 11pt; }
  .topbar, .footer, .back, .actions, .reader-tools, .norm-tools, .change-nav, .view-toggle, .picker, .skip, .report, .fold, #filter-status, .summary-tools a, .more { display: none !important; }
  .page { max-width: none; padding: 0; }
  .norm, .change, .changes-box, .law-list, .feed-item { border: 0; box-shadow: none; break-inside: avoid-page; }
  .change { border-left: 3px solid #000; padding: 6px 12px; }
  .norm summary::after { content: none; }
  ins { text-decoration: underline; font-weight: 700; }
  del { text-decoration: line-through; }
  a { color: #000; text-decoration: none; }
  .norm:not([open]) { display: none; }
  .norm-body, .row-text { font-size: 11pt; max-width: none; }
}
@media (max-width: 640px) {
  .topnav { margin-left: 0; gap: 0; }
  .topnav a { padding: 8px; }
  .topnav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* icons only; names stay for screen readers */
  .brand-name { font-size: 18px; }
  .topbar-inner { gap: 8px; }
}
.reader-tools input { flex: 1; min-width: 0; }
@media (max-width: 640px) { .reader-tools { flex-basis: 100%; } }
.law-row > * { min-width: 0; }
@media (max-width: 640px) { .law-row-status .chip { white-space: normal; } .law-row-status { display: flex; flex-wrap: wrap; gap: 4px; } }
.facts { display: grid; grid-template-columns: minmax(160px, auto) 1fr; gap: 8px 18px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }

/* Citation preview (refs.js) */
.ref-preview { position: fixed; z-index: 20; max-height: min(360px, 60vh); overflow: auto; padding: 12px 16px 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--field-line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18); font-size: 15px; }
.ref-preview-head { margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.ref-preview-law { font-weight: 700; margin-right: 4px; }
.ref-preview-body { font: 15px/1.55 var(--font-text); }
.ref-preview-body p { margin: 0 0 .5em; }
.ref-preview-body .inner-head { font-size: 14px; }
.ref-preview-foot { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
@media print { .ref-preview { display: none !important; } }
sup.sn { font: 600 .62em/0 var(--font); color: var(--muted); vertical-align: super; margin-right: .15em; }

@media (max-width: 640px) { .law-row, .bill-row { grid-template-columns: 1fr auto; } .law-row > .abbr, .law-row-main, .law-row-status { grid-column: 1; } .row-chevron { grid-column: 2; grid-row: 1 / span 3; } }
.icon-small { width: .9em; height: .9em; vertical-align: -0.08em; }

.search-field { position: relative; flex: 1; display: flex; }
.search-field input { padding-left: 44px; }
.search-field .field-icon { left: 15px; width: 20px; height: 20px; }
.empty .icon { vertical-align: -0.18em; }

.affects li.planned { display: grid; gap: 6px; }
.planned-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.abstract.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-toggle { min-height: 0; padding: 0; background: none; border: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
