
/* ============================================================
   MDW PLATFORM - resources/css/styles.css
   ------------------------------------------------------------
   THE THEMING CONTRACT + structural baseline only. No campaign
   visual design lives here yet - that is built per project on
   top of these tokens. Rebrand a site by editing :root below.
   ============================================================ */

/* ---- 1. Design tokens (edit per campaign) ---- */
:root {
  /* Brand palette - neutral placeholders; replace per project.
     Keep an "accessible" variant for text/buttons (>= 4.5:1 on its bg). */
  --color-primary:            #002b77;   /* navy — decorative */
  --color-primary-accessible: #002b77;   /* navy text on light (~12:1) */
  --a11y-accent: #b70d0d;                 /* Lavin RED — accessibility menu theme */
  --color-secondary:          #b70d0d;   /* Lavin red */
  --color-accent:             #ffcc33;   /* Lavin gold */
  --color-dark:               #00153c;
  --color-light:              #f1f5fb;
  --color-bg:                 #fbfbfd;
  --color-text:               #2b3346;
  --color-muted:              #586277;
  --color-border:             #dde2eb;

  /* Typography - swap families per project; load the webfont in header.php */
  --font-heading: "Roboto Slab", Georgia, "Times New Roman", serif;
  --font-body:    "Roboto", "Helvetica Neue", Arial, sans-serif;
  --fs-base: 16px;
  --lh-base: 1.6;

  /* Layout */
  --container-max: 1140px;
  --container-pad: 1.25rem;
  --radius: 6px;
  --page-frame: 0px;            /* set e.g. 10px for a colored body frame */
  --page-frame-color: transparent;

  /* Focus + motion */
  --focus-ring: 3px solid var(--color-accent);
}


/* ---- 2. Minimal reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; color-scheme: light only; }

/* Browser "force dark" (esp. Samsung Internet): ship a dark-preference theme so the
   browser renders our (light) styles instead of algorithmically inverting the page. */
@media (prefers-color-scheme: dark) {
  html { color-scheme: only light; }

  input, textarea, select { background-color: #fff; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: var(--page-frame) solid var(--page-frame-color);
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }

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

a { color: var(--color-primary-accessible); }

:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }


/* ---- 3. Structural utilities (not visual design) ---- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* ============================================================
   Component + page styles are added per project BELOW this line.
   ============================================================ */

/* ===== GEORGE LAVIN design layer (tokens + components) ===== */
/* ============================================================
   COLORS — George Lavín for State Senate
   Sampled from the official campaign logo:
     navy  #002b77   red  #b70d0d   gold  #ffcc33
   Base ramps + semantic aliases. Patriotic red/white/blue with
   a gold accent for energy and emphasis.
   ============================================================ */

:root {
  /* ---- Brand core (exact logo values) ---- */
  --navy:  #002b77;   /* "George" / primary brand */
  --red:   #b70d0d;   /* "LAVIN"  / action + urgency */
  --gold:  #ffcc33;   /* the bar  / accent + highlight */
  --white: #ffffff;

  /* ---- Navy ramp ---- */
  --navy-900: #00153c;
  --navy-800: #001e54;
  --navy-700: #002b77;  /* base */
  --navy-600: #103a8c;
  --navy-500: #2150a6;
  --navy-400: #4a73c0;
  --navy-300: #86a3d8;
  --navy-200: #c1d0ec;
  --navy-100: #e4ebf6;
  --navy-050: #f1f5fb;

  /* ---- Red ramp ---- */
  --red-900: #6e0707;
  --red-800: #8f0a0a;
  --red-700: #b70d0d;  /* base */
  --red-600: #cf1414;
  --red-500: #e02525;
  --red-300: #f08a8a;
  --red-100: #fbe3e3;
  --red-050: #fdf1f1;

  /* ---- Gold ramp ---- */
  --gold-700: #c79600;
  --gold-600: #e6a800;
  --gold-500: #ffcc33;  /* base */
  --gold-400: #ffd95e;
  --gold-300: #ffe492;
  --gold-100: #fff4cf;
  --gold-050: #fffaeb;

  /* ---- Neutrals (slightly warm, paper-leaning) ---- */
  --ink:      #14171f;
  --slate-900:#1c2230;
  --slate-800:#2b3346;
  --slate-700:#3e4860;
  --slate-600:#586277;
  --slate-500:#76809a;
  --slate-400:#9aa3b8;
  --slate-300:#c2c9d6;
  --slate-200:#dde2eb;
  --slate-100:#eef1f6;
  --slate-050:#f7f8fb;
  --paper:    #fbfbfd;

  /* ---- Functional / status ---- */
  --success: #1f8a4c;
  --success-bg: #e6f4ec;
  --warning: #c98a00;
  --warning-bg: #fdf3da;
  --danger:  #b70d0d;
  --danger-bg: #fbe3e3;
  --info:    #2150a6;
  --info-bg: #e4ebf6;

  /* ============================================================
     SEMANTIC ALIASES — reference these in components
     ============================================================ */

  /* Text */
  --text-strong:   var(--navy-700);
  --text-body:     var(--slate-800);
  --text-muted:    var(--slate-600);
  --text-faint:    var(--slate-500);
  --text-on-navy:  var(--white);
  --text-on-red:   var(--white);
  --text-on-gold:  var(--navy-700);
  --text-link:     var(--red-700);

  /* Surfaces */
  --surface-page:    var(--paper);
  --surface-card:    var(--white);
  --surface-sunken:  var(--slate-050);
  --surface-navy:    var(--navy-700);
  --surface-navy-deep: var(--navy-900);
  --surface-red:     var(--red-700);
  --surface-gold:    var(--gold-500);
  --surface-faint:   var(--navy-050);

  /* Borders */
  --border-subtle:  var(--slate-200);
  --border-default: var(--slate-300);
  --border-strong:  var(--navy-700);
  --border-on-navy: rgba(255,255,255,0.18);

  /* Accents */
  --accent-primary:   var(--red-700);   /* main CTA */
  --accent-primary-hover: var(--red-600);
  --accent-secondary: var(--navy-700);
  --accent-highlight: var(--gold-500);

  /* Focus ring */
  --focus-ring: var(--gold-500);
}


