/* ============================================================
   Christine Barber for State Senate
   Shared design system — built from the campaign style guide.
   Warm core, brand-bold accents. Navy + white dominant pair.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette (from logo + mailer) */
  --navy:      #013C74;
  --navy-deep: #012c56;
  --sky:       #2AACE3;
  --teal:      #20AC9F;
  --teal-deep: #178a80;
  --yellow:    #F2F139;  /* highlighter, BEHIND key text only */
  --gold:      #8a7700;  /* darkened yellow for stat numbers on paper */
  --coral:     #C9543B;
  --coral-deep:#ab4329;
  --paper:     #FBF9F5;
  --paper-2:   #F4F1EA;  /* subtle alternating band */
  --ink:       #1E2530;
  --slate:     #5E6675;
  --hairline:  #DCD9D0;
  --white:     #ffffff;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 132px);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(1,40,80,.06), 0 2px 6px rgba(1,40,80,.05);
  --shadow-md: 0 6px 22px rgba(1,40,80,.10);
  --shadow-lg: 0 18px 50px rgba(1,40,80,.16);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.band--paper { background: var(--paper); }
.band--paper2 { background: var(--paper-2); }
.band--navy  { background: var(--navy); color: var(--white); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: var(--white); }
.band--teal  { background: var(--teal); color: var(--white); }

/* paper grain — barely there */
.grain { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* ---------- Type utilities ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.band--navy .eyebrow { color: var(--sky); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; display: inline-block; }

.display { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.02; }
.h-xl { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h-lg { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.h-md { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--ink); }
.band--navy .lede { color: rgba(255,255,255,.9); }
.muted { color: var(--slate); }
.band--navy .muted { color: rgba(255,255,255,.7); }
.source-note {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate); font-weight: 600;
}
.band--navy .source-note { color: rgba(255,255,255,.65); }

/* highlighter — yellow behind the single key clause */
.hl {
  background: linear-gradient(transparent 8%, var(--yellow) 8%, var(--yellow) 86%, transparent 86%);
  padding: 0 .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--ink);
  font-weight: inherit;
}
.band--navy .hl { color: var(--ink); }

/* sky-blue underline motif (echo of the logo) */
.tick { position: relative; display: inline-block; }
.tick::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.18em; height: .14em;
  background: var(--sky); border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans); font-weight: 700; font-size: 1.02rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85em 1.5em; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  min-height: 48px;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--donate { background: var(--coral); color: var(--white); border-color: var(--coral); box-shadow: var(--shadow-sm); }
.btn--donate:hover { background: var(--coral-deep); border-color: var(--coral-deep); transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn--secondary:hover { background: var(--teal); color: var(--white); }
.band--navy .btn--secondary { color: var(--white); border-color: rgba(255,255,255,.55); }
.band--navy .btn--secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--ghost { background: transparent; color: inherit; border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { font-size: 1.12rem; padding: 1em 1.8em; }
.btn--block { width: 100%; }

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,245,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 94px; }
.nav-links { display: flex; align-items: center; gap: 2rem; flex: 1; justify-content: center; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-family: var(--sans); font-weight: 600; font-size: 1.12rem; text-decoration: none; color: var(--ink);
  padding: .4rem 0; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: .7rem; }

/* brand logo image (header alt logo / footer white logo) */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 64px; width: auto; display: block; }
.brand--footer img { height: 62px; }
@media (max-width: 1080px) { .brand img { height: 44px; } }

/* logo wordmark (CSS, scalable, transparent) */
.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; gap: .12em; }
.wordmark__script { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.18rem; color: var(--navy); letter-spacing: .01em; }
.wordmark__name {
  font-family: var(--serif); font-weight: 700; font-size: 1.9rem; color: var(--navy);
  line-height: .9; letter-spacing: -.01em; position: relative; padding-bottom: .14em;
}
.wordmark__name::after { content: ""; position: absolute; left: 0; width: 100%; bottom: 0; height: 3px; background: var(--sky); border-radius: 2px; }
.wordmark__tag { font-family: var(--sans); font-weight: 700; font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep); margin-top: .35em; }
.wordmark--light .wordmark__script,
.wordmark--light .wordmark__name { color: var(--white); }
.wordmark--light .wordmark__tag { color: var(--sky); }

