/* 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 {
  --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;

  /* 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;
    /* 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;
  --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); }
.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; }

/* 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; }

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 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 ============ */

.nav-cta {
  margin-left: auto;
  font-family: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--btn-bg-h); color: var(--btn-fg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 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; margin-bottom: 32px; }

.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); }
  .top nav { gap: 13px; font-size: 0.82rem; }
  .nav-cta { margin-left: 0; }
}

/* ---------- 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; }

.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); }

@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 sits where .nav-cta used to claim the free space, so the
   auto margin moves to it and the button falls back to the header's own gap. */
.lang {
  font-family: var(--brand);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding-block: 9px;
  white-space: nowrap;
}
.lang:hover { color: var(--ink); }
.top-in .lang { margin-left: auto; }
.top-in .lang + .nav-cta { margin-left: 0; }

/* 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; }

