/* ============================================================
   Kotch & De Vaul for Upper Saddle River Board of Education
   Shared stylesheet. Single source of truth for tokens.
   ============================================================ */

/* --- Reset -------------------------------------------------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Tokens ------------------------------------------------- */
:root {
  /* Brand teal, the requested hex, now the dominant colour of the site */
  --teal:        #007788;
  /* Derived shades of the same hue, for contrast-critical uses */
  --teal-btn:    #005A66;  /* white text on this = 7.9:1  */
  --teal-deep:   #013C45;  /* white text on this = 12.1:1 */
  --teal-mist:   #7FD4DE;  /* light accent for dark grounds */

  --ink:         #14191A;  /* on paper = 17.7:1 */
  --ink-soft:    #40595E;  /* cooled to sit in the teal family, 7.5:1 on paper */
  --paper:       #FFFFFF;
  /* Pale teal tint. This replaced a warm cream (#F4F2ED) that read as
     someone else's brand rather than the campaign's. */
  --paper-warm:  #E7F1F3;
  --rule:        #C3D8DC;
  --rule-dark:   rgba(255,255,255,.22);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --measure: 66ch;
  --wrap: 1140px;
  --gutter: 24px;

  --radius: 0;           /* square corners, everywhere, deliberately */
  --shadow: none;        /* depth comes from whitespace and rules */
}

/* --- Base --------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 400; line-height: 1.25; }

p { max-width: var(--measure); }
p + p { margin-top: 1.05em; }

a { color: var(--teal-btn); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-deep); color: #fff;
  padding: 12px 18px; z-index: 100; font-size: .95rem;
}
.skip-link:focus { left: 0; }

/* --- Layout ------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--warm { background: var(--paper-warm); }
.section--deep { background: var(--teal-deep); color: #fff; }
.section--deep h1,
.section--deep h2,
.section--deep h3 { color: #fff; }
.section--deep a { color: #fff; }
.section--deep p { color: rgba(255,255,255,.90); }

/* Eyebrow label: the one place the brand teal shows as small type */
.eyebrow {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-btn);
  margin-bottom: 1.1rem;
}
.section--deep .eyebrow { color: var(--teal-mist); }

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section--deep .lede { color: rgba(255,255,255,.88); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: clamp(40px, 5vw, 64px);
}
.section--deep .rule { border-top-color: var(--rule-dark); }

/* --- Buttons ------------------------------------------------
   Buttons own their text colour at higher specificity than any
   body-link rule, so a section link colour cannot repaint them. */
.btn,
.section a.btn,
.section--deep a.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--primary,
.section a.btn--primary {
  background: var(--teal-btn);   /* white on #005A66 = 7.9:1 */
  color: #ffffff;
  border-color: var(--teal-btn);
}
.btn--primary:hover,
.section a.btn--primary:hover {
  background: var(--teal-deep);
  color: #ffffff;
  border-color: var(--teal-deep);
}

.btn--ghost,
.section a.btn--ghost {
  background: transparent;
  color: var(--teal-btn);        /* #005A66 on paper = 7.9:1 */
  border-color: var(--teal-btn);
}
.btn--ghost:hover,
.section a.btn--ghost:hover {
  background: var(--teal-btn);
  color: #ffffff;
}

/* On the deep teal ground the primary button inverts */
.section--deep a.btn--primary {
  background: #ffffff;
  color: var(--teal-deep);       /* #013C45 on white = 12.1:1 */
  border-color: #ffffff;
}
.section--deep a.btn--primary:hover {
  background: var(--paper-warm);
  color: var(--teal-deep);
  border-color: var(--paper-warm);
}
.section--deep a.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,.55);
}
.section--deep a.btn--ghost:hover {
  background: #ffffff;
  color: var(--teal-deep);
  border-color: #ffffff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

/* --- Header / nav ------------------------------------------- */
.site-header {
  background: var(--teal-deep);
  color: #fff;
  position: relative;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: #fff; }
.wordmark .amp { color: var(--teal-mist); font-style: italic; padding-inline: .1em; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: .93rem;
  letter-spacing: .02em;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--teal); }
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--teal);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--teal-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 22px;
    border-top: 1px solid var(--rule-dark);
    z-index: 40;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-dark);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--teal); }
}

