/* Acta Publica — actapublica.app
   The Acta look as it stood before the 2026-10-13 rebrand (acta-redding 5347790ec,
   web/themes/custom/acta_redding/DESIGN.md): Paper, Ink and Brass; Equity Text for
   headings at its regular weight, Equity Caps for the one uppercase label, Public Sans
   for everything read; square corners, hairlines and no shadows. Light only, as the
   product is. Every colour pair is the one measured in that DESIGN.md (WCAG 2.2 AA). */

@font-face { font-family: "Equity Text A"; src: url("../fonts/EquityTextA.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Equity Text A"; src: url("../fonts/EquityTextA-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Equity Caps A"; src: url("../fonts/EquityCapsA.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Equity Caps A"; src: url("../fonts/EquityCapsA-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f5f1e7;
  --white: #fffdfa;
  --shaded: #eeeae0;
  --selected: #f1ede3;
  --rule: #d4d2c8;
  --ink: #22323c;
  --muted: #52616b;
  --slate: #344954;
  --brass: #806438;
  --deep: #172730;
  --wax: #ead9b0;
  --on-deep: #bac6cc;
  --brass-on-deep: #c7b18b;

  --font-sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Equity Text A", Georgia, "Times New Roman", serif;
  --font-caps: "Equity Caps A", Georgia, "Times New Roman", serif;

  --radius-field: 0.1875rem;
  --radius-box: 0.25rem;
  --page: 80rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.375rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
p, li { text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--wax); color: var(--ink); }

table, time, .figure { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 42rem; }
.lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--ink); }
.muted { color: var(--muted); }

/* The one uppercase style: Equity Caps, Muted, tracked. */
.label {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; border-radius: var(--radius-field);
}
.skip:focus { top: 1rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding-block: 0.5rem; }
.brand img { height: 1.75rem; width: auto; display: block; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 0.5rem 0; display: inline-block; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 47.99rem) {
  /* One row of links that scrolls sideways, so the stuck header stays about 75px tall. */
  html { scroll-padding-top: 5.5rem; }
  .site-header .wrap { gap: 0; padding-block: 0.25rem 0; min-height: 0; padding-inline: 0; }
  .brand { padding: 0.35rem var(--gutter); }
  .brand img { height: 1.5rem; }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; gap: 0 1rem; padding-inline: var(--gutter); width: max-content; }
  .site-nav a { font-size: 0.875rem; padding: 0.45rem 0 0.55rem; white-space: nowrap; }
}
/* On a short screen (a phone on its side, or the page zoomed to 400%) a stuck header
   would hide too much of the page (WCAG 1.4.10), so it scrolls away there. */
@media (max-height: 30rem) {
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
}

.button {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-field);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}
.button:hover { background: var(--slate); border-color: var(--slate); text-decoration: none; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--white); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--rule); }
.band-white { background: var(--white); }
.band-shaded { background: var(--shaded); }
.band-deep { background: var(--deep); color: var(--paper); }
.band-deep a { color: var(--paper); }
.band-deep .label, .band-deep .muted { color: var(--on-deep); }
.band-deep h2, .band-deep h3 { color: var(--paper); }