/* mobile nav */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--navy); }
.nav-toggle svg { width: 30px; height: 30px; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 94px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline); padding: .5rem var(--gutter) 1.4rem;
    margin: 0; transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--hairline); }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1.15rem; }
  .nav-links a::after { display: none; }
  .nav-links .header-cta { padding-top: 1rem; border: 0; }
  .header-cta--desktop { display: none; }
}
@media (min-width: 1081px) { .nav-links .header-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(1,26,52,.88) 0%, rgba(1,40,80,.72) 32%, rgba(1,40,80,.32) 52%, rgba(1,40,80,.15) 68%); }
.hero .wrap { position: relative; z-index: 1; }
.hero > .wrap { max-width: none; }
.hero__copy { padding: clamp(48px, 7vw, 104px) 0; max-width: min(560px, 88vw); margin-inline: 0; text-align: left; text-shadow: 0 2px 18px rgba(1,26,52,.55); }
.hero__kicker { color: var(--sky); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; margin-bottom: 1.3rem; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1.02; margin-bottom: 1.5rem; letter-spacing: -.015em; }
.hero .tick::after { background: var(--sky); height: .12em; bottom: .04em; }
.hero__sub { font-size: clamp(1.12rem, 1.6vw, 1.32rem); color: rgba(255,255,255,.9); line-height: 1.5; margin: 0 0 2rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: flex-start; }
.hero__communities { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .95rem; color: rgba(255,255,255,.75); letter-spacing: .03em; }
@media (max-width: 860px) {
  .hero__photo { position: relative; width: 100%; height: 320px; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 4.6rem) !important; }
  .hero__copy { max-width: none; text-align: center; }
  .hero__photo img { object-position: 58% 28%; }
  .hero__photo::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(1,60,116,.1) 60%, transparent 100%); }
  .hero__copy { padding: 36px 0 52px; max-width: none; }
  .hero__sub { max-width: none; margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

/* ---------- Stat / proof band ---------- */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
.stat { position: relative; }
.stat__num { font-family: var(--serif); font-weight: 700; color: var(--teal-deep); font-size: clamp(2.6rem, 4.4vw, 3.7rem); line-height: .95; letter-spacing: -.02em; }
.stat__num--gold { color: var(--gold); }
.stat__label { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin-top: .55rem; line-height: 1.35; }
.stat__note { margin-top: .5rem; }
.stat + .stat { }
@media (max-width: 820px) { .statgrid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 440px) { .statgrid { grid-template-columns: 1fr; } }

/* ---------- Value-into-action rows ---------- */
.via { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.via-row {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 5vw, 72px);
  padding: clamp(28px, 3.5vw, 46px) 0; border-bottom: 1px solid var(--hairline); align-items: baseline;
}
.via-row__value { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; color: var(--navy); }
.via-row__deliver { }
.via-row__deliver .tagline { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--teal-deep); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; }
.via-row__deliver .tagline svg { width: 1.1em; height: 1.1em; }
.via-row__deliver p { font-size: 1.12rem; color: var(--ink); margin: 0; }
.via-row__deliver .receipt { display: block; margin-top: .55rem; font-size: .92rem; color: var(--slate); font-weight: 600; }
@media (max-width: 720px) {
  .via-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Priority cards ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 32px); }
@media (max-width: 760px) { .cardgrid { grid-template-columns: 1fr; } }
.pcard {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdc7ba; }
.pcard__icon { width: 46px; height: 46px; color: var(--teal); margin-bottom: 1.2rem; }
.pcard__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; }
.pcard h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: .7rem; }
.pcard__goal { color: var(--ink); margin-bottom: 1.3rem; }
.pcard__deliver {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--hairline);
  font-size: .98rem; color: var(--slate);
}
.pcard__deliver strong { color: var(--teal-deep); display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem; }

/* ---------- Quote card ---------- */
.quote-card {
  background: var(--white); border: 1px solid var(--hairline); border-left: 5px solid var(--sky);
  border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 44px); box-shadow: var(--shadow-sm);
}
.quote-card__q { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.3; color: var(--navy); margin-bottom: 1.5rem; }
.quote-card__by { display: flex; align-items: center; gap: 1rem; }
.quote-card__by img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.quote-card__name { font-weight: 700; color: var(--ink); }
.quote-card__title { font-size: .92rem; color: var(--slate); line-height: 1.35; }

