/* Brian Johnson for District 65 — site styles
   Palette: Evanston blue and white, with the elongated star from the City of Evanston flag.

   The star is tall and leans 15 degrees, and its visual centre sits 32.4% of the way down,
   so it is sized by height: set --star-h and the width follows. To centre the star's head
   on something, offset it by 17.6% of its height (50% - 32.4%). */

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/LibreFranklin-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0b2c63;
  --navy-deep: #071e45;
  --navy-star: #123a7c;
  --blue: #1a5cb8;
  --sky: #a9d3f2;
  --mist: #eef5fc;
  --white: #ffffff;
  --ink: #14233b;
  --muted: #4a5b75;
  --line: #d3e0ee;

  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  line-height: 1.1;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }
.on-dark .signup-panel :focus-visible { outline-color: var(--blue); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.star {
  --star-h: 3rem;
  display: block;
  flex: none;
  width: calc(var(--star-h) * 0.361);
  height: var(--star-h);
  fill: currentColor;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.on-dark .eyebrow { color: var(--sky); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-secondary { border-color: var(--blue); color: var(--blue); }
.btn-secondary:hover { background: var(--mist); border-color: var(--navy); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-outline { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: var(--white); color: var(--navy); }

.text-link {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link::after { content: " \2192"; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-family: var(--sans);
  text-decoration: none;
}
.brand .star { --star-h: 3.5rem; color: var(--blue); }
.brand-name { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.brand-office { display: block; font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.brand:hover { color: var(--navy); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.975rem;
  font-weight: 600;
}
.site-nav a:not(.btn) {
  display: block;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--navy); }
/* The nav grows to fill row one and pushes its links right. If the buttons wrap
   onto their own row, their auto margin keeps them at the right edge, so the
   Volunteer dropdown (which opens leftward) stays on screen. */
.site-nav { flex-grow: 1; }
.site-nav ul { justify-content: flex-end; }

/* Volunteer and Donate, at the right end of the header */
.header-actions { display: flex; gap: 0.6rem; margin-left: auto; }
.header-actions .btn { padding: 0.6rem 1.25rem; font-size: 0.95rem; }

/* Volunteer dropdown: a <details> element, so it works without JavaScript.
   assets/js/site.js closes it on Escape and on clicks outside it. */
.volunteer-menu { position: relative; }
.volunteer-menu summary { list-style: none; }
.volunteer-menu summary::-webkit-details-marker { display: none; }
.volunteer-menu summary::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
  transition: transform 0.15s;
}
.volunteer-menu[open] summary { background: var(--mist); border-color: var(--navy); color: var(--navy); }
.volunteer-menu[open] summary::after { transform: translateY(0.05em) rotate(-135deg); }
.volunteer-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  width: min(23rem, calc(100vw - 2 * var(--gutter)));
  padding: 1rem 0 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 3px;
  box-shadow: 0 1rem 2.5rem rgba(7, 30, 69, 0.18);
  font-family: var(--sans);
}
.volunteer-panel .eyebrow { margin: 0 1.25rem 0.4rem; font-size: 0.75rem; }
.volunteer-panel ul { margin: 0; padding: 0; list-style: none; }
.volunteer-panel a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--ink);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.volunteer-panel a:hover { background: var(--mist); color: var(--navy); }
.volunteer-panel a:focus-visible { outline-offset: -3px; }
.volunteer-panel small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.85rem; font-weight: 400; }

/* Flag band: the Evanston flag's slanted field, band, and lake in the campaign colors.
   The artwork holds the slant and star; the background extends its two outer colors.
   Keep the 67% values matched. */
.flag-band {
  --band-h: clamp(4.5rem, 7vw, 6.5rem);
  position: relative;
  overflow: hidden;
  height: var(--band-h);
  background: linear-gradient(90deg, var(--navy-deep) 67%, var(--sky) 67%);
}
.flag-band-art {
  position: absolute;
  top: 0;
  left: 67%;
  display: block;
  width: calc(var(--band-h) * 0.6971);
  height: var(--band-h);
  transform: translateX(-50%);
}
.fb-field { fill: var(--navy-deep); }
.fb-band { fill: var(--blue); }
.fb-lake { fill: var(--sky); }
.fb-star { fill: var(--white); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero-star {
  position: absolute;
  --star-h: clamp(52rem, 58vw, 60rem);
  top: -5rem;
  left: calc(50% + 1.5rem);
  transform: translateX(-50%);
  color: var(--navy-star);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(3.5rem, 9.5vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero h1 span { display: block; }
.hero h1.headline { font-size: clamp(2.5rem, 6.6vw, 5.25rem); line-height: 1; }
.headline + .hero-lede { margin-top: 1.75rem; }
.tagline {
  margin: 1.5rem 0 1rem;
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sky);
}
.hero-lede { max-width: 34rem; margin-bottom: 2rem; font-size: 1.2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Photo placeholders: replace each with a real <img> */
.photo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
.photo-ph .star { width: 16%; height: auto; aspect-ratio: 139.839 / 387.327; }
.photo-ph.wide { aspect-ratio: 4 / 3; }
.hero .photo-ph { border: 0.5rem solid var(--white); box-shadow: 0 1.5rem 3rem rgba(7, 30, 69, 0.45); }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border: 0.5rem solid var(--white);
  box-shadow: 0 1.5rem 3rem rgba(7, 30, 69, 0.45);
}

/* Sections */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}
.message-lead {
  font-size: clamp(1.3rem, 2.4vw, 1.625rem);
  line-height: 1.5;
  color: var(--navy);
}
/* Landing-page talking points */
.points {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}
.points-list { margin: 0; font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.5; }
.points-list li { padding-left: 1.6rem; margin-bottom: 1.1rem; }
.points-list li:last-child { margin-bottom: 0; }
.points-list strong { font-family: var(--sans); font-weight: 700; color: var(--navy); }
.points-group h3 { margin-bottom: 1.25rem; padding-bottom: 0.6rem; border-bottom: 3px solid var(--navy); }
.points-group + .points-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.points > div:first-child { position: sticky; top: 7rem; align-self: start; }

.signoff { font-style: italic; color: var(--muted); }

/* Priorities */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 6vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.priority { padding-top: 1.25rem; border-top: 3px solid var(--navy); }
.priority-num {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.priority-num .star { --star-h: 1.75rem; transform: translateY(17.6%); }
.priority h3 { margin-bottom: 0.75rem; font-size: 1.625rem; }

/* About preview */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}
.split h2 { margin-bottom: 1.25rem; }

/* Sign-up */
.signup {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.signup-star {
  position: absolute;
  --star-h: 52rem;
  top: -6rem;
  left: max(-3rem, calc(50% - 40rem));
  color: var(--navy-star);
}
.signup-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}
.signup h2 { margin-bottom: 1.25rem; color: var(--white); }
.signup-donate { margin-top: 1.75rem; }
.signup-donate .btn { min-width: 10rem; }
.election {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--sky);
  font-family: var(--sans);
  line-height: 1.35;
}
.election small { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.election strong { font-size: 1.25rem; }

.signup-panel {
  min-height: 18rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--sans);
}
.form-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

/* EmailOctopus form. The embed injects its own styles after this file, so these
   rules use extra selectors to win. Colors and fonts go through its variables. */
.eo-embed [data-form] {
  --background-color: var(--white);
  --border-color: transparent;
  --text-colour: var(--ink);
  --font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}
.eo-embed [data-form] .emailoctopus-form {
  --base-font-size: 1.0625rem;
  --field-colour: var(--white);
  --field-border-colour: #7b8ca6;
  --button-colour: var(--blue);
  --button-text-colour: var(--white);
}
.eo-embed .inline-container[data-form] { max-width: none !important; padding: 0; }
.eo-embed [data-form] .eo-form-wrapper { min-width: 0; }
.eo-embed [data-form] .form-container { max-width: none; }
.eo-embed [data-form] [eo-block="title"] { margin-bottom: 0 !important; font-size: 1.375rem; }
.eo-embed [data-form] h1 {
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
}
/* Hides EmailOctopus's sample sentence. Remove this rule to show real text set there. */
.eo-embed [data-form] [eo-block="text"] { display: none; }
.eo-embed [data-form] .emailoctopus-form [eo-form-fields-container] { width: 100%; }
.eo-embed [data-form] .main-form .emailoctopus-form-row {
  width: 100%;
  min-width: 0;
  margin: 0 0 0.75rem !important;
}
.eo-embed [data-form] .emailoctopus-form input.form-control {
  height: 3rem;
  border-width: 1.5px;
  border-radius: 3px;
  color: var(--ink);
}
.eo-embed [data-form] .emailoctopus-form input.form-control:focus {
  border-color: var(--blue);
  box-shadow: none;
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.eo-embed [data-form] .emailoctopus-form input[type="submit"] {
  width: 100%;
  min-height: 3rem;
  margin: 0.25rem 0 0.75rem !important;
  border-radius: 3px;
  font-weight: 700;
}
.eo-embed [data-form] .emailoctopus-form input[type="submit"]:hover {
  background-color: var(--navy);
  border-color: var(--navy);
}
.eo-embed [data-form] .emailoctopus-form input[type="submit"]:focus {
  box-shadow: none;
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.eo-embed [data-form] .emailoctopus-error-message:not(:empty),
.eo-embed [data-form] .emailoctopus-success-message:not(:empty) {
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-align: left;
}
/* Shown only if the embed still hasn't appeared after a few seconds */
.eo-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  visibility: hidden;
  animation: eo-fallback-show 0s linear 5s forwards;
}
.eo-embed:has(.inline-container) .eo-fallback { display: none; }
@keyframes eo-fallback-show { to { visibility: visible; } }

/* Sub-page header */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.page-head-star {
  position: absolute;
  --star-h: 46rem;
  top: 50%;
  right: clamp(1rem, 7vw, 8rem);
  transform: translateY(-32.4%);
  color: var(--navy-star);
}
.page-head-inner { position: relative; padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 {
  max-width: 48rem;
  color: var(--white);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
}
.page-head-lede { max-width: 42rem; margin: 1.25rem 0 0; font-size: 1.25rem; }

/* Long-form layout (platform + biography) */
.longform {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 44rem);
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
}
.toc { position: sticky; top: 7rem; align-self: start; font-family: var(--sans); }
.toc-title { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.toc li { border-top: 1px solid var(--line); }
.toc a { display: block; padding-block: 0.7rem; color: var(--navy); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

.plank + .plank { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.plank h2 { margin-bottom: 1.25rem; font-size: clamp(1.875rem, 4vw, 2.5rem); }
.lead { font-size: 1.3rem; line-height: 1.5; color: var(--navy); }
.plank h3 { margin: 2rem 0 0.75rem; font-size: 1.125rem; }

.star-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.star-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.65rem; }
.star-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em; /* centres the star's head on the first line of text */
  width: 0.56em;
  height: 1.55em;
  background: url("../img/star.svg?v=2") center / contain no-repeat;
}

.bio-photo { position: sticky; top: 7rem; align-self: start; }
.bio-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--line);
}
.pullquote {
  margin: 2.5rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 4px solid var(--blue);
  color: var(--navy);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
}
.pullquote p { margin: 0; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.photo-pair img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-single { max-width: 24rem; margin: 2.5rem 0 0; }
.photo-single img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* Volunteer sign-up form (volunteer.html) */
.vol-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.vol-aside h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.vol-aside .election { margin-top: 1.5rem; color: var(--navy); }
.vol-aside .election small { color: var(--blue); }
.vol-form { font-family: var(--sans); font-size: 1rem; line-height: 1.45; }
.vol-form fieldset { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }
.vol-form legend, .vol-form .field > label {
  display: block;
  margin-bottom: 0.6rem;
  padding: 0;
  color: var(--navy);
  font-weight: 700;
}
.vol-form legend { font-size: 1.2rem; }
.vol-form .opt { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.vol-form legend .opt { display: block; margin-top: 0.15rem; }
.vol-form .field > label { margin-bottom: 0.35rem; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.check:hover { border-color: var(--blue); }
.check:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.check small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.vol-form input[type="checkbox"], .vol-form input[type="radio"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  accent-color: var(--blue);
}

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field-grid .field-wide { grid-column: 1 / -1; }
.vol-form input[type="text"], .vol-form input[type="email"], .vol-form input[type="tel"], .vol-form textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  background: var(--white);
  border: 1.5px solid #7b8ca6;
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.vol-form textarea { min-height: 8rem; resize: vertical; }
.vol-form input:focus-visible, .vol-form textarea:focus-visible { border-color: var(--blue); outline-offset: 1px; }
.field-hint { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9rem; }

.radios { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.radios label { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 600; cursor: pointer; }

.vol-submit { min-width: 14rem; margin-top: 2rem; }
.vol-submit:disabled { opacity: 0.7; cursor: wait; }
/* Spam trap: hidden from people, filled in by bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Platform page: key-number tiles */
.stat-band { background: var(--mist); border-bottom: 1px solid var(--line); }
.stat-grid {
  display: grid;
  /* --stat-cols is set by the page to the number of stats (CMS copy only). */
  grid-template-columns: repeat(var(--stat-cols, 3), minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  padding: clamp(2rem, 5vw, 3rem) 0;
  list-style: none;
}
.stat { padding-top: 0.9rem; border-top: 3px solid var(--navy); font-family: var(--sans); }
.stat strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span { display: block; color: var(--muted); font-size: 0.975rem; line-height: 1.4; }

/* Platform page: horizontal bar chart. Bars start at zero; each is --v / --max wide. */
.bar-chart { margin: 2rem 0; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: 3px; font-family: var(--sans); }
.bar-chart figcaption { margin-bottom: 1rem; color: var(--navy); font-size: 1rem; font-weight: 700; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.4rem;
}
.bar-label { color: var(--ink); font-size: 0.925rem; line-height: 1.25; }
.bar-track { display: block; }
.bar {
  display: block;
  width: calc(var(--v) / var(--max) * 100%);
  height: 1.1rem;
  background: #7b8ca6;
  border-radius: 0 4px 4px 0;
}
.bar-value { color: var(--ink); font-size: 1rem; font-weight: 700; text-align: right; }
.bar-row.is-focus .bar { background: var(--blue); }
.bar-row.is-focus .bar-label { color: var(--navy); font-weight: 700; }
.chart-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.875rem; }

/* Closing call to action */
.cta { background: var(--blue); color: var(--white); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.cta h2 { max-width: 34rem; color: var(--white); font-size: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d6e4f5; font-family: var(--sans); font-size: 0.925rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 2.25rem 1.25rem;
}
.site-footer .brand, .site-footer .brand:hover { color: var(--white); }
.site-footer .brand .star { color: var(--sky); }
.site-footer .brand-office { color: #d6e4f5; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--sky); text-decoration: underline; }
.disclosure { padding-block: 1rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.disclosure p { margin: 0; font-size: 0.85rem; }

/* Responsive */
/* Just above the phone layout the full header is a little too wide for one
   row, so tighten its spacing to keep the buttons beside the menu. */
@media (min-width: 861px) and (max-width: 1000px) {
  .header-inner { column-gap: 1.25rem; }
  .site-nav ul { column-gap: 1.1rem; }
  .header-actions .btn { padding-inline: 1rem; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; }
  .hero-inner, .message, .points, .split, .signup-inner, .longform, .vol-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-star { --star-h: 44rem; top: -4rem; left: 72%; }
  .hero-photo, .split .photo-ph, .bio-photo { max-width: 22rem; }
  .toc, .bio-photo { position: static; }
  .vol-aside { order: 2; }
  .points > div:first-child { position: static; }
  .points { row-gap: 2rem; }
  .header-actions { position: relative; width: 100%; padding-bottom: 0.4rem; }
  .header-actions > .btn, .volunteer-menu { flex: 1 1 0; }
  .volunteer-menu { position: static; }
  .volunteer-menu summary { display: block; }
  .volunteer-panel { left: 0; right: 0; width: auto; top: calc(100% - 0.4rem + 0.5rem); }
}
@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .priority-grid, .checks, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: minmax(0, 1fr) 2rem; gap: 0.25rem 0.75rem; }
  .bar-label { grid-column: 1 / -1; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 0.25rem 0.75rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .vol-submit { width: 100%; }
  .page-head-star { --star-h: 36rem; right: -5rem; opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Platform planks with a rule under the heading */
.plank-ruled h2 { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.plank-ruled + .plank-ruled { border-top: 0; padding-top: 0; }
