/* 2026 campaign site.
   Palette carried over from the 2022 Hawthorn campaign — Mel has real
   recognition equity in this teal, so it is deliberately not reinvented. */

:root {
  --teal: #00B4CE;
  --teal-dark: #008ba1;
  --navy: #1B1464;
  --navy-light: #2d2490;
  --ink: #16181d;
  --muted: #5b6270;
  --line: #e2e5ea;
  --paper: #ffffff;
  --grey: #f5f7f9;
  --warn-bg: #fff8e6;
  --warn-line: #e0b400;
  --draft-bg: #fdecef;
  --draft-ink: #a3123a;
  --wrap: 68rem;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 44rem; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .85rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal-dark); }

/* ---------- banners ---------- */

.draft-banner {
  background: var(--draft-ink); color: #fff; text-align: center;
  padding: .7rem 1.25rem; font-size: .9rem; line-height: 1.45;
}

.draft-flag {
  display: inline-block; background: var(--draft-bg); color: var(--draft-ink);
  border-left: 3px solid var(--draft-ink); padding: .35rem .6rem;
  font-size: .9rem; border-radius: 0 3px 3px 0;
}

.verify-note {
  background: var(--warn-bg); border-left: 4px solid var(--warn-line);
  padding: .85rem 1rem; font-size: .88rem; line-height: 1.55;
  color: #5c4700; border-radius: 0 4px 4px 0; margin-top: 1.5rem;
}
.verify-note code { background: rgba(0,0,0,.07); padding: .1em .35em; border-radius: 3px; }

/* ---------- header ---------- */

