/* ============================================================
   2026 Marblehead Voter Guide
   The Marblehead Independent design system
   Matched to mhd-town-meeting-guide brand: cream paper, navy
   masthead, Indy red accents, Georgia serif throughout
   ============================================================ */

:root {
  --paper:       #FDF9F4;
  --paper-deep:  #F0EDE8;
  --paper-card:  #ffffff;
  --ink:         #1E1F21;
  --ink-soft:    #3f3f46;
  --ink-mute:    #6b7280;
  --rule:        #D8D3CC;
  --rule-soft:   #E5E1D8;
  --navy:        #1a1a2e;
  --navy-deep:   #171738;
  --red:         #C2261D;
  --red-deep:    #a81f18;
  --link:        #375E97;
  --green:       #2D6A2E;
  --shadow-card: 0 1px 2px rgba(20, 20, 40, .04), 0 3px 14px rgba(20, 20, 40, .05);
  --serif: Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(55, 94, 151, .3);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s;
}
a:hover { text-decoration-color: var(--link); }

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

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--paper); padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ============== MASTHEAD ============== */
.masthead {
  background: var(--navy);
  border-bottom: 4px solid var(--red);
  padding: 28px 24px 32px;
  text-align: center;
}
.masthead-inner { max-width: 880px; margin: 0 auto; }
.masthead-logo {
  display: block;
  width: clamp(140px, 22vw, 220px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.22));
}
.kicker {
  font-family: var(--serif);
  font-size: clamp(13px, 2.4vw, 15px);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #d4cfc1;
  font-weight: 700;
}
.masthead h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 5.5vw, 40px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -.3px;
  color: var(--paper);
}
.masthead .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2.6vw, 20px);
  color: #e8e2d2;
  margin: 0;
  line-height: 1.4;
}

/* ============== NAV ============== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 244, .97);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: .25rem;
  justify-content: center;
  overflow-x: auto;
  padding: .6rem 1rem;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: .55rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--paper-deep); }
.site-nav a.is-current {
  background: var(--navy);
  color: var(--paper);
}

/* ============== MAIN ============== */
main { display: block; }

.quick-facts {
  max-width: 760px; margin: 30px auto 0; padding: 0 20px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: var(--paper-deep);
  border-top: 4px solid var(--red);
  padding: 20px 22px;
  border-radius: 4px;
}
.fact { text-align: center; }
.fact-label {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 700; color: var(--ink-mute);
}
.fact-value {
  margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3;
}
.fact-value a { font-weight: 700; }
.fact-sub { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

.intro {
  max-width: 720px; margin: 28px auto 0; padding: 0 20px;
  font-family: var(--serif); font-size: 18px; line-height: 1.75;
  color: var(--ink);
}
.intro p { margin-bottom: 0; }
.intro strong { font-weight: 700; }
.intro em { font-style: italic; }

/* ============== PHONE-IN-PORTRAIT VIEWING TIP ============== */
/* Shown only on narrow phones held in portrait. As soon as the user
   rotates the device or opens the guide on tablet/desktop, the tip
   disappears entirely. */
.phone-tip {
  display: none;
  margin: 18px 14px 0;
  padding: 12px 16px;
  background: var(--paper-deep);
  border-top: 3px solid var(--navy);
  border-radius: 3px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}
.phone-tip p { margin: 0; }
.phone-tip strong { color: var(--navy); }
.phone-tip .rotate-icon {
  display: inline-block;
  margin-right: 4px;
  transform: rotate(90deg);
  font-style: normal;
}
@media (max-width: 540px) and (orientation: portrait) {
  .phone-tip { display: block; }
}

/* ============== EVENT CALLOUT (upcoming high-value event) ============== */
.event-callout {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--red);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.event-callout .ec-label {
  display: inline-block;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 3px 9px;
  border-radius: 3px;
}
.event-callout .ec-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 4px 0 8px;
  color: var(--navy);
  letter-spacing: -.2px;
}
.event-callout .ec-when {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
}
.event-callout .ec-when strong { color: var(--navy); }
.event-callout .ec-where {
  font-family: var(--serif);
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-style: italic;
}
.event-callout .ec-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}

/* Embed frames for the precinct map and sample ballot inside the
   How-to-vote section. Same .embed-card wrapper used by the override
   widgets above. */