/* ============================================================
   TYPOGRAPHY — George Lavín for State Senate
   Three roles drawn from the logo:
     • Display  → heavy grotesque ("LAVIN"), uppercase impact
     • Brand    → rounded geometric ("George"), warm voice
     • Body     → Libre Franklin, the American campaign workhorse
   ============================================================ */

:root {
  /* ---- Families (Shevrin-style: slab-serif headlines + Roboto UI) ----
     Display/brand derive from the kit's --font-heading so the a11y
     dyslexia override (which remaps --font-heading/--font-body) reaches
     every headline. Same slab value as before in normal mode. */
  --font-display: var(--font-heading);  /* heavy slab headlines */
  --font-brand:   var(--font-heading);  /* subheads, card titles */
  --font-body:    "Roboto", "Helvetica Neue", Arial, sans-serif;     /* body, UI, eyebrows, nav */
  --font-mono:    ui-monospace, "SFMono-Regular", "Menlo", monospace;

  /* ---- Weights ---- */
  --fw-light: 300;       /* @kind font */
  --fw-regular: 400;     /* @kind font */
  --fw-medium: 500;      /* @kind font */
  --fw-semibold: 600;    /* @kind font */
  --fw-bold: 700;        /* @kind font */
  --fw-extrabold: 800;   /* @kind font */
  --fw-black: 900;       /* @kind font */

  /* ---- Type scale (display-forward, modular ~1.25) ---- */
  --fs-display-2xl: 5.5rem;   /* 88px — hero yard-sign headline */
  --fs-display-xl:  4rem;     /* 64px */
  --fs-display-lg:  3rem;     /* 48px */
  --fs-h1: 2.5rem;            /* 40px */
  --fs-h2: 2rem;             /* 32px */
  --fs-h3: 1.5rem;           /* 24px */
  --fs-h4: 1.25rem;          /* 20px */
  --fs-body-lg: 1.125rem;    /* 18px */
  --fs-body: 1rem;           /* 16px */
  --fs-body-sm: 0.875rem;    /* 14px */
  --fs-eyebrow: 0.8125rem;   /* 13px */
  --fs-caption: 0.75rem;     /* 12px */

  /* ---- Line heights ---- */
  --lh-tight: 0.95;     /* @kind font */
  --lh-snug: 1.12;      /* @kind font */
  --lh-normal: 1.5;     /* @kind font */
  --lh-relaxed: 1.65;   /* @kind font */

  /* ---- Letter spacing ---- */
  --ls-display: -0.01em;  /* @kind font */
  --ls-tight: -0.02em;    /* @kind font */
  --ls-normal: 0;         /* @kind font */
  --ls-eyebrow: 0.14em;   /* @kind font */
  --ls-caps: 0.06em;      /* @kind font */
}


/* ============================================================
   Optional helper classes (consumers may use directly)
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-display-lg);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--text-strong);
}

.t-brand {
  font-family: var(--font-brand);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--text-strong);
}

.t-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--red-700);
}

.t-body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
}


/* ============================================================
   SPACING & SIZING — George Lavín for State Senate
   4px base grid. Generous, signage-like rhythm.
   ============================================================ */

:root {
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 2.5rem;    /* 40 */
  --space-8: 3rem;      /* 48 */
  --space-9: 4rem;      /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-12: 6rem;     /* 96 */
  --space-16: 8rem;     /* 128 */

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: var(--space-5);
  --section-y: var(--space-12);
}


/* ============================================================
   EFFECTS — radii, borders, shadows, motion
   George Lavín for State Senate
   Sturdy, confident, signage-inspired. Modest corners, crisp
   borders, navy-tinted shadows, quick decisive motion.
   ============================================================ */