/* --- Hero ---------------------------------------------------- */
.hero { padding-block: clamp(60px, 9vw, 118px); }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--teal-btn);
  margin-bottom: 1.4rem;
}
.hero h1 { max-width: 15ch; }
.hero__accent {
  width: 88px;
  height: 3px;
  background: var(--teal);
  margin: 1.9rem 0;
  border: 0;
}

/* --- Portraits ---------------------------------------------- */
.pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 52px);
}
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }

.portrait { border: 1px solid var(--rule); }
.section--deep .portrait { border-color: var(--rule-dark); }
.portrait img { width: 100%; }

.person__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 1.4rem;
}
.person__role {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-btn);
  margin-top: .45rem;
}
.section--deep .person__role { color: var(--teal-mist); }
.person__body { margin-top: 1.1rem; }
.person__body p { max-width: 46ch; }

/* --- Numbered planks (no icon tiles, a numeral and a rule) --- */
.planks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.section--deep .planks { border-top-color: var(--rule-dark); }

.plank {
  padding: 34px 32px 38px 0;
  border-bottom: 1px solid var(--rule);
}
.section--deep .plank { border-bottom-color: var(--rule-dark); }

.plank__num {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--teal);
  display: block;
  margin-bottom: 1rem;
}
.section--deep .plank__num { color: var(--teal-mist); }
.plank h3 { margin-bottom: .7rem; }
.plank p { color: var(--ink-soft); font-size: .98rem; max-width: 42ch; }
.section--deep .plank p { color: rgba(255,255,255,.85); }

/* --- Pull quote --------------------------------------------- */
.pullquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1.32;
  max-width: 24ch;
  border-left: 3px solid var(--teal);
  padding-left: clamp(20px, 3vw, 34px);
}

/* --- Two-column split --------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* --- Contact detail list ------------------------------------ */
.detail-list { list-style: none; border-top: 1px solid var(--rule); max-width: 46ch; }
.section--deep .detail-list { border-top-color: var(--rule-dark); }
.detail-list li {
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.section--deep .detail-list li { border-bottom-color: var(--rule-dark); }
.detail-list dt,
.detail-list .label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 110px;
}
.section--deep .detail-list .label { color: rgba(255,255,255,.72); }
.detail-list .value { flex: 1 1 220px; }

/* --- Breadcrumbs -------------------------------------------- */
.breadcrumb {
  font-size: .84rem;
  color: var(--ink-soft);
  padding-top: 26px;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--rule); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--teal-btn); }

/* --- Placeholder blocks ------------------------------------
   Deliberately loud. These mark copy the candidates still owe us.
   Delete the whole block once the real words arrive. */
.needs-copy {
  border: 2px dashed #5A6B70;
  background: #F1F4F5;
  color: #2C3A3E;
  padding: 22px 24px;
  margin-block: 1.4rem;
  max-width: var(--measure);
}
.needs-copy__tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: #2C3A3E;
  color: #fff;
  padding: 4px 9px;
  margin-bottom: 12px;
}
.needs-copy p { color: #2C3A3E; font-size: .95rem; max-width: none; }
.needs-copy p + p { margin-top: .7em; }

/* --- Footer -------------------------------------------------- */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,.85);
  padding-block: 52px 40px;
  font-size: .92rem;
}
.site-footer a { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule-dark);
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer p { max-width: 40ch; color: rgba(255,255,255,.85); }
.footer-legal {
  padding-top: 26px;
  font-size: .84rem;
  color: rgba(255,255,255,.66);
}
.footer-legal p { max-width: 70ch; color: rgba(255,255,255,.66); }

