/* ==========================================================================
   Simi Valley Police Officers Association PAC
   Single-page site. Navy and gold. Anton display, Oswald labels, Public Sans body.
   ========================================================================== */

:root {
  /* Palette lifted from simivalleypoa.net: navy #0b1f3a, blue #1f4e79,
     gold #d4af37, antique gold #98782c, grey-blue #c0c6cc, ink #0d063a,
     slate #364957. */
  --navy: #0b1f3a;
  --navy-deep: #071426;
  --blue: #1f4e79;
  --blue-light: #3f6f9e;
  --mist: #c0c6cc;
  --paper: #ffffff;
  --shell: #eef1f5;
  --shell-deep: #dfe5ec;
  --ink: #0d063a;
  --ink-soft: #364957;
  --gold: #d4af37;        /* fills, rules, and text on navy */
  --gold-light: #e6c65e;  /* text on navy */
  --gold-deep: #98782c;
  --gold-ink: #856820;    /* gold text on white or shell: 5.2:1 and 4.6:1 */
  --steel: #6b89a6;

  /* Type also from simivalleypoa.net: Merriweather headings, Poppins
     subheads and labels, Epilogue body. */
  --display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --label: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Epilogue', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--shell);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy-deep); font-family: var(--label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 12px 20px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { text-wrap: balance; }
.hero h1, h2, .card h3, .panel-head h3, .stat b, .tick b, .hero-count strong, .endorse-banner .big, .hero-faces figcaption { font-weight: 900; }
.eyebrow {
  font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px;
}
.dark .eyebrow { color: var(--gold-light); }
h2 {
  font-family: var(--display); font-size: clamp(24px, 3.1vw, 39px); line-height: 1.18;
  text-transform: uppercase; letter-spacing: -.005em; color: var(--navy); margin-bottom: 20px;
}
.dark h2 { color: var(--paper); }
.lede { font-size: 19px; max-width: 700px; color: var(--ink-soft); }
.dark .lede { color: #cfd8e2; }
section { padding: 92px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; padding: 14px 28px; border-radius: 4px;
  display: inline-block; border: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 6px 18px rgba(120, 92, 12, .35); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--paper); color: var(--paper); padding: 12px 26px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: #16345c; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); padding: 12px 26px; background: transparent; }
.btn-outline:hover { background: rgba(11, 37, 69, .08); transform: translateY(-2px); }
.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 520px at 50% 0%, rgba(63, 111, 158, .5) 0%, transparent 62%),
    linear-gradient(178deg, #2a5d8f 0%, #1f4e79 32%, #143a5c 62%, var(--navy) 100%);
  padding: 54px 0 0;
}
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; text-align: center; position: relative; z-index: 2; }
.hero-badge { display: flex; justify-content: center; margin-bottom: 24px; }
.hero-badge picture { display: block; }
.hero-badge img { height: 132px; width: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.hero-eyebrow {
  font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--mist); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(27px, 4.15vw, 51px); line-height: 1.14;
  letter-spacing: -.005em; text-transform: uppercase; color: var(--paper);
  text-shadow: 0 3px 0 rgba(7, 20, 38, .45), 0 12px 34px rgba(7, 20, 38, .4);
}
.hero-sub { max-width: 660px; margin: 22px auto 0; font-size: 18px; color: #dfe6ee; font-weight: 500; }
.hero-count {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px;
  background: rgba(7, 20, 38, .5); border: 1px solid rgba(192, 198, 204, .35);
  border-radius: 999px; padding: 10px 24px;
}
.hero-count strong { font-family: var(--display); font-size: 25px; color: var(--paper); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.hero-count span { font-family: var(--label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); text-align: left; line-height: 1.35; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-tag {
  margin-top: 40px; font-family: var(--label); font-weight: 600; font-size: 15px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--mist);
}
.hero-tag::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 2px; }

/* Cutout portrait row */
.hero-faces {
  display: flex; justify-content: center; align-items: flex-end; gap: 0 1%;
  max-width: 1040px; margin: 18px auto -10px; position: relative; z-index: 2;
}
.hero-faces figure { width: 24%; position: relative; transition: transform .3s ease; display: flex; flex-direction: column; }
.hero-faces figure:hover { transform: translateY(-8px); }
.hero-faces picture { display: block; width: 100%; margin-top: auto; }
.hero-faces img { width: 100%; height: auto; filter: drop-shadow(0 14px 30px rgba(7, 20, 38, .55)); }
.hero-faces figcaption {
  margin-top: -14px; text-align: center;
  font-family: var(--display); font-size: clamp(12px, 1.15vw, 16px); text-transform: uppercase;
  letter-spacing: -.01em; color: var(--paper); line-height: 1.1;
  text-shadow: 0 2px 6px rgba(7, 20, 38, .8);
}
.hero-faces figcaption em {
  display: block; margin-top: 5px; font-family: var(--label); font-style: normal;
  font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--gold-light);
}
@media (max-width: 700px) {
  .hero-faces { flex-wrap: wrap; gap: 0 2%; max-width: 420px; }
  .hero-faces figure, .hero-faces figure:nth-child(2) { width: 32%; }
  .hero-faces figcaption { font-size: 11px; }
  .hero-badge img { height: 96px; }
}