:root {
  /* ---- Radii ---- */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* ---- Border widths ---- */
  --bw-hair: 1px;
  --bw-base: 1.5px;
  --bw-thick: 3px;       /* emphatic, campaign-rule */

  /* ---- Shadows (navy-tinted, never neutral gray) ---- */
  --shadow-xs: 0 1px 2px rgba(0,21,60,0.08);
  --shadow-sm: 0 2px 6px rgba(0,21,60,0.10);
  --shadow-md: 0 6px 18px rgba(0,21,60,0.12);
  --shadow-lg: 0 14px 38px rgba(0,21,60,0.16);
  --shadow-xl: 0 28px 64px rgba(0,21,60,0.20);
  /* Pressed CTAs use a hard "stacked sign" shadow */
  --shadow-block: 4px 4px 0 var(--navy-900);
  --shadow-block-red: 4px 4px 0 var(--red-900);

  /* ---- Focus ---- */
  --focus-width: 3px;     /* @kind spacing */
  --focus-offset: 2px;    /* @kind spacing */

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast: 120ms;      /* @kind other */
  --dur-base: 200ms;      /* @kind other */
  --dur-slow: 320ms;      /* @kind other */

  /* ---- Decorative ---- */
  --bar-gold: var(--gold-500);   /* the "FOR STATE SENATE" bar */
  --rule-thick: var(--bw-thick) solid var(--navy-700);
}


/* Endorsements */

/* =========================================================
   ENDORSEMENTS SLIDER
   ========================================================= */

body.page-endorsements .page-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.endorsement__image {
    width: 100%;
    max-width: 300px;
    height: 150px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-endorsements .endorsement__title {
    margin-top: 10px;
    margin-bottom: 10px;
}

.endorsement__image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.george-endorsement-slider {
    position: relative;
}

.endorsement-slider__viewport {
    position: relative;
}

.george-endorsement-slide {
    display: none;
    opacity: 0;
}

.george-endorsement-slide.is-active {
    display: block;
    opacity: 1;
    animation: endorsementSlideIn 0.75s ease-out;
}

@keyframes endorsementSlideIn {
    from {
        opacity: 0;
        transform: translateX(380px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .george-endorsement-slide.is-active {
        animation: none;
    }
}

.endorsement-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

.endorsement-slider__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.endorsement-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
}

.endorsement-slider__dot.is-active {
    background: #0b1f3a;
}

.endorsement-slider__arrow {
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.endorsement-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.endorsement-slider__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.endorsement-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
}

.endorsement-slider__dot.is-active {
    background: #0b1f3a;
}

.endorsement-slider__arrow {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.endorsement__button {
    background: #0b1f3a;
    color: #fff;
    border: 2px solid #0b1f3a;
}
a.endorsement__button,
a.endorsement__button:link,
a.endorsement__button:visited {
    color: #fff !important;
    text-decoration: none;
}

a.endorsement__button:hover,
a.endorsement__button:focus,
a.endorsement__button:active {
    color: #fff !important;
    text-decoration: none;
	background-color: #c62828;
}

.endorsement__button:hover {
    background: #0b1f3a;
    color: #fff;
}

/* base supplements */
html { scroll-behavior: smooth; }

a { color: var(--text-link); text-decoration: none; }

a:hover { text-decoration: underline; }

::selection { background: var(--gold-300); color: var(--navy-900); }

@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; }
}


/* components (from original site.css; obsolete .lang-toggle rule dropped, media block closed) */
/* ============================================================
   George Lavín for State Senate — Website
   Layout & aesthetic emulate shevrinjones.com (clean white,
   heavy slab-serif headlines, full-bleed photography, rounded
   buttons, prominent signup + donate) using Lavín brand colors.
   ============================================================ */

.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }

.container--narrow { max-width: 900px; }


/* ---------- Video background (shared) ---------- */
.has-video-bg { position: relative; isolation: isolate; }

.video-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background-size: cover; background-position: center;
}

.video-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.video-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,21,60,0.80) 0%, rgba(0,30,84,0.74) 55%, rgba(0,21,60,0.88) 100%),
    radial-gradient(120% 90% at 50% 0%, rgba(0,43,119,0.20), rgba(0,21,60,0.55));
}

.has-video-bg > *:not(.video-bg) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) { .video-bg video { display: none; }
}


/* ---------- Buttons (rounded, slab/UI) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; user-select: none; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn:hover { text-decoration: none; }

.btn:active { transform: translateY(1px); }

.btn--sm { padding: 10px 20px; font-size: 13px; }

.btn--lg { padding: 18px 40px; font-size: 16px; }

.btn--block { display: flex; width: 100%; }

.btn .star { font-size: 0.95em; line-height: 1; margin-top: -1px; }


.btn--primary   { background: var(--red-700);  color: #fff; }

.btn--primary:hover   { background: var(--red-600); }

.btn--secondary { background: var(--navy-700); color: #fff; }

.btn--secondary:hover { background: var(--navy-600); }

.btn--gold      { background: var(--gold-500); color: var(--navy-700); }

.btn--gold:hover      { background: var(--gold-400); }

.btn--outline   { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }

.btn--outline:hover   { background: var(--navy-700); color: #fff; }

.btn--ghost     { background: transparent; color: var(--navy-700); border-color: transparent; }

.btn--ghost:hover     { background: var(--navy-050); }

.btn--on-navy   { background: var(--gold-500); color: var(--navy-700); }

.btn--on-navy:hover   { background: var(--gold-400); }

.btn--white-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }

.btn--white-outline:hover { background: #fff; color: var(--navy-700); border-color: #fff; }


/* ---------- Badge / eyebrow ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge--navy { background: var(--navy-700); color: #fff; }

.badge--gold { background: var(--gold-500); color: var(--navy-700); }

.badge--soft { background: var(--navy-050); color: var(--navy-700); border-color: var(--navy-100); }

.badge .star { margin-top: -1px; }


.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-700); margin-bottom: 16px;
}

.eyebrow--on-dark { color: var(--gold-500); }


/* ---------- Sections / headings ---------- */
.section { padding-block: var(--section-y); }

