
.photo-gallery-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.75rem; margin:1rem 0; }
.photo-gallery-actions .btn { min-height:44px; }
.photo-gallery-actions [hidden] { display:none; }
.photo-viewer { position:fixed; inset:0; width:100%; height:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:#101923; color:#fff; }
.photo-viewer[open] { display:flex; flex-direction:column; }
.photo-viewer::backdrop { background:#101923; }
.photo-viewer-head, .photo-viewer-tools { flex:none; display:flex; align-items:center; gap:.5rem; padding:12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)); }
.photo-viewer-head { justify-content:space-between; padding-top:max(12px, env(safe-area-inset-top)); }
.photo-viewer-title { margin:0; color:white; font:600 1rem/1.4 var(--sans); overflow-wrap:anywhere; }
.photo-viewer button, .photo-viewer a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; border:1px solid #8191a3; border-radius:8px; background:#223244; color:white; font:600 .9rem/1.2 var(--sans); padding:10px 12px; text-decoration:none; cursor:pointer; }
.photo-viewer button:disabled { opacity:.45; cursor:default; }
.photo-viewer :focus-visible { outline:3px solid #ffd767; outline-offset:2px; }
.photo-viewer-tools { justify-content:center; flex-wrap:wrap; padding-bottom:max(12px, env(safe-area-inset-bottom)); }
.photo-viewer-stage { flex:1; min-height:80px; position:relative; overflow:hidden; touch-action:none; overscroll-behavior:contain; user-select:none; cursor:grab; }
.photo-viewer-stage:active { cursor:grabbing; }
.photo-viewer-stage img { position:absolute; top:50%; left:50%; max-width:none; max-height:none; transform-origin:center; user-select:none; -webkit-user-drag:none; }
.photo-viewer-stage img[hidden], .photo-viewer [hidden] { display:none; }
.photo-viewer-message { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; padding:20px; text-align:center; }
.photo-viewer-hint { flex:none; margin:0; padding:4px 12px; text-align:center; color:#cbd6e1; font-size:.8rem; }

:root {
  --red: #c1121f;
  --red-dark: #8b0d16;
  --red-soft: #f6e6e7;
  --navy: #0d1b2a;
  --navy-2: #14263b;
  --blue: #1b3a5b;
  --gold: #c9a227;
  --paper: #fbf9f6;
  --paper-2: #ffffff;
  --ink: #17202a;
  --muted: #5a6472;
  --line: #e7e2da;
  --shadow: 0 8px 30px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 27, 42, 0.16);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(193,18,31,.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* Top utility bar */
.topbar { background: var(--red); color: #fff; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .social { display: flex; gap: .8rem; align-items: center; }
.topbar .social a { display: inline-flex; opacity: .9; }
.topbar .social .topbar-contact { font-weight: 600; text-decoration: none; }
.topbar .social a[aria-label="facebook"] {
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
}
.topbar .social a[aria-label="facebook"] svg { width: 13px; height: 13px; }
.topbar .social a:hover { opacity: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,246,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 82px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; display: grid; place-items: center; font-family: var(--serif);
  font-weight: 700; font-size: 1.5rem; box-shadow: 0 6px 16px rgba(193,18,31,.32);
  position: relative; overflow: hidden;
}
.brand .mark::after { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,.08) 6px 7px); }
.brand .mark-logo { width: 52px; height: 52px; flex: none; object-fit: contain; display: block; }
.site-header .brand .mark-logo { width: 86.4px; height: 56.4px; }
.brand .name { display: flex; flex-direction: column; line-height: 1.05; }
.brand .name b { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.brand .name span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.site-header .brand .name b { font-size: calc(1.15rem + 2pt); }
.site-header .brand .name span { font-size: calc(.72rem + 2pt); padding-top: 3px; }

.main-nav { display: flex; align-items: center; gap: .75rem; }
.main-nav .mobile-nav-only { display: none; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: .87rem; padding: .55rem .25rem; border-radius: 8px; }
.main-nav a[href="/officials"], .main-nav a[href="/candidates"] { text-align: center; }
.main-nav a:hover { background: var(--red-soft); color: var(--red-dark); text-decoration: none; }
.main-nav a.active { color: var(--red); }
.main-nav .nav-cta {
  margin-left: .25rem;
  padding: .8rem 1.5rem;
  background: var(--red);
  color: #fff;
}
.main-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }
.mobile-vote-graphic { display: none; }
.mobile-hq-details { display: none; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative; margin: 0 auto; transition: .2s;
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after { content: ""; position: absolute; top: 7px; }

/* Hero / banner */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-slide { position: relative; min-height: 560px; display: grid; align-items: center; }
.hero-bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-bg img, img.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,20,32,.90) 0%, rgba(11,20,32,.72) 40%, rgba(139,13,22,.55) 100%); }
.hero-content { position: relative; z-index: 2; padding: 5rem 0; max-width: 720px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: #fff; background: var(--red); padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.5vw, 3.8rem); text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero p.lead { font-size: 1.2rem; color: #edf1f6; max-width: 620px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; gap: .5rem; justify-content: center; }
.hero-dots button { width: 11px; height: 11px; border-radius: 999px; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* Stripe divider */
.flag-stripe { height: 6px; background: var(--red); }

/* Sections */
.section { padding: 4.5rem 0; }
.section.tight { padding: 3rem 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.navy { background: var(--navy); color: #e7edf4; }
.section.navy h1, .section.navy h2, .section.navy h3 { color: #fff; }
.section.red { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.section.red h1, .section.red h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .kicker { color: var(--red); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; display: block; margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.navy .section-head p { color: #b9c6d4; }

/* Grids & cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.volunteer-go-vote {
  grid-column: 1 / -1; display: grid; place-items: center;
  margin: 0; padding: 1.5rem 0; min-width: 0;
  color: var(--red); font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 7rem); line-height: 1.1;
  letter-spacing: -.035em; text-align: center; overflow-wrap: anywhere;
}
@media (min-width: 961px) {
  .volunteer-go-vote:nth-child(3n + 2) { grid-column: 2 / -1; }
}
.candidate-profile-grid { max-width: 820px; margin-inline: auto; }
.candidate-issue-graphic { max-width: 820px; margin: 3rem auto 0; }
.candidate-issue-graphic img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.candidate-card-avatar {
  width: 96px; height: 96px; margin-inline: auto; border-radius: 50%;
  background: var(--red-soft) center / cover no-repeat; border: 4px solid #fff;
  box-shadow: var(--shadow); color: var(--red); display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; object-fit: cover;
}
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-media { aspect-ratio: 16/9; background: var(--red-soft); background-size: cover; background-position: center; }
.card .card-body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card .card-body h3 { margin: 0; }
.card .meta { color: var(--muted); font-size: .85rem; }
.card p { color: #3b4552; margin: 0; }
.card .card-foot { margin-top: auto; padding-top: .4rem; }
.tag { display: inline-block; background: var(--red-soft); color: var(--red-dark); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.faq-item { overflow: visible; padding: 0; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 1.4rem;
  color: var(--navy); font-weight: 800; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; float: right; color: var(--red); margin-left: 1rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { border-top: 1px solid var(--line); padding: 1.15rem 1.4rem 1.3rem; }
.faq-answer.prose > :first-child { margin-top: 0; }
.faq-answer.prose > :last-child { margin-bottom: 0; }

/* People (candidates / officials) */
.person { text-align: center; }
.person .avatar {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 1rem; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; font-weight: 700;
  background-size: cover; background-position: center; border: 4px solid #fff; box-shadow: var(--shadow);
}
.person.big .avatar { width: 168px; height: 168px; font-size: 3rem; }
.person h3 { margin: 0 0 .2rem; }
.person .office { color: var(--red); font-weight: 700; font-size: .95rem; }
.person .level { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

/* Feature / icon list */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .ficon { flex: none; width: 54px; height: 54px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.feature h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }

/* Split / media rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img, .split .media { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.about-page-content { max-width: none; display: flow-root; }
.about-page-content p, .about-page-content li { max-width: 76ch; }
.about-vivek-photo {
  float: right; width: min(44%, 540px); height: auto; aspect-ratio: 1600 / 1136;
  margin: 0 0 2rem 2.5rem; border-radius: var(--radius); object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.home-about-photo { aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }
#party-organization { scroll-margin-top: 7rem; }
.prose { max-width: 760px; }
.prose p { color: #333d48; font-size: 1.06rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; }
.prose mark { background: #fff0a6; color: #192b3c; padding: .05em .12em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.auto-link { text-decoration: underline; overflow-wrap: anywhere; }

/* Breadcrumb */
.crumbs { font-size: .85rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }

/* Page hero (interior) */
.page-hero { background: var(--navy); color: #fff; padding: 3.2rem 0 3.4rem; position: relative; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: .18; }
.page-hero-media img, img.page-hero-media { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #c4d0dd; max-width: 640px; margin: 0; font-size: 1.1rem; }

/* Callout / donate band */
.band { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; border-radius: var(--radius); padding: 2.6rem; text-align: center; box-shadow: var(--shadow-lg); }
.band h2 { color: #fff; }
.band p { color: #ffe3e5; max-width: 620px; margin: 0 auto 1.4rem; }

/* Forms */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--navy); font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink); transition: border .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.home-candidate-card { text-align: center; align-items: center; justify-content: center; min-height: 290px; }
.home-candidate-avatar {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  margin-bottom: .55rem; color: #fff; background: var(--navy); border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--red), var(--shadow); font-family: var(--serif);
  font-size: 1.7rem; font-weight: 800; letter-spacing: .04em; object-fit: cover;
}
.newsletter-popup {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1200;
  width: min(390px, calc(100vw - 2rem)); padding: 1.25rem 3rem 1.25rem 1.25rem;
  border: 1px solid #9ac9aa; border-left: 5px solid #237a43; border-radius: var(--radius);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
}
.newsletter-popup.err { border-color: #e4a4aa; border-left-color: var(--red); }
.newsletter-popup strong { display: block; color: var(--navy); font-size: 1.05rem; }
.newsletter-popup p { margin: .35rem 0 0; color: #3b4552; }
.newsletter-popup-close {
  position: absolute; top: .45rem; right: .65rem; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 1.7rem; line-height: 1;
}
.newsletter-popup-close:hover, .newsletter-popup-close:focus-visible { color: var(--red); }
.multi-select { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.multi-select[open] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.multi-select summary { cursor: pointer; list-style: none; padding: .8rem .9rem; color: var(--navy); }
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary::after { content: "▾"; float: right; color: var(--muted); }
.multi-select[open] summary::after { transform: rotate(180deg); }
.multi-select-options { border-top: 1px solid var(--line); max-height: 16rem; overflow-y: auto; padding: .35rem; }
.multi-select-options label { display: flex; align-items: flex-start; gap: .7rem; padding: .65rem; margin: 0; border-radius: .35rem; cursor: pointer; font-weight: 400; }
.multi-select-options label:hover { background: var(--red-soft); }
.multi-select-options input { width: auto; margin-top: .2rem; }
.multi-select-options span { display: grid; gap: .1rem; }
.multi-select-options small { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.flash { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 600; }
.flash.ok { background: #e6f4ea; color: #1e6b38; border: 1px solid #b6ddc4; }
.flash.err { background: #fdeaea; color: #a11b1b; border: 1px solid #f0c0c0; }

/* Newsletter inline */
.subscribe { display: flex; gap: .6rem; flex-wrap: wrap; }
.subscribe input { flex: 1; min-width: 220px; padding: .85rem 1rem; border-radius: 999px; border: 0; font-size: 1rem; }

/* Links list */
.linklist { display: grid; gap: 1rem; }
.linkitem { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; transition: border .15s, transform .15s; }
.linkitem:hover { border-color: var(--red); transform: translateX(4px); text-decoration: none; }
.linkitem b { color: var(--navy); display: block; }
.linkitem span { color: var(--muted); font-size: .9rem; }
.linkitem .arrow { color: var(--red); font-size: 1.4rem; }

/* Event row */
.event-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.4rem; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.event-row.has-image { grid-template-columns: 180px 92px 1fr auto; }
.event-thumb { display: block; aspect-ratio: 16/9; border-radius: var(--radius-sm); background-color: var(--red-soft); background-position: center; background-repeat: no-repeat; background-size: cover; }
.event-thumb-flyer { width: 128px; aspect-ratio: 916/1331; justify-self: center; background-color: #fff; background-size: contain; }
.event-detail-image { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.event-gallery { width: 100%; max-width: 900px; min-width: 0; margin: 0 auto 2.5rem; touch-action: pan-y pinch-zoom; }
.event-gallery-media {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  gap: .35rem; width: 100%; min-height: 150px; padding: .35rem;
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow);
}
.event-gallery-single .event-gallery-media { grid-template-columns: minmax(0, 1fr); }
.event-gallery .event-detail-image {
  grid-column: 2; grid-row: 1; width: auto; max-width: 100%; max-height: min(78vh, 1100px);
  min-width: 0; margin: 0 auto; object-fit: contain; border: 0; border-radius: var(--radius-sm); box-shadow: none;
}
.event-gallery-single .event-detail-image { grid-column: 1; }
.event-gallery-control {
  z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--navy);
  color: #fff; cursor: pointer; font: 400 1.9rem/1 Arial, sans-serif;
}
.event-gallery-control:hover { background: var(--red); }
.event-gallery-control[hidden] { display: none; }
.event-gallery-control:focus-visible, .event-gallery:focus-visible {
  outline: 3px solid rgba(193,18,31,.4); outline-offset: 3px;
}
.event-gallery-prev { grid-column: 1; grid-row: 1; }
.event-gallery-next { grid-column: 3; grid-row: 1; }
.event-gallery-status {
  margin-top: .6rem; color: var(--muted); text-align: center; font-size: .87rem; font-weight: 700;
}
.event-gallery-error {
  max-width: 48rem; margin: .6rem auto 0; padding: .65rem .8rem; border-radius: var(--radius-sm);
  background: #fdeaea; border: 1px solid #f0c0c0; color: #a11b1b; text-align: center; font-size: .9rem;
}
.event-gallery-error[hidden] { display: none; }
.event-date { text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius-sm); padding: .6rem; }
.event-date .m { text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.event-date .d { font-size: 1.8rem; font-family: var(--serif); font-weight: 700; line-height: 1; }
.event-row h3 { margin: 0 0 .2rem; }
.event-row .where { color: var(--muted); font-size: .9rem; }
.event-address { display: flex; align-items: center; gap: .35rem; margin-top: .35rem; color: var(--navy); font-size: .9rem; }
.event-address svg { width: 16px; height: 16px; color: var(--red); flex: 0 0 auto; }
.event-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .75rem; }
.event-share > span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-share a { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: #fff; font-size: .8rem; font-weight: 700; text-decoration: none; }
.event-share a:hover { border-color: var(--red); color: var(--red); }
.event-share svg { width: 14px; height: 14px; }
.event-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.rsvp-dialog { width: min(520px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 24px 70px rgba(8,26,42,.3); color: var(--text); }
.rsvp-dialog::backdrop { background: rgba(8,26,42,.66); }
.rsvp-dialog form { padding: 1.5rem; }
.rsvp-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.rsvp-dialog-head h2 { margin: 0; font-size: 1.45rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* Video */
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.sitewide-donate { background: linear-gradient(115deg, var(--red), var(--red-dark)); color: #fff; }
.sitewide-donate-inner { min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.sitewide-donate strong { display: block; color: #fff; font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.2; margin-bottom: .35rem; }
.sitewide-donate span { color: #ffe3e5; }
.sitewide-donate-btn { flex: 0 0 auto; background: #fff; color: var(--red-dark); border-color: #fff; }
.sitewide-donate-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.national-stage { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow); }
.national-stage h2 { margin: .25rem 0 .55rem; }
.national-stage p { max-width: 720px; margin: 0; }
.national-stage .btn { flex: 0 0 auto; }
.yard-sign-hq-callout { margin: 1.5rem 0; padding: 1.5rem; border: 2px solid var(--red); border-radius: var(--radius); background: var(--red-soft); }
.yard-sign-hq-callout h3 { margin: .3rem 0 .65rem; color: var(--navy); }
.yard-sign-hq-callout p { margin-bottom: .8rem; }
.site-footer { background: var(--navy); color: #b9c6d4; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .87rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: #b9c6d4; display: block; padding: .25rem 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand p { color: #93a3b4; font-size: .84rem; }
.footer-brand .name b { font-size: 1.07rem; }
.footer-brand .name span { font-size: .64rem; padding-top: 4px; }
.footer-brand .mark-logo { margin-bottom: .65rem; }
.footer-party-logo { width: 170px; max-width: 100%; height: auto; margin-bottom: .85rem; }
.site-footer .btn { padding: .8rem 1.5rem; font-size: .92rem; text-align: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .74rem; color: #8494a5; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a { background: rgba(255,255,255,.08); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.footer-social a:hover { background: var(--red); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.pill-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 2.5rem 0; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* Admin */
.admin-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.admin-authorized-banner {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(.8rem, 1.4vw, 1rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}
.admin-page .admin-shell, .admin-page .admin-login { flex: 1; min-height: 0; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #cdd7e2; padding: 1.4rem 1rem; }
.admin-mobile-header, .admin-nav-backdrop, .admin-menu-close { display: none; }
.admin-side .brand { color: #fff; margin-bottom: 1.6rem; }
.admin-side .brand .name b { color: #fff; }
.admin-nav a { display: block; color: #cdd7e2; padding: .6rem .8rem; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.admin-nav .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #7d8ea0; margin: 1.2rem .8rem .4rem; }
.admin-main { padding: 2rem 2.4rem; background: var(--paper); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; gap: 1rem; flex-wrap: wrap; }
.admin-topbar h1 { margin: 0; font-size: 1.8rem; }
.admin-page .admin-future-feature { margin: 0 0 .4rem; color: #6b7280; font-family: Helvetica, Arial, sans-serif; font-size: clamp(.8rem, 1.75vw, 1.15rem); font-weight: 400; line-height: 1.3; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.stat .n { font-size: 2rem; font-family: var(--serif); font-weight: 700; color: var(--red); }
.stat .l { color: var(--muted); font-size: .88rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.table th { background: var(--paper-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: .5rem; justify-content: flex-end; }
.admin-message-dialog { width: min(620px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 24px 70px rgba(8,26,42,.3); color: var(--text); }
.admin-message-dialog::backdrop { background: rgba(8,26,42,.62); }
.admin-message-dialog form { padding: 1.5rem; }
.admin-message-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-message-dialog-head h2 { margin: 0; font-size: 1.35rem; }
.admin-message-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin: 0 0 1rem; }
.admin-message-meta div { padding: .75rem; border-radius: var(--radius-sm); background: var(--cream); }
.admin-message-meta dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.admin-message-meta dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.admin-message-copy { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.admin-table-wrap { max-width: 100%; overflow-x: auto; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge.on { background: #e6f4ea; color: #1e6b38; }
.badge.off { background: #eee; color: #777; }
.badge.new { background: var(--red); color: #fff; }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 1rem; }
.admin-login .box { background: #fff; border-radius: var(--radius); padding: 2.4rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }

/* Featured video */
.video-embed { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* News search */
.news-search { display: flex; gap: .6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.news-search input[type="search"] { flex: 1 1 240px; min-width: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; }
.news-search input[type="search"]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,18,31,.15); }

/* Sharing */
.share-bar { margin-top: 2rem; padding: 1.1rem 1.2rem; background: var(--red-soft); border: 1px solid rgba(193,18,31,.2); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share-bar > strong { color: var(--navy); }
.share-links { display: flex; gap: .65rem; flex-wrap: wrap; }
.share-link { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .88rem; font-weight: 700; line-height: 1; }
.share-link:hover { color: #fff; background: var(--red-dark); text-decoration: none; transform: translateY(-1px); }
.share-link svg { flex: none; }

/* Printable candidate list */
.candidate-pdf { margin-top: 1.25rem; padding: 1.35rem; border: 2px solid var(--red); border-radius: var(--radius-sm); background: var(--red-soft); color: var(--navy); display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
.candidate-pdf:hover { color: var(--navy); background: #fff; text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.candidate-pdf-icon { color: var(--red); line-height: 0; }
.candidate-pdf-title { color: var(--red); font-weight: 800; font-size: 1.1rem; }
.candidate-pdf-message { font-weight: 700; }

/* Campaign headquarters */
.hq-intro { display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 3rem; }
.button-row { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.hq-location-card {
  padding: 2rem; border-radius: var(--radius); border-top: 5px solid var(--red);
  background-image: linear-gradient(90deg, rgba(6,25,43,.92), rgba(6,25,43,.68)), url("/assets/headquarters-building-card.jpg");
  background-position: center; background-size: cover; color: #fff; box-shadow: var(--shadow);
}
.hq-location-card h3 { margin: .4rem 0; color: #fff; font-size: 1.65rem; }
.hq-location-card p { margin: 0 0 .8rem; color: #dce5ef; }
.hq-location-card .eyebrow { color: #ff9ca4; }
.hq-location-icon { width: 48px; height: 48px; margin-bottom: 1rem; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.hq-location-icon svg { width: 24px; height: 24px; }
.hq-hours-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
.hq-hours { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.hq-hours-row { padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.hq-hours-row:last-child { border-bottom: 0; }
.hq-hours-row strong { color: var(--navy); font-family: var(--font-heading); font-size: 1.15rem; }
.hq-hours-row span { color: var(--red); font-weight: 800; }
.hq-cta { padding: 2rem 2.25rem; border-radius: var(--radius); background: var(--red-soft); border: 1px solid rgba(193,18,31,.2); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hq-cta h2 { margin: .25rem 0; }
.hq-cta p { max-width: 680px; margin: 0; }

@media (max-width: 760px) {
  .hq-intro, .hq-hours-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hq-cta { align-items: flex-start; flex-direction: column; }
  .hq-cta .btn { width: 100%; }
  .button-row .btn { width: 100%; }
}

/* Party committees */
.committee-section { border-top: 1px solid var(--border); }
.committee-block { margin-top: 2.5rem; }
.committee-block > h3 { margin-bottom: 1rem; }
.officer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.officer-card { padding: 1.15rem; border-top: 4px solid var(--red); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.officer-card span { display: block; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.officer-card strong { display: block; margin-top: .35rem; color: var(--navy); }
.committee-heading { margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.committee-heading h3 { margin: .2rem 0 0; }
.committee-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: .95rem; }
.committee-roster { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.committee-member { min-width: 0; padding: .8rem 1rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: .75rem; }
.committee-member:nth-child(3n) { border-right: 0; }
.committee-member .committee-area { color: var(--navy); font-size: .9rem; }
.committee-member .committee-name { color: var(--muted); font-size: .86rem; font-weight: 400; text-align: right; }
.executive-roster { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.executive-member { padding: .9rem 1rem; border-left: 3px solid var(--red); background: #fff; box-shadow: var(--shadow-sm); }
.executive-member strong, .executive-member span { display: block; }
.executive-member strong { color: var(--navy); }
.executive-member span { margin-top: .15rem; color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) {
  .officer-grid { grid-template-columns: repeat(2, 1fr); }
  .committee-roster { grid-template-columns: repeat(2, 1fr); }
  .committee-member:nth-child(3n) { border-right: 1px solid var(--border); }
  .committee-member:nth-child(2n) { border-right: 0; }
}

@media (max-width: 620px) {
  .officer-grid, .committee-roster, .executive-roster { grid-template-columns: 1fr; }
  .committee-heading { align-items: start; flex-direction: column; gap: .5rem; }
  .committee-member, .committee-member:nth-child(3n), .committee-member:nth-child(2n) { border-right: 0; }
}

/* Donate tiers */
.donate-tier { display: block; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.donate-tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Responsive */
.gallery-albums { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.gallery-cover { display:block; aspect-ratio:3/2; overflow:hidden; background:var(--red-soft); }
.gallery-cover img { width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.gallery-album:hover .gallery-cover img { transform:scale(1.025); }
.gallery-album h2 { font-size:1.35rem; margin:0; }
.gallery-meta { margin-top:auto; color:var(--red); font-size:.85rem; font-weight:800; }
.gallery-placeholder { height:100%; display:grid; place-items:center; color:var(--red); }
.gallery-placeholder svg { width:52px; height:52px; }
.gallery-photos { columns:3 280px; column-gap:1.25rem; }
.gallery-photo { margin:0 0 1.25rem; break-inside:avoid; overflow:hidden; border-radius:var(--radius); background:#fff; box-shadow:var(--shadow-sm); }
.gallery-photo a { display:block; background:var(--red-soft); }
.gallery-photo img { width:100%; height:auto; }
.gallery-photo figcaption { padding:.8rem 1rem; color:var(--muted); font-size:.92rem; }
@media (max-width:900px) { .gallery-albums { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .gallery-albums { grid-template-columns:1fr; } .gallery-photos { columns:1; } }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-mobile-header { position: sticky; top: 0; z-index: 51; grid-column: 1; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: .55rem 1rem; background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
  .admin-mobile-brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; min-width: 0; }
  .admin-mobile-brand img { object-fit: contain; flex: none; }
  .admin-mobile-brand span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
  .admin-mobile-brand b { font-size: .95rem; }
  .admin-mobile-brand small { color: #bac7d4; font-size: .72rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58vw; }
  .admin-menu-toggle { display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; background: transparent; color: #fff; cursor: pointer; }
  .admin-menu-toggle .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .admin-menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
  .admin-menu-close { display: grid; place-items: center; position: absolute; top: .8rem; right: .8rem; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: transparent; color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
  .admin-side { display: block; position: fixed; z-index: 60; top: 0; left: 0; width: min(86vw, 330px); height: 100vh; height: 100dvh; overflow-y: auto; padding: 1.2rem 1rem 2rem; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 12px 0 30px rgba(0,0,0,.25); }
  .admin-side.open { transform: translateX(0); }
  .admin-side .brand { padding-right: 3.4rem; }
  .admin-nav a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
  .admin-nav-backdrop { display: block; position: fixed; z-index: 55; inset: 0; border: 0; background: rgba(7,18,32,.58); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
  .admin-nav-backdrop.open { opacity: 1; visibility: visible; }
  body.admin-menu-open { overflow: hidden; }
  .admin-main { min-width: 0; padding: 1.5rem; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  /* backdrop-filter creates a containing block for position:fixed children,
     which would trap the mobile nav drawer inside the short header. Disable
     it here so the drawer sizes against the viewport (top:0;bottom:0).
     Also raise the header above the nav backdrop so the drawer links, which
     live inside the header's stacking context, stay tappable above it. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 60; }
  .main-nav {
    position: fixed; top: 0; right: 0; width: min(84vw, 340px);
    /* Use an explicit viewport height instead of bottom:0 so the drawer height
       does not depend on the fixed-positioning containing block. Some iOS
       Safari versions treat the header (backdrop-filter) as the containing
       block, which collapsed the drawer to header height. 100dvh handles the
       dynamic iOS toolbar; 100vh is the fallback. */
    height: 100vh; height: 100dvh;
    background: var(--navy); flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 5rem 1.2rem 2rem; transform: translateX(100%); transition: transform .25s ease; z-index: 60;
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .mobile-nav-only { display: block; }
  .main-nav .desktop-nav-only { display: none; }
  .main-nav .mobile-vote-graphic {
    display: flex; justify-content: center; padding: 0 .45rem .75rem;
    background: transparent; border-radius: 0;
  }
  .main-nav .mobile-vote-graphic:hover { background: transparent; }
  .mobile-vote-graphic img {
    display: block; width: auto; max-width: 100%; height: clamp(180px, 26dvh, 225px);
    object-fit: contain;
    border-radius: 8px;
  }
  .main-nav a { color: #e7edf4; padding: .9rem 1rem; border-radius: 10px; }
  .main-nav a[href="/candidates"] { text-align: left; }
  .main-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
  .nav-cta { margin: .6rem 0 0; }
  .mobile-hq-details {
    display: grid; gap: .35rem; margin-top: auto; padding: 1.25rem 1rem 0;
    border-top: 1px solid rgba(255,255,255,.16); color: #d8e1ea; font-size: .86rem; line-height: 1.45;
  }
  .main-nav .mobile-hq-page-link {
    display: grid; gap: .35rem; padding: 0; color: #d8e1ea; border-radius: 0;
  }
  .main-nav .mobile-hq-page-link:hover { background: transparent; color: #fff; }
  .mobile-hq-details strong { color: #fff; font-size: 1rem; }
  .mobile-hq-kicker { color: #ff9ca4; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-hq-hours { margin-top: .25rem; }
  .mobile-hq-hours b { color: #fff; }
  .main-nav .mobile-hq-directions {
    display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; margin-top: .5rem;
    border: 1px solid rgba(255,255,255,.42); color: #fff; font-weight: 700; text-align: center;
  }
  .mobile-hq-directions svg { width: 18px; height: 18px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
  .hero-slide { min-height: 480px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .event-row, .event-row.has-image { grid-template-columns: 72px 1fr; }
  .event-thumb { grid-column: 1 / -1; width: 100%; }
  .event-thumb.event-thumb-flyer { width: min(100%, 280px); }
  .event-row .event-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .event-row .event-actions .btn:last-child { grid-column: 1 / -1; }
  .event-gallery-media { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: .2rem; padding: .25rem; }
  .event-gallery-control { width: 36px; height: 36px; font-size: 1.6rem; }
  .event-gallery .event-detail-image { max-height: min(70vh, 720px); }
  .rsvp-dialog { width: calc(100% - 1rem); }
  .rsvp-dialog form { padding: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .sitewide-donate-inner { align-items: stretch; flex-direction: column; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .sitewide-donate-btn { width: 100%; text-align: center; }
  .national-stage { align-items: stretch; flex-direction: column; padding: 1.4rem; }
  .national-stage .btn { width: 100%; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 1.8rem 1.3rem; }
  .section { padding: 3rem 0; }
  .about-vivek-photo {
    float: none; display: block; width: 100%; max-width: 620px;
    margin: 0 auto 1.75rem;
  }
  .about-page-content p, .about-page-content li { max-width: none; }
}

@media (max-width: 640px) {
  .admin-main { padding: 1rem; }
  .admin-topbar { align-items: stretch; margin-bottom: 1.25rem; }
  .admin-topbar h1 { width: 100%; font-size: 1.5rem; line-height: 1.2; }
  .admin-topbar > .btn, .admin-topbar > .pill-row { width: 100%; }
  .admin-topbar > .btn { text-align: center; }
  .admin-topbar .pill-row { display: grid; grid-template-columns: 1fr; }
  .admin-topbar .pill-row .btn { width: 100%; text-align: center; justify-content: center; }
  .stat-grid { gap: .7rem; }
  .stat { padding: 1rem; }
  .stat .n { font-size: 1.65rem; }
  .stat .l { font-size: .8rem; overflow-wrap: anywhere; }
  .form-card { padding: 1rem; border-radius: var(--radius-sm); }
  .form-card input, .form-card select, .form-card textarea { font-size: 16px; }
  .form-card .pill-row { display: grid; grid-template-columns: 1fr; }
  .form-card .pill-row .btn, .form-card .pill-row form, .form-card .pill-row form .btn { width: 100%; text-align: center; }
  .image-preview-wrap { width: 100% !important; max-width: 240px; height: auto !important; aspect-ratio: 1; }
  .image-upload-row .btn { min-height: 44px; }
  .news-search { display: grid; grid-template-columns: 1fr; }
  .news-search input[type="search"], .news-search select, .news-search .field, .news-search .btn { width: 100% !important; }
  .admin-record-table { display: block; border: 0; background: transparent; overflow: visible; }
  .admin-record-table thead { display: none; }
  .admin-record-table tbody { display: grid; gap: .85rem; }
  .admin-record-table tr { display: block; padding: .35rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
  .admin-record-table td { display: grid; grid-template-columns: minmax(88px, 34%) minmax(0, 1fr); gap: .75rem; align-items: start; padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .admin-record-table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
  .admin-record-table td:last-child { border-bottom: 0; }
  .admin-record-table .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: stretch; }
  .admin-record-table .actions .btn, .admin-record-table .actions form, .admin-record-table .actions form .btn { width: 100%; min-height: 44px; text-align: center; }
  .admin-message-dialog { width: calc(100% - 1rem); }
  .admin-message-dialog form { padding: 1rem; }
  .admin-message-dialog-head { align-items: center; }
  .admin-message-meta { grid-template-columns: 1fr; }
  .admin-detail-table tr { display: grid; grid-template-columns: 1fr; }
  .admin-detail-table th, .admin-detail-table td { display: block; width: 100%; padding: .65rem .8rem; overflow-wrap: anywhere; }
  .admin-detail-table th { padding-bottom: .15rem; border-bottom: 0; }
  .admin-detail-table td { padding-top: .15rem; }
  .map-filters { align-items: stretch; }
  .map-filters > strong { width: 100%; }
  .map-filters label { min-height: 44px; flex: 1 1 100%; }
  .map-shell { height: 65vh; min-height: 420px; margin-left: -1rem; margin-right: -1rem; }
  .map-legend { max-width: calc(100% - 1.5rem); }
  .admin-login .box { padding: 1.5rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-side, .admin-nav-backdrop { transition: none; }
}

/* Yard signs */
.status-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.status-badge::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; }
.status-badge.requested { background: #f8f9fa; color: #495057; border-color: #dee2e6; }
.status-badge.requested::before { background: #adb5bd; }
.status-badge.delivered { background: #fff5f5; color: #c1121f; border-color: #ffe3e5; }
.status-badge.delivered::before { background: #c1121f; }
.status-badge.picked_up { background: #f8f9fa; color: #212529; border-color: #dee2e6; }
.status-badge.picked_up::before { background: #212529; }
.status-badge.picked_up_at_hq { background: #ecfdf5; color: #0f766e; border-color: #a7f3d0; }
.status-badge.picked_up_at_hq::before { background: #0f766e; }
.status-badge.retrieved_by_staff { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.status-badge.retrieved_by_staff::before { background: #7c3aed; }

.map-shell { height: 600px; background: #eef0f2; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.map-legend { position: absolute; bottom: 1.5rem; right: 1.5rem; background: rgba(255,255,255,.95); backdrop-filter: blur(4px); border: 1px solid var(--line); padding: 1rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 10; display: flex; flex-direction: column; gap: .6rem; }
.map-legend-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-bottom: .2rem; }
.map-placeholder { color: var(--muted); font-size: .95rem; text-align: center; max-width: 400px; padding: 2rem; }
.map-filters { display: flex; gap: .8rem; margin-bottom: 1.5rem; align-items: center; flex-wrap: wrap; }
.ys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) {
  .ys-grid { grid-template-columns: 1fr; }
  .map-shell { height: 520px; border-radius: 0; margin-left: -1rem; margin-right: -1rem; }
  .map-legend { right: .75rem; bottom: .75rem; padding: .75rem; }
}

.question-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1100;
}
body:has(.newsletter-popup) .question-widget,
body:has(.nav-backdrop) .question-widget {
  display: none;
}
.question-widget-launcher {
  width: auto;
  height: 56px;
  padding: 0 1.25rem;
  border-radius: 28px;
  background: var(--navy);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.question-widget-launcher:hover {
  background: var(--red);
  transform: translateY(-2px);
}
.question-widget-launcher svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.question-dialog {
  margin: 0;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  top: auto;
  left: auto;
  width: min(380px, calc(100vw - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(8,26,42,0.25);
  color: var(--text);
  overscroll-behavior: contain;
}
.question-dialog::backdrop {
  background: transparent;
}
@media (max-width: 480px) {
  .question-dialog {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-height: calc(100dvh - 2rem);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .question-dialog::backdrop {
    background: rgba(8,26,42,0.66);
  }
}
.question-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
@media (max-width: 480px) {
  .question-dialog-head {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
  }
}
.question-dialog-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
}
.question-dialog-close {
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  display: grid;
  place-items: center;
}
.question-dialog-close:hover {
  opacity: 1;
}
.question-dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.question-form {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: calc(100dvh - 120px);
}
.question-form .field {
  margin-bottom: 1rem;
}
.question-form .field label {
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  display: block;
}
.question-form .field input,
.question-form .field textarea {
  padding: 0.85rem;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border 0.15s;
}
.question-form .field input:focus,
.question-form .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.question-form textarea {
  min-height: 110px;
}
.question-form .hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.question-status {
  padding: 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.question-status.is-sent {
  display: block;
  background: #e6f4ea;
  color: #1e6b38;
  border: 1px solid #b6ddc4;
}
.question-status.is-pending {
  display: block;
  background: #fff8e6;
  color: #856404;
  border: 1px solid #ffeeba;
}
.question-status.is-disabled {
  display: block;
  background: #f8f9fa;
  color: #383d41;
  border: 1px solid #d6d8db;
}
.question-status.is-error {
  display: block;
  background: #fdeaea;
  color: #a11b1b;
  border: 1px solid #f0c0c0;
}

.mail-donation-dialog {
  width: min(440px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.75rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.mail-donation-dialog::backdrop { background: rgba(13, 27, 42, .55); }
.mail-donation-dialog h2 { margin: 0 0 1rem; font-size: 1.45rem; color: var(--navy); }
.mail-donation-dialog p { margin: 0 0 1.5rem; line-height: 1.65; }
.mail-donation-dialog form { display: flex; justify-content: flex-end; }
.mail-donation-dialog .btn { min-height: 44px; }
.mail-donation-dialog .btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }


[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }
