/* The public site's styles: the research hub's own design (database-worker/public: tokens.css colours, type.css,
 * tdi-nav.css's top bar, the pages' 14px Segoe UI, panels with gold uppercase labels, the home page's washes). No page
 * carries inline styles (the CSP allows none): every look is a class here or in a section's own stylesheet.
 * No headline figures anywhere (the owner, 2026-09-24 on the hub, and again 2026-10-02 for this site). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "Segoe UI", system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--gold); }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px;
}
img, svg, video { max-width: 100%; }
h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 8px; letter-spacing: .1px; }
h2 { font-family: var(--font-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold);
     margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 13.5px; margin: 14px 0 6px; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 8px; }
ul, ol { padding-left: 20px; }
.lede { color: var(--muted); font-size: 13.5px; max-width: 80ch; margin: 0 0 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.hint { color: var(--faint); font-size: 11.5px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0);
      clip-path: inset(50%); white-space: nowrap; }
.ext { font-size: .8em; margin-left: 2px; }
/* a link to a PDF on another site (html.js extLink): a PDF we hold opens in our own reader instead, so this one says it leaves */
.ext-pdf { font-size: .7em; margin-left: .4em; padding: 0 .35em; border: 1px solid currentColor; border-radius: 3px; opacity: .8;
           text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; vertical-align: .1em; }
code, .mono { font-family: var(--font-mono); font-size: .95em; }
.prose { max-width: 80ch; }

main { display: block; max-width: 1240px; margin: 0 auto; padding: 12px 22px 40px; min-height: 60vh; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold-fill); color: var(--on-gold);
        padding: 8px 12px; border-radius: var(--radius-md); z-index: 100; }
.skip:focus { left: 8px; }

/* ---- the top bar: tdi-nav.css's .tdi-bar, server-built; the section switcher is a <details> here (no script) ---- */
.tdi-bar .tdi-switcher > summary { list-style: none; }
.tdi-bar .tdi-switcher > summary::-webkit-details-marker { display: none; }
.tdi-bar .tdi-switcher[open] > .tdi-switcher-btn { color: var(--gold); border-color: var(--gold); }
.tdi-bar .tdi-switcher[open] > .tdi-switcher-btn svg { transform: rotate(180deg); }
.tdi-bar .tdi-switcher-menu .tdi-menu-group { padding: 6px 10px 2px; color: var(--faint); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .9px; }
.tdi-bar .tdi-search input[type="search"] { min-width: 0; }

/* ---- the line under the bar: where you are, and the theme switch (the hub's .topline) ---- */
.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  max-width: 1240px; margin: 0 auto; padding: 14px 22px 0; }
.topline .sub { color: var(--muted); font-size: 12.5px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.theme-toggle { display: inline-flex; align-self: center; border: 1px solid var(--control-border); border-radius: 6px; overflow: hidden; }
.theme-toggle button { background: transparent; border: 0; cursor: pointer; color: var(--faint); font: inherit; font-size: 11px;
  padding: 4px 10px; letter-spacing: .4px; min-height: 24px; }
.theme-toggle button + button { border-left: 1px solid var(--border); }
.theme-toggle button:hover { color: var(--text); background: var(--panel2); }
.theme-toggle button[aria-pressed="true"] { background: var(--gold-fill); color: var(--on-gold); font-weight: 600; }

/* ---- Legislation's sub-navigation: Bills, Model bills, Hearings (the hub's tabs on its Legislation page) ---- */
.subnav { max-width: 1240px; margin: 10px auto 0; padding: 0 22px; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px;
  border-bottom: 1px solid var(--border-strong); }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; margin-bottom: -1px;
  color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap;
  border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; }
.subnav a:hover { color: var(--text); background: var(--panel2); }
.subnav a[aria-current="page"] { color: var(--gold); background: var(--panel); border-color: var(--border-strong);
  border-bottom: 1px solid var(--panel); font-weight: 600; }

/* ---- panels: every block of a page is the hub's panel, its h2 the gold label ---- */
main > section, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; margin: 0 0 16px; }
main > section > h2:first-child, .panel > h2:first-child { margin-top: 0; }
.cards { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards > li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; min-width: 0; }
.cards > li h3 { margin: 0 0 4px; font-size: 14px; }
.cards > li p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---- chips and badges (the hub's chips.css look) ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-2xs); font-weight: 600; line-height: 1.6;
  padding: 1px 8px; border-radius: var(--radius-pill); border: 1px solid var(--control-border); color: var(--muted);
  white-space: nowrap; vertical-align: 1px; }
.badge.side-anti { border-color: var(--anti); color: var(--anti-text); }
.badge.side-pro { border-color: var(--pro); color: var(--pro); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; border: 1px solid var(--border-strong);
  border-radius: 3px; padding: 1px 5px; color: var(--muted); white-space: nowrap; }

/* ---- facts ---- */
dl.facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 5px 16px; margin: 4px 0 8px; }
dl.facts > div { display: contents; }
dl.facts dt { color: var(--muted); font-size: 12.5px; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 6px; } }

/* ---- tables (the hub's tables.css look) ---- */
.table-wrap { position: relative; overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; background: var(--panel); }
caption { text-align: left; padding: 8px 12px; color: var(--muted); font-size: 12.5px; }
th, td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--panel2); color: var(--faint); font-size: var(--text-2xs); text-transform: uppercase;
  letter-spacing: .5px; white-space: nowrap; }