.section--paper { background: var(--surface-page); }

.section--faint { background: var(--surface-faint); }

.section--navy  { background: var(--navy-700); }

.section--navy-deep { background: var(--navy-900); }


.sec-head { max-width: 64ch; margin-inline: auto; text-align: center; }

.sec-head.left { text-align: left; margin-inline: 0; max-width: none; }

.sec-head .eyebrow { justify-content: center; }

.sec-head.left .eyebrow { justify-content: flex-start; }

.sec-title {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.015em;
  color: var(--navy-700);
}

.sec-title--on-dark { color: #fff; }

.sec-kicker {
  margin: 18px auto 0; max-width: 60ch;
  font-family: var(--font-body); font-size: 18px; line-height: 1.65;
  color: var(--text-muted);
}

.sec-kicker--on-dark { color: rgba(255,255,255,0.82); }


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.site-header__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.site-header__logo { display: flex; align-items: center; }

.site-header__logo img { height: 50px; display: block; }

.site-header__logo:hover { text-decoration: none; }


/* ---- Brand ribbon: navy banner behind the logo that bleeds to the
   top of the header and hangs below it onto the section underneath. ---- */
.brand-ribbon {
  position: relative; align-self: stretch; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: 26px; z-index: 1; text-decoration: none;
  /* drop-shadow lives on the element (not the z-index:-1 ::before, whose shadow
     paints behind everything); it follows the clipped pennant silhouette */
  filter: drop-shadow(0 8px 14px rgba(0,11,32,0.45));
}

.brand-ribbon:hover { text-decoration: none; }

.brand-ribbon::before {
  content: ""; position: absolute; left: 0; right: 0;
  top: -14px;                  /* = header inner vertical padding → flush to header top */
  height: calc(100% + 76px);   /* hang ~48px below the header bar */
  background: var(--navy-700);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px));
  z-index: -1;
}

/* logo sits centered within the full banner — nudged down into the hang.
   width:auto + max-width:none keep the logo's true aspect ratio (the global
   img{max-width:100%} reset would otherwise squish it in a tight flex row). */
.brand-ribbon img {
  position: relative; height: 95px; width: auto; max-width: none;
  display: block; transform: translateY(20px);
}

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-700);
}

.main-nav a:hover { color: var(--red-700); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* ES / EN language toggle */
.lang-toggle {
  flex: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; color: var(--navy-700);
  background: transparent; border: 2px solid var(--navy-200);
  border-radius: var(--radius-pill); padding: 8px 14px; line-height: 1;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.lang-toggle:hover { border-color: var(--navy-700); background: var(--navy-050); }

.lang-toggle.is-active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--navy-700); }


/* ---------- Hero (full-bleed split: media + signup) ---------- */
.hero { position: relative; background: var(--navy-700); overflow: hidden; }

.hero--split {
  display: grid; grid-template-columns: minmax(380px, 0.82fr) 1.18fr;
  min-height: min(90vh, 820px);
}

.hero__content {
  position: relative; display: flex; align-items: center;
  background: transparent; color: #fff;
  padding: var(--space-10) clamp(24px, 5vw, 72px);
  overflow: hidden;
}

.hero .hero__star {
  position: absolute; right: -60px; top: -50px; width: 300px;
  opacity: 0.06; transform: rotate(-8deg); pointer-events: none; z-index: 1;
}

.hero__inner { position: relative; z-index: 1; max-width: 560px; width: 100%; }

.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.02;
  letter-spacing: -0.02em; margin: 18px 0 0; color: #fff;
}

.hero__title .accent { color: var(--gold-500); }

.hero__lede {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: rgba(255,255,255,0.85); max-width: 48ch; margin: 20px 0 0;
}

.hero__media {
  position: relative; overflow: hidden;
  background: transparent;   /* figure stands directly on the hero video */
}

/* Figure: top-anchored with headroom above his head; the hero's bottom edge
   (overflow:hidden on .hero__media) crops his lower body. The bigger he is, the
   higher the crop lands — wide screens cut around the chest/belly, while the
   smaller sizes at narrower (tablet) widths reveal more of his body. Anchored
   left of its column so he stays close to the content. */
.hero__media img {
  position: absolute; top: 7%; bottom: auto; left: 3%; transform: none;
  height: 160%; width: auto; max-width: none; display: block;
}

@media (max-width: 1200px) and (min-width: 901px) {
  .hero__media img { height: 135%; }
}

@media (max-width: 1000px) and (min-width: 901px) {
  .hero__media img { height: 115%; }
}

