/* Buzard · Davie · Aguilar for CDD Board
   Visual system per section 9 of the design brief: flat fills only, no
   gradients, no border radius anywhere, no photos behind text. */

:root {
  --navy: #0A3161;
  --red: #B31942;
  --red-dark: #8E1434;
  --white: #FFFFFF;
  --mist: #EEF1F6;
  --sky: #9FB3D1;
  --slate: #3B4A63;
  --hair: #D4D9E2;

  --display: "Oswald", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;

  --wrap: 1200px;
  --gut: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth; scroll-padding-top: 96px;
  /* iOS: sideways swipes on content shouldn't rubber-band into a white gutter. */
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 17px/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: var(--white); padding: 12px 20px;
  font: 500 14px/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- type roles ---------- */

.display {
  font: 700 clamp(40px, 7.2vw, 96px)/1 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0;
}

.section-head {
  font: 700 clamp(26px, 3.4vw, 38px)/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--red);
  width: fit-content;
  max-width: 100%;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 10px;
  margin: 0 0 24px;
}

.sub-head {
  font: 700 clamp(20px, 2.4vw, 27px)/1.15 var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy);
  margin: 48px 0 12px;
}

.kicker, .kicker-red {
  font: 500 14px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 10px;
}
.kicker { color: var(--sky); }
.kicker-red { color: var(--red); }

.lede { color: var(--slate); margin: 0 0 20px; max-width: 68ch; }
.subhead { font-weight: 700; font-size: 20px; margin: 0 0 8px; max-width: 68ch; }
.footnote, .disclaimer { font-size: 12px; color: var(--slate); line-height: 1.5; }


/* Unfilled [PLACEHOLDER] tokens -- impossible to miss in review. */
.ph {
  border-bottom: 2px dotted var(--red);
  color: var(--red);
  font-weight: 600;
}
.hero .ph, .proxy-cta .ph, .site-footer .ph, .visit-done .ph, .btn .ph {
  color: var(--white);
  border-bottom-color: var(--white);
}

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

.site-header { position: sticky; top: 0; z-index: 50; }
.stripe { height: 10px; background: var(--red); }
.bar { background: var(--navy); }

.bar-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}

.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.wordmark-names {
  font: 700 21px/1 var(--display);
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--white); white-space: nowrap;
}
.wordmark-names i { color: var(--sky); font-style: normal; }
.wordmark-rule { width: 3px; align-self: stretch; background: var(--red); }
.wordmark-tag {
  font: 500 14px/1 var(--display);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--sky); white-space: nowrap;
}
.wordmark-tag.block { display: block; margin-top: 8px; }
/* Full office name; shown only in the stacked phone header (see 720px rules). */
.wordmark-tag-long { display: none; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .menu a {
  font: 500 14px/1 var(--display);
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none;
  display: flex; align-items: center; min-height: 44px;
}
/* Every state spelled out, so no link falls back to the browser's colors. */
.nav a:link, .nav a:visited, .nav a:active, .menu a:link, .menu a:visited { color: var(--white); }
.nav a:hover, .menu a:hover { color: var(--sky); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--red); }

.menu-btn {
  display: none; margin-left: auto; flex: 0 0 auto;
  align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 10px 14px;
  background: transparent; color: var(--white);
  border: 2px solid var(--white); cursor: pointer;
  font: 700 14px/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
}
.menu-btn[aria-expanded="true"] { background: var(--white); color: var(--navy); }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 16px; height: 2px; background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

.menu {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 4px solid var(--red);
  max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto;
}
.menu .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.menu a { font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.12); padding: 4px 0; }
.menu a.menu-cta:link, .menu a.menu-cta:visited {
  margin-top: 16px; justify-content: center; border: 0;
  background: var(--red); color: var(--white); font-weight: 700;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px;
  font: 700 15px/1 var(--display);
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #06244a; color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--mist); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 13px; flex: 0 0 auto; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- meeting announcement (between header and hero) ---------- */

.event { background: var(--mist); border-bottom: 1px solid var(--hair); padding: 28px 0; }
.event-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 24px 40px; align-items: center;
}
.event-copy { border-left: 8px solid var(--red); padding-left: 20px; }
.event-copy .kicker-red { margin-bottom: 6px; }
.event-title {
  font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--display);
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--navy); margin: 0 0 6px;
}
.event-when {
  font: 500 clamp(17px, 1.8vw, 20px)/1.3 var(--display); letter-spacing: .02em;
  color: var(--red); margin: 0 0 8px;
}
.event-body { margin: 0; color: var(--slate); max-width: 62ch; }
.event-actions { display: flex; flex-direction: column; gap: 12px; }
.event-actions .btn { width: 100%; }

/* "Add to calendar" is a native <details>: the summary is the button, the
   list below it is the menu. No JS needed to open it; app.js only closes it on
   an outside click or Escape. */
.cal { position: relative; }
.cal summary { list-style: none; gap: 12px; }
.cal summary::-webkit-details-marker { display: none; }
.cal summary::after {
  content: ""; width: 0; height: 0;
  border: 6px solid transparent; border-top: 7px solid currentColor; border-bottom: 0;
}
.cal[open] summary::after { transform: rotate(180deg); }
.cal-menu {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--white); border: 2px solid var(--navy);
}
.cal-menu a {
  display: block; padding: 12px 18px;
  color: var(--navy); text-decoration: none; font: 600 16px/1.25 var(--body);
}
.cal-menu a:hover, .cal-menu a:focus-visible { background: var(--mist); color: var(--red); }
.cal-menu small { display: block; font-weight: 400; font-size: 13px; color: var(--slate); }

/* ---------- hero ---------- */

.hero { background: var(--navy); color: var(--white); padding: 56px 0 64px; }
.hero .display { color: var(--white); margin-bottom: 20px; }
.hero-tag {
  color: var(--sky); margin: 0 0 40px;
  font: 500 clamp(17px, 2vw, 24px)/1.25 var(--display); letter-spacing: .01em;
}

.candidates {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-bottom: 56px;
}

.cand { position: relative; }
.cand-top { display: flex; align-items: flex-end; gap: 0; }
.cand-photo {
  flex: 1 1 65%; min-width: 0; width: auto; height: auto;
  aspect-ratio: 1; object-fit: cover;
  border: 4px solid var(--white); background: var(--mist);
}
.cand-name {
  background: var(--red); padding: 10px 12px;
  flex: 0 1 35%; min-width: 0; align-self: flex-end;
  overflow-wrap: break-word;
  /* app.js sets the same min-height on all three boxes (the tallest wins).
     Name stays at the top, title is pushed to the bottom (margin-top: auto on
     .cand-role), so a box with slack shows it between the two rather than as a
     hole under the title. */
  display: flex; flex-direction: column;
}
.cand-name b {
  display: block;
  font: 700 clamp(15px, 1.5vw, 20px)/1.06 var(--display);
  text-transform: uppercase; letter-spacing: .01em; color: var(--white);
}
.cand-role {
  display: block; margin-top: auto; padding-top: 6px;
  font: 500 12px/1.2 var(--display);
  text-transform: uppercase; letter-spacing: .1em; color: var(--white);
}
.cand-bio { margin: 16px 0 0; font-size: 16px; line-height: 1.5; color: var(--white); }
.cand-pending {
  position: absolute; top: 12px; left: 12px; margin: 0;
  background: var(--navy); color: var(--white); padding: 6px 10px;
  font: 500 11px/1 var(--display);
  text-transform: uppercase; letter-spacing: .1em;
}

.hero-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }

/* ---------- mobile identity (hero) ---------- */

/* Desktop carries names and office in the sticky header, so the identity
   block only shows on phones, where the header drops the office line. */
.hero-id { display: none; }
.hero-meet {
  width: fit-content; max-width: 100%;
  margin: 0 0 24px; padding-bottom: 8px; border-bottom: 3px solid var(--red);
  font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--display);
  text-transform: uppercase; letter-spacing: .03em; color: var(--white);
}

/* ---------- vote block ---------- */

/* One component everywhere it appears. Desktop centers the whole group on the
   red proxy box's vertical center via align-items on the parent grid. */
.vote-block { display: flex; align-items: center; gap: 20px; }
.vote-word {
  font: 700 clamp(44px, 6vw, 72px)/.9 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--white);
}
.vote-rule { width: 3px; align-self: stretch; background: var(--red); flex: 0 0 auto; }
.vote-when {
  text-wrap: balance;
  font: 700 clamp(20px, 2.4vw, 28px)/1.1 var(--display);
  text-transform: uppercase; color: var(--white); margin: 0 0 6px;
}
.vote-venue { margin: 0; color: var(--white); font-size: 16px; }