.section-head { display: grid; gap: 0.25rem; margin-bottom: 2.5rem; max-width: 46rem; }
.section-head p:last-child { margin-bottom: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.hero h1 em { font-style: italic; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.5rem; }
.hero-points li { padding-left: 1.25rem; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 1px; background: var(--brass); }

/* The record window: the product's own idiom, as an illustration. */
.record {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-box);
  font-size: 0.9375rem;
  overflow: hidden;
}
.record-head { padding: 1.25rem 1.5rem 0; }
.record-head .label { margin-bottom: 0.25rem; font-size: 0.75rem; }
.record-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.25rem; }
.record-meta { color: var(--muted); font-size: 0.875rem; margin: 0; }
.record-tabs { display: flex; gap: 1.25rem; padding: 0 1.5rem; margin-top: 1rem; border-bottom: 1px solid var(--rule); font-size: 0.875rem; overflow-x: auto; }
.record-tabs span { padding: 0.6rem 0; white-space: nowrap; color: var(--muted); }
.record-tabs span[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brass); }
.record-body { padding: 1rem 1.5rem 1.25rem; display: grid; gap: 1rem; }
.record-ref { color: var(--brass); font-size: 0.8125rem; font-weight: 600; margin: 0; }
.record-item { font-family: var(--font-display); font-size: 1.125rem; margin: 0; line-height: 1.3; }
.tally { display: flex; align-items: baseline; gap: 0.75rem; }
.tally strong { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
.tally span { color: var(--muted); font-size: 0.875rem; }
.votes { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.votes td { padding: 0.35rem 0; border-top: 1px solid var(--rule); }
.votes td:last-child { text-align: right; }
.votes .role { color: var(--muted); }
.line { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; padding: 0.75rem; background: var(--selected); border-radius: var(--radius-field); }
.line .time { color: var(--brass); font-weight: 600; font-size: 0.8125rem; border: 1px solid var(--brass); border-radius: var(--radius-field); padding: 0 0.35rem; height: fit-content; }
.line .who { font-weight: 600; font-size: 0.875rem; }
.line .who span { color: var(--muted); font-weight: 400; }
.line p { grid-column: 2; margin: 0; color: var(--muted); }
.line mark { background: var(--wax); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.record-foot { background: var(--shaded); color: var(--muted); font-size: 0.8125rem; padding: 0.75rem 1.5rem; border-top: 1px solid var(--rule); }
.automatic { color: var(--muted); font-size: 0.8125rem; margin: 0; }

/* ── What matters most ──────────────────────────────────────────────────── */
.priorities { padding-block: clamp(3rem, 6vw, 4.5rem); }
.priority-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.priority-list a {
  display: grid; gap: 0.35rem; height: 100%;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-box);
  padding: 1.25rem 1.25rem 1.1rem; text-decoration: none;
}
.priority-list a:hover { border-color: var(--ink); }
.priority-list a:hover .go { text-decoration: underline; }
.priority-list .name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.priority-list .what { color: var(--muted); font-size: 0.9375rem; }
.priority-list .go { color: var(--brass); font-weight: 600; font-size: 0.875rem; margin-top: auto; padding-top: 0.5rem; }

/* ── Priority sections ──────────────────────────────────────────────────── */
.priority .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .priority .wrap { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.priority .intro { align-self: start; }
@media (min-width: 64rem) { .priority .intro { position: sticky; top: 6rem; } }
.priority .number { font-family: var(--font-caps); color: var(--brass); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.75rem; display: block; }
.back { font-size: 0.875rem; color: var(--muted); }
.back a { color: var(--muted); }

.facts { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-box); overflow: hidden; grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
@media (min-width: 40rem) { .facts.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 29.99rem) { .facts.three { grid-template-columns: 1fr; } }
.fact { background: var(--white); padding: 1.1rem 1.25rem; }
.band-white .fact { background: var(--paper); }
.fact .figure { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; display: block; }
.fact .what { color: var(--muted); font-size: 0.875rem; display: block; margin-top: 0.35rem; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.points li { padding-left: 1.25rem; border-left: 1px solid var(--brass); }
.points h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.points p { margin: 0; color: var(--ink); }
.points p + p { margin-top: 0.5rem; }

.note { font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; }

/* ── Features ───────────────────────────────────────────────────────────── */
.feature-groups { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.feature-group { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-box); padding: 1.5rem; }
.band-white .feature-group { background: var(--paper); }
.feature-group h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.feature-group ul { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.feature-group li { font-size: 0.9375rem; padding-left: 1rem; position: relative; }
.feature-group li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.4rem; height: 1px; background: var(--brass); }
.feature-group li strong { font-weight: 600; }
.status { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; border: 1px solid currentColor; border-radius: var(--radius-field); padding: 0.05rem 0.45rem; white-space: nowrap; }
.status.live { color: var(--ink); }
.status.pilot { color: var(--brass); }
.legend { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); margin: -1rem 0 2rem; }
.legend span { display: inline-flex; gap: 0.5rem; align-items: center; }

/* ── Principles ─────────────────────────────────────────────────────────── */
.principles { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.principles li { border-top: 1px solid var(--brass-on-deep); padding-top: 1rem; }
.principles h3 { font-size: 1.375rem; }
.principles p { color: var(--on-deep); margin: 0; }

/* ── Comparison ─────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-box); background: var(--white); }
.table-scroll:focus-visible { outline-offset: 2px; }
.compare { border-collapse: collapse; width: 100%; min-width: 60rem; font-size: 0.875rem; }
.compare caption { text-align: left; padding: 1rem 1.25rem; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--rule); background: var(--shaded); }
.compare th, .compare td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--font-display); font-weight: 400; font-size: 1.0625rem; line-height: 1.25; background: var(--white); position: sticky; top: 0; border-bottom: 1px solid var(--ink); }
.compare thead th small { display: block; font-family: var(--font-sans); font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.compare tbody th { font-weight: 600; width: 13rem; background: var(--white); }
.compare tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.compare .acta { background: var(--selected); }
.compare thead .acta { box-shadow: inset 0 3px 0 var(--brass); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .yes, .compare .no, .compare .part { font-weight: 600; display: block; }
.compare sup a { color: var(--brass); text-decoration: none; font-weight: 600; padding-inline: 0.1rem; }
.sources { font-size: 0.8125rem; color: var(--muted); margin-top: 2rem; columns: 2 22rem; column-gap: 3rem; padding-left: 1.25rem; }
.sources li { margin-bottom: 0.4rem; break-inside: avoid; }
.sources a { color: var(--muted); word-break: break-word; }

.complaints { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.complaints li { counter-increment: c; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.25rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.complaints li::before { content: counter(c); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--brass); grid-row: span 2; }
.complaints .said { font-weight: 600; margin: 0; }
.complaints .said small { font-weight: 400; color: var(--muted); }
.complaints .answer { margin: 0; color: var(--ink); }
@media (min-width: 56rem) {
  .complaints li { grid-template-columns: 2.5rem 1fr 1.3fr; gap: 1.5rem; }
  .complaints li::before { grid-row: auto; }
}

/* ── White papers ───────────────────────────────────────────────────────── */
.papers { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.paper {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-box);
  padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; height: 100%;
}
.paper h3 { font-size: 1.375rem; margin-bottom: 0.25rem; }
.paper p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.paper .soon { font-size: 0.8125rem; color: var(--brass); font-weight: 600; margin-top: 0.5rem; }

/* ── Contact and footer ─────────────────────────────────────────────────── */
.contact .wrap { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .contact .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; } }

.site-footer { background: var(--deep); color: var(--on-deep); padding-block: 3rem; font-size: 0.875rem; }
.site-footer a { color: var(--paper); }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 1.6rem; width: auto; display: block; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--font-caps); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-on-deep); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer p { margin: 0 0 0.6rem; }

@media print {
  .site-header { position: static; }
  .priority .intro { position: static; }
  .band-deep, .site-footer { background: none; color: var(--ink); }
  .band-deep h2, .band-deep h3, .principles p { color: var(--ink); }
}

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

/* The first column (the row labels) stays in view while the vendors scroll past,
   at every width; a hairline marks its edge. */
.compare tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--white); box-shadow: inset -1px 0 0 var(--rule); }
.compare thead tr > :first-child { z-index: 2; }
@media (max-width: 47.99rem) {
  .compare { min-width: 50rem; }
  .compare tbody th { width: 8.5rem; }
}