/* Desktop & tablet: two equal columns — figure LEFT (right-justified toward the
   center), copy RIGHT (left-justified toward the center). */
@media (min-width: 901px) {
  .hero--split { grid-template-columns: 1fr 1fr; }

  .hero__media { order: 1; }

  .hero__content { order: 2; justify-content: flex-start; }

  .hero__media img { left: auto; right: 0; }
}


/* ---------- Signup form (hero + bands) ---------- */
.signup { margin-top: 28px; }

.signup__row { display: flex; gap: 10px; flex-wrap: wrap; }

.signup__row input {
  flex: 1 1 200px; min-width: 0;
  font-family: var(--font-body); font-size: 16px; color: var(--text-body);
  background: #fff; padding: 15px 18px;
  border: 2px solid transparent; border-radius: var(--radius-md);
}

.signup__row input.zip { flex: 0 1 130px; }

.signup__row input:focus { outline: var(--focus-width) solid var(--gold-500); outline-offset: 1px; }

.signup .btn { flex: 0 0 auto; }

.signup__note { font-size: 12px; color: rgba(255,255,255,0.6); margin: 12px 0 0; max-width: 52ch; }


/* social buttons under the hero email sign-up */
.hero__social { display: flex; gap: 10px; margin-top: 20px; }

.hero__social a {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); color: #fff;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.hero__social a:hover { background: var(--gold-500); color: var(--navy-900); }

.hero__social svg { width: 19px; height: 19px; }

.signup__note.on-light { color: var(--text-faint); }

.signup__thanks {
  margin-top: 8px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2); border-left: var(--bw-thick) solid var(--gold-500);
  border-radius: var(--radius-md); padding: 18px 20px;
}

.signup__thanks h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--gold-500); margin: 0 0 4px; }

.signup__thanks p { margin: 0; color: rgba(255,255,255,0.88); font-size: 15px; }

.hidden { display: none !important; }


/* ---------- Meet the candidate ---------- */
.meet { background: var(--surface-page); padding-block: var(--section-y); }

.meet__grid {
  max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-9); align-items: center;
}

.meet__media { position: relative; order: 2; }
   /* photo on the right column */
.meet__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block;
}

.meet__badge {
  position: absolute; left: -18px; bottom: 50px;
  background: var(--gold-500); color: var(--navy-700);
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}

.meet__tagline {
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-700); margin: 0 0 14px;
}

.meet__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--navy-700); margin: 0 0 22px;
}

.meet__lead { font-family: var(--font-body); font-size: 19px; line-height: 1.7; color: var(--navy-700); font-weight: 500; margin: 0 0 16px; }

.meet__body p { font-size: 17px; line-height: 1.75; color: var(--text-body); margin: 0 0 16px; }

.meet__cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }


/* ---------- Priorities — issue cards ---------- */
.issues-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5); margin-top: var(--space-8);
}

.issue-card {
  display: block; text-decoration: none;
  background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.issue-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.issue-card__icon {
  width: 54px; height: 54px; border-radius: var(--radius-pill);
  background: var(--navy-050); color: var(--red-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
  transition: color var(--dur-fast) var(--ease-out);
}

/* all stars red; turn blue (navy) on hover */
.issue-card .issue-card__icon { color: var(--red-700); }

.issue-card:hover .issue-card__icon { color: var(--navy-700); }

.issue-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--navy-700); }

.issue-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }


/* ---------- Record — stat band ---------- */
.record { position: relative; background: var(--navy-700); padding: var(--space-10) var(--gutter); }

.stats-grid {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-7); align-items: start; text-align: center;
}

.stat__value {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px; justify-content: center;
}

.stat__value .affix { font-size: 0.5em; font-weight: 800; }

.stat--white .stat__value { color: var(--white); }

.stat--gold  .stat__value { color: var(--gold-500); }

.stat__label {
  margin-top: 10px; font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}


/* ---------- Endorsements ---------- */
.endorse-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5); margin-top: var(--space-8); align-items: stretch;
}

.endorse-card {
  margin: 0; background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px;
}

.endorse-card--navy { background: var(--navy-700); border: none; }

.endorse-card__mark { font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 0.6; color: var(--gold-500); height: 30px; }

.endorse-card blockquote { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 1.55; color: var(--slate-800); }

.endorse-card--navy blockquote { color: rgba(255,255,255,0.95); }

.endorse-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }

.endorse-card__avatar {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--navy-100); flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--navy-700); font-family: var(--font-display); font-weight: 700;
}

.endorse-card--navy .endorse-card__avatar { background: var(--navy-500); color: #fff; }

.endorse-card__name { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--navy-700); }