/* ---------- Endorser wall ---------- */
.endorse-group { margin-bottom: clamp(40px, 5vw, 68px); }
.endorse-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.6rem; padding-bottom: .8rem; border-bottom: 2px solid var(--hairline); }
.endorse-group__head h3 { font-size: 1.35rem; color: var(--navy); margin-right: auto; }
.endorse-group__head .count { font-size: .8rem; font-weight: 700; color: var(--teal-deep); letter-spacing: .06em; text-transform: uppercase; }

/* Featured endorsers: circular photo, name + role beneath (Lander-style) */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(22px, 2.6vw, 34px); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person__photo {
  width: clamp(108px, 12vw, 150px); aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow-sm); margin-bottom: .9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.person:hover .person__photo { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person__body { padding: 0; }
.person__name { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; color: var(--navy); line-height: 1.2; }
.person__role { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); margin-top: .3rem; line-height: 1.3; }

/* Organizations: plain logo wall, no cards */
.org-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 52px); padding: clamp(8px,1vw,16px) 0; }
.org { display: flex; align-items: center; justify-content: center; }
.org__logo { height: 56px; display: flex; align-items: center; justify-content: center; }
.org__logo img { max-height: 100%; max-width: 210px; width: auto; object-fit: contain; }
.org__name { display: none; }

/* name-only chip list */
.namelist { display: flex; flex-wrap: wrap; gap: .7rem; }
.namechip { background: var(--white); border: 1px solid var(--hairline); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; font-size: .98rem; box-shadow: var(--shadow-sm); }
.namechip span { color: var(--slate); font-weight: 600; }

/* ---------- Split feature (image + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__media figcaption { font-size: .85rem; color: var(--slate); margin-top: .7rem; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split__media { order: 0; }
}

/* duotone treatment for divider images */
.duotone { position: relative; }
.duotone img { filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy), var(--teal)); mix-blend-mode: color; opacity: .85; }

/* ---------- Meet Christine story beats ---------- */
.beat { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 56px); }
.beat:nth-child(even) .beat__media { order: 2; }
.beat__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.beat__num { font-family: var(--serif); font-weight: 700; color: var(--sky); font-size: 1rem; letter-spacing: .1em; margin-bottom: .8rem; }
.beat h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); margin-bottom: 1rem; }
.beat p { font-size: 1.1rem; }
@media (max-width: 800px) {
  .beat { grid-template-columns: 1fr; gap: 22px; }
  .beat:nth-child(even) .beat__media { order: 0; }
}

/* ---------- Page header (interior pages) ---------- */
.pagehead { background: var(--navy); color: var(--white); padding-block: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.pagehead h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 1.1rem; }
.pagehead p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255,255,255,.85); max-width: 640px; }
.pagehead__tick { width: 64px; height: 4px; background: var(--sky); border-radius: 2px; margin-bottom: 1.6rem; }

/* ---------- Filter chips ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  font-family: var(--sans); font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 999px; padding: .55rem 1.15rem; color: var(--ink);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Record list ---------- */
.record-issue { margin-bottom: clamp(40px, 5vw, 64px); }
.record-issue__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.record-issue__head .ico { width: 38px; height: 38px; color: var(--teal); flex: none; }
.record-issue__head .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
.record-issue__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); }
.record-issue__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); text-wrap: pretty; }
.receipts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.receipt-item {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 1.1rem; align-items: start;
  background: var(--white); border: 1px solid var(--hairline); border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
}
.receipt-item__verb { font-weight: 700; color: var(--teal-deep); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .3rem; line-height: 1.3; }
.receipt-item__body h4 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; color: var(--ink); margin: 0 0 .25rem; line-height: 1.3; }
.receipt-item__body p { font-size: .98rem; color: var(--slate); margin: 0; }
.receipt-item__year { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.receipt-item[data-tier="secured"] { border-left-color: var(--sky); }
.receipt-item[data-tier="secured"] .receipt-item__verb { color: var(--sky); }
.receipt-item[data-tier="voted"] { border-left-color: var(--hairline); }
.receipt-item[data-tier="voted"] .receipt-item__verb { color: var(--slate); }
.hidden { display: none !important; }
@media (max-width: 600px) {
  .receipt-item { grid-template-columns: 1fr; gap: .4rem; }
  .receipt-item__year { grid-row: 1; justify-self: start; }
}

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1.05rem; padding: .8em .9em;
  border: 1.5px solid var(--hairline); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(42,172,227,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem .9rem; }
@media (max-width: 560px) { .checkgrid { grid-template-columns: 1fr; } }
.checkitem { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.checkitem input { width: auto; }

/* ---------- Ways to help / event cards ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 820px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.help-card .pcard__icon { margin-bottom: .9rem; }
.help-card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: .6rem; }

/* ---------- Vote resource cards ---------- */
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 900px) { .vote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .vote-grid { grid-template-columns: 1fr; } }
.vote-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdc7ba; }
.vote-card .pcard__icon { margin-bottom: 1rem; }
.vote-card h3 { font-size: 1.28rem; color: var(--navy); margin-bottom: .55rem; }
.vote-card p { color: var(--slate); flex-grow: 1; margin-bottom: 1.3rem; }
.vote-card .btn { align-self: flex-start; }
.vote-card__tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); background: rgba(23,138,133,.1); border-radius: 999px; padding: .3em .8em; margin-bottom: .9rem; width: fit-content; }