.band-mist .vote-word, .band-mist .vote-when, .band-mist .vote-venue { color: var(--navy); }

/* ---------- proxy CTA ---------- */

/* Matches the October 7 flyer: flat red, no border, big Oswald head, tight body. */
.proxy-cta { background: var(--red); color: var(--white); padding: 24px 28px 28px; }
.proxy-cta h2, .proxy-cta h3 {
  font: 700 clamp(24px, 2.8vw, 32px)/1.05 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--white); margin: 0 0 10px;
}
.proxy-cta p { margin: 0 0 16px; font-size: 16px; line-height: 1.45; }
.proxy-cta a:not(.btn) { color: var(--white); font-weight: 700; }
.proxy-cta b { font-weight: 700; }
.proxy-cta .deed { font-size: 14px; opacity: .92; }

/* ---------- bands ---------- */

.band { padding: 64px 0; border-top: 1px solid var(--hair); }
.band:first-of-type { border-top: 0; }
.band-mist { background: var(--mist); border-top: 0; }

.panel {
  background: var(--mist); border-left: 4px solid var(--red);
  padding: 28px 28px 28px 24px;
}
.panel-body { font-style: italic; color: var(--slate); margin: 0 0 20px; max-width: 70ch; }

.panel-knock {
  border: 2px solid var(--red); border-left-width: 8px;
  padding: 36px 36px 36px 32px;
}
.knock-head {
  font: 700 clamp(28px, 3.6vw, 42px)/1.05 var(--display);
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--red); margin: 0 0 14px;
}
.panel-knock .panel-body { font-size: 18px; color: var(--navy); margin-bottom: 24px; }

/* ---------- record counters ---------- */

.counters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
  margin-bottom: 20px;
}
.counter { background: var(--white); }
.counter-head {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; padding: 24px 20px 20px;
  background: none; border: 0; cursor: pointer; font: inherit; color: inherit;
  text-align: center;
}
.counter-head > b {
  display: block;
  font: 700 clamp(30px, 4vw, 44px)/1 var(--display); color: var(--navy);
}
.counter-label {
  display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.35;
}
.counter-head > small {
  display: block; margin-top: 6px; font-size: 14px; color: var(--slate); line-height: 1.4;
}
.counter-more {
  /* margin-top: auto pins it to the bottom of the head, whose min-height
     app.js equalises across counters, so all four sit on one line. */
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px;
  font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
  color: var(--red);
}
.counter-more .plan-sign { font-size: 18px; }
.counter-detail { padding: 0 20px 22px; font-size: 15px; color: var(--slate); line-height: 1.45; }
.counter-detail p { margin: 0; }
.counter-detail p + p { margin-top: 10px; }

/* ---------- Q&A video ---------- */

/* 16:9 box the iframe fills, navy while the player loads. Capped at 960px so
   the player stays a comfortable size on a wide screen; full column width on
   a phone. */