.endorse-card--navy .endorse-card__name { color: #fff; }

.endorse-card__role { font-size: 13px; color: var(--text-faint); }

.endorse-card--navy .endorse-card__role { color: rgba(255,255,255,0.7); }

.endorse-badges { display: flex; justify-content: center; gap: 10px; margin-top: var(--space-7); flex-wrap: wrap; }


/* ---------- Parallax sections (fixed background scroll) ---------- */
.parallax {
  position: relative; isolation: isolate;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}

.parallax > * { position: relative; z-index: 1; }

.parallax::before { content: ""; position: absolute; inset: 0; z-index: 0; }

.parallax--navy  { background-image: url("../img/district-aerial-2.jpg"); }

.parallax--navy::before {
  background: linear-gradient(180deg, rgba(0,21,60,0.86) 0%, rgba(0,30,84,0.80) 100%);
}

/* iOS/Android ignore fixed attachment and can jank — fall back to scroll */
@media (max-width: 900px), (hover: none) {
  .parallax { background-attachment: scroll; }
}


/* white abstract gradient (volunteer section — no photo) */
.section--gradient {
  background:
    radial-gradient(120% 90% at 12% 0%, var(--navy-050) 0%, rgba(241,245,251,0) 45%),
    radial-gradient(110% 80% at 100% 100%, var(--gold-050) 0%, rgba(255,250,235,0) 42%),
    linear-gradient(160deg, #ffffff 0%, var(--surface-faint) 55%, #ffffff 100%);
}


/* single centered card / block inside the parallax sections */
.section-card { max-width: 560px; margin: var(--space-8) auto 0; }

.donate-block { max-width: 560px; margin: var(--space-8) auto 0; }


/* ---------- Get Involved (donate + volunteer) ---------- */
.involved-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
  margin-top: var(--space-8); align-items: start;
}

.panel { border-radius: var(--radius-xl); padding: var(--space-7); }

.panel--donate { background: var(--navy-700); }

.panel--volunteer { background: var(--white); box-shadow: var(--shadow-lg); }

.panel h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0 0 4px; }

.panel--donate h3 { color: #fff; }

.panel--volunteer h3 { color: var(--navy-700); margin-bottom: 18px; }

.panel--donate p.sub { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0 0 20px; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.amount-chip {
  display: block; padding: 16px 0; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  text-align: center; text-decoration: none; border: 2px solid rgba(255,255,255,0.28);
  background: transparent; color: #fff;
  transition: all var(--dur-fast) var(--ease-out);
}

.amount-chip:hover { border-color: var(--gold-400); }

.amount-chip.is-active { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-700); }

.amount-chip--any { background: #b70d0d; border-color: #b70d0d; color: #fff; }

.amount-chip--any:hover { border-color: #b70d0d; filter: brightness(1.1); }

.amount-other {
  border-radius: var(--radius-pill); border: 2px solid rgba(255,255,255,0.28);
  background: transparent; color: #fff; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; padding: 0 8px;
}

.amount-other::placeholder { color: rgba(255,255,255,0.6); }

.donate-note { color: rgba(255,255,255,0.5); font-size: 12px; margin: 16px 0 0; text-align: center; }


.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--navy-700); letter-spacing: 0.04em; text-transform: uppercase; }

.field input {
  font-family: var(--font-body); font-size: 16px; color: var(--text-body);
  background: var(--white); padding: 13px 16px;
  border: 2px solid var(--border-default); border-radius: var(--radius-md);
  width: 100%; transition: border-color var(--dur-fast) var(--ease-out);
}

.field input:focus { outline: var(--focus-width) solid var(--gold-300); border-color: var(--navy-700); }

.form-stack { display: flex; flex-direction: column; gap: 14px; }

.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }


.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--font-body); font-size: 15px; color: var(--text-body); }

.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check__box {
  width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 2px solid var(--border-default); background: var(--white);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.check__box svg { display: none; }

.check input:checked + .check__box { background: var(--navy-700); border-color: var(--navy-700); }

.check input:checked + .check__box svg { display: block; }

.check input:focus-visible + .check__box { outline: var(--focus-width) solid var(--gold-300); outline-offset: var(--focus-offset); }


.thanks { text-align: center; padding: 32px 8px; }

.thanks img { width: 56px; margin-bottom: 16px; }

.thanks h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--navy-700); margin: 0 0 8px; }

.thanks p { color: var(--text-muted); margin: 0 0 20px; }


/* ---------- Signup CTA band ---------- */
.cta-band { position: relative; background: var(--navy-900); color: #fff; padding: var(--section-y) var(--gutter); text-align: center; overflow: hidden; }

.cta-band__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.cta-band .signup { max-width: 560px; margin-inline: auto; }

.cta-band .signup__note { margin-inline: auto; }


/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.8); padding: var(--space-10) var(--gutter) var(--space-6); }

.footer-hero { text-align: center; padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: var(--space-8); }

.footer-hero h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.01em;
  color: #fff; margin: 8px 0 10px;
}

.footer-donate__sub { color: rgba(255,255,255,0.78); font-size: 17px; line-height: 1.55; max-width: 52ch; margin: 0 auto; }

.footer-hero .donate-block { margin-top: var(--space-6); }

.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: var(--space-7); }

.footer-social a {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff;
  transition: background var(--dur-fast) var(--ease-out);
}

.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }

.footer-social svg { width: 20px; height: 20px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); }

.site-footer__brand { text-align: center; display: flex; flex-direction: column; align-items: center; }

.site-footer__brand img { height: 120px; display: block; margin-bottom: 22px; }

