/* ==========================================================================
   Tzianeng Vang for Minnesota Senate District 44
   Campaign site stylesheet
   Brand: lake blue + pine green + harvest gold
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --lake-900: #062639;
  --lake-800: #0b3d5c;
  --lake-700: #14567c;
  --lake-500: #2b7fa8;
  --lake-100: #dceaf2;

  --pine-800: #14453a;
  --pine-600: #1f5d4c;
  --pine-400: #3d8a71;
  --pine-100: #dff0e8;

  --gold-600: #b8791a;
  --gold-500: #d99b2e;
  --gold-300: #f0c874;
  --gold-100: #fbeecf;

  --clay-600: #a8442c;

  --cream: #faf6ee;
  --cream-2: #f2ece0;
  --paper: #ffffff;
  --ink: #12211f;
  --ink-soft: #40514e;
  --line: rgba(18, 33, 31, .14);

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

  --wrap: 1160px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 38, 57, .06), 0 4px 14px rgba(6, 38, 57, .07);
  --shadow-md: 0 8px 30px rgba(6, 38, 57, .12);
  --shadow-lg: 0 24px 60px rgba(6, 38, 57, .18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lake-700); text-underline-offset: 3px; }
a:hover { color: var(--lake-800); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.25rem, 7vw, 5.75rem) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section--cream { background: var(--cream-2); }
.section--paper { background: var(--paper); }
.section--pine { background: var(--pine-800); color: #eaf4ef; }
.section--lake { background: var(--lake-900); color: #e4eff6; }
.section--pine h2, .section--lake h2, .section--pine h3, .section--lake h3 { color: #fff; }
.section--pine a, .section--lake a { color: var(--gold-300); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--gold-500); border-radius: 2px; }
.section--pine .eyebrow, .section--lake .eyebrow { color: var(--gold-300); }
.section--pine .eyebrow::before, .section--lake .eyebrow::before { background: var(--gold-300); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); }
.section--pine .lede, .section--lake .lede { color: rgba(255,255,255,.82); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* Elements hidden by the config script must stay hidden even when a
   component rule sets display (e.g. .social a { display: grid }). */
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 800; letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold-500); color: #241300; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-300); color: #241300; }
.btn--lake { background: var(--lake-800); color: #fff; }
.btn--lake:hover { background: var(--lake-700); color: #fff; }
.btn--pine { background: var(--pine-600); color: #fff; }
.btn--pine:hover { background: var(--pine-400); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--ghost-dark { border-color: var(--lake-800); color: var(--lake-800); background: transparent; }
.btn--ghost-dark:hover { background: var(--lake-100); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Dark sections recolour links; buttons must opt out of that. */
.section--pine a.btn--gold, .section--lake a.btn--gold,
.pagehead a.btn--gold, .hero a.btn--gold { color: #241300; }
.section--pine a.btn--gold:hover, .section--lake a.btn--gold:hover,
.pagehead a.btn--gold:hover, .hero a.btn--gold:hover { color: #241300; }
.section--pine a.btn--lake, .section--lake a.btn--lake,
.section--pine a.btn--pine, .section--lake a.btn--pine,
.section--pine a.btn--ghost, .section--lake a.btn--ghost,
.pagehead a.btn--ghost, .hero a.btn--ghost { color: #fff; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold-500); color: #241300; padding: .75rem 1.15rem; font-weight: 800; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--pine-800); color: #fff;
  font-size: .84rem; font-weight: 700; letter-spacing: .02em;
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; align-items: center; justify-content: center; padding: .6rem 0; text-align: center; }
.topbar strong { color: var(--gold-300); }
.topbar a { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 900; font-size: 1.16rem; letter-spacing: -.02em; color: var(--lake-900); }
.brand__for { font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--pine-600); }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
  padding: .55rem .7rem; border-radius: 8px;
}
.nav a:hover { background: var(--cream-2); color: var(--lake-800); }
.nav a[aria-current="page"] { color: var(--lake-800); box-shadow: inset 0 -3px 0 var(--gold-500); }
.nav__cta { margin-left: .6rem; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; cursor: pointer; font: inherit; font-weight: 800; color: var(--ink);
  align-items: center; gap: .5rem;
}
.nav-toggle__bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .8rem 1.25rem 1.2rem; box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav a[aria-current="page"] {
    box-shadow: none; background: var(--cream-2);
    border-left: 4px solid var(--gold-500); padding-left: 1rem;
  }
  .nav__cta { margin: .5rem 0 0; }
  .site-header__inner { position: relative; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--lake-900) 0%, var(--lake-800) 48%, var(--pine-800) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/paj-ntaub.svg");
  background-size: 190px;
  opacity: .13;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: .35rem; }
.hero h1 .hero__first { display: block; font-size: .46em; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: .35rem; }
.hero__office { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 800; color: var(--gold-300); margin: 0 0 1.2rem; letter-spacing: .01em; }
.hero__slogan {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35; color: rgba(255,255,255,.94);
  border-left: 4px solid var(--gold-500); padding-left: 1.1rem; margin: 0 0 1.75rem;
}
.hero__cta { margin-bottom: 1.6rem; }
.hero__note { font-size: .92rem; color: rgba(255,255,255,.75); max-width: 46ch; }

.hero__portrait { position: relative; }
.hero__portrait .photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 5px solid rgba(255,255,255,.14); }
.hero__stamp {
  position: absolute; right: -10px; bottom: -18px;
  background: var(--gold-500); color: #241300;
  font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem;
  padding: .7rem 1.05rem; border-radius: 10px; box-shadow: var(--shadow-md);
  transform: rotate(-3deg); line-height: 1.25; text-align: center; max-width: 190px;
}
@media (max-width: 900px) { .hero__stamp { right: 10px; } }

/* ---------- Write-in call-out ---------- */
.writein {
  background: var(--gold-500); color: #241300;
  border-top: 4px solid var(--gold-600); border-bottom: 4px solid var(--gold-600);
}
.writein__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem 0; }
@media (max-width: 860px) { .writein__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.writein h2 { font-size: 1.25rem; margin: 0 0 .25rem; color: #241300; letter-spacing: 0; }
.writein p { margin: 0; font-weight: 600; font-size: .98rem; }
.ballot-box {
  background: #fff; border: 3px solid #241300; border-radius: 8px;
  padding: .55rem .9rem; min-width: 250px; box-shadow: 4px 4px 0 rgba(36,19,0,.35);
}
.ballot-box__label { font-size: .62rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #6b5a3d; }
.ballot-box__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #241300; border-bottom: 2px solid #241300; }

/* ---------- Photo placeholders ---------- */
.photo {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 5; width: 100%;
  background:
    linear-gradient(135deg, rgba(43,127,168,.22), rgba(31,93,76,.28)),
    var(--lake-100);
  color: var(--lake-800); font-weight: 700; font-size: .86rem; letter-spacing: .04em;
  padding: 1rem; border-radius: var(--radius);
}
.photo span { opacity: .8; max-width: 22ch; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1 / 1; }
.candidate-portrait { display: block; padding: 0; height: auto; }
.authentic-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.campaign-photo { margin: 0; }
.campaign-photo figcaption { margin-top: .6rem; }
.video-embed { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--lake-900); margin-bottom: .75rem; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.photo--video { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--lake-800), var(--pine-800)); color: rgba(255,255,255,.85); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.35rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; color: var(--lake-900); }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pine-100); color: var(--pine-600); margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__more { font-weight: 800; color: var(--lake-700); }

.pillar { border-top: 5px solid var(--gold-500); }
.pillar__num {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1;
  color: var(--gold-500); margin-bottom: .4rem;
}

/* ---------- Priority blocks ---------- */
.priority { border-left: 5px solid var(--pine-400); padding-left: clamp(1.1rem, 2.5vw, 2rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.priority:last-child { margin-bottom: 0; }
.priority h2 { color: var(--lake-900); }
.pp { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
@media (max-width: 860px) { .pp { grid-template-columns: 1fr; } }
.pp__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.pp__item h4 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .55rem;
}
.pp__item--problem h4 { color: var(--clay-600); }
.pp__item--plan h4 { color: var(--lake-700); }
.pp__item--benefit h4 { color: var(--pine-600); }
.pp__item p:last-child { margin-bottom: 0; }

/* ---------- Route / list ---------- */
.route { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.route li {
  background: var(--lake-100); color: var(--lake-800); font-weight: 700; font-size: .88rem;
  padding: .4rem .85rem; border-radius: 999px; margin: 0;
}
.section--pine .route li, .section--lake .route li { background: rgba(255,255,255,.12); color: #fff; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/></svg>") center / 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/></svg>") center / 100% no-repeat;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step__num {
  counter-increment: step; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--lake-800); color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .3rem; }
.step p:last-child { margin-bottom: 0; }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1.4;
  font-style: italic; margin: 0;
}
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .92rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: 1.25rem; color: var(--gold-300); }

/* ---------- Page header ---------- */
.pagehead {
  background: linear-gradient(140deg, var(--lake-900), var(--pine-800));
  color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; overflow: hidden;
}
.pagehead::after {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background-image: url("../img/paj-ntaub.svg"); background-size: 160px;
}
.pagehead__inner { position: relative; z-index: 1; max-width: 62ch; }
.pagehead h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.pagehead p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field > label { font-weight: 800; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.req { color: var(--clay-600); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 10px; padding: .7rem .85rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--lake-500); outline: none; box-shadow: 0 0 0 3px rgba(43,127,168,.2); }
textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0; }
legend { font-weight: 800; padding: 0 .5rem; font-size: .95rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin-bottom: .7rem; font-size: .95rem; }
.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--pine-600); }
.form__status { font-weight: 700; padding: .85rem 1rem; border-radius: 10px; background: var(--pine-100); color: var(--pine-800); }
.form__status[hidden] { display: none; }