.video-frame {
  position: relative; max-width: 960px; aspect-ratio: 16 / 9;
  background: var(--navy); border: 1px solid var(--hair);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { margin: 14px 0 0; max-width: 960px; font-size: 15px; color: var(--slate); line-height: 1.45; }
.video-meta a { font-weight: 700; }

/* ---------- plan ---------- */

.plan { list-style: none; margin: 0 0 32px; padding: 0; }
.plan li { border-top: 1px solid var(--hair); }
.plan li:last-child { border-bottom: 1px solid var(--hair); }

.plan-head {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; gap: 16px; align-items: start;
  width: 100%; background: none; border: 0; text-align: left;
  padding: 22px 0; cursor: pointer; font: inherit; color: inherit; min-height: 44px;
}
.plan-num { font: 700 clamp(26px, 3.4vw, 44px)/1 var(--display); color: var(--navy); }
.plan-title {
  display: block; font: 700 18px/1.3 var(--body); color: var(--navy); margin-bottom: 4px;
}
.plan-short { display: block; font-size: 16px; color: var(--slate); line-height: 1.45; }
.plan-short b { color: var(--navy); }
.plan-short u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.plan-sign {
  font: 700 24px/1 var(--display); color: var(--red); justify-self: end; align-self: center;
}
.plan-detail { padding: 0 0 24px 72px; color: var(--slate); }
.plan-detail p { margin: 0; }
.plan-detail p + p { margin-top: 12px; }

.pull {
  background: var(--mist); border-left: 4px solid var(--red);
  margin: 0; padding: 24px 28px;
  font: 500 clamp(19px, 2.2vw, 26px)/1.35 var(--display);
  color: var(--navy);
}

/* ---------- myths ---------- */

.myths { margin-bottom: 8px; }
.myth {
  border-top: 1px solid var(--hair); padding: 22px 0;
}
.myth:last-child { border-bottom: 1px solid var(--hair); }
.myth p { margin: 0; }
.myth-claim { color: var(--slate); font-style: italic; margin-bottom: 8px !important; }
.myth-fact { color: var(--navy); }
.lbl {
  font: 700 13px/1 var(--display);
  text-transform: uppercase; letter-spacing: .1em;
  margin-right: 8px; font-style: normal;
}
.lbl-myth { color: var(--red); }
.lbl-fact { color: var(--navy); }
.head-navy { color: var(--navy); }

/* ---------- faq ---------- */

.faq { margin-bottom: 24px; }
.faq-item { border-top: 1px solid var(--hair); }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 18px 0; min-height: 44px;
  font: 700 17px/1.35 var(--body); color: var(--navy);
}
.faq-a { padding: 0 0 20px; color: var(--slate); margin: 0; }
.faq-a p { margin: 0 0 12px; }
.faq-a ul { margin: 0 0 12px; padding-left: 22px; }
.faq-a li { margin: 0 0 6px; }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- money ---------- */

.money {
  margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
}
/* Each card: red kicker, Oswald headline figure, two-line summary, and a
   Details toggle pinned to the bottom so a row of cards lines up. The
   long explanation lives behind the toggle. */
.money-item { background: var(--white); padding: 24px 24px 20px; display: flex; flex-direction: column; }
.money-item dt {
  font: 500 13px/1.2 var(--display);
  text-transform: uppercase; letter-spacing: .1em; color: var(--red);
  margin-bottom: 10px;
}
.money-item dd { margin: 0; }
.money-val {
  font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--navy); margin-bottom: 10px !important;
}
.money-sum { font-size: 15px; color: var(--slate); line-height: 1.45; }
.money-more { margin-top: auto !important; padding-top: 16px; }
/* Desktop pairs: when one card's Details opened, the row grew and the auto
   margin slid the neighbour's toggle down with it. With subgrid, label,
   figure, summary, toggle and detail each take one shared row track across
   the pair, so toggles line up and an opened detail grows only its own
   track; the neighbour's toggle stays put. Browsers without subgrid keep
   the flex column above. */
@supports (grid-template-rows: subgrid) {
  .money-item { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
  .money-more { margin-top: 0 !important; }
}
.money-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer; min-height: 44px;
  font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
  color: var(--red);
}
.money-toggle .plan-sign { font-size: 18px; }
.money-detail { padding-top: 4px; font-size: 15px; color: var(--slate); line-height: 1.45; }
.money-detail p { margin: 0; }
.money-detail p + p { margin-top: 10px; }
.money-lines { margin: 0 0 14px; padding: 0; list-style: none; }
.money-lines li {
  font: 600 16px/1.4 var(--body); color: var(--navy);
  padding: 6px 0; border-bottom: 1px solid var(--hair);
}
.money-lines li:first-child { font-weight: 700; }
.money-links { margin: 14px 0 0; padding: 0; list-style: none; }
.money-links li { padding: 4px 0; }
.money-links a { font-weight: 600; }
.money-context { margin: 10px 0 0 !important; font-size: 13px; }

/* Body blocks inside an expanded card or the reserves section: run-in
   headings, plain lists and small tables, in the surrounding type with the
   same hairlines as the key-lines list. (Not .sub-head: that is the FAQ h3.) */