.footer-address {
  font-size: 13px; line-height: 1.55; margin: 0 0 12px; text-align: center;
  color: rgba(255,255,255,0.72); letter-spacing: 0.02em;
}

.footer-disclaimer {
  font-size: 13px; line-height: 1.55; max-width: 46ch; margin: 0; text-align: center;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-md); padding: 14px 18px;
}

.footer-col__h { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 14px; }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.footer-col a { color: rgba(255,255,255,0.8); font-size: 14px; }

.footer-bar { border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--space-8); padding-top: var(--space-5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.footer-bar span { font-size: 13px; color: rgba(255,255,255,0.55); }


/* MDW agency credit, centered beneath the footer */
.footer-credit {
  background: var(--navy-900); text-align: center;
  padding: var(--space-7) var(--gutter);
  margin-top: var(--space-6);
}

.footer-credit img { height: 56px; width: auto; display: inline-block; opacity: 0.7; transition: opacity var(--dur-fast) var(--ease-out); }

.footer-credit a:hover img { opacity: 1; }


/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .issues-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }

  .endorse-grid { grid-template-columns: 1fr; }

  .involved-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .meet__grid { grid-template-columns: 1fr; gap: var(--space-7); }

  .meet__media { max-width: 420px; order: 2; }
   /* photo below the bio copy on mobile */
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md); padding: 8px 0;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a { width: 100%; padding: 14px var(--gutter); }

  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  /* mobile: full (uncropped) figure anchored bottom-right; content overlays on
     the left over a fading scrim so the photo can bleed underneath it */
  .hero--split { display: flex; position: relative; min-height: 80vh; }

  .hero--split .hero__media { display: contents; }

  .hero--split .hero__media img {
    position: absolute; right: -8%; bottom: 0; left: auto; top: auto; z-index: 1;
    height: 88%; width: auto; max-width: none; object-fit: contain; transform: none;
  }

  .hero--split .hero__content {
    position: relative; z-index: 2; flex: 0 0 62%; max-width: 62%;
    padding: var(--space-6) var(--space-4);
    background: linear-gradient(90deg, rgba(0,17,48,0.94) 48%, rgba(0,17,48,0.55) 76%, rgba(0,17,48,0) 100%);
  }

  .hero__inner { max-width: none; }

  .hero .eyebrow { font-size: 10px; letter-spacing: 0.1em; margin-bottom: 8px; }

  .hero__title { font-size: clamp(1.45rem, 6.2vw, 2.1rem); margin-top: 8px; }

  .hero__lede { font-size: 13px; line-height: 1.45; margin-top: 12px; max-width: none; }

  /* compact sign-up form to fit the reduced column */
  .hero .signup { margin-top: 16px; }

  .hero .signup__row { gap: 8px; }

  .hero .signup__row input,
  .hero .signup__row input.zip { flex: 1 1 100%; font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm); }

  .hero .signup .btn { width: 100%; padding: 11px 16px; font-size: 12px; letter-spacing: 0.05em; }

  .hero .signup__note { font-size: 10px; line-height: 1.4; margin-top: 8px; }
}

@media (max-width: 560px) {
  .issues-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bar { flex-direction: column; }

  .signup__row input.zip { flex: 1 1 200px; }

  /* shrink the ribbon logo so it fits beside the Donate button (aspect kept) */
  .brand-ribbon { padding-inline: 18px; }

  .brand-ribbon img { height: 62px; transform: translateY(14px); }

  /* compact header controls so logo + ES toggle + Donate + menu all fit */
  .site-header__inner { gap: 10px; }
}


/* ===== KIT INTEGRATION — form errors =====
   The .header-cta .lengua* rules that used to live here are GONE (2026-08-20
   i18n parity migration). They styled the in-nav lengua-switcher.php as a pill
   toggle for the no-reload swap; that component, its JS and the data-t
   attributes it read are all retired. The picker is now the kit's floating
   .lengua-fab (styles further up this file), so there is nothing in
   .header-cta to style. .mobile-menu__lang is untouched and still works. */
.signup__error { color: var(--gold-400); font-weight: 700; font-size: 13px; margin: 0 0 8px; }


/* ===== Header nav: right-aligned, 20px from the language pill, natural case ===== */
.site-header__inner { gap: 20px; }

.main-nav { margin-left: auto; }

.main-nav a { text-transform: none; }


/* ============================================================
   SUBPAGE TEMPLATE — navy+photo hero (no headshot) + content
   ============================================================ */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-700); text-align: center; padding-block: clamp(3rem, 8vw, 5.5rem); }

.page-hero .container { position: relative; z-index: 1; }

.page-hero .eyebrow--on-dark { justify-content: center; margin-bottom: 12px; }

.page-hero__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.02em; color: #fff; margin: 0; }

.page-hero__lede { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 60ch; margin: 16px auto 0; }


.page-section { padding-block: var(--section-y); background: var(--surface-page); }


/* Long-form prose (legal + generic content pages) */
.page-content, .legal { color: var(--text-body); }

.legal__updated { color: var(--text-faint); font-size: 14px; margin: 0 0 28px; }

