/* ============================================================
   Burbank Republican Party — site.css
   Rebuilt to match the original look with cleaner organization.
   Same Inter font, same 8px corners, same navy/red palette,
   same priority-card color sequence, same gradient banners.
   ============================================================ */

/* -- 1. Tokens ------------------------------------------------ */
:root {
  /* Brand */
  --navy:        #101f4d;
  --navy-soft:   #183876;
  --blue:        #285da8;
  --red:         #c91f2f;
  --red-dark:    #981827;
  --gold:        #f6cd62;
  --gold-deep:   #c7a54d;

  /* Neutrals */
  --ink:         #172032;
  --ink-soft:    #242c3c;
  --muted:       #596276;
  --paper:       #f7f5ef;
  --paper-warm:  #fff8f1;
  --white:       #ffffff;
  --line:        rgba(16, 31, 77, 0.14);
  --line-strong: rgba(16, 31, 77, 0.26);
  --hairline:    rgba(16, 31, 77, 0.16);
  --shadow:      0 18px 50px rgba(16, 31, 77, 0.13);
  --shadow-sm:   0 12px 28px rgba(16, 31, 77, 0.08);

  /* Layout */
  --max:         1080px;
  --radius:      8px;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -- 2. Reset & base ----------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
}
h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}
h3 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

/* -- 3. Utilities -------------------------------------------- */
.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--red);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* -- 4. Header ----------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(247, 245, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-cluster {
  display: inline-flex; align-items: center; gap: 0.8rem; min-width: 0;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.8rem;
  text-decoration: none; color: var(--navy); min-width: 0;
}
.brand-mark {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 56px; height: 56px;
  max-width: none;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 50%; object-fit: cover;
}
.brand strong {
  display: block;
  font-size: 1rem; font-weight: 800;
  color: var(--navy); line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 0.78rem; color: var(--muted);
}

.header-social { display: inline-flex; gap: 0.4rem; margin-left: 0.5rem; }
.header-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%; overflow: hidden;
}
.header-social-link img {
  width: 16px; height: 16px;
  filter: brightness(0) invert(1);
}

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-color: var(--red); }

.menu-toggle {
  display: none;
  background: transparent; border: 0;
  padding: 0.6rem; cursor: pointer; border-radius: 6px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 4px 0;
  transition: transform 0.18s, opacity 0.18s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .header-social { display: none; }
  .menu-toggle   { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}

/* -- 5. Buttons ---------------------------------------------- */
.button {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.18s, color 0.18s;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); outline: none; }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.button-primary {
  color: var(--white); background: var(--red);
  box-shadow: 0 10px 20px rgba(201, 31, 47, 0.22);
}
.button-primary:hover, .button-primary:focus-visible { background: var(--red-dark); }

.button-outline {
  color: var(--navy);
  background: rgba(247, 245, 239, 0.75);
  border-color: rgba(16, 31, 77, 0.24);
}
.button-outline:hover { background: var(--white); }

.button-light {
  color: var(--navy); background: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
  font-weight: 650; box-shadow: none;
}
.button-light:hover { color: var(--red-dark); }

