/* ==========================================================================
   Daniel Fitzpatrick for Contra Costa Water District — Division 2
   Shared stylesheet. Design tokens first — swap these values freely.
   ========================================================================== */

:root {
  /* Color */
  --color-main:        #112D41;  /* deep navy  */
  --color-secondary:   #FFBC22;  /* gold       */
  --color-third:       #405460;  /* slate      */
  --color-on-dark:     #FFFFFF;
  --color-bg:          #FFFFFF;
  --color-text:        #112D41;
  --color-text-muted:  #405460;
  --color-rule:        #D9E0E6;
  --color-surface:     #F4F7F9;
  --color-wire:        #EEF1F4;
  --color-wire-alt:    #E3E9ED;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --fs-eyebrow: 0.75rem;
  --fs-small:   0.9375rem;
  --fs-base:    1.125rem;
  --fs-lead:    1.3125rem;
  --fs-h3:      1.375rem;
  --fs-h2:      clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h1:      clamp(1.9rem, 5.6vw, 4rem);
  --fs-display: clamp(2.5rem, 6.4vw, 4.5rem);
  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-body:    1.65;
  --track-wide: 0.14em;

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --maxw-narrow: 68ch;

  /* Shape */
  --footer-cta-w: 200px;   /* footer CTA width */
  --radius:    4px;
  --radius-lg: 8px;
  --border:    1px solid var(--color-rule);
  --shadow:    0 1px 2px rgba(17,45,65,.06), 0 8px 24px rgba(17,45,65,.07);
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1,h2,h3,h4 {
  margin: 0 0 var(--sp-4); line-height: var(--lh-tight);
  font-weight: 800; letter-spacing: -0.02em;
  text-wrap: balance;           /* even line lengths — kills stranded last words */
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -0.01em; }
p  { margin: 0 0 var(--sp-4); max-width: var(--maxw-narrow); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }
a { color: var(--color-main); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--color-secondary); }

/* Focus — gold ring plus navy halo so it reads on light and dark alike */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(17,45,65,.65);
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 999;
  background: var(--color-secondary); color: var(--color-main);
  padding: var(--sp-3) var(--sp-5); font-weight: 800; border-radius: var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: var(--sp-4); }

/* ------------------------------------------------------------- Layout -- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 900px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--color-surface); }
.section--navy { background: var(--color-main); color: var(--color-on-dark); }
.section--slate { background: var(--color-third); color: var(--color-on-dark); }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--slate h1, .section--slate h2, .section--slate h3 { color: var(--color-on-dark); }
.section--navy a:not(.btn), .section--slate a:not(.btn) { color: var(--color-secondary); }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-third);
  margin-bottom: var(--sp-3);
}
.section--navy .eyebrow, .section--slate .eyebrow { color: var(--color-secondary); }
.eyebrow--gold { color: var(--color-third); }
.eyebrow--gold::after {
  content: ""; display: block; width: 48px; height: 4px;
  background: var(--color-secondary); margin-top: var(--sp-3);
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--color-text-muted); text-wrap: pretty; }
.section--navy .lead, .section--slate .lead { color: rgba(255,255,255,.82); }
.muted { color: var(--color-text-muted); }
.section-head { max-width: 780px; margin-bottom: var(--sp-7); }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: var(--sp-7); align-items: center; }
/* both columns start and end flush; the frame fills its side */
.split--top { align-items: stretch; }
.split--top > .wf,
.split--top > .photo { height: 100%; aspect-ratio: auto; min-height: 380px; object-fit: cover; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--wide-left  { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
  .split--reverse > :first-child { order: 2; }
}

/* -------------------------------------------------- Wireframe blocks -- */
/* Placeholder for imagery. Replace .wf elements with <img> when art lands. */
.wf {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg,
      var(--color-wire) 0 12px, var(--color-wire-alt) 12px 24px);
  border: 2px dashed var(--color-third);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.wf::before, .wf::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(64,84,96,.35) 50%, transparent calc(50% + 1px));
}
.wf::after { background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(64,84,96,.35) 50%, transparent calc(50% + 1px)); }
.wf > span {
  position: relative; z-index: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-third);
  color: var(--color-third);
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  text-align: center;
  max-width: 85%;
}
.wf--portrait { aspect-ratio: 4 / 5; }
.wf--wide     { aspect-ratio: 16 / 9; }
.wf--pano     { aspect-ratio: 21 / 9; }
.wf--square   { aspect-ratio: 1 / 1; }
.wf--thumb    { aspect-ratio: 3 / 2; }
.wf--avatar   { aspect-ratio: 1 / 1; width: 56px; border-radius: 50%; flex: none; }
.wf--avatar > span { display: none; }
.wf--logo     { aspect-ratio: 5 / 2; }
.wf--on-dark  { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.wf--on-dark::before { background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(255,255,255,.28) 50%, transparent calc(50% + 1px)); }
.wf--on-dark::after  { background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(255,255,255,.28) 50%, transparent calc(50% + 1px)); }
.wf--on-dark > span { background: var(--color-main); border-color: rgba(255,255,255,.6); color: var(--color-on-dark); }