/* --- Utility ------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.stack-sm > * + * { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* 16px minimum on form controls so iOS does not zoom on focus */
input, select, textarea { font-size: 16px; font-family: var(--sans); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Added after the campaign-site best-practice review.
   Donate CTA, email capture, and full-bleed photography.
   ============================================================ */

/* --- Donate, the highest-emphasis action on the site --------
   Deliberately NOT bright red. This is a nonpartisan K-8 board
   race and red/blue reads as a party signal. Prominence comes
   from placement and weight instead. */
.btn--donate,
.section a.btn--donate,
.site-header a.btn--donate {
  background: #ffffff;
  color: var(--teal-deep);          /* 12.1:1 */
  border-color: #ffffff;
  font-weight: 600;
}
.btn--donate:hover,
.section a.btn--donate:hover,
.site-header a.btn--donate:hover {
  background: var(--paper-warm);
  color: var(--teal-deep);
  border-color: var(--paper-warm);
}
/* On light grounds the donate button inverts to the solid teal */
.section:not(.section--deep) a.btn--donate {
  background: var(--teal-btn);      /* 7.9:1 */
  color: #ffffff;
  border-color: var(--teal-btn);
}
.section:not(.section--deep) a.btn--donate:hover {
  background: var(--teal-deep);
  color: #ffffff;
  border-color: var(--teal-deep);
}

.nav .btn--donate {
  padding: 10px 22px;
  font-size: .88rem;
  border-bottom: 1px solid #fff;    /* cancels the nav underline rule */
  margin-left: 6px;
}
.nav .btn--donate:hover { border-bottom-color: var(--paper-warm); }

@media (max-width: 820px) {
  .nav .btn--donate {
    margin: 16px 0 0;
    text-align: center;
    padding: 15px 22px;
  }
}

/* --- Full-bleed photography band ---------------------------- */
.photoband {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vw, 460px);
  overflow: hidden;
  background: var(--paper-warm);
  border-block: 1px solid var(--rule);
}
.photoband img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.photoband figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--teal-deep);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 20px;
}


/* --- Forms --------------------------------------------------- */
.form-card { max-width: 34rem; }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .45rem;
}
.section--deep .field label { color: rgba(255,255,255,.80); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-size: 16px;                 /* stops iOS zooming on focus */
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 13px 14px;
  line-height: 1.4;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field .hint {
  font-size: .84rem;
  color: var(--ink-soft);
  margin-top: .4rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.section--deep .field .hint { color: rgba(255,255,255,.72); }

.field--check { display: flex; align-items: flex-start; gap: 11px; }
.field--check input { margin-top: .28rem; width: 18px; height: 18px; flex: none; }
.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: .96rem;
  color: var(--ink);
  margin-bottom: 0;
}
.section--deep .field--check label { color: rgba(255,255,255,.92); }

button.btn {
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 14px 30px;
}
button.btn--primary {
  background: var(--teal-btn);
  color: #fff;
  border: 1px solid var(--teal-btn);
}
button.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.section--deep button.btn--primary {
  background: #fff;
  color: var(--teal-deep);
  border-color: #fff;
}
.section--deep button.btn--primary:hover { background: var(--paper-warm); border-color: var(--paper-warm); }

/* Honeypot, hidden from people but present for bots */
.hp { position: absolute; left: -9999px; }

/* --- Compact footer signup ---------------------------------- */
.footer-signup { max-width: 26rem; }
.footer-signup .field { margin-bottom: .8rem; }
.footer-signup label {
  color: rgba(255,255,255,.72);
  font-size: .74rem;
}
.footer-signup button.btn { width: 100%; padding: 12px 20px; }

/* --- Action ladder on the homepage -------------------------- */
.ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}
.ladder__item {
  padding: 30px 30px 34px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.ladder__item h3 { margin-bottom: .6rem; }
.ladder__item p { font-size: .96rem; margin-bottom: 1.2rem; }
.ladder__item .btn { padding: 12px 24px; font-size: .9rem; }

/* ============================================================
   Candidate feedback, 18 Sep 2026.
   Photos sit inline with the text instead of filling a column.
   ============================================================ */

/* Homepage pair: cap the portrait so it stops dominating the row */
.pair .portrait { max-width: 300px; }

/* Candidates page: portrait floats into the running text */
.person-inline { max-width: 72ch; }

.person-inline .portrait {
  float: left;
  width: 220px;
  margin: .35rem 28px 16px 0;
  shape-margin: 20px;
}
.person-inline .portrait img { width: 100%; }
.person-inline::after { content: ""; display: block; clear: both; }
.person-inline p { max-width: none; }

@media (max-width: 620px) {
  .person-inline .portrait {
    float: none;
    width: 190px;
    margin: 0 0 20px 0;
  }
}

/* The teal now carries more of the page, so section headings get the rule */
.section--warm { border-block: 1px solid var(--rule); }

/* --- Voting announcement strip ------------------------------
   Sits above the nav so it is the first thing on the page. */
.votebar {
  /* The brand hex at full strength. White on #007788 measures 5.26:1, which
     clears WCAG AA for body text but is the one place on the site under the
     7:1 house floor. Kept because the candidates asked for the exact hex to
     lead the palette; the type is sized up to compensate. */
  background: var(--teal);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  padding-block: 13px;
}
.votebar p {
  max-width: none;
  color: #ffffff;
  text-align: center;
}
.votebar strong { font-weight: 600; }

@media (max-width: 620px) {
  .votebar { font-size: .94rem; padding-block: 11px; }
  .votebar p { text-align: left; }
}

/* --- Lawn sign, promoted to its own action ------------------ */
.btn--sign,
.section a.btn--sign,
.site-header a.btn--sign {
  background: transparent;
  color: var(--teal-btn);            /* 7.9:1 on paper */
  border: 2px solid var(--teal-btn);
  font-weight: 600;
  padding: 13px 29px;                /* keeps height level with 1px-border buttons */
}
.btn--sign:hover,
.section a.btn--sign:hover {
  background: var(--teal-btn);
  color: #ffffff;
  border-color: var(--teal-btn);
}
.section--deep a.btn--sign {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.section--deep a.btn--sign:hover {
  background: #ffffff;
  color: var(--teal-deep);
  border-color: #ffffff;
}

/* The lawn sign checkbox leads its group and is sized up to match */
.field--check-lead {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 16px 18px;
  margin-bottom: 1rem;
}
.field--check-lead input { width: 22px; height: 22px; }
.field--check-lead label { font-size: 1rem; }

/* Highlight the group when arrived at via a lawn sign button */
#lawn-sign.is-armed .field--check-lead {
  border-color: var(--teal);
  border-width: 2px;
  padding: 15px 17px;
}

/* --- Outlined buttons on the pale teal ground ----------------
   #005A66 on #E7F1F3 measures 6.88:1, under the 7:1 house floor.
   The deeper shade on the same ground measures 10.5:1. */
.section--warm a.btn--ghost,
.section--warm a.btn--sign {
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}
.section--warm a.btn--ghost:hover,
.section--warm a.btn--sign:hover {
  background: var(--teal-deep);
  color: #ffffff;
  border-color: var(--teal-deep);
}

/* --- Voting banner link -------------------------------------
   Without this the anchor inherits the body link colour, which is a
   dark teal on a teal ground and close to unreadable. */
.votebar a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  font-weight: 600;
}
.votebar a:hover { color: #ffffff; text-decoration-thickness: 2px; }

/* Keep the sentence and the link from colliding mid-word */
.votebar p { text-wrap: balance; }
.votebar .vb-sep { opacity: .55; padding-inline: .35em; }

@media (max-width: 700px) {
  .votebar a { white-space: normal; display: inline-block; margin-top: 2px; }
}

/* --- Conditional field requirement -------------------------- */
.field-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: .82rem;
  color: var(--ink-soft);
}
.field-note.is-required {
  color: var(--teal-deep);   /* 10.5:1 on the pale teal ground */
  font-weight: 600;
}