/* -- 6. Hero ------------------------------------------------- */
.hero {
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch; gap: 1rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem 1rem;
}
.hero-copy {
  padding: clamp(1.25rem, 4vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-lede {
  max-width: 680px;
  margin: 1rem 0 0;
  color: #2b3449;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.35rem; }

/* Right hero card — navy gradient with grid pattern */
.hero-note {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(16, 31, 77, 0.96), rgba(40, 93, 168, 0.88)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.note-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem; font-weight: 900;
}
.hero-note > p:not(.note-label) {
  max-width: 32ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}
.note-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.note-list li {
  padding: 0.7rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

/* -- 7. Voter resources (top quick-links) ------------------- */
.voter-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.voter-card {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.voter-card .label {
  color: var(--red);
  font-size: 0.74rem; font-weight: 900;
}
.voter-card strong {
  font-size: 1.05rem; font-weight: 760;
  color: var(--navy); line-height: 1.2;
}
.voter-card:hover { border-color: var(--blue); }

/* -- 8. Section scaffolding --------------------------------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}
.section-heading { max-width: 700px; margin-bottom: 1.2rem; }

/* ============================================================
   9. ELECTION HUB — DELETE AFTER 2026-06-02
   ============================================================ */
.election-section {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 1rem;
}

.election-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem; align-items: end;
  padding: 1.25rem;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(16, 31, 77, 0.98), rgba(40, 93, 168, 0.9)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  border-radius: 8px 8px 0 0;
}
.election-heading .eyebrow { color: var(--gold); }
.election-heading h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
  text-align: right;
}
.election-heading p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.election-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
}
.election-meta div,
.election-meta a {
  min-height: 82px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
}
.election-meta a {
  color: var(--red-dark);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18rem;
}
.election-meta strong { font-weight: 860; }
.election-meta span   { color: var(--muted); }

.vote-center-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.vote-center-card {
  min-height: 244px;
  padding: 1rem;
  background: var(--white);
}
.vote-center-card.featured { background: var(--paper-warm); }
.vote-center-card span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--red);
  font-size: 0.86rem; font-weight: 780;
}
.vote-center-card h3 {
  font-size: 1.05rem; font-weight: 760;
  margin-bottom: 0.6rem;
}
.vote-center-card p {
  margin: 0 0 0.7rem;
  color: var(--muted); font-size: 0.94rem;
}
.vote-center-card p:last-child { margin-bottom: 0; }

.election-actions {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  padding: 1rem 0 0;
}
/* ============================================================
   END ELECTION HUB
   ============================================================ */

/* -- 10. Priorities (navy → blue → white → red sequence) --- */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.priority-card {
  min-height: 210px;
  padding: 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}
.priority-card:nth-child(2) { background: var(--navy-soft); }
.priority-card:nth-child(3) {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.priority-card:nth-child(4) { background: var(--red-dark); }

.priority-card h3 { color: inherit; }
.priority-card p  { margin: 0; color: rgba(255, 255, 255, 0.78); }
.priority-card:nth-child(3) p { color: var(--muted); }

.priority-number {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-size: 0.8rem; font-weight: 900;
}
.priority-card:nth-child(3) .priority-number { color: var(--red); }

/* -- 11. How we work --------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 1.5rem; align-items: start;
}
.work-grid p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* -- 12. Contact ------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem; align-items: start;
}

.email-tool {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.email-mask {
  font-family: ui-monospace, SFMono-Regular, "Courier New", monospace;
  font-size: 1.05rem;
  background: var(--paper);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  margin: 0 0 0.9rem;
}
.email-mask.is-revealed {
  background: var(--white);
  border: 1px solid var(--line);
}
.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
  min-height: 1.2em;
}
.email-tool address {
  font-style: normal;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.email-tool address strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.fppc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* -- 13. Inline social strip ------------------------------- */
.social-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  text-decoration: none;
}
.social-link img {
  width: 18px; height: 18px;
  filter: brightness(0) invert(1);
}

