/* quoroom.org — reference section. Static, no framework, no render-blocking JS.

   Fonts are served from this origin rather than from Google, so that loading a
   page involves no third party at all and the privacy policy can say so without
   qualification. All three families are SIL Open Font License 1.1; the licences
   ship alongside the files in /fonts/. Only the latin and latin-ext subsets are
   carried — everything this site renders, in both its languages, is in them. */

/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/poppins-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/poppins-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/poppins-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/poppins-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/poppins-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-serif-4-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/source-serif-4-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* The media query below recolours what this stylesheet draws. This line
     tells the browser the page supports both themes, which is what moves
     the parts it draws itself: scrollbars, autofill, and the native pieces
     of the date and number fields on the enquiry form. The theme switch
     overrides it to a single value when a reader makes an explicit choice. */
  color-scheme: light dark;

  --ink:      #16243F;
  --body:     #333B4A;
  /* Every one of these has to clear 4.5:1 on the tint and wash surfaces, not
     only on white — the statute blocks, callouts and footer sit on tint, and
     a targeted subdivision highlights onto wash. That leaves little room
     between the two greys, so the hierarchy between them is carried by size
     and weight rather than by a lighter colour that would fall below the
     threshold. --muted is the darker of the two because it is the more
     prominent one. */
  --muted:    #5F6878;
  --faint:    #656E82;
  --accent:   #B84C16;
  --accent-br:#EE6B24;
  --wash:     #FDF1E8;
  --paper:    #FFFFFF;
  --tint:     #F8F7F4;
  --rule:     #E4E2DC;
  --rule-soft:#EFEDE8;
  --flag:     #8A4A12;
  --flag-bg:  #FCF3E4;

  /* A legislative diff. Both pairs are measured against their own ground, not
     against the page: 5.7:1 and 5.4:1 light, 8.8:1 and 8.2:1 dark. */
  --ins:      #1C6B45;
  --ins-bg:   #E7F3EC;
  --del:      #A83A22;
  --del-bg:   #FBE9E4;

  /* The closing band is a deliberate dark panel, not a surface that follows the
     theme. Taking its background from --ink inverted it in the dark theme while
     the text stayed white — 1.13:1, the worst contrast the site has had. These
     hold in both themes. */
  --band-bg:    #16243F;
  --band-fg:    #FFFFFF;
  --band-muted: #B6C0D2;

  /* A filled button carries text, so it needs 4.5:1 — the bright accent only
     reaches 3.1 against white and is kept for rules, bars and underlines,
     where 3:1 on a non-text element is the bar. */
  --btn-bg:   #C2521A;
  --btn-bg-h: #A8460F;
  --btn-fg:   #FFFFFF;

  --brand: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --read:  "Source Serif 4", Georgia, serif;
  --mono:  "IBM Plex Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF1F6; --body: #C8CEDA; --muted: #949DAE; --faint: #828B9E;
    --accent: #F59055; --accent-br: #FFA86E; --wash: #2A1D14;
    --paper: #171A21; --tint: #1D212A; --rule: #2E3440; --rule-soft: #262B35;
    --flag: #E0A869; --flag-bg: #2A2114;
    --ins: #7BD6A4; --ins-bg: #15291F; --del: #F4A08C; --del-bg: #2B1815;
    /* the orange lightens in the dark theme, so the button text goes dark */
    --btn-bg: #FFA86E; --btn-bg-h: #F59055; --btn-fg: #171A21;
  }
}
:root[data-theme="dark"] {
  --ink: #EEF1F6; --body: #C8CEDA; --muted: #949DAE; --faint: #828B9E;
  --accent: #F59055; --accent-br: #FFA86E; --wash: #2A1D14;
  --paper: #171A21; --tint: #1D212A; --rule: #2E3440; --rule-soft: #262B35;
  --flag: #E0A869; --flag-bg: #2A2114;
  --ins: #7BD6A4; --ins-bg: #15291F; --del: #F4A08C; --del-bg: #2B1815;
  --btn-bg: #FFA86E; --btn-bg-h: #F59055; --btn-fg: #171A21;
}

* { box-sizing: border-box; }

html {
  font-family: var(--read);
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; background: var(--paper); }

/* One container for the whole site, so the brand sits at the same point on
   every page. Reading measure is a property of the text, not of the page, so
   it is set on the text instead — see --measure below. Blocks that are not
   prose (card decks, tables, statutory text, the calculator, the form) keep
   the full width, which several of them were short of at 820px. */
.wrap { max-width: 1060px; margin: 0 auto; padding-inline: 22px; }

:root { --measure: 776px; }   /* what the old 820px container gave the text */

/* ---------- header ---------- */

.top {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--brand);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent-br); }
.brand { white-space: nowrap; }
.brand .mark { display: inline-block; width: 1.55em; height: auto; margin: 0 0.36em 0 0; vertical-align: -0.38em; }
@media (max-width: 420px) { .brand .mark { width: 1.3em; margin-right: 0.28em; vertical-align: -0.3em; } }
.brand .mark path { fill: var(--ink); }
.brand .mark polygon { fill: var(--accent-br); }
.top nav {
  display: flex;
  gap: 20px;
  font-family: var(--brand);
  font-size: 0.86rem;
  font-weight: 500;
}
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* ---------- draft banner ---------- */