/* --- Action ladder alignment --------------------------------
   Four rungs with different amounts of text. Each rung is a flex
   column so the button is pushed to the bottom and every button in
   a row sits on the same line regardless of how long the copy is.
   The column count is explicit rather than auto-fit, which was
   producing a ragged 3 + 1 at desktop widths. */
.ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ladder__item {
  display: flex;
  flex-direction: column;
  padding-right: 24px;
}
.ladder__item p { flex: 1 1 auto; margin-bottom: 1.4rem; }
.ladder__item .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1040px) {
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .ladder__item p { flex: 0 0 auto; }
}

/* --- Platform detail: issue sections, charts, tables, FAQ, sources ---
   Chart palette validated for contrast and colour-vision separation on
   white. The SVG slices also carry these colours as fill attributes, so
   the pies still render if this stylesheet is stale or blocked. */
:root {
  --c-schools: #00889C;
  --c-borough: #C27A1E;
  --c-county:  #6064B8;
  --band:      #F1F7F8;  /* table row banding, on white */
}

.toc { border-top: 1px solid var(--rule); max-width: 46ch; }
.toc li { list-style: none; border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: 12px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.policy { max-width: 820px; }
.topic { scroll-margin-top: 24px; }
.topic + .topic {
  border-top: 1px solid var(--rule);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(48px, 6vw, 80px);
}
.topic h2 { margin-bottom: 1.4rem; max-width: 24ch; }
.topic h3 { margin: 2.2rem 0 .9rem; }
.topic > * + * { margin-top: 1.1em; }
.topic > .eyebrow + h2 { margin-top: 0; }
.topic ul { padding-left: 1.25em; max-width: var(--measure); }
.topic ul li { padding-left: .2em; }
.topic ul li + li { margin-top: .75em; }

sup.ref { font-size: .68em; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; padding-inline: 1px; }

/* Shaded boxes: tinted ground plus a teal rule, so they read even on
   bright phone screens where the pale tint alone washes out. */
.dowhat,
.callout {
  background: var(--paper-warm);
  border-left: 4px solid var(--teal);
}
.dowhat { padding: 22px 24px; margin-top: 1.8rem; }
.dowhat h3 { margin: 0 0 .9rem; }
.callout {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 18px 22px;
}
.callout .big { font-family: var(--serif); font-size: 2rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.callout .lbl { font-size: .95rem; color: var(--ink-soft); }

/* Tables */
.tablewrap { overflow-x: auto; margin-block: 1.8rem; }
.topic table {
  border-collapse: collapse; width: 100%;
  font-size: .95rem; font-variant-numeric: tabular-nums;
}
.topic th, .topic td { text-align: left; padding: 12px 14px; vertical-align: top; }
.topic thead th {
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; border-bottom: 2px solid var(--teal);
}
.topic tbody tr:nth-child(even) { background: var(--band); }
.topic tbody tr { border-bottom: 1px solid var(--rule); }
.topic tbody th { font-weight: 600; }
.topic td.num, .topic tbody th[scope="row"] { white-space: nowrap; }
.topic caption { caption-side: bottom; text-align: left; padding-top: 10px; }
.topic tr.total { background: var(--paper-warm) !important; font-weight: 600; }
.topic tr.total th { white-space: normal; }
.small { font-size: .88rem; color: var(--ink-soft); }

/* Timeline: a vertical rule with a marker for each date */
.timeline { list-style: none; margin-top: 1.6rem; border-left: 2px solid var(--rule); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 1.6rem 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .35em;
  width: 12px; height: 12px; background: var(--teal); border: 2px solid var(--paper);
}
.timeline .when {
  display: block; margin-bottom: .3rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-btn);
}

/* Pies */
.pies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 1.8rem 0 .6rem; max-width: 620px; }
.pie-year { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 8px; }
.pie svg { width: 100%; max-width: 240px; height: auto; display: block; }
.sl { stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.sl:hover, .sl:focus { opacity: .82; outline: none; }
.sl-schools { fill: var(--c-schools); }
.sl-borough { fill: var(--c-borough); }
.sl-county  { fill: var(--c-county); }
.sw-schools { background: var(--c-schools); }
.sw-borough { background: var(--c-borough); }
.sw-county  { background: var(--c-county); }
.pie-legend { list-style: none; margin-top: 14px; max-width: 240px; }
.pie-legend li {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center;
  font-size: .95rem; font-variant-numeric: tabular-nums;
}
.pie-legend li + li { margin-top: 6px; }
.pie-legend b { font-weight: 600; }
.sw { display: inline-block; width: 14px; height: 14px; }
.key { font-size: .86rem; color: var(--ink-soft); }

/* FAQ */
.faq dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-top: 2.2rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin-top: .6rem; max-width: var(--measure); color: var(--ink-soft); }