/* Real photography — same footprint as the .wf placeholders it replaces */
.photo {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.photo--wide  { aspect-ratio: 16 / 9; }
.photo--thumb { aspect-ratio: 3 / 2; }
.photo--portrait { aspect-ratio: 4 / 5; }

/* ------------------------------------------------------------ Buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: inherit; font-weight: 800; font-size: var(--fs-small);
  letter-spacing: .06em; text-transform: uppercase;
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-secondary); color: var(--color-main); }
.btn--primary:hover { background: #ffcb4f; }
.btn--solid { background: var(--color-main); color: var(--color-on-dark); }
.btn--solid:hover { background: #1b405b; }
.btn--ghost { background: transparent; color: var(--color-main); border-color: var(--color-main); }
.btn--ghost:hover { background: var(--color-main); color: var(--color-on-dark); }
.btn--on-dark { background: transparent; color: var(--color-on-dark); border-color: rgba(255,255,255,.55); }
.btn--on-dark:hover { background: var(--color-on-dark); color: var(--color-main); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }

/* ------------------------------------------------------- Vote bar/nav -- */
.votebar {
  background: var(--color-secondary);
  color: var(--color-main);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: .05em;
  text-align: center;
  padding: var(--sp-3) var(--gutter);
}
.votebar strong { text-transform: uppercase; letter-spacing: var(--track-wide); }
.votebar a { color: var(--color-main); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-main);
  color: var(--color-on-dark);
  border-bottom: 4px solid var(--color-secondary);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); padding-block: var(--sp-4);
}
.wordmark img { display: block; height: 95px; width: auto; }
.wordmark { flex: none; text-decoration: none; color: var(--color-on-dark); line-height: 1.05; display: block; }
.wordmark .wm-first {
  display: block; font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: var(--track-wide); text-transform: uppercase;
}
.wordmark .wm-last {
  display: block; font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--color-secondary);
}
.wordmark .wm-sub {
  display: block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75);
  margin-top: 2px;
}

.nav { flex: 1 1 100%; order: 3; }
.nav-list {
  list-style: none; margin: 0; padding: var(--sp-3) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2);
  border-top: 1px solid rgba(255,255,255,.2);
}
.nav-list li { margin: 0; }
.nav-list a {
  display: block; padding: var(--sp-2) var(--sp-3);
  color: var(--color-on-dark); text-decoration: none;
  font-weight: 700; font-size: var(--fs-small);
  text-transform: uppercase; letter-spacing: .06em;
  border-radius: var(--radius);
}
.nav-list a:hover { background: rgba(255,255,255,.12); }
.nav-list a[aria-current="page"] { color: var(--color-secondary); box-shadow: inset 0 -3px 0 var(--color-secondary); }
.nav-cta { display: none; }