.run-in {
  font: 700 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em;
  color: var(--navy); margin: 18px 0 6px;
}
.run-in:first-child { margin-top: 0; }
.money-detail ol, .money-detail ul:not([class]) { margin: 0 0 10px; padding-left: 22px; }
.money-detail ol li, .money-detail ul:not([class]) li { margin: 0 0 6px; }
.tbl { margin: 6px 0 12px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--hair); }
.tbl th { font: 500 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.tbl td:first-child { font-weight: 600; color: var(--navy); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl-note { font-size: 13px; margin-top: 6px !important; }
@media (max-width: 720px) {
  /* Stack each row into a block rather than shrink the columns. */
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--hair); }
  .tbl td, .tbl td.num { display: block; border: 0; padding: 1px 0; text-align: left; white-space: normal; }
  .tbl td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--navy); }
  .tbl td:first-child::before { content: none; }
}
/* Ledger layout, every width: name and figure share the first line, the
   description sits beneath in smaller type. Declared after the phone rules
   above so it wins there too. */
.tbl-ledger thead { display: none; }
.tbl-ledger tr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--hair);
}
.tbl-ledger tr:first-child { border-top: 1px solid var(--hair); }
.tbl-ledger td, .tbl-ledger td.num { display: block; border: 0; padding: 0; white-space: normal; }
.tbl-ledger td:first-child { font: 700 16px/1.3 var(--body); color: var(--navy); }
.tbl-ledger td.num { font: 700 20px/1.2 var(--display); color: var(--navy); text-align: right; white-space: nowrap; }
.tbl-ledger td:nth-child(3) { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--slate); }
.tbl-ledger td[data-label]::before { content: none; }

/* ---------- reserves ---------- */

/* Full-width intro, three headline figures in the money-card styling, then
   the breakdown as sub-sections two per row (paired by length in
   content.json, so the headings of each row line up and the rows stay
   even). They stack in the same order on phones. */
#reserves .subhead, #reserves .lede { max-width: none; }
.money-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 48px; }
.reserve-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
  gap: 40px 56px; color: var(--slate);
}
.reserve-sec .run-in { font-size: 18px; letter-spacing: .06em; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.reserve-sec p { margin: 0 0 12px; }
.reserve-sec ol { margin: 0 0 12px; padding-left: 22px; }
.reserve-sec ol li { margin: 0 0 6px; }
.reserve-sec .tbl { margin: 4px 0 14px; }
.reserve-sec .tbl table { font-size: 15px; }
.reserve-sec > :last-child { margin-bottom: 0; }
/* The close: white panel with the red rule, the three steps side by side. */
.reserve-close { background: var(--white); border-left: 4px solid var(--red); padding: 24px 28px 22px; margin-top: 40px; }
.reserve-close .run-in { font-size: 18px; letter-spacing: .06em; margin: 0 0 16px; }
.reserve-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; counter-reset: step; }
.reserve-steps li { position: relative; padding-left: 44px; color: var(--slate); line-height: 1.45; counter-increment: step; }
.reserve-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  font: 700 28px/1 var(--display); color: var(--red);
}
.reserve-after { margin: 20px 0 0; color: var(--slate); }
.reserve-src-head { font-size: 18px; letter-spacing: .06em; margin: 48px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.reserve-links { margin-top: 0; }
.reserve-context { margin: 16px 0 0; font-size: 14px; color: var(--slate); max-width: 80ch; }

/* ---------- docs ---------- */

.docs { list-style: none; margin: 0; padding: 0; }
.docs li { border-top: 1px solid var(--hair); padding: 20px 0; }
.docs li:last-child { border-bottom: 1px solid var(--hair); }
.docs a { font: 700 18px/1.3 var(--body); text-decoration: none; }
.docs a:hover { text-decoration: underline; }
.docs p { margin: 4px 0 0; color: var(--slate); font-size: 15px; }

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

/* Centered in the content area at a readable width; on phones the width cap
   is wider than the viewport so the layout is unchanged. */
.visit { max-width: 760px; margin: 56px auto 0; }
.form { margin-top: 24px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

.form label {
  display: block; margin-bottom: 6px;
  font: 600 14px/1.2 var(--body); color: var(--navy);
}
.opt { font-weight: 400; color: var(--slate); }

.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 17px/1.4 var(--body); color: var(--navy);
  background: var(--white); border: 1px solid var(--slate); border-radius: 0;
  appearance: none;
}
.form textarea { min-height: 96px; resize: vertical; }

/* appearance:none strips the native arrow, so draw one. pointer-events:none lets
   taps on the chevron reach the select, so the whole field opens the list. */
.select { position: relative; }
.form .select select { padding-right: 48px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); pointer-events: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); }
.form [aria-invalid="true"] { border-color: var(--red); border-width: 2px; }