/* Sources */
.sources { padding-left: 1.4em; font-size: .9rem; color: var(--ink-soft); max-width: 90ch; }
.sources li { overflow-wrap: anywhere; scroll-margin-top: 24px; }
.sources li + li { margin-top: .9em; }
.sources li:target { background: var(--paper-warm); }

@media (max-width: 640px) {
  .pies { grid-template-columns: minmax(0, 1fr); }
  .topic th, .topic td { padding: 11px 10px; }
  .dowhat { padding: 18px 18px; }

  /* The health comparison has sentence-length cells: on phones each
     district becomes its own banded card with labelled rows. */
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table { display: flex; flex-direction: column; }
  .stack-table caption { order: 2; display: block; }
  .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; }
  .stack-table tr { border: 1px solid var(--rule); margin-bottom: 14px; background: #fff !important; }
  .stack-table tbody th[scope="row"] {
    white-space: normal; background: var(--paper-warm);
    border-left: 4px solid var(--teal); padding: 12px 14px;
  }
  .stack-table td {
    padding: 11px 14px; border-top: 1px solid var(--rule); white-space: normal !important;
  }
  .stack-table td::before {
    content: attr(data-label); display: block; margin-bottom: 3px;
    font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-soft);
  }
}

/* --- Plan your vote (/vote/) ------------------------------------------- */
.vote-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.vote-hero h1 { max-width: 16ch; }