/* ── Prices ─────────────────────────────────────────────────────────────── */
.prices { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-box); font-size: 0.9375rem; }
.prices caption { text-align: left; font-family: var(--font-caps); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.75rem; }
.prices th, .prices td { text-align: left; vertical-align: baseline; padding: 0.85rem 1rem; border-top: 1px solid var(--rule); }
.prices thead th { border-top: 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.prices tbody th { font-weight: 600; }
.prices td.figure { font-family: var(--font-display); font-size: 1.375rem; white-space: nowrap; }
.prices td.figure span { font-family: var(--font-sans); font-size: 0.8125rem; color: var(--muted); }
.price-sum { margin: 1rem 0 2.5rem; }
.price-sum strong { font-weight: 600; }
@media (max-width: 35rem) {
  .prices thead { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .prices, .prices tbody, .prices caption { display: block; }
  .prices td.figure { white-space: normal; }
  .prices tr { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: 0.85rem 1rem; border-top: 1px solid var(--rule); }
  .prices tbody tr:first-child { border-top: 0; }
  .prices th, .prices td { padding: 0; border: 0; }
  .prices td:last-child { grid-column: 1 / -1; color: var(--muted); }
}

/* ── People ─────────────────────────────────────────────────────────────── */
.people { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .people { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-box); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.promises li { background: var(--paper); padding: 1.5rem; }
.promises h3 { font-size: 1.375rem; margin-bottom: 0.4rem; }
.promises p { margin: 0; }

/* Accessibility pass: brass clears 3:1 on light surfaces only; on the dark bands the
   focus ring uses the light brass (7.4:1 on Deep). */
.band-deep :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-on-deep); }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.group-head h3 { margin: 0; }
.votes th { text-align: left; font-weight: 400; padding: 0.35rem 0; border-top: 1px solid var(--rule); }