.err { margin: 6px 0 0; font-size: 14px; color: var(--red); min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status[data-state="error"] { color: var(--red); }

.visit-done {
  background: var(--navy); color: var(--white); padding: 32px;
}
.visit-done h3 {
  font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--display);
  text-transform: uppercase; color: var(--white); margin: 0 0 12px;
}
.visit-done p { margin: 0; color: var(--sky); }

/* ---------- vote grid ---------- */

.vote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }

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

.site-footer { background: var(--navy); color: var(--white); padding: 48px 0 32px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.18);
}
.site-footer p { margin: 0 0 4px; font-size: 15px; }
.site-footer a { color: var(--white); }
.site-footer .affiliation { color: var(--sky); margin-top: 24px !important; }
.site-footer .disclaimer { color: var(--sky); margin-top: 12px !important; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18);
}
.foot-bottom p { margin: 0; font-size: 13px; color: var(--sky); }
.made { display: inline-flex; align-items: center; gap: 8px; }
.flag { display: inline-block; flex: 0 0 auto; }

.noscript { background: var(--mist); padding: 20px 24px; border-left: 4px solid var(--red); }

/* ---------- responsive: one column under 720px ---------- */

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1181px) {
  .menu { display: none; }
}

/* Three narrow columns between phone and laptop widths: the red box is only
   ~70-85px of text, so the title shrinks a notch to avoid mid-word breaks. */
@media (min-width: 801px) and (max-width: 1023px) {
  .cand-name { padding: 10px 10px; }
  .cand-role { font-size: 10px; letter-spacing: .06em; }
}
/* Below 800px three columns are too narrow for the name block; stack them. */
@media (max-width: 800px) {
  .candidates { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .band { padding: 44px 0; }
  .hero { padding: 40px 0 48px; }
  .hero-tag { margin-bottom: 32px; }

  .candidates,
  .hero-cta,
  .vote-grid,
  .field-row,
  .money, .money-stats, .reserve-grid, .reserve-steps { grid-template-columns: minmax(0, 1fr); }
  .reserve-close { padding: 20px 20px 18px 18px; }

  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cand-photo { max-width: none; }
  /* Phone: the name block was a small label in a big red box. Wider box,
     bigger type, so the name and title fill it. */
  .cand-name { flex-basis: 40%; padding: 12px 14px; }
  .cand-name b { font-size: 22px; }
  .cand-role { font-size: 13px; }
  .plan-head { grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 12px; }
  .plan-detail { padding-left: 52px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  :root { --gut: 20px; }
  /* One line on a phone: the sentence is ~24.5em wide in Oswald 500, so size it
     to the column. It still reflows if the reader enlarges text. */
  .hero-tag { font-size: min(17px, calc((100vw - 2 * var(--gut)) / 25)); }
  .bar-inner { min-height: 56px; gap: 12px; }
  .panel-knock { padding: 24px 20px 24px 18px; }
  .event { padding: 22px 0; }
  .event-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .event-copy { border-left-width: 6px; padding-left: 16px; }
  .cal-menu { position: static; margin-top: 4px; }

  /* Phone header stacks the names over the full office name, so the hero no
     longer repeats them (.hero-id stays display:none; markup kept for desktop
     parity and in case the stacked header is ever reverted). */
  .wordmark { flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
  .wordmark-rule, .wordmark-tag:not(.wordmark-tag-long) { display: none; }
  .wordmark-tag-long {
    display: block; white-space: normal;
    font-size: 11px; line-height: 1.2; letter-spacing: .09em;
  }
  .hero .display { font-size: clamp(36px, 11vw, 44px); }
  .hero-meet { margin-bottom: 16px; font-size: clamp(20px, 6vw, 26px); }
  .wordmark-names { font-size: 17px; }
}

@media (max-width: 420px) {
  .counters { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .wordmark-names { font-size: 15px; }
  .menu-btn { padding: 10px 12px; gap: 8px; }
}