.draft {
  background: var(--flag-bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--brand);
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--flag);
}
.draft div { padding-block: 10px; }
.draft b { font-weight: 700; }

/* ---------- article ---------- */

article { padding-block: 44px 20px; }
@media (max-width: 600px) { article { padding-block: 26px 16px; } }

/* Prose and anything read as prose stays at the measure; everything else in an
   article — listed by what it is, not by what it is not — uses the full width. */
article > p,
article > ul,
article > ol,
article > h1,
article > h2,
article > h3,
article > blockquote,
article > .lead,
article > .stamp,
article > .callout,
article > .eyebrow { max-width: var(--measure); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--brand);
  font-size: clamp(1.85rem, 4.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 26px;
}

.stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  padding-block: 14px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 32px;
}
.stamp b { color: var(--muted); font-weight: 500; }

/* Laid out in a row, the items wrap mid-item on a phone and the label of the
   next one lands against the tail of the last: "Reproduced 3 Text verified
   2026-10-11" reads as one fact rather than two. One per line instead. */
@media (max-width: 600px) {
  .stamp { display: grid; gap: 7px; }
}

h2 {
  font-family: var(--brand);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 40px 0 12px;
  text-wrap: balance;
}
h3 {
  font-family: var(--brand);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 8px;
}

p { margin: 0 0 18px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-br); }
strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 20px; padding-left: 24px; }
li { margin-bottom: 9px; }

blockquote {
  margin: 0 0 22px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent-br);
  font-size: 1.02rem;
  color: var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--faint);
  margin-top: 8px;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--tint);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink);
}

.callout {
  background: var(--tint);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: 20px 22px;
  margin: 0 0 24px;
  font-size: 0.97rem;
}
.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding-left: 0; counter-reset: c; }
.checklist li {
  counter-increment: c;
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
}
.checklist li::before {
  content: counter(c);
  position: absolute;
  left: 0; top: 2px;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------- tables ---------- */

.tscroll { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--rule); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-family: var(--brand); font-size: 0.86rem; }
th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  background: var(--tint);
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; color: var(--body); }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); font-weight: 600; }
.no { color: var(--faint); }

/* ---------- index cards ---------- */

.deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin: 0 0 32px; }
.item {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 20px;
  text-decoration: none;
}
.item:hover { border-color: var(--accent-br); }
.item .sec {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.item .t {
  font-family: var(--brand);
  font-size: 0.99rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  display: block;
  margin-bottom: 6px;
}
.item .d { font-size: 0.89rem; line-height: 1.5; color: var(--muted); }

/* ---------- calculator ---------- */

.calc { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 26px; }
.calc-in { padding: 20px 22px; background: var(--tint); border-bottom: 1px solid var(--rule); }
.calc-in label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.calc-in input {
  font-family: var(--brand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 10px 13px;
  font-variant-numeric: tabular-nums;
}
.calc-in input:focus-visible { outline: 2.5px solid var(--accent-br); outline-offset: 1px; }
.calc-rows { padding: 4px 22px 18px; }
.crow {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) max-content max-content;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.crow:last-child { border-bottom: 0; }
.cd { font-family: var(--brand); font-weight: 700; font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 400; }
.cw { font-family: var(--brand); font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.cw span { display: block; font-weight: 400; font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.cdate { font-family: var(--brand); font-size: 0.9rem; font-weight: 600; color: var(--body); font-variant-numeric: tabular-nums; }
.cst {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  white-space: nowrap;
}
.st-past { background: #FBE9E4; color: #A83A22; }
.st-soon { background: #FBF0DD; color: #8A5A0A; }
.st-ok   { background: #E7F3EC; color: #1C6B45; }

/* ---------- footer ---------- */

/* One footer, generated by wrap.py: what the site is, where to go, and the
   policies — in that order, because that is the order someone looks for them. */
footer {
  margin-top: 54px;
  border-top: 1px solid var(--rule);
  background: var(--tint);
}
footer .wrap { padding-block: 30px 40px; }

/* On the landing the footer follows the dark closing band, which already
   separates it from the page — the gap and the rule read as a mistake there. */
footer.flush { margin-top: 0; border-top: 0; }
footer p { margin: 0; max-width: var(--measure); }
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
footer a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.f-note {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px !important;
}
.f-links {
  font-family: var(--brand);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 4px !important;
}
.f-links a { color: var(--ink); }
.f-legal {
  font-family: var(--brand);
  font-size: 0.79rem;
  line-height: 2;
  color: var(--muted);
}

@media (max-width: 620px) {
  .crow { grid-template-columns: 52px 1fr; row-gap: 7px; }
  .cdate, .cst { grid-column: 2; justify-self: start; }
  .top nav { gap: 14px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- enquiry form ---------- */

.enquiry { margin: 0 0 8px; }
.f-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.enquiry .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.f-grid .field { margin-bottom: 0; }
.enquiry .consent label {
  flex-direction: row; display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--read); font-size: 0.95rem; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.enquiry .consent input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; padding: 0; accent-color: var(--accent-br); }
.enquiry label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.enquiry label .opt { color: var(--faint); letter-spacing: 0.04em; }
.enquiry input,
.enquiry select,
.enquiry textarea {
  font-family: var(--brand);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 11px 13px;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.enquiry textarea { font-family: var(--read); font-size: 1rem; line-height: 1.5; resize: vertical; }
.enquiry input:focus-visible,
.enquiry select:focus-visible,
.enquiry textarea:focus-visible {
  outline: 2.5px solid var(--accent-br);
  outline-offset: 1px;
  border-color: var(--accent-br);
}
.enquiry .hint { font-size: 0.82rem; color: var(--muted); margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.f-actions .hint { flex: 1 1 22em; }
.btn-send {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--brand);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
}
.btn-send:hover { background: var(--btn-bg-h); color: var(--btn-fg); }
.btn-send:disabled { opacity: .55; cursor: default; }
.btn-send:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.f-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.f-status.ok  { background: #E7F3EC; color: #1C6B45; border: 1px solid #BFE0CD; }
.f-status.bad { background: #FBE9E4; color: #A83A22; border: 1px solid #F0CCC1; }

/* ============ landing page ============ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding-block: 54px 68px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent-br); }
.hero-lead { font-size: 1.1rem; line-height: 1.58; color: var(--body); margin: 0 0 26px; max-width: 31em; }
.hero-lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--brand);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 12px 24px;
  text-decoration: none;
}
.btn-ghost { text-decoration: none; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.trust { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--rule-soft); display: grid; gap: 13px; }
.trust li { font-size: 0.88rem; line-height: 1.4; color: var(--muted); margin: 0; padding-left: 20px; position: relative; }
.trust li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-br); font-weight: 700; font-size: 0.82rem; }
.trust b { display: block; color: var(--ink); font-family: var(--brand); font-weight: 600; font-size: 0.92rem; }

/* record mockup */
.mock { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(22,36,63,.4); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: var(--tint); border-bottom: 1px solid var(--rule-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.mock-title { margin-left: 8px; font-family: var(--brand); font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.mock-body { padding: 20px 22px 24px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #E7F3EC; color: #1C6B45; }
.mock-h { font-family: var(--brand); font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 13px 0 3px; }
.mock-sub { font-size: 0.84rem; color: var(--muted); margin: 0 0 20px; }
.q-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.q-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.q-val { font-family: var(--brand); font-size: 1.45rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.bar-fill { height: 100%; width: 68%; border-radius: 999px; background: linear-gradient(90deg, #F0924C, var(--accent-br)); }
.q-note { font-size: 0.8rem; color: var(--muted); margin: 9px 0 0; }
.q-note b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tally { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 20px; background: var(--rule-soft); border: 1px solid var(--rule-soft); border-radius: 8px; overflow: hidden; }
.t-cell { background: var(--paper); padding: 12px 13px; }
.t-k { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.t-v { font-family: var(--brand); font-size: 1.15rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-n { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-soft); font-size: 0.78rem; color: var(--muted); }
.mock-foot code { font-size: 0.86em; }

/* problem band */
.band { background: var(--tint); border-block: 1px solid var(--rule-soft); }
.band-in { display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: 48px; padding-block: 64px; }
.band-in h2 { margin-top: 0; }
.band-in p { color: var(--body); max-width: 32em; }
.band-in .btn-ghost { margin-top: 4px; }
.statutes { margin-top: 22px; font-size: 0.82rem; line-height: 1.55; color: var(--muted); }
.statutes b { color: var(--body); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-content: start; }
.pcard { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 20px; }
.pcard h3 { font-family: var(--brand); font-size: 0.98rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.3; }
.pcard p { font-size: 0.88rem; line-height: 1.5; color: var(--muted); margin: 0 0 11px; max-width: none; }
.pcard a { font-family: var(--brand); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.pcard a:hover { text-decoration: underline; }

/* closing cta */
.cta-band { background: var(--band-bg); margin-top: 56px; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 46px; }
.cta-in h2 { color: var(--band-fg); margin: 0 0 8px; }
.cta-in p { color: var(--band-muted); margin: 0; max-width: 40em; }


@media (max-width: 900px) {
  .hero, .band-in { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0,1fr); }

  /* Left to wrap, the header once took a fifth of a phone's first screen
     before a word of the page, so here it is placed instead: one row each
     for the brand, the navigation and the language switch. The navigation's
     gap is what keeps its four items on their row. English is the longest:
     at 381px it leaves room for gaps of 11px at most, and at 18px its last
     item dropped onto a row of its own. */
  .top-in {
    display: grid;
    grid-template-areas: "brand" "nav" "langs";
    align-items: center;
    gap: 9px;
    padding-block: 11px;
  }
  .brand { grid-area: brand; font-size: 1.1rem; }
  .top nav { grid-area: nav; gap: 10px; font-size: 0.82rem; flex-wrap: wrap; }
}

/* At 380px and below the header's type and gaps step down once more, which
   keeps the navigation on one row down to 360px. Narrower than that it may
   wrap, which costs a row but runs nothing off the screen. */
@media (max-width: 380px) {
  .top-in { gap: 8px; }
  .brand { font-size: 0.98rem; }
  .top nav { gap: 8px; font-size: 0.78rem; }
}

/* ---------- statutory text ---------- */

.statute {
  margin: 44px 0 34px;
  padding: 26px 0 0;
  border-top: 2px solid var(--ink);
}
.statute h2 { margin-top: 0; }
.st-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 22px;
}
.st-meta b { color: var(--body); font-weight: 500; }

.st-body {
  background: var(--tint);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.sub { display: flex; gap: 10px; margin-bottom: 13px; font-size: 0.97rem; line-height: 1.62; }
.sub:last-child { margin-bottom: 0; }
.sub-l {
  flex: none;
  min-width: 2.6em;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding-top: 0.22em;
}
.sub-l:hover { text-decoration: underline; }
.sub-t { color: var(--body); max-width: var(--measure); }
.sub.d1 { margin-left: 1.6em; }
.sub.d2 { margin-left: 3.2em; }
.sub.d3 { margin-left: 4.8em; }
.sub.d4 { margin-left: 6.4em; }
.sub:target .sub-t { background: var(--wash); box-shadow: 0 0 0 4px var(--wash); border-radius: 2px; }

@media (max-width: 600px) {
  /* The marker sits in its own column, and the indent steps 1.6em a level.
     At (b)(3)(A) that is a marker of nine characters plus 4.8em of nesting —
     about half the width of a phone — and the statute is read down a ribbon
     24 characters wide. So on a phone the marker runs in ahead of the text,
     the way a printed code sets it, and the steps shrink to a hint of depth
     rather than a measured inset. */
  .st-body { padding: 16px 14px; }
  .sub { display: block; }
  .sub-l { padding-top: 0; margin-right: 0.4em; }
  .sub.d1 { margin-left: 0.7em; }
  .sub.d2 { margin-left: 1.4em; }
  .sub.d3 { margin-left: 2.1em; }
  .sub.d4 { margin-left: 2.8em; }
}

.st-warn {
  font-size: 0.88rem;
  color: var(--flag);
  background: var(--flag-bg);
  border-radius: 6px;
  padding: 12px 15px;
  margin: 0 0 16px;
}
.st-prov { font-size: 0.82rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: var(--measure); }

/* An amendment that is already law and not yet in force. It sits under the
   text it will replace and never in place of it, because the text above is
   the text that governs until the date in the heading. */
.st-flag {
  display: inline-block;
  margin-top: 7px;
  font-family: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--flag);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.st-flag::before { content: "\2192\00a0"; }
.st-flag:hover { color: var(--ink); }

.pending {
  margin: 0 0 18px;
  background: var(--flag-bg);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--flag);
  border-radius: 6px;
  padding: 18px 20px 16px;
}
.pending h3 {
  font-family: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--flag);
  margin: 0 0 11px;
}
.pd-bill {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 13px;
}
.pd-bill b { font-weight: 600; }
.pd-act { color: var(--muted); }
.pd-lead {
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--body);
  margin: 0 0 15px;
  max-width: var(--measure);
}
.pd-list { list-style: none; margin: 0 0 13px; padding: 0; display: grid; gap: 13px; }
.pd-list li { display: grid; grid-template-columns: 8.2em minmax(0,1fr); gap: 13px; align-items: start; }
.pd-l {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--accent);
  padding-top: 0.22em;
}
.pd-was, .pd-v { display: block; font-weight: 400; color: var(--faint); }
.pd-t { font-size: 0.9rem; line-height: 1.64; color: var(--body); }
.pd-t del, .pd-t ins {
  padding: 0 3px;
  border-radius: 2px;
  text-decoration-thickness: 1px;
}
.pd-t del { background: var(--del-bg); color: var(--del); text-decoration-line: line-through; }
.pd-t ins { background: var(--ins-bg); color: var(--ins); text-decoration-line: underline; }
.pd-el { color: var(--faint); }

/* A dated note inside body prose: what this sentence will say, and when. The
   prose itself stays in the present tense, because the present tense is the
   law until the date in the note. */
.asof {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--flag);
}
.asof::before { content: "\2192\00a0"; }
.asof strong { font-weight: 600; color: inherit; }
.asof a { color: inherit; }

/* ---------- the theme switch ---------- */
/* Three states, because the stylesheet has three: no attribute follows the
   system, and the two explicit values override it either way. Hidden in the
   markup and revealed by script — a control that cannot work without
   JavaScript should not be shown to a reader who has it turned off. */
.theme {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.theme-l {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 2px;
}
.theme button {
  font-family: var(--brand);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  /* 36px of touch height without 36px of visible pill */
  position: relative;
}
.theme button::after {
  content: "";
  position: absolute;
  inset: -7px -2px;
}
.theme button:hover { color: var(--ink); border-color: var(--muted); }
.theme button[aria-pressed="true"] {
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  font-weight: 600;
}
.theme button:focus-visible {
  outline: 2.5px solid var(--accent-br);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .theme { margin-top: 18px; padding-top: 14px; }
}

/* ---------- an illustration ---------- */
/* The one thing on this page that is not evidence. It is given room, a
   caption that says what it was drawn for, and a line saying where it came
   from — the same disclosure the statutory text gets, for the same reason. */
.plate {
  margin: 30px 0 34px;
  padding: 0;
  max-width: var(--measure);
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--tint);
}
.plate figcaption {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}
.plate-g {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.plate-p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--faint);
}

@media (max-width: 600px) {
  .plate { margin: 22px 0 26px; }
}

/* ---------- the bill index ---------- */
.bills { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 0; }
.bill {
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
}
.bill:first-child { border-top: 1px solid var(--rule); }
.bill:last-child { border-bottom: 1px solid var(--rule); }
.bill-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-family: var(--brand);
  font-size: 1.04rem;
  font-weight: 700;
  margin: 0 0 5px;
}
.bill-h a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent-br); }
.bill-h a:hover { color: var(--accent); }
.bill-state {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yes);
  background: var(--yes-bg);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.bill-state.pend { color: var(--flag); background: var(--flag-bg); }
.bill-cite {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  margin: 0 0 9px;
}
.bill-sum { font-size: 0.93rem; line-height: 1.6; color: var(--body); margin: 0 0 9px; max-width: var(--measure); }
.bill-secs { font-size: 0.84rem; color: var(--muted); margin: 0; }
.bill-secs b { font-family: var(--brand); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-right: 7px; }

@media (max-width: 600px) {
  .bill-h { font-size: 0.98rem; gap: 8px; }
}

/* a bill page's own diff: the same marks as a pending amendment, but the
   change is behind us rather than ahead, so it is not boxed as a caveat */
.bdiff { margin: 0 0 30px; padding-top: 20px; border-top: 1px solid var(--rule-soft); }
.bdiff h3 { font-family: var(--brand); font-size: 1.02rem; font-weight: 700; margin: 0 0 9px; }
.bdiff h3 a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent-br); }
.bdiff h3 a:hover { color: var(--accent); }
.bdiff .pd-list { margin-top: 13px; }
.bdiff .pd-note { margin-bottom: 0; }

/* ---------- a veto ---------- */
.veto { margin: 0 0 34px; padding-top: 22px; border-top: 1px solid var(--rule); }
.veto h3 {
  font-family: var(--brand);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.veto-when {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--no);
  background: var(--no-bg);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.veto-meta { font-family: var(--mono); font-size: 0.75rem; line-height: 1.7; color: var(--faint); margin: 0 0 9px; }
.veto-secs { font-size: 0.84rem; color: var(--muted); margin: 0 0 15px; }
.veto-secs b { font-family: var(--brand); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-right: 7px; }
.veto-msg {
  margin: 0;
  padding: 18px 22px;
  background: var(--tint);
  border-left: 3px solid var(--rule);
  border-radius: 0 6px 6px 0;
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--body);
  max-width: var(--measure);
}

@media (max-width: 600px) {
  .veto h3 { font-size: 1rem; gap: 8px; }
  .veto-msg { padding: 14px 15px; }
}

/* ---------- what a section used to say ---------- */
.vhist { margin: 0 0 20px; padding: 18px 0 0; border-top: 1px solid var(--rule-soft); }
.vhist h3 {
  font-family: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 9px;
}
.vhlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.vh { padding-left: 14px; border-left: 2px solid var(--rule); }
.vh-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 11px;
  font-family: var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.vh-h a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent-br); }
.vh-h a:hover { color: var(--accent); }
.vh-when {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--faint);
  white-space: nowrap;
}
.vh-m { font-family: var(--mono); font-size: 0.72rem; line-height: 1.6; color: var(--faint); margin: 0 0 4px; }
.vh-n { font-size: 0.83rem; color: var(--muted); margin: 0; }
.vh-d { margin-top: 9px; }
.vh-d summary {
  font-family: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 3px 0;
}
.vh-d summary:hover { color: var(--ink); }
.vh-d[open] summary { margin-bottom: 10px; }
.vh-d .pd-list { margin: 0; }
.bill-inline { margin: 0 0 9px; }
.bill-inline .pd-l { min-width: 0; }
.pd-note, .pd-prov {
  font-size: 0.8rem;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
  max-width: var(--measure);
}
.pd-note { margin-bottom: 11px; }
.pd-note code, .pd-prov code { font-family: var(--mono); font-size: 0.95em; color: var(--body); }

@media (max-width: 600px) {
  .pending { padding: 15px 15px 14px; }
  .pd-list li { grid-template-columns: minmax(0,1fr); gap: 5px; }
  .pd-l { padding-top: 0; }
  .pd-was, .pd-v { display: inline; }
  .pd-v::before { content: " \00b7 "; }
}

@media (max-width: 600px) {
  .sub.d1 { margin-left: 0.9em; } .sub.d2 { margin-left: 1.8em; }
  .sub.d3 { margin-left: 2.7em; } .sub.d4 { margin-left: 3.6em; }
  .st-body { padding: 16px 15px; }
}

/* The language switch claims the free space in the header row with an auto
   margin, which sets it at the end of the row. Four languages do not fit
   beside the navigation by name, so the desktop header shows the short form
   (EN ES 简 繁) and a phone, which has a row to spare under the navigation,
   shows each language by its own name. */
.top .langs {
  gap: 11px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-left: auto;
}
.langs a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 9px;
  white-space: nowrap;
}
.langs a:hover, .langs a[aria-current] { color: var(--ink); }
.langs .ln-long { display: none; }
@media (max-width: 600px) {
  .top .langs {
    grid-area: langs;
    margin-left: 0;
    gap: 14px;
    font-size: 0.75rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--rule);
    padding-top: 7px;
  }
  .langs a { padding-block: 0; }
  .langs .ln-long { display: inline; }
  .langs .ln-short { display: none; }
}

/* Chinese. The self-hosted faces carry Latin only, so Han characters fall to
   the reader's system font: name the good ones, sans-serif for body text too
   (a serif fallback lands on Songti or SimSun). Tracking that suits Latin
   capitals spreads Han characters apart, and Han has no italic. */
html:lang(zh-Hans) {
  --brand: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --read:  "Source Serif 4", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono:  "IBM Plex Mono", Menlo, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", monospace;
}
html:lang(zh-Hant) {
  --brand: "Poppins", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC", sans-serif;
  --read:  "Source Serif 4", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC", sans-serif;
  --mono:  "IBM Plex Mono", Menlo, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", monospace;
}
:lang(zh-Hans), :lang(zh-Hant) { letter-spacing: normal !important; }
:lang(zh-Hans) em, :lang(zh-Hant) em { font-style: normal; font-weight: 600; }

/* The English term beside each Spanish one in the glossary — present because
   the owner's own ballot will be in English, but not competing with it. */
.en { color: var(--muted); font-weight: 400; font-size: 0.92em; }

/* Why the statute below is in English, said once on each Spanish page. */
.st-lang {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 12px;
  margin: 0 0 16px;
  max-width: var(--measure);
}

/* ---------- inline citation ---------- */

/* A statutory citation that can explain itself without sending the reader
   away. The card ships in the HTML and is only toggled, so it still reads
   with JavaScript off — it simply sits open-less until clicked. */
.cite { position: relative; display: inline-block; }
.cite-t {
  font: inherit;
  font-weight: 700;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 2px dotted var(--accent-br);
  white-space: nowrap;
}
.cite-t:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cite-t:focus-visible { outline: 2.5px solid var(--accent-br); outline-offset: 3px; border-radius: 2px; }
.cite-t[aria-expanded="true"] { color: var(--accent); border-bottom-style: solid; }

.cite-c {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  display: block;
  width: min(392px, calc(100vw - 32px));
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(22, 36, 63, 0.14);
  font-family: var(--brand);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
  text-align: left;
  white-space: normal;
  cursor: auto;
}
.cite-c[hidden] { display: none; }
.cite-w { display: block; color: var(--ink); font-weight: 500; }
.cite-y { display: block; margin-top: 10px; }
.cite-l {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
}
.cite-l:hover { text-decoration: underline; }

/* The card is wider than its trigger, so near the right edge — and on a phone,
   nearly always — the script measures it and nudges it left into the gutter.
   .cite stays positioned so that nudge is relative to the citation. */

/* Off screen until a keyboard reaches it, then the first thing in the tab order. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  font-family: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--btn-fg);
  background: var(--btn-bg);
  padding: 11px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip:focus { left: 0; }


/* ── HOA pages (tools/hoa.py) ─────────────────────────────────────────── */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.75rem 1.5rem;margin:1.5rem 0;padding:1rem 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.facts dt{font:600 .72rem/1.2 var(--brand);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.facts dd{margin:.25rem 0 0;font-family:var(--brand);color:var(--ink)}
.hoa-cta{margin:1.25rem 0 .5rem}
.hoa-cta-note{margin:0 0 2rem;font-size:.92rem;color:var(--muted);max-width:62ch}
.hoa-cta .btn{display:inline-block;background:var(--btn-bg);color:var(--btn-fg);padding:.7rem 1.1rem;border-radius:6px;font:600 .95rem var(--brand);text-decoration:none}
.hoa-cta .btn:hover{background:var(--btn-bg-h)}
/* the short link and the claim (tools/hoa.py share_block, claim_page) */
.hoa-share{margin:-1rem 0 2.25rem;padding:1rem 1.1rem;border:1px dashed var(--rule);border-radius:8px;max-width:var(--measure);font-size:.92rem;color:var(--muted);display:flex;gap:1.1rem;align-items:center}
.hoa-share .qr{flex:none;width:132px;height:132px;border-radius:8px;box-shadow:0 0 0 1px var(--rule)}
.hoa-share p{margin:0}
.hoa-share .qr-get a[download]{font-family:var(--brand);font-weight:600}
@media (max-width:480px){.hoa-share{flex-direction:column;align-items:flex-start}}
.hoa-share p+p{margin-top:.35rem}
.hoa-share b{font:600 .72rem var(--brand);letter-spacing:.1em;text-transform:uppercase;color:var(--faint);margin-right:.5rem}
.hoa-share a[href^="/h/"]{font-family:var(--mono)}
.pcard.next{border-color:var(--accent);background:var(--wash)}
.claim-for{font:.85rem var(--mono);color:var(--muted)}
table.events td:first-child{font-family:var(--mono);white-space:nowrap;color:var(--muted)}
table.events tr.ev-mark td:last-child::before{content:"○ ";color:var(--ink)}
table.events tr.ev-lift td:last-child::before{content:"● ";color:var(--ink)}
details.older{margin:.75rem 0 2rem}
.meta{color:var(--muted);font-size:.85em}
.letters a,.letters b{display:inline-block;min-width:1.6em;text-align:center;font-family:var(--brand)}
.letters b{color:var(--ink)}
.hoa-list{columns:2 18rem;padding-left:1.1rem}
.hoa-list li,.hoa-top li{break-inside:avoid;margin-bottom:.35rem}
.hoa-search{position:relative;margin:1.75rem 0 2rem;max-width:40rem}
.hoa-search label{display:block;font:600 .72rem/1.2 var(--brand);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:.5rem}
.hoa-search input{width:100%;box-sizing:border-box;padding:.8rem 1rem;font:1rem var(--brand);color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:8px;outline:none;transition:border-color .12s}
.hoa-search input:focus{border-color:var(--ink);box-shadow:0 0 0 3px var(--rule-soft)}
.hoa-search [role="listbox"]{position:absolute;z-index:5;left:0;right:0;margin:.35rem 0 0;padding:.35rem 0;list-style:none;background:var(--paper);border:1px solid var(--rule);border-radius:8px;box-shadow:0 12px 32px rgba(22,36,63,.12);max-height:24rem;overflow:auto}
.hoa-search [role="option"]{display:flex;flex-direction:column;gap:.1rem;padding:.5rem 1rem;cursor:pointer}
.hoa-search [role="option"] a{font:600 .95rem var(--brand);color:var(--ink);text-decoration:none}
.hoa-search [role="option"]:hover,.hoa-search [role="option"][aria-selected="true"]{background:var(--tint)}
.hoa-search .hs-group{padding:.6rem 1rem .25rem;font:600 .68rem var(--brand);letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.hoa-search .hs-note{margin:.6rem 0 0;font-size:.9rem;color:var(--muted)}
dl.faq dt{font:600 1rem var(--brand);color:var(--ink);margin-top:1.25rem}
dl.faq dd{margin:.35rem 0 0}
@media (prefers-reduced-motion:reduce){.hoa-search input{transition:none}}
/* the county map (tools/hoa.py) */
.map-fig{margin:2rem 0 2.5rem}
.camap{display:block;width:100%;max-width:760px;height:auto;margin:0 auto}
.camap .cty{fill:var(--tint);stroke:var(--rule);stroke-width:.6;transition:fill .15s}
.camap a:hover .cty,.camap a:focus .cty{fill:var(--rule-soft)}
.camap a:focus{outline:none}
.camap a:focus .cty{stroke:var(--ink);stroke-width:1.2}
.camap .cty.here{fill:var(--accent);fill-opacity:.85}
.camap .edge{fill:none;stroke:var(--muted);stroke-width:.8;stroke-linejoin:round;pointer-events:none}
.map-fig figcaption{max-width:620px;margin:.75rem auto 0;font-size:.9rem;color:var(--muted)}
.locator-fig{float:right;width:min(180px,38%);margin:0 0 1rem 1.5rem}
.locator-fig .camap .cty{stroke-width:1.2}
@media (prefers-reduced-motion:reduce){.camap .cty{transition:none}}
/* the card's map (tools/hoa.py card_map) */
.hoa-map{margin:1.75rem 0 2.25rem}
.hoa-map-panels{display:grid;grid-template-columns:1fr minmax(74px,15%);gap:10px;align-items:stretch}
.hoa-map svg{display:block;width:100%;height:auto;border:1px solid var(--rule);border-radius:6px;background:var(--paper)}
.hoa-map .hm-state{padding:8px;box-sizing:border-box;height:100%}
.hoa-map figcaption{margin-top:.6rem;font-size:.88rem;color:var(--muted);max-width:44rem}
.hoa-map .hm-name{font:600 .72rem var(--brand);letter-spacing:.12em;color:var(--ink);margin-right:.6rem}
/* the hub's homes map (tools/hoa.py hero) */
/* The hub's head: the title, the finder and the stamp on the left, every home
   a grain on the right. The picture is 1400px wide and shown at 380, which on
   a 2x screen is still enough for the coast to read as grain, not as a smear.
   Below 760px the two stack and the picture keeps to a phone's width. */
.hoa-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:1.5rem 3rem;align-items:start;margin-bottom:2.5rem}
.hoa-hero .stamp{margin-bottom:26px}
.hoa-hero .hoa-search{margin:0}
.hero-map{margin:0}
.hero-map img{display:block;width:100%;height:auto}
/* a hand-written pair of <img>s (the home page) swaps by theme; the hub's <picture> ignores these */
.hero-map img.hm-dark{display:none}
:root[data-theme="dark"] .hero-map img.hm-light{display:none}
:root[data-theme="dark"] .hero-map img.hm-dark{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .hero-map img.hm-light{display:none}
  :root:not([data-theme="light"]) .hero-map img.hm-dark{display:block}
}
.hero-map figcaption{font-size:.84rem;line-height:1.5;color:var(--muted);margin-top:.6rem}
.hero-map figcaption b{color:var(--ink);font-weight:600}
@media (max-width:760px){
  .hoa-hero{grid-template-columns:1fr;gap:1.5rem}
  .hero-map{max-width:440px}
}

/* The county table and the map beside it are one control (hoa-atlas.js): a
   row lights its county, a county lights its row. On a phone the map is not
   shown — its 58 links are the table's 58 links, and a county the size of a
   fingertip is no target. The links stay in the document for a crawler. */
.atlas{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,36%);gap:0 2.5rem;align-items:start;margin-bottom:2.5rem}
.atlas .tscroll{margin:0}
.atlas tr[data-county]:hover td,.atlas tr.is-hot td{background:var(--wash)}
.atlas-map{position:sticky;top:1rem;margin:0}
.atlas-map figcaption{font-size:.84rem;line-height:1.5;color:var(--muted);margin-top:.5rem;min-height:2.6em}
@media (max-width:760px){
  .atlas{grid-template-columns:1fr}
  .atlas-map{display:none}
}
/* how the register grew (tools/hoa.py history_page) */
.history{--coast:#2a78d6;--inland:#eb6834}
:root[data-theme="dark"] .history{--coast:#3987e5;--inland:#d95926}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .history{--coast:#3987e5;--inland:#d95926}}
.eras{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem 1.25rem;margin:1.5rem 0 1rem}
@media (max-width:700px){.eras{grid-template-columns:repeat(2,1fr);gap:1rem .75rem}}
.era{margin:0;position:relative}
.era img{display:block;width:100%;height:auto}
.era .hm-dark{display:none}
:root[data-theme="dark"] .era .hm-light{display:none}
:root[data-theme="dark"] .era .hm-dark{display:block}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .era .hm-light{display:none}
  :root:not([data-theme="light"]) .era .hm-dark{display:block}
}
/* the caption sits in the empty quarter north-east of the state, over Nevada */
.era figcaption{position:absolute;top:4%;right:0;width:52%;display:flex;flex-direction:column;gap:.1rem;border-top:2px solid var(--accent);padding-top:.4rem}
.era figcaption b{font:700 clamp(.9rem,2.2vw,1.2rem) var(--brand);color:var(--ink);margin-bottom:.15rem}
.era figcaption span{font:clamp(.62rem,1.25vw,.74rem) var(--mono);white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}
@media (max-width:700px){.era figcaption{position:static;width:auto;margin-top:.3rem}.era figcaption span{white-space:normal}}
.history .key{display:flex;flex-wrap:wrap;gap:.35rem 1.25rem;margin:0 0 .75rem;font:.82rem var(--brand);color:var(--muted)}
.history .key span{display:inline-flex;align-items:center;gap:.45rem}
.history .key i{display:inline-block;width:12px;height:12px;border-radius:3px}
.key .sc,.shift-bar .sc{background:var(--coast)}
.key .si,.shift-bar .si{background:var(--inland)}
.key .act{background:var(--ink);opacity:.78}
.key .gone{background:var(--accent)}
.key .band{background:var(--tint);outline:1px solid var(--rule)}
.shift{margin:1.25rem 0 2rem;max-width:760px}
.shift-row{display:grid;grid-template-columns:6.5rem 1fr 3rem;align-items:center;gap:.75rem;margin:.4rem 0}
.shift-era{font:600 .85rem var(--brand);color:var(--ink)}
.shift-bar{display:flex;gap:2px;height:18px}
.shift-bar i{display:block;height:100%}
.shift-bar i:first-child{border-radius:0}
.shift-bar i:last-child{border-radius:0 4px 4px 0}
.shift-v{font:.85rem var(--mono);font-variant-numeric:tabular-nums;color:var(--ink);text-align:right}
.shift figcaption,.yrs-fig figcaption{margin-top:.6rem;font-size:.88rem;color:var(--muted);max-width:44rem}
@media (max-width:600px){.shift-row{grid-template-columns:5.2rem 1fr 2.6rem;gap:.5rem}}
.yrs-fig{margin:1.25rem 0 1.5rem}
.yrs{display:block;width:100%;height:auto}
.yrs-narrow{display:none}
@media (max-width:600px){.yrs-wide{display:none}.yrs-narrow{display:block}}
.yrs .band{fill:var(--tint)}
.yrs .grid{stroke:var(--rule-soft);stroke-width:1}
.yrs .grid.zero{stroke:var(--rule)}
.yrs .tick{font:11px var(--mono);font-variant-numeric:tabular-nums;fill:var(--faint)}
.yrs .note{font:600 11.5px var(--brand);fill:var(--ink);paint-order:stroke;stroke:var(--paper);stroke-width:3px}
.yrs .act{fill:var(--ink);fill-opacity:.78}
.yrs .gone{fill:var(--accent)}
.yrs .lead{stroke:var(--faint);stroke-width:1}
.yrs .hit{fill:transparent}
.yrs .hit:hover{fill:var(--ink);fill-opacity:.06}