.site-header { background: var(--navy); color: #fff; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { text-decoration: none; color: #fff; line-height: 1.15; }
.brand-name { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.brand-sub { display: block; font-size: .78rem; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }

.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-nav a {
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600;
  font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus { color: #fff; border-bottom-color: var(--teal); }
.site-nav a.active { color: #fff; border-bottom-color: var(--teal); }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.kicker {
  text-transform: uppercase; letter-spacing: .09em; font-size: .78rem;
  font-weight: 700; color: var(--teal); margin-bottom: .75rem;
}
.hero .lede { font-size: 1.2rem; max-width: 42rem; color: rgba(255,255,255,.92); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.hero .lede .draft-flag { display: block; margin-bottom: .6rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 4px;
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: #05202a; }
.btn-primary:hover { background: #22c8e0; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- bands ---------- */

.band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band-grey { background: var(--grey); }
.band-teal { background: var(--teal); color: #05202a; }
.band-teal a { color: #05202a; }
.band-teal .verify-note { background: rgba(255,255,255,.85); }
.band-lede { font-size: 1.1rem; max-width: 44rem; }

.page-head { background: var(--grey); padding: clamp(2rem, 5vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }

.priorities { max-width: 46rem; padding-left: 1.2rem; }
.priorities li { margin-bottom: .5rem; }

/* ---------- ballot diagram ---------- */

.ballot {
  background: #fff; border: 2px solid var(--navy); border-radius: 6px;
  padding: 1.25rem; max-width: 34rem; margin: 1.5rem 0 0;
}
.ballot-head {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--muted); margin-bottom: .75rem;
}
.ballot-boxes { display: flex; gap: .5rem; flex-wrap: wrap; }
.bx {
  width: 3rem; height: 3rem; border: 2px solid var(--navy); border-radius: 3px;
  display: grid; place-items: center; background: #fff;
}
.bx .num { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.ballot-note { margin: .9rem 0 0; color: var(--ink); }

/* ---------- cards ---------- */

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; background: #fff; }
.card-district {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--teal-dark); margin: 0 0 .3rem;
}
.card-blurb { color: var(--muted); font-size: .95rem; }
.card-link { font-weight: 600; text-decoration: none; font-size: .92rem; }
.card-link:hover { text-decoration: underline; }

/* ---------- events ---------- */

.events { display: grid; gap: 1rem; }
.event {
  display: flex; gap: 1.25rem; border: 1px solid var(--line);
  border-radius: 6px; padding: 1.25rem; background: #fff;
}
.event-unconfirmed { border-style: dashed; opacity: .8; }
.event-date {
  flex: 0 0 4rem; text-align: center; background: var(--navy); color: #fff;
  border-radius: 4px; padding: .6rem .3rem; height: fit-content;
}
.event-date .day { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-date .mon { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.event-body { flex: 1 1 auto; }
.event-where { color: var(--muted); font-size: .92rem; margin-bottom: .5rem; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- forms ---------- */

.invite-form { display: grid; gap: .9rem; max-width: 34rem; margin-top: 1.25rem; }
.invite-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.invite-form input, .invite-form textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid var(--navy);
  border-radius: 4px; background: #fff; width: 100%;
}
.invite-form button { justify-self: start; cursor: pointer; }

.amounts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.amt {
  border: 2px solid var(--navy); border-radius: 4px; padding: .55rem 1.1rem;
  font-weight: 700; color: var(--navy);
}

/* ---------- carried-over content ---------- */

.review-flag {
  background: var(--draft-bg); border-left: 4px solid var(--draft-ink);
  color: var(--draft-ink); padding: .7rem .9rem; font-size: .87rem;
  line-height: 1.55; border-radius: 0 4px 4px 0; margin: .75rem 0 0;
}

.prose p { max-width: 40rem; }

.policy-block { margin-bottom: 2.25rem; }
.policy-block h2 { color: var(--navy); }
.policy-block ul { padding-left: 1.2rem; margin: 0 0 .75rem; }
.policy-block li { margin-bottom: .45rem; }

.plan-footer { color: var(--muted); font-style: italic; font-size: .93rem; }

/* ---------- FAQs ---------- */

.faq { border-bottom: 1px solid var(--line); padding: .35rem 0; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: .85rem 0;
  list-style: none; display: flex; gap: .6rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; color: var(--teal-dark); font-weight: 800; flex: 0 0 auto;
}
.faq[open] summary::before { content: "−"; }
.faq summary:hover { color: var(--teal-dark); }
.faq-body { padding: 0 0 1rem 1.3rem; }
.faq-body p { max-width: 40rem; }

/* ---------- district lookup ---------- */

.district-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.5rem; }
.district-tag {
  background: #fff; border: 1px solid var(--navy); color: var(--navy);
  border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600;
}

.lookup { margin-top: 1.5rem; }
.lookup label { display: block; margin-bottom: .4rem; }
.lookup input {
  font: inherit; width: 100%; max-width: 26rem; padding: .7rem .8rem;
  border: 2px solid var(--navy); border-radius: 4px;
}
.lookup-help { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.lookup-result { margin-top: 1rem; }
.lookup-hit {
  background: #fff; border-left: 4px solid var(--teal);
  padding: .7rem .9rem; margin: 0 0 .5rem; border-radius: 0 4px 4px 0;
}
.lookup-split { display: block; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.lookup-miss { color: var(--muted); }
.lookup-official { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- map ---------- */

.district-map {
  height: clamp(24rem, 60vh, 34rem); width: 100%;
  border: 1px solid var(--line); border-radius: 6px; background: var(--grey);
}
.district-map[hidden] { display: none; }
.district-map .leaflet-interactive:focus { outline: 3px solid var(--navy); outline-offset: 1px; }
.map-hint { font-weight: 600; color: var(--navy); min-height: 1.5em; margin-top: .6rem; }
.leaflet-control-attribution { font-size: .7rem; }
.leaflet-container { font: inherit; }

.card-empty { border-style: dashed; background: transparent; }
.card-empty h3 { color: var(--muted); font-weight: 600; font-size: 1rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy); color: rgba(255,255,255,.75);
  padding: 2.5rem 0; margin-top: 0; font-size: .9rem;
}
.site-footer a { color: var(--teal); }
.auth {
  color: #fff; font-weight: 600; border-left: 3px solid var(--teal);
  padding-left: .8rem; margin-bottom: 1rem;
}
.footer-meta { margin-bottom: .5rem; }

@media (max-width: 34rem) {
  .event { flex-direction: column; gap: .75rem; }
  .event-date { flex: none; width: 3.5rem; }
}

/* ==========================================================================
   The three-page public site (/live/)
   The logo lockup carries its own navy and teal on a light ground, so this
   header is white — dropping it on the navy header muddies both.
   ========================================================================== */

.preview-bar {
  background: var(--draft-ink); color: #fff; text-align: center;
  font-size: .82rem; padding: .5rem 1rem; line-height: 1.4;
}

.live-header { background: var(--paper); border-bottom: 3px solid var(--teal); }
.live-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.live-brand { display: block; line-height: 0; }
/* Vector now, so it can be sized freely. The 2026 lockup drops the photo the
   composite PNG carried, so it is squarer (330x127, ratio 2.6) than the old
   484x132 export — hence a narrower max-width for the same header height. */
.live-brand img { width: 100%; max-width: 265px; height: auto; }

.live-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.live-nav a {
  color: var(--navy); text-decoration: none; font-weight: 700;
  font-size: .95rem; padding-bottom: .2rem;
  border-bottom: 3px solid transparent;
}
.live-nav a:hover, .live-nav a:focus, .live-nav a.active {
  color: var(--navy); border-bottom-color: var(--teal);
}

.live-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 3.5rem 0;
}
.live-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
}
.live-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 1rem;
}
.live-hero .lede { color: rgba(255,255,255,.92); max-width: none; }
.live-hero .kicker {
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
  font-weight: 700; color: var(--teal); margin-bottom: .75rem;
}

.video-block { margin: 0; }
.video-block video {
  width: 100%; height: auto; display: block; border-radius: 6px;
  background: #000; box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.video-block figcaption {
  font-size: .8rem; color: rgba(255,255,255,.75); margin-top: .6rem;
}

@media (max-width: 800px) {
  .live-hero-grid { grid-template-columns: 1fr; }
  .live-hero { padding: 2.5rem 0; }
}

.page-head { background: var(--grey); padding: 2.5rem 0 2rem; }
.page-head h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 .75rem;
  color: var(--navy); letter-spacing: -.02em;
}

.prose p { margin: 0 0 1.15rem; font-size: 1.05rem; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }

.district-grid {
  list-style: none; padding: 0; margin: 1.5rem 0 1rem;
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.district-tile {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--teal); border-radius: 4px;
  padding: .7rem .9rem; font-weight: 600; color: var(--navy);
}
.muted-note { font-size: .9rem; color: var(--muted); }