.embed-frame-precinct { min-height: 520px; }
.embed-frame-ballot   { min-height: 1100px; background: #fff; }
@media (max-width: 540px) {
  .embed-frame-precinct { min-height: 360px; }
  .embed-frame-ballot   { min-height: 720px; }
}
.embed-label {
  max-width: 680px;
  margin: 28px auto 8px;
  padding: 0 12px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  text-align: center;
}

/* ============== UPDATE NOTE (Indy "update-note" pattern) ============== */
.update-note {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 16px 22px;
  background: var(--paper-deep);
  border-top: 4px solid var(--navy);
  border-radius: 4px;
  text-align: center;
}
.update-note .un-label {
  display: inline-block;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  vertical-align: middle;
}
.update-note p {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.update-note p:last-child { margin-bottom: 0; }
.update-note strong { color: var(--navy); font-weight: 700; }
.update-note .un-stamp {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ============== SECTION HEADERS (Indy pattern) ============== */
.race-group { padding: 0 20px 8px; max-width: 760px; margin: 0 auto; }

.group-header {
  background: var(--navy);
  border-top: 4px solid var(--red);
  padding: 22px 24px 24px;
  margin: 44px -20px 28px;
  text-align: center;
}
.group-header .group-label {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 700; color: #d4cfc1;
}
.group-header .group-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.2; margin: 0 0 6px;
  color: var(--paper); letter-spacing: -.2px;
}
.group-header .header-rule {
  width: 46px; height: 2px;
  background: var(--red);
  margin: 10px auto 0;
}
.group-header .group-blurb {
  font-family: var(--serif); font-size: 16px; line-height: 1.6;
  color: #e8e2d2; margin: 12px 0 0; font-style: italic;
}
.group-header .group-blurb strong { color: #fff; font-style: normal; font-weight: 700; }

/* ============== RACE ============== */
.race {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 22px 14px;
  margin: 0 auto 22px;
  border-radius: 6px;
}
.race-header { border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 18px; text-align: center; }
.race-eyebrow {
  margin: 0 0 4px; font-family: var(--serif);
  font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 700; color: var(--red);
}
.race-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 4.6vw, 28px);
  margin: 0 0 4px; line-height: 1.2;
  color: var(--ink); letter-spacing: -.3px;
}
.race-meta { margin: 0; color: var(--ink-mute); font-size: 15px; font-style: italic; }
.race-note { margin: 6px 0 0; color: var(--ink-mute); font-style: italic; font-size: 14px; }

/* ============== CANDIDATES ============== */
.candidates { display: flex; flex-direction: column; gap: 18px; }

.candidate {
  border: 1px solid var(--rule);
  padding: 18px 18px 14px;
  background: #fff;
  border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
}
.candidate:hover { border-color: var(--ink-mute); box-shadow: var(--shadow-card); }

.candidate-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.portrait {
  flex: 0 0 auto;
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-deep);
  border: 2px solid var(--rule);
}
.portrait-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-deep);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
}

.ident {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 380px;
  text-align: center;
}
.cand-name {
  font-family: var(--serif); font-weight: 700;
  font-size: 21px; line-height: 1.25;
  margin: 0 0 4px; color: var(--ink); letter-spacing: -.2px;
}
.incumbent {
  display: inline-block; vertical-align: middle;
  font-family: var(--serif);
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 700; color: #fff;
  background: var(--red);
  padding: 3px 8px; border-radius: 3px;
  margin-left: 6px;
  white-space: nowrap;
  position: relative;
  top: -2px;
}
.cand-address { margin: 0 0 4px; color: var(--ink-mute); font-size: 15px; font-style: italic; }
.cand-contact { margin: 0; color: var(--ink-soft); font-size: 15px; word-break: break-word; }
.cand-contact a { color: var(--link); }
.cand-noresp { margin: 6px 0 0; color: var(--ink-mute); font-style: italic; font-size: 14px; }

/* ============== LETTERS TO THE EDITOR ============== */
.letters {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  text-align: center;
}
.letters-label {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}
.letters-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.letters-list li {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}
.letters-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.letter-date {
  display: inline;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  margin-right: 4px;
}
.letter-author {
  font-weight: 700;
  color: var(--ink);
}
.letter-title {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
}
.letter-title a { color: var(--link); }

/* Race-level context callout (e.g. incumbent stepping aside) */
.race-context {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--paper-deep);
  border-left: 4px solid var(--red);
  border-radius: 4px;
}
.race-context .rc-label {
  display: inline-block;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}
.race-context p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