/* Branded gradients — same set as the original */
.youtube      { background: linear-gradient(145deg, #d31324, #8d101d); }
.instagram    { background: linear-gradient(145deg, #7f2dcc, #d91c5c 56%, #f0a43c); }
.tiktok       { background: linear-gradient(145deg, #111111, #293041); }
.reddit       { background: linear-gradient(145deg, #ff5f1f, #b83c12); }
.twitter      { background: linear-gradient(145deg, #111111, #30333a); }
.truth-social { background: linear-gradient(145deg, #144ec8, #0d2d72); }

/* -- 14. Footer -------------------------------------------- */
.site-footer {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* -- 15. Voter guide page ---------------------------------- */
.guide-online {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.5rem) 1rem clamp(2.5rem, 6vw, 4rem);
}

.guide-masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem; align-items: center;
  padding: clamp(1rem, 3vw, 1.7rem);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(16, 31, 77, 0.98), rgba(40, 93, 168, 0.88)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.guide-masthead img {
  width: clamp(72px, 12vw, 120px);
  height: clamp(72px, 12vw, 120px);
  object-fit: contain;
}
.guide-masthead .eyebrow { color: var(--gold); }
.guide-masthead h1 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
}
.guide-masthead p:not(.eyebrow) {
  max-width: 680px;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 900;
}

.guide-contact-bar {
  display: flex; flex-wrap: wrap;
  gap: 0.45rem 0.85rem; align-items: center;
  margin: 0.65rem 0;
  padding: 0.72rem 0.9rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 760;
}
.guide-contact-bar span {
  padding-left: 0.85rem;
  border-left: 2px solid var(--red);
}

.guide-archived-banner {
  margin: 0.65rem 0;
  padding: 1rem 1.4rem;
  background: var(--paper-warm);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius);
  color: var(--ink);
}
.guide-archived-banner strong {
  display: block; margin-bottom: 0.3rem;
  color: var(--navy);
}

.guide-actions-card {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.guide-actions-card p { max-width: 560px; margin: 0; color: var(--muted); }
.guide-actions-card > div { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.guide-panel {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.guide-panel > h2,
.guide-panel > h3 {
  margin: 0;
  padding: 0.65rem 0.85rem;
  color: var(--white);
  background: var(--navy);
  font-size: 1rem;
}

.guide-notes { display: grid; gap: 0; padding: 0.35rem 0.9rem; }
.guide-notes article {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.guide-notes article:last-child { border-bottom: 0; }
.guide-notes strong { color: var(--red); }

.guide-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.principles-list {
  display: grid; gap: 0.45rem;
  margin: 0;
  padding: 0.85rem 1rem 1rem 2.9rem;
  color: var(--ink); font-weight: 760;
}
.principles-list li::marker { color: var(--navy); font-weight: 900; }

.no-rec-panel > h2 { background: var(--red); }
.no-rec-panel ul {
  display: grid; gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem 1rem 2rem;
}

.disclaimer-panel { margin-bottom: 1rem; }
.disclaimer-panel > h2 { background: var(--navy); }
.disclaimer-panel p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--ink);
}

.guide-section { margin-top: 1rem; }
.guide-section > h2 {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  font-size: 1.05rem;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}
.recommendation-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.recommendation-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem; font-weight: 800;
}
.recommendation-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.recommendation-card strong {
  margin-top: auto;
  color: var(--navy);
  font-size: 1.05rem; font-weight: 800;
}
.recommendation-card.leave-blank strong {
  color: var(--muted); font-style: italic; font-weight: 700;
}
.recommendation-card.measure-card { background: var(--paper-warm); }

.judge-list { list-style: none; padding: 0; margin: 0; }
.judge-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.judge-list li:last-child { border-bottom: 0; }
.judge-list strong {
  color: var(--muted);
  font-weight: 600; font-style: italic;
  font-size: 0.85rem;
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
}
.local-stack { display: grid; gap: 0.8rem; }

/* Share CTA — same gradient family as hero-note / election-heading */
.share-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1.5rem;
  margin: 1rem 0;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(16, 31, 77, 0.96), rgba(40, 93, 168, 0.88)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.share-cta h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
}
.share-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  max-width: 50ch;
}

/* -- 16. Share form ---------------------------------------- */
.form-page {
  max-width: 580px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
}
.form-page > .eyebrow,
.form-page > h1 { max-width: none; }
.form-page > p {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
}

.form-card {
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-card fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.form-card legend {
  font-size: 1rem; font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-weight: 760;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.form-row .hint {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 400;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 80px; }

.form-hp {
  position: absolute;
  left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.checkbox-row {
  display: flex; gap: 0.6rem; align-items: start;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}
.checkbox-row input { margin-top: 0.25rem; }

.form-error, .form-success {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}
.form-error   { background: #fdecee; border-left: 4px solid var(--red); color: #6b1620; }
.form-success { background: #ecf5ec; border-left: 4px solid #2d7a2d;    color: #1c4a1c; }

.compliance-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* -- 17. Admin shell --------------------------------------- */
.admin-shell { max-width: 1024px; margin: 0 auto; padding: 2rem 1rem; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.admin-header h1 { font-size: 1.4rem; margin: 0; max-width: none; }

.admin-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-tabs a {
  padding: 0.55rem 1rem;
  font-size: 0.92rem; font-weight: 760;
  color: var(--navy); text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-tabs a.active,
.admin-tabs a:hover {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

.admin-card {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem; margin-bottom: 1.4rem;
}
.kpi {
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kpi .num {
  font-size: 1.9rem; font-weight: 900;
  color: var(--navy); line-height: 1;
}
.kpi .lbl {
  font-size: 0.74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); margin-top: 0.4rem;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table tbody tr:hover { background: var(--paper); }

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.status-sent       { background: #e3f1e0; color: #265c1e; }
.status-pending    { background: #fff3d9; color: #74510a; }
.status-failed     { background: #fdecee; color: #6b1620; }
.status-blocked,
.status-suppressed { background: #efe9f6; color: #4a2d6a; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--navy);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.18rem;
}
.text-link:hover { color: var(--red); }

/* -- 18. Mobile breakpoints -------------------------------- */
@media (max-width: 980px) {
  .hero,
  .work-grid,
  .contact-grid,
  .election-heading { grid-template-columns: 1fr; }

  .election-heading h2 { text-align: left; }

  .vote-center-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priority-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .guide-two-column,
  .local-grid       { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }

  .hero-note > p:not(.note-label) { font-size: 1rem; }

  .vote-center-grid,
  .priority-grid { grid-template-columns: 1fr; }

  .priority-card { min-height: 0; }
  .election-meta { grid-template-columns: 1fr; }
}

/* -- 19. Reduced motion ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- UX edits 2026-05-03 ----------------------------------------- */

/* Generic inline yellow highlight, matching the existing recommendation
   yellow so at-a-glance cues read consistently across the site. */
mark {
  padding: 0.05em 0.3em;
  color: #0d1639;
  background: #ffe11f;
  border-radius: 2px;
  font-weight: inherit;
}

/* Right-column card stack on /voter-guide/: drop forced min-heights and
   top-align content so short local cards stop burning vertical space. */
.local-card-stack,
.local-stack {
  gap: 0.5rem;
}

.local-card-stack .recommendation-card,
.local-stack .recommendation-card {
  min-height: auto;
  padding: 0.7rem 0.8rem;
  gap: 0.45rem;
  justify-content: flex-start;
}

.local-card-stack .recommendation-card h3,
.local-stack .recommendation-card h3 {
  font-size: 1rem;
}

.local-card-stack .recommendation-card p,
.local-stack .recommendation-card p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.local-card-stack .recommendation-card strong,
.local-stack .recommendation-card strong {
  font-size: 0.88rem;
}

.local-card-stack .leave-blank,
.local-card-stack .measure-card,
.local-stack .leave-blank,
.local-stack .measure-card {
  min-height: auto;
}

/* ---- /UX edits --------------------------------------------------- */

/* ---- UX edits round 2 - 2026-05-03 ----------------------------- */

/* Yellow highlight pill on every endorsed candidate name and on every
   "Leave blank unless personally researched" / "No. We always oppose..."
   line. Overrides the previous muted/italic styling on .leave-blank
   and .judge-list strong. */
.recommendation-card strong,
.recommendation-card.leave-blank strong,
.judge-list strong {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  padding: 0.18rem 0.55rem;
  background: #ffe11f;
  color: #0d1639;
  font-weight: 900;
  font-style: normal;
  border-radius: 3px;
  line-height: 1.25;
}

/* Measure ER card: same white background as the other recommendation cards. */
.recommendation-card.measure-card {
  background: var(--white);
}

/* Right-column stack on /voter-guide/ should only be as tall as its content. */
.local-grid  { align-items: start; }
.local-stack { align-self: start; }

/* "Text us" pill in the site header. */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
  padding: 0.35rem 0.78rem;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.header-phone:hover { background: var(--red-dark); }
.header-phone-num   { font-weight: 800; letter-spacing: 0.01em; }
.header-phone-label {
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 600;
  opacity: 0.95;
}
@media (max-width: 760px) {
  .header-phone        { padding: 0.32rem 0.6rem; font-size: 0.78rem; gap: 0; margin-left: 0.25rem; }
  .header-phone-label  { display: none; }
}

/* Small spacing tweak so the inline mailing-list checkbox does not crowd the email hint text. */
.form-row .checkbox-row { font-size: 0.88rem; }

/* ---- /UX edits round 2 ---------------------------------------- */

/* ---- UX edits round 4 - 2026-05-03 ----------------------------- */
.bgp-rec-label {
  display: block;
  margin: 0.45rem 0 0.2rem;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ---- /UX edits round 4 ---------------------------------------- */

/* ---- UX edits round 5 - 2026-05-03 ----------------------------- */

/* The Burbank GOP logo's curved "BURBANK / REPUBLICAN PARTY" text
   is hard to read at small sizes, so hide the masthead image on
   phones. The "Voter Guide" heading carries identity on its own. */
@media (max-width: 560px) {
  .guide-masthead              { grid-template-columns: minmax(0, 1fr); }
  .guide-masthead img          { display: none; }
}

/* ---- /UX edits round 5 ---------------------------------------- */

/* ---- Ballot-harvest explainer modal - 2026-05-04 ---------------- */

.guide-notes .harvest-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.guide-notes .harvest-trigger:hover,
.guide-notes .harvest-trigger:focus-visible {
  outline: none;
}
.guide-notes .harvest-trigger:hover .harvest-trigger-cta,
.guide-notes .harvest-trigger:focus-visible .harvest-trigger-cta {
  text-decoration: underline;
}
.guide-notes .harvest-trigger strong { color: var(--red); }
.harvest-trigger-cta {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.harvest-modal[hidden] { display: none; }
.harvest-modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.harvest-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(16, 31, 77, 0.62);
}
.harvest-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: 1.5rem 1.6rem 1.6rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(16, 31, 77, 0.35);
  color: var(--ink);
}
.harvest-modal-card h2 {
  margin: 0 0 0.6rem;
  padding-right: 2rem;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.2;
}
.harvest-modal-card h3 {
  margin: 1.1rem 0 0.4rem;
  color: var(--navy);
  font-size: 1.04rem;
}
.harvest-modal-card p { margin: 0 0 0.6rem; line-height: 1.5; }
.harvest-lede {
  font-size: 1rem;
  color: var(--ink);
}
.harvest-steps,
.harvest-rules {
  margin: 0 0 0.6rem;
  padding-left: 1.25rem;
  line-height: 1.5;
}
.harvest-steps li { margin-bottom: 0.55rem; }
.harvest-rules li { margin-bottom: 0.3rem; }
.harvest-cite {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.harvest-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.harvest-modal-close {
  position: absolute;
  top: 0.5rem; right: 0.6rem;
  width: 38px; height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.harvest-modal-close:hover,
.harvest-modal-close:focus-visible {
  background: rgba(16, 31, 77, 0.08);
  color: var(--navy);
  outline: none;
}
body.has-modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .harvest-modal { padding: 1rem 0.6rem; }
  .harvest-modal-card { padding: 1.2rem 1.1rem 1.3rem; border-radius: 10px; }
  .harvest-modal-card h2 { font-size: 1.25rem; }
  .harvest-trigger-cta { display: block; margin-left: 0; margin-top: 0.35rem; }
}

/* ---- /Ballot-harvest explainer modal --------------------------- */