/* Ballot illustration: built in HTML so it stays sharp and readable */
.ballot { margin: 0; }
.ballot__card {
  background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--teal-deep);
  padding: 0 0 18px;
}
.ballot__head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; margin-bottom: 14px; border-bottom: 1px solid var(--rule);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.ballot__ghost { display: flex; align-items: center; gap: 14px; padding: 9px 18px 9px 74px; }
.ballot__ghost i { width: 24px; height: 15px; border: 2px solid var(--rule); border-radius: 50%; flex: none; }
.ballot__ghost b { height: 9px; width: 55%; background: var(--rule); opacity: .55; }
.ballot__pick {
  display: flex; align-items: stretch; margin: 8px 12px; border: 3px solid var(--teal);
  background: var(--paper-warm);
}
.ballot__pos {
  flex: none; width: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-deep); color: #fff; font-family: var(--serif); font-size: 2.4rem; line-height: 1;
}
.ballot__names { flex: 1; padding: 6px 0; }
.ballot__row { display: flex; align-items: center; gap: 14px; padding: 9px 16px; }
.ballot__row + .ballot__row { border-top: 1px solid var(--rule); }
.ballot__row span { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.ballot__oval { width: 26px; height: 17px; border-radius: 50%; background: var(--teal-deep); flex: none; }
.ballot figcaption { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); }
.ballot figcaption strong { display: block; font-size: 1.05rem; color: var(--teal-deep); margin-bottom: 2px; }

/* Key dates: horizontal on wide screens, vertical on phones */
.votedates {
  list-style: none; margin-top: 2rem;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  border-top: 3px solid var(--teal);
}
.votedates li { position: relative; padding: 26px 18px 0 0; }
.votedates li::before {
  content: ""; position: absolute; top: -10px; left: 0;
  width: 16px; height: 16px; background: var(--teal); border: 3px solid var(--paper-warm);
}
.votedates__day { display: block; font-size: .8rem; color: var(--ink-soft); }
.votedates__day b {
  display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 400;
  color: var(--teal-deep); line-height: 1.1;
}
.votedates__what { display: block; margin-top: .5rem; font-size: .95rem; max-width: 20ch; }
.votedates__big .votedates__day b { font-size: 2.3rem; }
.votedates__big::before { background: var(--teal-deep); width: 22px; height: 22px; top: -13px; }
.votedates__big .votedates__what { font-weight: 600; }
.votedates .is-past { opacity: .45; }
.votedates .is-past .votedates__what { text-decoration: line-through; text-decoration-thickness: 1px; }
.votedates__tag {
  display: inline-block; margin-top: .6rem; padding: 3px 8px;
  background: var(--teal-btn); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* Three ways to vote */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2rem; border-top: 1px solid var(--rule); }
.way {
  display: flex; flex-direction: column; padding: 28px 28px 30px 0;
}
.way + .way { border-left: 1px solid var(--rule); padding-left: 28px; }
.way__num { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--teal-btn); margin-bottom: .8rem; }
.way h3 { margin-bottom: .4rem; }
.way__when { font-weight: 600; color: var(--teal-deep); font-size: .95rem; }
.way p + p { margin-top: .8rem; }
.way > p:not(.way__when) { color: var(--ink-soft); font-size: .96rem; }
.way__list { list-style: none; margin: 1rem 0 1.4rem; border-top: 1px solid var(--rule); }
.way__list li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .93rem; }
.way__list b { display: block; font-weight: 600; }
.way .btn { margin-top: auto; align-self: flex-start; padding: 12px 22px; font-size: .9rem; }
.way > p:last-of-type { margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  .vote-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way, .way + .way { padding: 26px 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .votedates { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 3px solid var(--teal); margin-left: 8px; }
  .votedates li { padding: 0 0 1.5rem 26px; }
  .votedates li:last-child { padding-bottom: 0; }
  .votedates li::before { top: 6px; left: -10px; }
  .votedates__big::before { top: 4px; left: -13px; }
  .votedates__what { max-width: none; }
}