/* Section-level letters block (override letters, etc.) */
.letters-section {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 18px 22px 20px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  border-radius: 4px;
}
.letters-section .letters-label {
  font-size: 13px;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.letters-section .letters-list li {
  font-size: 15px;
}
.letters-section .letter-title {
  font-size: 16px;
}

/* Letters inside an uncontested-race card */
.uncontested-race .letters {
  margin-top: 12px;
  padding-top: 10px;
}
.uncontested-race .letters-label { font-size: 10px; margin-bottom: 6px; }
.uncontested-race .letters-list li { font-size: 13px; margin-bottom: 6px; padding-bottom: 6px; }
.uncontested-race .letter-title { font-size: 14px; }

/* ============== Q&A DETAILS ============== */
.qa {
  margin-top: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  text-align: center;
}
.qa > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-weight: 700;
  font-size: 14px; letter-spacing: .3px;
  color: #fff;
  padding: 10px 18px;
  background: var(--red);
  border-radius: 4px;
  border: 1px solid var(--red);
  box-shadow: 0 4px 14px rgba(194, 38, 29, 0.16);
  transition: background .15s, transform .15s;
  -webkit-user-select: none; user-select: none;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: "+"; font-size: 18px; line-height: 1; color: #fff; font-weight: 700;
}
.qa[open] > summary::after { content: "−"; }
.qa > summary:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-1px); }

.qa-body {
  margin-top: 18px;
  padding: 16px 20px 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  text-align: left; /* keep long answers readable */
}
.qa-body h5 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 26px 0 8px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.qa-body h5::before {
  content: "Q. ";
  color: var(--red);
  font-weight: 700;
}
.qa-body h5:first-child { margin-top: 0; }
.qa-body h5 + p::first-letter,
.qa-body h5 + p { } /* hook reserved for any future styling */
.qa-body p { margin: 0 0 12px; }
.qa-body ul, .qa-body ol { margin: 0 0 14px; padding-left: 22px; }
.qa-body li { margin-bottom: 4px; }
.qa-body strong { font-weight: 700; color: var(--ink); }

/* ============== BALLOT QUESTIONS ============== */
.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 720px; margin: 0 auto;
}
.question {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--navy);
  border-radius: 4px;
  padding: 16px 20px;
}
.q-head {
  text-align: center;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.q-num {
  margin: 0 0 4px; font-family: var(--serif);
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 700; color: var(--red);
}
.q-amount { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--navy); letter-spacing: -.3px; }
.q-body { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--ink); text-align: center; }
.q-body strong { color: var(--navy); font-weight: 700; }
.q-note { margin: 8px 0 0; font-style: italic; color: var(--ink-mute); font-size: 14px; text-align: center; }

/* ============== EMBEDDED WIDGETS (iframes) ============== */
.widget-intro {
  max-width: 720px; margin: 28px auto 12px; padding: 0 4px;
  font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--ink-soft);
}
.widget-intro strong { color: var(--ink); font-weight: 700; }

.embed-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin: 12px auto 28px;
  width: min(100vw - 24px, 1040px);
  margin-left: 50%;
  transform: translateX(-50%);
}
.embed-frame {
  width: 100%;
  border: 0;
  display: block;
  background: var(--paper);
  min-height: 720px;
}
.embed-frame-overrides { min-height: 1300px; }
.embed-frame-taxbills  { min-height: 980px; }
@media (max-width: 900px) {
  .embed-card { width: min(100vw - 20px, 100%); }
  .embed-frame-overrides { min-height: 1500px; }
}
@media (max-width: 600px) {
  .embed-card { width: calc(100vw - 16px); border-radius: 6px; }
  .embed-frame-overrides { min-height: 1900px; }
  .embed-frame-taxbills  { min-height: 760px; }
}