@media (min-width: 560px) { .nav-cta { display: inline-flex; } }
@media (min-width: 950px) {
  .header-inner { flex-wrap: nowrap; }
  .nav { flex: 1 1 auto; order: 0; min-width: 0; }
  .nav-list {
    border-top: 0; padding-top: 0; gap: var(--sp-1);
    flex-wrap: nowrap; justify-content: flex-end;
  }
  .nav-list a { white-space: nowrap; }
  .nav-cta { flex: none; }
}

/* --------------------------------------------------------------- Hero -- */
.hero {
  background: var(--color-main); color: var(--color-on-dark);
  padding-block: var(--section-y) clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) { .hero .split--wide-left { grid-template-columns: 1.3fr .7fr; } }
.hero h1 { font-size: var(--fs-display); text-transform: uppercase; }
.hero .hero-office {
  font-size: var(--fs-lead); font-weight: 700; color: var(--color-secondary);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-5);
  text-wrap: balance;
}
.hero p { color: rgba(255,255,255,.84); }
.hero-rule { width: 72px; height: 6px; background: var(--color-secondary); margin-bottom: var(--sp-6); }

.page-head { background: var(--color-main); color: var(--color-on-dark); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { text-transform: uppercase; margin-bottom: var(--sp-4); }
.page-head p { color: rgba(255,255,255,.84); font-size: var(--fs-lead); }
.breadcrumb { font-size: var(--fs-small); color: rgba(255,255,255,.7); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--color-secondary); }