.page-section .legal h2, .page-content h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 2.5vw, 1.75rem); color: var(--navy-700); margin: 34px 0 12px; letter-spacing: -0.01em; }

.page-section .legal h3, .page-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy-700); margin: 24px 0 8px; }

.page-section .legal p, .page-content p { font-size: 16.5px; line-height: 1.75; margin: 0 0 16px; }

.page-section .legal ul, .page-content ul { margin: 0 0 16px; padding-left: 1.25rem; }

.page-section .legal li, .page-content li { font-size: 16.5px; line-height: 1.7; margin-bottom: 8px; }

.page-section .legal a, .page-content a { color: var(--red-700); text-decoration: underline; }

.legal__disclaimer { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-muted); font-size: 14px; }


/* Footer legal links */
.site-footer__legal { display: flex; justify-content: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }

.site-footer__legal a { color: rgba(255,255,255,0.72); font-size: 13px; text-decoration: none; }

.site-footer__legal a:hover { color: #fff; text-decoration: underline; }


/* ===== Header vertical alignment — center nav with the pill/donate row ===== */
.site-header__inner { align-items: center; }

.site-header__inner > .main-nav,
.site-header__inner > .header-cta { align-self: center; }

.main-nav a { line-height: 1; }


/* ===== About page — B&W candidate photo between paragraphs ===== */
.about-figure { margin: 30px auto; max-width: 440px; }

.about-figure .about-photo { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }


/* Optical nudge: centered nav text reads slightly high next to the filled
   pill/donate buttons — drop it a touch to visually center. */
.site-header .main-nav { position: relative; top: 2px; }


/* ============================================================
   PRIORITIES / PLATFORM PAGE — question sections + accordions
   ============================================================ */
.platform-q { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy-700); margin: 46px 0 6px; letter-spacing: -0.01em; }

.platform-q__star { color: var(--red-700); font-size: 0.85em; flex: none; }

.platform-q__lede { font-size: 16.5px; line-height: 1.7; color: var(--text-muted); margin: 0 0 18px; }


.accordion { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); margin-bottom: 12px; }

.accordion__head { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy-700); }

.accordion__head::-webkit-details-marker { display: none; }

.accordion__head:hover { color: var(--red-700); }

.accordion__head:focus-visible { outline: var(--focus-width) solid var(--gold-500); outline-offset: 2px; }

.accordion__title { display: inline-flex; align-items: center; }

.accordion__ico { color: var(--red-700); margin-right: 12px; font-size: 1.05em; width: 1.15em; text-align: center; flex: none; }

.accordion__icon { color: var(--red-700); font-size: 28px; line-height: 1; font-weight: 400; flex: none; transition: transform var(--dur-base) var(--ease-out); }

.accordion[open] .accordion__icon { transform: rotate(45deg); }

.accordion__body { padding: 0 22px 20px; }

.accordion__body p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--text-body); }

.accordion__body ul { margin: 0; padding-left: 1.2rem; }

.accordion__body li { font-size: 15.5px; line-height: 1.6; margin-bottom: 8px; color: var(--text-body); }


.platform-promise { text-align: center; max-width: 62ch; margin: 48px auto 0; padding-top: 34px; border-top: 1px solid var(--border-subtle); }

.platform-promise .eyebrow { justify-content: center; }

.platform-promise__quote { font-family: var(--font-body); font-size: 18px; line-height: 1.7; color: var(--navy-700); font-weight: 500; }

.platform-promise__sign { font-family: var(--font-display); font-weight: 700; color: var(--red-700); margin-top: 10px; }

/* The companion rule here hid .header-cta .lengua below 980px, because the
   mobile menu carried its own .mobile-menu__lang link. Both the in-nav switcher
   and that rule are gone (2026-08-20 i18n migration) — the floating .lengua-fab
   is visible at every width, and .mobile-menu__lang still sits in the drawer. */

/* Guard against horizontal overflow on mobile (bleeding hero art, etc.) */
html, body { overflow-x: clip; }


/* ===== Section CTA + Meet gap + mobile full-width ===== */
.sec-cta { text-align: center; margin-top: var(--space-8); }

.meet { padding-bottom: 30px; }

@media (max-width: 600px) {
  .meet__cta .btn { width: 100%; }

  .sec-cta .btn { width: 100%; }
}


/* Card / chip links must not underline on hover (they're block/button links) */
.issue-card:hover, .issue-card:hover h3, .amount-chip:hover { text-decoration: none; }


/* ===== Accordion open/close animation (progressive enhancement) =====
   Animates height via ::details-content; interpolate-size lets it ease
   to/from `auto`. Works for the item opening AND the one auto-closing in
   the exclusive group. Browsers without support simply snap (no harm),
   and reduced-motion users get instant toggles. */
:root { interpolate-size: allow-keywords; }

@media (prefers-reduced-motion: no-preference) {
  .accordion::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .32s var(--ease-out), content-visibility .32s allow-discrete;
  }

  .accordion[open]::details-content { block-size: auto; }
}


/* Shared menu theme; interaction and layout are core-owned. */
:root { --mm-bg: var(--navy-900); --mm-fg: #fff; --mm-accent: var(--color-accent); --mm-font: var(--font-display); }