/* ============== UNCONTESTED ============== */
.uncontested-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: 720px; margin: 0 auto;
}
.uncontested-race {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 20px;
  text-align: center;
}
.uncontested-race h3 {
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
  color: var(--ink); letter-spacing: -.2px;
  text-align: center;
}
.seat-info { font-family: var(--serif); font-weight: 400; font-size: 13px; color: var(--ink-mute); letter-spacing: 0; text-transform: none; font-style: italic; }
.uncontested-race ul { margin: 0; padding: 0; list-style: none; }
.uncontested-race li { margin-bottom: 8px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.uncontested-race li:last-child { margin-bottom: 0; }
.uncontested-race li strong { color: var(--ink); font-weight: 700; }
.re { color: var(--red); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; margin-left: 4px; }

/* ============== VOTING INFO (clean typography, no cards) ============== */
.voting-info {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  text-align: center;
}
.vinfo-line { margin: 0 0 14px; }
.vinfo-line:last-child { margin-bottom: 0; }
.vinfo-line strong { color: var(--navy); }
.vinfo-line a { color: var(--link); }
.vinfo-resources {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
}
.vinfo-resources a { color: var(--ink-soft); }

/* (Red companion-link CTA button retired; voting info uses inline
   text links instead of buttons.) */

/* ============== SOURCE CITE ============== */
.source-cite {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-mute);
  margin: 16px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  line-height: 1.6;
}
.source-cite a { color: var(--ink-mute); }
.source-cite a:hover { color: var(--ink); }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--navy);
  border-top: 4px solid var(--red);
  margin-top: 40px;
  padding: 28px 20px 36px;
  color: #e8e2d2;
}
.footer-inner {
  max-width: 720px; margin: 0 auto;
  text-align: center;
  font-family: var(--serif); font-size: 15px; line-height: 1.6;
}
.footer-inner em { font-style: italic; color: #fff; }
.footer-inner a { color: #fff; }
.footer-inner .small { font-size: 13px; color: #b8b3a3; margin-top: 10px; }

/* ============== EXPAND-ALL TOGGLE ============== */
.expand-toggle {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: .3px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.expand-toggle:hover { background: var(--paper-deep); border-color: var(--ink-mute); }
.expand-toggle[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   RESPONSIVE
   Mobile-first base. Three named breakpoints:
   - ≤540px:  phone (compressed type, single-col, edge-to-edge cards)
   - ≥720px:  tablet+ (wider content column, larger type)
   - ≥1080px: desktop (full editorial width, prominent headings,
              roomier candidate cards, wider grid columns)
   ============================================================ */

/* === Phone (≤540px) =================================== */
@media (max-width: 540px) {
  body { font-size: 16px; }
  .masthead { padding: 22px 14px 24px; }
  .masthead-logo { width: 130px; margin-bottom: 14px; }
  .quick-facts { margin-top: 22px; padding: 0 14px; }
  .facts-grid { padding: 14px 16px; }
  .intro { padding: 0 14px; font-size: 16px; }
  .race-group { padding: 0 14px 4px; }
  .race { padding: 16px 14px 10px; }
  .candidate { padding: 14px 14px 12px; }
  .portrait { width: 68px; height: 68px; }
  .portrait-initials { font-size: 22px; }
  .cand-name { font-size: 18px; }
  .incumbent { display: inline-block; margin-left: 0; margin-top: 4px; font-size: 9px; top: 0; }
  .qa > summary { font-size: 13px; padding: 8px 14px; }
  .qa-body { padding: 14px 16px 4px; font-size: 15px; }
  .nav-inner { padding: .5rem .8rem; justify-content: flex-start; }
  .site-nav a { font-size: 12px; letter-spacing: 1.2px; padding: .45rem .75rem; }
  .group-header { padding: 18px 18px 20px; margin: 32px -14px 22px; }
  .group-header .group-title { font-size: clamp(20px, 5vw, 26px); }
  .candidate-head { gap: 14px; }
  .event-callout { padding: 16px 16px 18px; }
  .event-callout .ec-title { font-size: 20px; }
  .voting-info { font-size: 16px; padding: 0 14px; }
}

/* === Tablet+ (≥720px) ================================= */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .masthead { padding: 36px 24px 38px; }
  .masthead-logo { width: 200px; margin-bottom: 18px; }
  .masthead h1 { font-size: clamp(36px, 5vw, 46px); }
  .quick-facts { max-width: 880px; }
  .facts-grid { padding: 20px 26px; gap: 18px; }
  .intro { max-width: 760px; font-size: 19px; line-height: 1.8; }
  .race-group { padding: 0 24px 8px; max-width: 880px; }
  .group-header { padding: 28px 32px 30px; margin: 56px -24px 32px; }
  .group-header .group-title { font-size: clamp(28px, 4vw, 36px); }
  .group-header .group-blurb { font-size: 17px; }
  .race { padding: 28px 30px 18px; }
  .race-title { font-size: clamp(24px, 3.4vw, 30px); }
  .race-meta { font-size: 16px; }
  .candidate { padding: 22px 24px 18px; }
  .candidate-head { gap: 22px; }
  .cand-name { font-size: 22px; }
  .cand-address, .cand-contact { font-size: 16px; }
  .qa-body { padding: 22px 28px 6px; font-size: 17px; line-height: 1.75; }
  .qa-body h5 { font-size: 17px; }
  .question { padding: 20px 24px; }
  .q-amount { font-size: 28px; }
  .q-body { font-size: 17px; }
  .questions { max-width: 880px; }
  .uncontested-list { max-width: 880px; }
  .voting-info { max-width: 720px; font-size: 18px; }
  .event-callout { padding: 26px 30px 28px; }
  .event-callout .ec-title { font-size: 26px; }
  .event-callout .ec-when { font-size: 17px; }
  .update-note { padding: 18px 24px; }
  .letters-section { padding: 24px 28px 26px; }
  .letters-section .letters-list li { font-size: 16px; }
  .letters-section .letter-title { font-size: 17px; }
  .footer-inner { font-size: 16px; }
}

/* === Desktop (≥1080px) ================================ */
@media (min-width: 1080px) {
  html { scroll-padding-top: 84px; }
  .masthead { padding: 48px 32px 52px; border-bottom-width: 6px; }
  .masthead-logo { width: 240px; margin-bottom: 22px; }
  .masthead .kicker { font-size: 16px; letter-spacing: 1.8px; }
  .masthead h1 { font-size: 52px; line-height: 1.1; }
  .masthead .dek { font-size: 22px; }
  .site-nav .nav-inner { padding: .7rem 1rem; }
  .site-nav a { font-size: 14px; padding: .6rem 1.1rem; }
  .quick-facts { max-width: 1040px; margin-top: 38px; }
  .facts-grid { padding: 24px 32px; gap: 22px; }
  .intro { max-width: 820px; font-size: 20px; margin-top: 36px; padding: 0 32px; }
  .event-callout { max-width: 820px; padding: 30px 36px 32px; }
  .event-callout .ec-title { font-size: 30px; }
  .update-note { max-width: 820px; }
  .race-group { max-width: 1040px; padding: 0 32px 8px; }
  .group-header { padding: 36px 40px 38px; margin: 64px -32px 40px; }
  .group-header .group-label { font-size: 14px; letter-spacing: 1.6px; }
  .group-header .group-title { font-size: 42px; line-height: 1.1; }
  .group-header .group-blurb { font-size: 18px; margin-top: 16px; }
  .race { padding: 34px 40px 22px; margin-bottom: 28px; }
  .race-eyebrow { font-size: 13px; letter-spacing: 1.4px; }
  .race-title { font-size: 32px; }
  .race-meta { font-size: 17px; }
  .candidate { padding: 26px 30px 22px; }
  .candidate-head { gap: 28px; }
  .portrait { width: 116px; height: 116px; }
  .portrait-initials { font-size: 36px; }
  .cand-name { font-size: 26px; }
  .cand-address, .cand-contact { font-size: 17px; }
  .qa > summary { font-size: 15px; padding: 12px 22px; }
  .qa-body { padding: 28px 36px 10px; font-size: 18px; line-height: 1.8; }
  .qa-body h5 { font-size: 18px; margin: 30px 0 10px; }
  .questions { max-width: 1040px; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
  .question { padding: 24px 28px; border-left-width: 6px; }
  .q-amount { font-size: 32px; }
  .q-body { font-size: 18px; }
  .uncontested-list { max-width: 1040px; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .uncontested-race { padding: 18px 24px; }
  .uncontested-race h3 { font-size: 20px; }
  .uncontested-race li { font-size: 16px; }
  .voting-info { max-width: 760px; font-size: 19px; }
  .letters-section { max-width: 820px; padding: 28px 34px 30px; }
  .footer-inner { max-width: 820px; font-size: 17px; }
  .embed-card { width: min(100vw - 48px, 1100px); }
}

/* === Wide desktop (≥1400px) =========================== */
@media (min-width: 1400px) {
  .masthead h1 { font-size: 60px; }
  .race-group { max-width: 1120px; }
  .quick-facts { max-width: 1120px; }
  .questions { max-width: 1120px; }
  .uncontested-list { max-width: 1120px; }
  .voting-info { max-width: 800px; }
  .race { padding: 38px 48px 26px; }
}

/* ============== PRINT ============== */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-nav, .skip-link, .embed-card, .widget-intro { display: none !important; }
  .masthead { background: #fff; color: #000; border-bottom: 3px solid #000; padding: 1rem 0; }
  .masthead-logo { filter: none; }
  .kicker, .race-eyebrow, .group-header .group-label, .q-num { color: #000; }
  .group-header { background: #fff; color: #000; border-top: 3px solid #000; }
  .group-header .group-title, .group-header .group-blurb { color: #000; }
  .race, .candidate, .question, .uncontested-race, .voting-info, .facts-grid {
    box-shadow: none; border: 1px solid #999; break-inside: avoid; page-break-inside: avoid;
  }
  .qa { border-top: 1px solid #ccc; }
  .qa > summary { display: none; }
  .qa-body { display: block !important; border: none; background: #fff; padding-top: 4pt; }
  details.qa[open] > .qa-body, details.qa > .qa-body { display: block !important; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  a { color: #000; text-decoration: none; }
}