.notice {
  border-left: 5px solid var(--gold-500); background: var(--gold-100);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; color: #4a3410;
}
.notice p:last-child { margin-bottom: 0; }
.notice--info { border-color: var(--lake-500); background: var(--lake-100); color: var(--lake-900); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .97rem; }
th { background: var(--lake-100); color: var(--lake-900); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* ---------- Dates ---------- */
.date-list { display: grid; gap: 1rem; }
.date-item { display: grid; grid-template-columns: 92px 1fr; gap: 1.1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.date-item__badge { background: var(--lake-800); color: #fff; border-radius: 10px; text-align: center; padding: .55rem .3rem; }
.date-item__mo { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.date-item__d { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.date-item__yr { display: block; font-size: .72rem; font-weight: 700; opacity: .8; }
.date-item h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.date-item p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--lake-900); color: rgba(255,255,255,.8); padding: clamp(2.75rem, 5vw, 4rem) 0 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__for { color: var(--gold-300); }
.social { display: flex; gap: .6rem; margin-top: .9rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff;
}
.social a:hover { background: var(--gold-500); color: #241300; }
.social svg { width: 19px; height: 19px; }

.disclaimer {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18);
  font-size: .86rem; line-height: 1.6; color: rgba(255,255,255,.72);
}
.site-footer .muted { color: rgba(255, 255, 255, .62); }
.disclaimer strong { color: #fff; }
.disclaimer p { margin-bottom: .6rem; }
.disclaimer p:last-child { margin-bottom: 0; }

.powered {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}
.powered a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.powered a:hover { color: var(--gold-300); text-decoration: underline; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .site-header, .topbar, .site-footer .social, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ---------- Ballot guide ---------- */
.ballot-guide { margin: 1.25rem 0 0; }
.ballot-guide > a { display: block; border-radius: var(--radius); }
.ballot-guide img { width: 100%; height: auto; border-radius: var(--radius); }
.ballot-guide figcaption { margin-top: .75rem; }

/* ---------- District map ---------- */
.district-map { margin: 0; }
.district-map img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--paper);
}
.district-map figcaption { margin-top: .55rem; }
.district-map--missing img { display: none; }
.district-map--missing::before {
  content: "MAP: official Senate District 44 boundary map";
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 3 / 2; width: 100%;
  background:
    linear-gradient(135deg, rgba(43,127,168,.22), rgba(31,93,76,.28)),
    var(--lake-100);
  color: var(--lake-800); font-weight: 700; font-size: .86rem; letter-spacing: .04em;
  padding: 1rem; border-radius: var(--radius);
}