/* ---------- Vote timeline / key dates ---------- */
.vote-steps { display: grid; gap: 1.1rem; counter-reset: votestep; }
.vote-step { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start; }
.vote-step__num { counter-increment: votestep; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.vote-step__num::before { content: counter(votestep); }
.vote-step h4 { color: var(--navy); font-size: 1.12rem; margin-bottom: .3rem; }
.vote-step p { color: var(--slate); }

/* ---------- Official source note banner ---------- */
.vote-official { display: flex; align-items: center; gap: .7rem; background: rgba(42,172,227,.1); border: 1px solid rgba(42,172,227,.28); border-radius: var(--radius); padding: .85rem 1.1rem; font-size: .92rem; color: var(--navy); margin-bottom: clamp(24px,3vw,36px); }
.vote-official svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--sky); fill: none; stroke-width: 1.8; }

.event-list { display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.4rem; align-items: center;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; box-shadow: var(--shadow-sm);
}
.event__date { text-align: center; border-right: 1px solid var(--hairline); padding-right: 1rem; }
.event__date .m { font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.event__date .d { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--navy); line-height: 1; }
.event__info h4 { font-family: var(--sans); font-size: 1.12rem; margin: 0 0 .25rem; }
.event__info p { margin: 0; color: var(--slate); font-size: .95rem; }
@media (max-width: 620px) {
  .event { grid-template-columns: 72px 1fr; }
  .event .btn { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding-block: clamp(48px, 6vw, 80px) 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); }
.site-footer h4 { font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { font-size: .98rem; }
.footer-cta { margin-top: 1.3rem; }
.site-footer a.footer-url { display: inline-block; margin-top: .4rem; font-weight: 700; color: var(--ink); background: var(--yellow); padding: .2em .55em; border-radius: 3px; text-decoration: none; }
.site-footer a.footer-url:hover { color: var(--ink); text-decoration: none; filter: brightness(.97); }
.site-footer__bar { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.16); padding-block: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal-on-scroll motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* utility */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: 62ch; }
.flex-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.divider-tick { width: 64px; height: 4px; background: var(--sky); border-radius: 2px; margin: 0 0 1.5rem; }
.kicker-band { display: inline-block; }

/* ---------- Intro video (full-viewport opening screen) ---------- */
.video-intro { position: relative; width: 100%; height: calc(100svh - 95px); min-height: 420px; background: var(--navy); overflow: hidden; }
.video-intro__frame { position: relative; width: 100%; height: 100%; }
.video-intro__frame video { width: 100%; height: 100%; object-fit: cover; background: var(--navy); display: block; }
.video-intro__scroll {
  position: absolute; left: 50%; bottom: clamp(18px, 3vw, 34px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; opacity: .88; text-shadow: 0 2px 10px rgba(1,26,52,.5);
  animation: introBob 2.2s ease-in-out infinite;
}
.video-intro__scroll svg { width: 22px; height: 22px; }
.video-intro__scroll:hover { opacity: 1; }
@keyframes introBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .video-intro__scroll { animation: none; } }