/* The hills that ring Simi Valley. Hazy blue ridge behind, green scrub,
   dry golden slope in front, then the ground the page sits on. */
.ridge { position: relative; display: block; width: 100%; height: 186px; margin-top: -54px; z-index: 1; pointer-events: none; }
.ridge svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.ridge-haze { fill: #4a6a85; }
.ridge-green { fill: #4e6a50; }
.ridge-brown { fill: #786a46; }
.ridge-ground { fill: var(--paper); }
@media (max-width: 700px) { .ridge { height: 112px; margin-top: -28px; } }

/* ---------- Mission ---------- */
.mission { background: var(--paper); }
.mission-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .mission-grid { grid-template-columns: 1fr; gap: 40px; } }
.mission p { margin-bottom: 16px; color: var(--ink-soft); font-size: 17px; }
.mission p strong { color: var(--ink); }
.pillars-title {
  font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy); padding-bottom: 14px; margin-bottom: 26px;
  border-bottom: 2px solid var(--gold);
}
.pillars { display: grid; gap: 26px; }
.pillar { position: relative; padding-left: 22px; }
.pillar::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 4px; width: 3px; background: var(--gold); border-radius: 2px; }
.pillar:nth-child(even)::before { background: var(--blue); }
.pillar h3 { font-family: var(--label); font-weight: 600; font-size: 15.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin-bottom: 5px; }
.pillar p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* ---------- Endorsements ---------- */
.endorse { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #dfe6ee; }
.endorse-head { text-align: center; margin-bottom: 52px; }
.endorse-head .lede { margin: 0 auto; }
.slate-label {
  font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--mist); margin: 52px 0 20px; display: flex; align-items: center; gap: 16px;
}
.slate-label::after { content: ""; flex: 1; height: 1px; background: rgba(192, 198, 204, .28); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.card {
  background: linear-gradient(180deg, #17466f 0%, #0b2745 100%);
  border: 1px solid rgba(192, 198, 204, .22); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; text-align: left; width: 100%;
  font: inherit; color: inherit; cursor: pointer; padding: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover, .card:focus-visible { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0, 0, 0, .42); border-color: var(--gold); }
.card-photo { background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 100%); padding: 12px 14px 0; display: flex; justify-content: center; align-items: flex-end; }
.card-photo picture { display: block; width: 94%; }
.card-photo img { width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(7, 20, 38, .45)); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-role { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.card h3 { font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; color: var(--paper); line-height: 1; }
.card p { font-size: 15px; color: #b9c4d1; flex: 1; }
.card-more { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); display: inline-flex; align-items: center; gap: 8px; }
.card-more::after { content: "\2192"; transition: transform .2s; }
.card:hover .card-more::after { transform: translateX(4px); }

.card-featured { display: grid; grid-template-columns: 400px 1fr; margin-bottom: 24px; border-color: rgba(212, 175, 55, .45); }
.card-featured .card-photo { padding: 14px 0 0; }
.card-featured .card-photo picture { width: 100%; max-width: 390px; }
.card-featured .card-photo img { width: 100%; }
.card-featured .card-body { padding: 34px 40px; justify-content: center; }
.card-featured h3 { font-size: clamp(24px, 2.7vw, 34px); }
.card-featured p { font-size: 17px; flex: 0 1 auto; }
@media (max-width: 800px) {
  .card-featured { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 24px; }
  .card-featured .card-photo { padding: 24px 24px 0; }
  .card-featured .card-body { padding: 24px 26px 28px; }
}

.endorse-banner { margin-top: 58px; text-align: center; background: rgba(192, 198, 204, .08); border: 1px solid rgba(192, 198, 204, .25); border-radius: 12px; padding: 38px 30px; }
.endorse-banner .big { font-family: var(--display); font-size: clamp(19px, 2.4vw, 29px); text-transform: uppercase; color: var(--paper); line-height: 1.15; }
.endorse-banner .small { margin-top: 12px; font-size: 16px; color: #b9c4d1; max-width: 720px; margin-inline: auto; }

/* ---------- Issue ---------- */
.issue { background: var(--shell); }
.issue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .issue-grid { grid-template-columns: 1fr; gap: 40px; } }
.issue p { margin-bottom: 16px; color: var(--ink-soft); font-size: 17px; }
.issue p strong { color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }
.stat { background: #fff; border-radius: 8px; padding: 22px 20px; box-shadow: 0 4px 16px rgba(11, 31, 58, .07); border-top: 4px solid var(--gold); }
.stat.alert { border-top-color: #B3261E; }
.stat b { font-family: var(--display); font-size: 31px; color: var(--navy); letter-spacing: .02em; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--label); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 8px; line-height: 1.5; }
.data-panel { margin-top: 16px; background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 4px 16px rgba(11, 31, 58, .07); border-top: 4px solid var(--blue); display: grid; gap: 12px; }
.data-panel h3 { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.data-panel p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Comparison bars */
.bars { display: grid; gap: 12px; margin-top: 8px; }
.bar { display: grid; grid-template-columns: 180px 1fr auto; gap: 14px; align-items: center; }
@media (max-width: 600px) { .bar { grid-template-columns: 1fr auto; } .bar .track { grid-column: 1 / -1; } }
.bar .who { font-family: var(--label); font-weight: 500; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.bar .track { display: block; height: 12px; background: var(--shell-deep); border-radius: 999px; overflow: hidden; }
.bar .fill { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bar.us .fill { background: var(--gold); }
.bar .num { font-family: var(--label); font-weight: 600; font-size: 14px; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Election center ---------- */
.vote { background: linear-gradient(178deg, #17466f 0%, var(--navy) 55%, var(--navy-deep) 100%); color: #dfe6ee; }
.vote-head { text-align: center; margin-bottom: 20px; }
.vote-head .lede { margin: 0 auto; }
.ticks { display: flex; justify-content: center; gap: 18px; margin: 34px 0 56px; flex-wrap: wrap; }
.tick { background: rgba(7, 20, 38, .55); border: 1px solid rgba(192, 198, 204, .3); border-radius: 10px; min-width: 104px; padding: 18px 10px 14px; text-align: center; }
.tick b { font-family: var(--display); font-size: 34px; color: var(--paper); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.tick span { font-family: var(--label); font-weight: 500; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); display: block; margin-top: 8px; }
.vote-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 900px) { .vote-cols { grid-template-columns: 1fr; gap: 40px; } }
.vote h3, .lookup h3 { font-family: var(--label); font-weight: 600; font-size: 17px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; }
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: rgba(192, 198, 204, .35); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--steel); border: 3px solid var(--navy); box-shadow: 0 0 0 2px rgba(107, 137, 166, .5); }
.timeline li.flag::before { background: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, .55); }
.timeline b { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); display: block; }
.timeline p { font-size: 15px; color: #b9c4d1; margin-top: 2px; }
.actions { display: grid; gap: 14px; }
.action { display: block; background: rgba(192, 198, 204, .1); border: 1px solid rgba(192, 198, 204, .25); border-radius: 8px; padding: 16px 20px; text-decoration: none; transition: background .2s, transform .15s, border-color .2s; }
.action:hover { background: rgba(192, 198, 204, .2); transform: translateX(4px); border-color: var(--gold); }
.action b { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); display: block; }
.action span { font-size: 14px; color: #b9c4d1; }
.vote-foot { margin-top: 44px; text-align: center; font-size: 14px; color: #9aa8b8; }
.vote-foot a { color: var(--mist); }
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 8px; }
@media (max-width: 560px) { .drops { grid-template-columns: 1fr; } }
.drops div { font-size: 14.5px; color: #b9c4d1; padding: 7px 0; border-bottom: 1px solid rgba(192, 198, 204, .16); }
.drops b { font-family: var(--body); font-weight: 600; color: var(--paper); display: block; font-size: 15px; }

/* ---------- District lookup ---------- */
.lookup { background: var(--paper); }
.lookup h3 { color: var(--navy); }
.lookup-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .lookup-grid { grid-template-columns: 1fr; gap: 32px; } }
.lookup-form { display: grid; gap: 14px; }
.lookup-form label { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.lookup-form input {
  font-family: var(--body); font-size: 16px; padding: 14px 16px; width: 100%;
  border: 1.5px solid #c0c6cc; border-radius: 6px; background: #fff; color: var(--ink);
}
.lookup-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 78, 121, .18); }
.lookup-btns { display: flex; gap: 12px; flex-wrap: wrap; }
#map { height: 420px; border-radius: 10px; border: 1px solid #c0c6cc; background: #e7ecf1; }
@media (max-width: 900px) { #map { height: 340px; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
.legend span::before { content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 7px; vertical-align: -2px; }
.legend .l-simi::before { background: rgba(31, 78, 121, .55); }
.legend .l-ox::before { background: rgba(152, 120, 44, .65); }
.legend .l-park::before { background: transparent; border: 2px solid #4a7a63; }
.result { display: grid; gap: 12px; }
.result-card { background: #fff; border-left: 5px solid var(--gold); border-radius: 8px; padding: 18px 20px; box-shadow: 0 4px 16px rgba(11, 31, 58, .08); animation: pop .4s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-card.err { border-left-color: #B3261E; }
.result-card.info { border-left-color: var(--blue); }
.result-card h4 { font-family: var(--label); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.result-card .matched { font-size: 13.5px; color: var(--ink-soft); }
.result-hit { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dfe5ec; }
.result-hit img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--blue-light); flex-shrink: 0; }
.result-hit b { font-family: var(--label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); display: block; font-size: 15px; }
.result-hit span { font-size: 13.5px; color: var(--ink-soft); }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(31, 78, 121, .25); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Floating panel (dialog) ---------- */
dialog.panel {
  /* The universal reset zeroes margin, which would pin a modal to the top.
     inset:0 plus margin:auto is the canonical way to centre a dialog. */
  inset: 0; margin: auto; border: none; padding: 0; max-width: 780px; width: calc(100% - 40px); max-height: 86vh;
  border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 90px rgba(7, 20, 38, .55); overflow: hidden;
}
dialog.panel::backdrop { background: rgba(7, 20, 38, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.panel[open] { animation: panel-in .32s cubic-bezier(.2,.7,.2,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.panel-scroll { overflow-y: auto; max-height: 86vh; }
.panel-head { background: linear-gradient(160deg, var(--navy), var(--blue)); color: var(--paper); padding: 28px 34px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; position: relative; }
.panel-head picture { display: block; }
.panel-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; border: 3px solid var(--gold); background: var(--blue-light); }
.panel-head .role { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.panel-head h3 { font-family: var(--display); font-size: clamp(21px, 2.8vw, 29px); text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 4px 0 6px; }
.panel-head .status { font-size: 14.5px; color: #cfd8e2; }
.panel-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(7, 20, 38, .45); border: 1px solid rgba(192, 198, 204, .4); color: var(--paper);
  font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s;
}
.panel-close:hover { background: rgba(7, 20, 38, .8); }
.panel-body { padding: 30px 34px 34px; }
@media (max-width: 620px) {
  .panel-head { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 22px; }
  .panel-body { padding: 24px 22px 28px; }
}
.panel-body h4 { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin: 26px 0 10px; }
.panel-body h4:first-child { margin-top: 0; }
.panel-body p { margin-bottom: 12px; color: var(--ink-soft); font-size: 16px; }
.panel-body ul { margin: 0 0 12px 20px; color: var(--ink-soft); font-size: 15.5px; }
.panel-body li { margin-bottom: 7px; }
.panel-quote { border-left: 4px solid var(--gold); background: var(--shell); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 8px 0 20px; font-size: 16px; color: var(--navy); }
.panel-quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--ink-soft); font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; }
.panel-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.src { font-size: 12.5px; color: var(--ink-soft); }
.src a { color: var(--blue); margin-right: 10px; }

/* Footnote markers and the source list at the foot of the page */
.fn { font-size: .62em; line-height: 0; vertical-align: super; margin-left: 3px; font-family: var(--label); font-weight: 600; }
.fn a { color: var(--blue); text-decoration: none; padding: 4px 5px; margin: -4px -1px; }
.fn a:hover { text-decoration: underline; }
.dark .fn a, .endorse .fn a { color: var(--gold-light); }
.sources { background: var(--shell); padding-top: 72px; padding-bottom: 72px; }
.notes { margin: 28px 0 0; padding-left: 20px; columns: 2; column-gap: 48px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .notes { columns: 1; } }
.notes li { margin-bottom: 14px; break-inside: avoid; padding-left: 4px; }
.notes li:target { background: rgba(212, 175, 55, .18); border-radius: 4px; }
.notes .who { display: block; font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.notes a { color: var(--blue); word-break: break-word; }

/* ---------- Signup ---------- */
.signup { background: linear-gradient(178deg, var(--navy) 0%, var(--navy-deep) 100%); color: #dfe6ee; }
.signup-head { text-align: center; margin-bottom: 40px; }
.signup-head h2 { max-width: 820px; margin-inline: auto; font-size: clamp(23px, 2.9vw, 36px); }
.signup-head .lede { margin: 0 auto; }
.signup-form { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; background: rgba(192, 198, 204, .07); border: 1px solid rgba(192, 198, 204, .25); border-radius: 12px; padding: 34px; }
@media (max-width: 560px) { .signup-form { padding: 24px; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.field .opt { color: #8593a3; text-transform: none; letter-spacing: .03em; font-weight: 400; }
.field input { background: rgba(7, 20, 38, .55); border: 1px solid rgba(192, 198, 204, .35); border-radius: 6px; padding: 13px 15px; font-family: var(--body); font-size: 16px; color: #fff; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }
.consent label { font-size: 13px; line-height: 1.7; color: #C0D6E6; }
.consent a { color: var(--mist); }
.form-error { color: #FFB4AD; font-size: 14px; margin: 0; }
.form-fine { font-size: 12.5px; color: #8593a3; margin: 0; }
.form-fine a { color: var(--mist); }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #9aa8b8; padding: 56px 0 40px; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.foot-grid picture { display: block; }
.foot-grid img { height: 66px; width: auto; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a { font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-decoration: none; border: 1px solid rgba(192, 198, 204, .35); border-radius: 4px; padding: 8px 16px; transition: background .2s; }
.foot-links a:hover { background: rgba(192, 198, 204, .14); }

/* FPPC disclaimer: Arial, black on white, black border, at least 11pt (16px = 12pt).
   Required at the top or bottom of every page. Gov. Code 84502, 84504.3(c), 84506.5. */
.disclaimer-box {
  background: #fff; color: #000; border: 2px solid #000; border-radius: 4px;
  max-width: 820px; margin: 0 auto 24px; padding: 16px 28px; text-align: center;
  font-family: Arial, Helvetica, sans-serif !important; font-size: 16px; line-height: 1.5;
}
.disclaimer-box p { color: #000; margin: 0 0 4px; font-family: Arial, Helvetica, sans-serif !important; }
.disclaimer-box p:last-child { margin-bottom: 0; }
.foot-fine { border-top: 1px solid rgba(192, 198, 204, .2); padding-top: 24px; text-align: center; font-size: 13px; line-height: 1.8; }
.foot-fine a { color: var(--mist); }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 300; max-width: 380px;
  background: var(--navy); color: #dfe6ee; border: 1px solid rgba(192, 198, 204, .3);
  border-radius: 10px; padding: 18px 20px; box-shadow: 0 18px 44px rgba(7, 20, 38, .45);
  font-size: 14px; line-height: 1.6;
  animation: cookie-in .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cookie-notice p { margin: 0 0 14px; }
.cookie-notice a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-notice .btn-sm { padding: 9px 16px; font-size: 13px; }
.cookie-notice .btn-outline { border-color: rgba(192, 198, 204, .55); color: #dfe6ee; }
.cookie-notice .btn-outline:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 520px) { .cookie-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- Form validation ---------- */
.field input[aria-invalid="true"] { border-color: #ff9b93; box-shadow: 0 0 0 3px rgba(179, 38, 30, .22); }
.field-error { font-size: 13px; color: #ffb4ad; margin: 0; }
.lookup-form input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bar .fill { transition: none; }
}

@media print {
  .hero, .ridge, #map, .signup, .lookup-btns { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  dialog.panel { display: none !important; }
}