tbody tr:hover { background: var(--panel2); }
tbody tr:last-child td { border-bottom: 0; }
th.num, td.num { text-align: right; }

/* ---- filters and pager ---- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 14px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); min-width: 0; max-width: 100%; }
.field select, .field input { font: inherit; font-size: 13px; color: var(--text); background: var(--bg);
  border: 1px solid var(--control-border); border-radius: var(--radius-md); padding: 5px 8px; min-height: 32px; max-width: 100%; }
.filters select, .filters input { max-width: 100%; }
.filters button, .button { font: inherit; font-size: 13px; font-weight: 600; background: var(--gold-fill); color: var(--on-gold);
  border: 0; border-radius: var(--radius-md); padding: 6px 14px; min-height: 32px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; }
.filters .reset { font-size: 12.5px; align-self: center; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0; }
.pager .count, p.count { color: var(--muted); font-size: 12.5px; margin: 0; }
.pager .pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pager .pages a, .pager .pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px;
  min-height: 30px; padding: 0 8px; border-radius: var(--radius-md); border: 1px solid var(--border); font-size: 12.5px;
  text-decoration: none; background: var(--panel); }
.pager .pages span[aria-current] { background: var(--gold-fill); color: var(--on-gold); border-color: var(--gold-fill); }
.pager .pages .gap { border: 0; background: transparent; }
.empty { color: var(--muted); font-style: italic; padding: 8px 0; }

/* ---- lists of records ---- */
.records { list-style: none; margin: 4px 0; padding: 0; }
.records > li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.records > li:last-child { border-bottom: 0; }
.records .title { font-weight: 600; }
.records .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---- hearing video (R40): plays after a click ---- */
.video-block { margin: 8px 0 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; max-width: 820px; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { font: inherit; font-size: 14px; font-weight: 600; background: var(--gold-fill); color: var(--on-gold); border: 0;
  border-radius: var(--radius-md); padding: 9px 16px; cursor: pointer; }
.video-note { color: #d8d8d8; font-size: 12px; text-align: center; margin: 0; max-width: 46ch; }
.video-links { font-size: 12.5px; margin-top: 6px; }

/* ---- long text (bill text, opinions) ---- */
.doc-text { white-space: pre-wrap; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; background: var(--sunken);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; overflow-wrap: anywhere; }
.notice { border-left: 3px solid var(--gold); background: var(--panel); padding: 8px 12px; margin: 10px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 13px; }

/* ---- the state map (server-drawn; the hub's .smap-host look) ---- */
.smap-host { display: block; aspect-ratio: 1090 / 640;
  --mapfill: color-mix(in srgb, var(--blue) 26%, var(--panel)); --maphover: color-mix(in srgb, var(--blue) 58%, var(--panel)); }
.smap-host svg.usm-svg { width: 100%; height: auto; display: block; overflow: visible; }
.smap-host .usm-path { fill: var(--mapfill); stroke: var(--panel); stroke-width: 1.4; transition: fill .12s ease; }
.smap-host a.usm-state { cursor: pointer; }
.smap-host a.usm-state:hover .usm-path, .smap-host a.usm-state:focus-visible .usm-path { fill: var(--maphover); stroke: var(--gold); stroke-width: 2.4; }
.smap-host a.usm-state:focus-visible { outline: none; }
.smap-host .usm-label { font: 700 19px "Segoe UI", system-ui, sans-serif; fill: var(--text); text-anchor: middle; pointer-events: none; }
.smap-host .usm-label-callout { font-size: 17px; text-anchor: start; }
.smap-host .usm-leader { stroke: var(--faint); stroke-width: 1; fill: none; }
.smap-host .usm-marker { fill: var(--gold); stroke: var(--panel); stroke-width: 1; }
.smap-host .usm-off .usm-path { fill: var(--panel2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .smap-host { --mapfill: color-mix(in srgb, var(--blue) 40%, var(--panel));
    --maphover: color-mix(in srgb, var(--blue) 70%, var(--panel)); }
}
:root[data-theme="dark"] .smap-host { --mapfill: color-mix(in srgb, var(--blue) 40%, var(--panel));
  --maphover: color-mix(in srgb, var(--blue) 70%, var(--panel)); }

/* ---- footer (the hub's) ---- */
.site-foot { max-width: 1240px; margin: 0 auto; padding: 0 22px 32px; }
.site-foot .foot-in { color: var(--faint); font-size: 11.5px; padding-top: 14px; border-top: 1px solid var(--border); max-width: 100ch; }
.site-foot p { margin: 0 0 6px; }
.site-foot .cite { color: var(--muted); font-weight: 600; }
.site-foot .licences { margin: 4px 0 6px; padding-left: 16px; }
.site-foot a { color: var(--gold); }

@media (max-width: 620px) {
  main { padding: 12px 16px 32px; }
  .topline { padding: 12px 16px 0; }
  .subnav { padding: 0 16px; }
  .site-foot { padding: 0 16px 28px; }
  h1 { font-size: 20px; }
  table { font-size: 13px; }
}

/* ---- section styles below, each under its section's name ---- */