/* ---------- Video feature ---------- */
.video-feature { padding-block: clamp(48px, 6vw, 88px); }
.video-feature__frame {
  position: relative; max-width: 980px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--navy); aspect-ratio: 16/9;
}
.video-feature__frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--navy); }
.video-feature__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(1,26,52,.32); border: 0; cursor: pointer; transition: background .2s ease;
}
.video-feature__play:hover { background: rgba(1,26,52,.44); }
.video-feature__play svg { width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px); filter: drop-shadow(0 6px 18px rgba(1,26,52,.45)); transition: transform .18s ease; }
.video-feature__play:hover svg { transform: scale(1.06); }
.video-feature__frame.is-playing .video-feature__play { display: none; }
.video-feature__mute {
  position: absolute; right: clamp(12px, 2vw, 20px); bottom: clamp(12px, 2vw, 20px);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(1,26,52,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.video-feature__mute:hover { background: rgba(1,26,52,.75); }
.video-feature__mute svg { width: 20px; height: 20px; }
.video-feature__cap { text-align: center; max-width: 620px; margin: 1.5rem auto 0; color: var(--slate); }
.press-feature { padding-block: clamp(48px, 6vw, 88px); }
.press-feature__frame { max-width: 1040px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--hairline); }
.press-feature__frame img { display: block; width: 100%; height: auto; }
.press-feature__cap { text-align: center; max-width: 640px; margin: 1.4rem auto 0; color: var(--slate); font-size: .95rem; }
.imgband { position: relative; display: block; width: 100%; margin: 0; overflow: hidden; background: var(--navy); }
.imgband img { width: 100%; height: clamp(280px, 40vw, 540px); object-fit: cover; object-position: center 32%; display: block; }
.imgband figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(0deg, rgba(1,40,80,.86), transparent);
  color: #fff; font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-family: var(--serif); font-weight: 500; line-height: 1.3;
}
.imgband figcaption .src { display: block; margin-top: .5rem; font-family: var(--sans); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }

/* ---------- Quote/text over photo ---------- */
.photoquote { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.photoquote__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .3; z-index: 0; }
.photoquote .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(1,40,80,.55), rgba(1,40,80,.8)); }
.photoquote > .wrap { position: relative; z-index: 2; }

/* ---------- Pagehead with photo (duotone) ---------- */
.pagehead--photo { position: relative; }
.pagehead--photo .pagehead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; z-index: 0; filter: grayscale(.3) contrast(1.02); }
.pagehead--photo .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, var(--navy) 30%, rgba(1,60,116,.9) 62%, rgba(32,172,159,.62)); }
.pagehead--photo > .wrap { position: relative; z-index: 2; }

/* ---------- Policy planks (Priorities — distinct from About's photo beats) ---------- */
.planks { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.plank {
  position: relative; background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  display: grid; grid-template-columns: 132px 1fr; transition: transform .2s ease, box-shadow .2s ease;
}
.plank:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plank__rail { background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1rem; padding: clamp(22px,3vw,34px) 0; }
.plank__rail .num { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--sky); }
.plank__rail .ico { width: 44px; height: 44px; color: #fff; }
.plank__rail .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.plank__body { padding: clamp(26px, 3.4vw, 44px); }
.plank__body .eyebrow { margin-bottom: .8rem; }
.plank__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); color: var(--navy); margin-bottom: .9rem; }
.plank__body > p { font-size: 1.08rem; color: var(--ink); margin-bottom: 0; }
.plank__deliver { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline); font-size: .98rem; color: var(--slate); }
.plank__deliver strong { color: var(--teal-deep); display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem; }
@media (max-width: 640px) {
  .plank { grid-template-columns: 1fr; }
  .plank__rail { flex-direction: row; justify-content: flex-start; gap: 1.2rem; padding: 1rem clamp(22px,5vw,30px); }
  .plank__rail .num { font-size: 1.6rem; }
  .plank__rail .ico { width: 32px; height: 32px; }
}

/* ---------- image-slot inside story beats ---------- */
.beat__media image-slot, .split__media image-slot { display: block; width: 100%; height: clamp(260px, 32vw, 420px); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }

/* ---------- Instagram feed grid ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.ig-grid image-slot { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
.ig-embed { background: var(--white); border: 1px dashed var(--hairline); border-radius: var(--radius-lg); padding: clamp(24px,4vw,40px); text-align: center; color: var(--slate); }
/* ---------- Newsletter archive ---------- */
.news-list { display: grid; gap: 1rem; }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.4rem; align-items: center; background: var(--white); border: 1px solid var(--hairline); border-left: 4px solid var(--sky); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-item__date { font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: .3rem; }
.news-item h4 { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); margin: 0 0 .35rem; line-height: 1.2; }
.news-item p { margin: 0; color: var(--slate); font-size: .98rem; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; } }

/* ---------- Photo gallery mosaic ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(108px, 13vw, 184px); grid-auto-flow: dense;
  gap: clamp(8px, 1.1vw, 16px);
}
.gallery figure {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); background: var(--navy); cursor: default;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1rem .85rem;
  font-family: var(--sans); font-weight: 600; font-size: .84rem; line-height: 1.3; color: #fff;
  background: linear-gradient(0deg, rgba(1,40,80,.9) 8%, rgba(1,40,80,.4) 70%, transparent);
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease;
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-big  { grid-row: span 2; grid-column: span 2; }
@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(132px, 30vw, 200px); }
  .gallery .g-big { grid-column: span 2; }
  .gallery figcaption { opacity: 1; transform: none; font-size: .8rem; padding: .8rem .85rem .7rem; }
}

/* ---------- Photo banner inside a policy plank ---------- */
.plank__photo {
  display: block; overflow: hidden;
  margin: calc(-1 * clamp(26px, 3.4vw, 44px)) calc(-1 * clamp(26px, 3.4vw, 44px)) clamp(20px, 2.4vw, 30px);
  background: var(--paper-2);
}
.plank__photo img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.plank:hover .plank__photo img { transform: scale(1.03); }
@media (max-width: 640px) {
  .plank__photo { margin: 0 0 clamp(18px,4vw,24px); border-radius: 0; }
}

/* ---------- Inline issue photo (record page) ---------- */
.issue-photo { margin: 0 0 1.6rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper-2); }
.issue-photo img { width: 100%; height: auto; display: block; }
.issue-photo figcaption { position: relative; }

/* ---------- Section eyebrow centered helper already exists; small media caption ---------- */
.media-note { font-family: var(--sans); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-top: .7rem; }

/* photo figures inside the IG grid */
.ig-grid figure { margin: 0; position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--navy); }
.ig-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ig-grid figure:hover img { transform: scale(1.05); }
#ig-live:empty { display: none; }
#ig-live iframe { width: 100%; border: 0; display: block; border-radius: var(--radius); }

/* ---------- Custom donation terminal (links to ActBlue) ---------- */
.donate-terminal { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(22px, 2.6vw, 34px); }
.donate-terminal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.donate-terminal__head .dt-title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.donate-terminal__head .dt-lock { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); white-space: nowrap; }
.donate-terminal__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 999px; padding: .3rem; margin-bottom: 1.3rem; }
.dt-seg { border: 0; background: transparent; font-family: var(--sans); font-weight: 700; font-size: 1rem; padding: .65em 1em; border-radius: 999px; cursor: pointer; color: var(--slate); transition: background .15s, color .15s; }
.dt-seg[aria-pressed="true"] { background: var(--navy); color: #fff; }
.donate-terminal__amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.dt-amt { border: 1.5px solid var(--hairline); background: var(--paper); border-radius: var(--radius); font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--navy); padding: .6em 0; min-height: 56px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dt-amt:hover { border-color: var(--teal); }
.dt-amt[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dt-custom { position: relative; margin-bottom: 1.4rem; }
.dt-custom .cur { position: absolute; left: .85em; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--slate); pointer-events: none; }
.dt-custom input { width: 100%; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); padding: .7em .8em .7em 1.7em; border: 1.5px solid var(--hairline); border-radius: var(--radius); background: var(--paper); }
.dt-custom input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(42,172,227,.18); }
.dt-go { transition: opacity .15s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.donate-terminal__note { text-align: center; margin: .9rem 0 0; font-size: .82rem; color: var(--slate); }
.dt-why { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; }
.dt-why li { padding-left: 1.4rem; position: relative; color: var(--slate); font-size: 1rem; }
.dt-why li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.dt-why strong { color: var(--navy); }