/* Jump nav — a compact chip row, not a column list */
.jumpnav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }
.jumpnav .eyebrow { margin: 0; flex: none; }
.jumpnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
}
.jumpnav li { margin: 0; }
.jumpnav a {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  color: var(--color-main);
  font-weight: 700; font-size: var(--fs-small);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.jumpnav .jump-num {
  font-weight: 800; color: var(--color-third);
  font-size: var(--fs-eyebrow); letter-spacing: .08em;
  transition: color .18s ease;
}
.jumpnav a:hover { background: var(--color-main); color: var(--color-on-dark); border-color: var(--color-main); }
.jumpnav a:hover .jump-num { color: var(--color-secondary); }

/* -------------------------------------------------------------- Cards -- */
.card {
  background: var(--color-bg);
  border: var(--border);
  border-top: 5px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { margin-bottom: var(--sp-4); }
.card .card-link { margin-top: auto; font-weight: 800; font-size: var(--fs-small);
  text-transform: uppercase; letter-spacing: .07em; }
.card--plain {
  border-top-color: var(--color-rule);
  transition: background-color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
/* Hover/focus: the tile fills with navy and inverts its text */
.card--plain:hover,
.card--plain:focus-within {
  background: var(--color-main);
  border-right-color: var(--color-main);
  border-bottom-color: var(--color-main);
  border-left-color: var(--color-main);
  border-top-color: var(--color-secondary);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(17,45,65,.28);
}
.card--plain:hover h3,
.card--plain:focus-within h3 { color: var(--color-secondary); }
.card--plain:hover p,
.card--plain:focus-within p { color: rgba(255,255,255,.88); }
.card--num { position: relative; }
.card-num {
  font-size: 2.5rem; font-weight: 800; color: var(--color-secondary);
  line-height: 1; margin-bottom: var(--sp-3); display: block;
}

/* Navy tile variant — matches the milestone tiles on Meet Dan */
.card--navy {
  background: #1B3E57;
  border-color: rgba(255,255,255,.22);
  border-top-color: var(--color-secondary);
  transition: transform .2s ease, background-color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.card--navy h3 { color: var(--color-on-dark); transition: color .2s ease; }
.card--navy p { color: rgba(255,255,255,.84); }
.card--navy .card-link { color: var(--color-secondary); }
.card--navy:hover,
.card--navy:focus-within {
  background: #24506E;
  border-color: var(--color-secondary);
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(17,45,65,.3);
}
.card--navy:hover h3,
.card--navy:focus-within h3 { color: var(--color-secondary); }

/* Endorsement panel */
.endorse-heading {
  font-size: var(--fs-eyebrow); text-transform: uppercase;
  letter-spacing: var(--track-wide); color: var(--color-third);
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--color-secondary);
  white-space: nowrap;          /* keeps all three rules on one baseline */
}
.endorse-org { margin-bottom: var(--sp-6); }
.endorse-org .endorse-list li { font-size: 1.25rem; }
.endorse-org .endorse-list span { font-size: var(--fs-base); }

.endorse-cols { display: grid; gap: var(--sp-5) var(--sp-7); }
@media (min-width: 760px) { .endorse-cols { grid-template-columns: repeat(3, 1fr); } }
.endorse-heading--second { margin-top: var(--sp-6); }
.endorse-list { list-style: none; margin: 0; padding: 0; }
.endorse-list li {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-base); line-height: 1.45;
}
.endorse-list strong { font-weight: 800; }
.endorse-list span { color: var(--color-text-muted); }
.endorse-list span::before { content: "\2014"; margin: 0 .38em; }
.endorse-note {
  margin: var(--sp-6) 0 0; font-size: var(--fs-small);
  color: var(--color-text-muted); font-style: italic;
}

/* -------------------------------------------------------------- Stats -- */
.stats { display: grid; gap: var(--sp-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 4px solid var(--color-secondary); padding-left: var(--sp-4); }
.stat-figure { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat-label { display: block; font-size: var(--fs-small); margin-top: var(--sp-2); color: rgba(255,255,255,.78); }

/* --------------------------------------------- Roadmap (winding path) -- */
.roadmap-wrap { position: relative; margin-top: var(--sp-7); }

.roadmap-road {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: none;
}
.roadmap-road path {
  fill: none;
  stroke: var(--color-secondary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
  opacity: .5;
  vector-effect: non-scaling-stroke;   /* keeps the line even when the box stretches */
}

.roadmap {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-5);
  position: relative; z-index: 1;
}
.roadmap li { margin: 0; }

.rm-card {
  height: 100%;
  background: #1B3E57;                 /* opaque so the road passes behind, not through */
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: transform .2s ease, background-color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.rm-head { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.rm-card h3 { margin: 0; font-size: 1.125rem; transition: color .2s ease; }
.rm-card p { margin: 0; color: rgba(255,255,255,.82); font-size: var(--fs-small); }

.rm-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--color-secondary); color: var(--color-main);
  font-weight: 800; font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.roadmap li:hover .rm-card,
.roadmap li:focus-within .rm-card {
  transform: translateY(-6px);
  background: #24506E;
  border-color: var(--color-secondary);
  box-shadow: 0 14px 32px rgba(0,0,0,.38);
}
.roadmap li:hover .rm-card h3,
.roadmap li:focus-within .rm-card h3 { color: var(--color-secondary); }
.roadmap li:hover .rm-dot,
.roadmap li:focus-within .rm-dot {
  transform: scale(1.12);
  box-shadow: 0 0 0 9px rgba(255,188,34,.18);
}

/* Serpentine layout: row 1 runs left-to-right, row 2 doubles back, row 3 runs out */
@media (min-width: 900px) {
  .roadmap-road { display: block; }
  /* side channel so the road's U-turns loop outside the cards, not behind them */
  .roadmap-wrap { padding-inline: clamp(3rem, 6vw, 5rem); }
  .roadmap {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8) clamp(5rem, 12vw, 11rem);
  }
}

/* ------------------------------------------------------------ Details -- */
.faq { border-top: var(--border); }
.faq details { border-bottom: var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-weight: 800; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.5rem; line-height: 1;
  color: var(--color-secondary); font-weight: 800;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--color-main); }
.faq .faq-body { padding-bottom: var(--sp-5); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- Table -- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--fs-small); }
caption { text-align: left; font-weight: 800; margin-bottom: var(--sp-4); font-size: var(--fs-h3); }
th, td { text-align: left; padding: var(--sp-4); border-bottom: var(--border); vertical-align: top; }
thead th { background: var(--color-main); color: var(--color-on-dark); font-size: var(--fs-eyebrow);
  text-transform: uppercase; letter-spacing: var(--track-wide); }
tbody tr:nth-child(even) { background: var(--color-surface); }
.tick { color: var(--color-main); font-weight: 800; }

/* ------------------------------------------------------- Testimonials -- */
.quote-card {
  background: var(--color-bg); border: var(--border); border-radius: var(--radius);
  padding: var(--sp-6); display: flex; flex-direction: column;
}
.quote-card blockquote { margin: 0 0 var(--sp-5); font-size: 1.0625rem; }
.quote-card blockquote::before { content: "\201C"; color: var(--color-secondary); font-size: 3rem;
  line-height: 0; vertical-align: -0.35em; margin-right: .1em; font-weight: 800; }
.quote-meta { margin-top: auto; display: flex; align-items: center; gap: var(--sp-4); }
.quote-name { font-weight: 800; display: block; font-size: var(--fs-small); }
.quote-role { font-size: var(--fs-small); color: var(--color-text-muted); display: block; }

/* -------------------------------------------------------------- Posts -- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: var(--border); padding-block: var(--sp-6); margin: 0; }
.post-item { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 760px) { .post-item { grid-template-columns: 260px 1fr; } }
.post-date { font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--color-third); display: block; margin-bottom: var(--sp-2); }
.post-item h3 { margin-bottom: var(--sp-3); }

/* -------------------------------------------------------------- Forms -- */
.form-card {
  background: var(--color-bg); border: var(--border);
  border-top: 5px solid var(--color-secondary);
  border-radius: var(--radius); padding: var(--sp-6);
}
fieldset { border: 0; margin: 0 0 var(--sp-6); padding: 0; }
legend { font-weight: 800; font-size: var(--fs-h3); padding: 0; margin-bottom: var(--sp-2); }
.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: var(--sp-2); }
.req { color: #B3261E; }
.hint { display: block; font-size: var(--fs-small); color: var(--color-text-muted); margin-top: var(--sp-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--color-third); border-radius: var(--radius);
  background: var(--color-bg); color: var(--color-text);
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--color-main); }
.check { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.check input { margin-top: .3em; width: 20px; height: 20px; flex: none; accent-color: var(--color-main); }
.check label { font-weight: 400; font-size: var(--fs-base); margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.inline-form .field { flex: 1 1 220px; margin-bottom: 0; }

/* In-page lists (never reuse .footer-links outside the footer — it forces white) */
.plain-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.plain-list li { margin-bottom: var(--sp-3); }
.plain-list a { color: var(--color-main); font-weight: 700; }
.plain-list a:hover { text-decoration-color: var(--color-secondary); }

/* Email capture — posts straight to Mailchimp, no third-party CSS or JS */
.signup-form { max-width: 560px; margin: var(--sp-6) auto 0; text-align: left; }
.signup-form > label {
  display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: var(--sp-2);
}
.signup-row { display: flex; align-items: stretch; gap: var(--sp-3); }
.signup-row input { flex: 1 1 auto; min-width: 0; border-color: transparent; }
.signup-row .btn { flex: none; white-space: nowrap; padding-block: 0; }
.signup-hint {
  margin: var(--sp-3) 0 0; font-size: var(--fs-small);
  color: rgba(255,255,255,.75); max-width: none;
}
.section--slate .req, .section--navy .req, .hero .req { color: var(--color-secondary); }

.signup-thanks {
  max-width: 560px; margin: var(--sp-6) auto 0;
  background: rgba(255,255,255,.08);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
}
.signup-thanks strong {
  display: block; font-size: 1.25rem; font-weight: 800;
  color: var(--color-secondary); margin-bottom: var(--sp-2);
}
.signup-thanks span { display: block; color: rgba(255,255,255,.88); }
.signup-error {
  margin: var(--sp-3) 0 0; font-size: var(--fs-small);
  color: #FFD9D5; max-width: none;
}

@media (max-width: 520px) {
  .signup-row { flex-direction: column; align-items: stretch; }
  .signup-row .btn { justify-content: center; padding-block: var(--sp-4); }
}

/* Division 2 locator map */
.divmap-fig { margin: 0; }
.divmap { display: block; width: 100%; height: auto; border: 1px solid var(--color-rule); border-radius: var(--radius); }
.divmap .dm-other {
  fill: rgba(17,45,65,.52); stroke: rgba(255,255,255,.55);
  stroke-width: 1.25; stroke-linejoin: round;
}
.divmap .dm-mine {
  fill: rgba(255,188,34,.34); stroke: var(--color-secondary);
  stroke-width: 3; stroke-linejoin: round;
}
.divmap-fig figcaption {
  margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--color-text-muted);
}

/* ------------------------------------------------------------- Footer -- */
.site-footer { background: var(--color-main); color: var(--color-on-dark); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: var(--fs-eyebrow); text-transform: uppercase;
  letter-spacing: var(--track-wide); color: var(--color-secondary); margin-bottom: var(--sp-4); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--color-on-dark); text-decoration: none; font-size: var(--fs-small); }
.footer-links .ext { font-size: .85em; margin-left: .3em; color: var(--color-secondary); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.footer-links a:hover { color: var(--color-secondary); text-decoration: underline; }
.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.45); color: var(--color-on-dark);
}
.social a:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-main); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: var(--fs-small); color: rgba(255,255,255,.78);
}
/* links here inherited navy on navy — invisible. */
.footer-bottom a { color: var(--color-secondary); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-credit { margin-left: auto; text-align: right; }
.photo-credit { color: rgba(255,255,255,.55); font-size: 0.8125rem; }
/* Legally required FPPC disclosure — keep visible, keep legible. */
.disclaimer {
  margin-top: var(--sp-5);
  max-width: none;               /* p inherits a 68ch measure — kept it short of the grid */
  background: rgba(255,255,255,.08);
  border-left: 4px solid var(--color-secondary);
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #FFFFFF;
}
.disclaimer strong { color: var(--color-secondary); display: block; margin-bottom: 0.2em; }

/* Bar stops on the same vertical line as the footer CTA above it.
   The CTA is given a set width so the two stay locked together. */
/* Disclaimer and CTA share one row */
.footer-legal {
  margin-top: var(--sp-5);
  display: flex; align-items: stretch; gap: var(--sp-5);
}
.footer-legal .disclaimer { flex: 1 1 auto; margin: 0; }   /* stays block — flex would break inline text flow */
.footer-legal .btn { flex: none; width: var(--footer-cta-w); justify-content: center; white-space: nowrap; }
@media (max-width: 759px) {
  .footer-legal { flex-direction: column; align-items: stretch; }
  .footer-legal .btn { width: 100%; }
}

/* ─── Mobile optimisation ─────────────────────────────────────────── */
@media (max-width: 640px) {
  /* logo scales back — 95px is overwhelming on a 375px screen */
  .wordmark img { height: 60px; }

  /* vote bar: tighter so it stops wrapping to two lines */
  .votebar { font-size: 0.8125rem; letter-spacing: .03em; padding-block: var(--sp-2); }

  /* nav + footer links need 44px tap targets */
  .nav-list a { padding: var(--sp-3) var(--sp-3); min-height: 44px; display: flex; align-items: center; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .card-link { display: inline-flex; align-items: center; min-height: 44px; }
  .plain-list a, .jumpnav a { min-height: 44px; display: inline-flex; align-items: center; }
  /* inline prose links and the credit line also need a real tap area */
  .split p > a, .footer-credit a, .social a, .breadcrumb a {
    display: inline-flex; align-items: center; min-height: 44px;
  }

  /* hero office line: 21px gold uppercase over three lines is too heavy */
  .hero .hero-office { font-size: 1.0625rem; letter-spacing: .05em; }

  /* trim section padding so the page isn't an endless scroll */
  .section { padding-block: clamp(2.5rem, 9vw, 3.25rem); }
  .hero { padding-block: clamp(2.5rem, 9vw, 3.25rem) var(--sp-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
  .card--plain:hover { transform: none; }
  .roadmap li:hover .rm-card,
  .roadmap li:hover .rm-dot { transform: none; }
  .card--navy:hover { transform: none; }
}
