/* Guadalupe County GOP — design prototype
   Tokens from DESIGN.md — keep hex in sync with Mailchimp brand kit.
   If you change colors here, update DESIGN.md + Mailchimp templates together. */

:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --ink: #1a2332;
  --muted: #5c6778;
  --navy: #1b2a4a;
  --navy-deep: #0f1729;
  --crimson: #b01e2e;
  --crimson-hover: #8f1825;
  --star: #f0e6c8;
  --line: #d8dee8;
  --focus: #3b6fbf;
  --shell: 72rem;
  --measure: 40rem;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Public Sans", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --space-section: clamp(3rem, 6vw, 5.5rem);
  --radius: 4px;
  --shadow: 0 12px 40px rgb(15 23 41 / 0.12);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--crimson);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--crimson);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-family: var(--font-ui);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 2rem, var(--shell));
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
}

.measure-wide {
  max-width: 48rem;
}

.muted {
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}

.btn-crimson {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}

.btn-crimson:hover {
  background: var(--crimson-hover);
  border-color: var(--crimson-hover);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--star);
  color: var(--navy-deep);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
}

.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--star);
}

.btn-on-crimson {
  background: #fff;
  color: var(--crimson);
  border-color: #fff;
}

.btn-on-crimson:hover {
  background: var(--star);
  color: var(--navy-deep);
}

.text-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--crimson);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-link.on-crimson {
  color: #fff;
}

/* Header */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.25);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-wrap: balance;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-primary,
.nav-utility {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.9);
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav-primary a:hover {
  color: var(--star);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: transparent;
  border-radius: var(--radius);
  position: relative;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.15rem;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

/* Seasonal strip */

.seasonal {
  background: var(--crimson);
  color: #fff;
  padding: 1.15rem 0 0.85rem;
}

.seasonal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}

.seasonal-copy {
  flex: 1 1 16rem;
  min-width: min(100%, 16rem);
  max-width: none;
}

.seasonal-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  opacity: 0.9;
}

.seasonal-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.2;
  text-wrap: balance;
  max-width: none;
}

.seasonal-desc {
  margin: 0;
  max-width: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.92);
}

.seasonal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  flex: 0 0 auto;
  max-width: 100%;
}

.seasonal-note {
  margin: 0.85rem auto 0;
  padding-bottom: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Hero */

.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: var(--space-section) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: stretch;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 36rem;
  color: rgb(255 255 255 / 0.88);
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.card-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--star);
  margin: 0 0 0.5rem;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.event-meta {
  margin: 0 0 1.25rem;
}

.event-meta div {
  margin-bottom: 0.75rem;
}

.event-meta dt {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
}

.event-meta dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.card-foot {
  margin: 1rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.65);
}

/* Sections */

.section {
  padding: var(--space-section) 0;
}

.section-surface {
  background: var(--surface);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: none; /* full shell width when no side control */
}

.section-head.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 1.25rem;
  max-width: none;
}

.section-head.row > div:first-child {
  min-width: 0;
}

.section-head.row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .section-head.row {
    grid-template-columns: 1fr;
  }
  .section-head.row .btn {
    white-space: normal;
    justify-self: start;
  }
}

.section-head h2,
.section-navy h2,
#about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.section-navy .section-head p,
.newsletter p {
  color: rgb(255 255 255 / 0.8);
}

/* Actions */

.action-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr;
  gap: 1rem;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.35rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.action:hover {
  border-color: var(--navy);
  color: inherit;
  transform: translateY(-2px);
}

.action.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.action.featured:hover {
  border-color: var(--navy-deep);
  color: #fff;
}

.action.quiet {
  background: var(--surface);
}

.action-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--star);
}

.action h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.action p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}

.action.featured p {
  color: rgb(255 255 255 / 0.8);
}

.action-go {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--crimson);
  margin-top: 0.5rem;
}

.action.featured .action-go {
  color: var(--star);
}

/* Priorities */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.priority-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  max-width: 36rem;
}

.priority-list li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.photo-panel {
  margin: 0;
}

.photo-panel img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 22rem;
  border: 1px solid var(--line);
}

.photo-panel figcaption {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

/* Default venue (editable — not permanent HQ) */

.venue-callout {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 40rem;
}

.venue-callout-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.venue-callout-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.venue-callout-addr {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.venue-callout-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin: 0;
}

.venue-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

/* Events list */

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.event-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.event-list time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

.event-list h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.event-list p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
}

.event-list > li > a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--crimson);
  text-decoration: none;
}

.event-list > li > a:hover {
  text-decoration: underline;
}

/* Posts */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  padding: 1.25rem;
  background: var(--bg);
  border-top: 3px solid var(--navy);
}

.section-surface .post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 6px 6px;
}

.post-card time {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
}

.post-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.4rem 0 0.5rem;
  text-wrap: balance;
  line-height: 1.3;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--crimson);
}

.post-card p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--muted);
}

/* Clubs */

.club-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.club-list li {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.club-abbr {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 0.35rem !important;
}

.club-list h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.club-list p {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--muted);
}

.club-links {
  margin-bottom: 0 !important;
}

.club-disclaimer {
  margin: 1.5rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  max-width: 48rem;
}

/* Newsletter */

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.newsletter-form input {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.newsletter-form input::placeholder {
  color: rgb(255 255 255 / 0.5);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.6);
}

/* About */

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
}

.anchor-note {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgb(255 255 255 / 0.85);
  padding: 3rem 0 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
  margin: 0 0 0.65rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--star);
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.5);
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .newsletter,
  .action-row,
  .post-grid,
  .club-list {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .nav-primary,
  .nav-utility {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .action-row {
    grid-template-columns: 1fr;
  }

  .event-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* WordPress content pages */
.entry-content {
  font-family: var(--font-body);
  max-width: 68ch;
}
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}
.entry-content a {
  color: var(--crimson);
}

/* Keep designed button colors inside page content (front page blocks) */
.entry-content a.btn,
.ggop-front-content a.btn {
  text-decoration: none;
}
.entry-content a.btn-crimson,
.ggop-front-content a.btn-crimson {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
}
.entry-content a.btn-crimson:hover,
.ggop-front-content a.btn-crimson:hover {
  background: var(--crimson-hover);
  border-color: var(--crimson-hover);
  color: #fff;
}
.entry-content a.btn-navy,
.ggop-front-content a.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.entry-content a.btn-navy:hover,
.ggop-front-content a.btn-navy:hover {
  background: var(--navy-deep);
  color: #fff;
}
.entry-content a.btn-light,
.ggop-front-content a.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.entry-content a.btn-light:hover,
.ggop-front-content a.btn-light:hover {
  background: var(--star);
  color: var(--navy-deep);
}
.entry-content a.btn-outline-light,
.ggop-front-content a.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
}
.entry-content a.btn-outline-light:hover,
.ggop-front-content a.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}
.entry-content a.btn-on-crimson,
.ggop-front-content a.btn-on-crimson {
  background: #fff;
  color: var(--crimson);
  border-color: #fff;
}
.entry-content a.btn-on-crimson:hover,
.ggop-front-content a.btn-on-crimson:hover {
  background: var(--star);
  color: var(--navy-deep);
}
.entry-content a.btn-ghost,
.ggop-front-content a.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: transparent;
}
/* Involvement / club cards are not crimson body links */
.entry-content a.action,
.ggop-front-content a.action {
  color: inherit;
}
.entry-content a.action.featured,
.ggop-front-content a.action.featured {
  color: #fff;
}
.entry-content a.action .action-go,
.ggop-front-content a.action .action-go {
  color: var(--crimson);
}
.entry-content a.action.featured .action-go,
.ggop-front-content a.action.featured .action-go {
  color: var(--star);
}
.entry-content a.text-link.on-crimson,
.ggop-front-content a.text-link.on-crimson {
  color: #fff;
}
.ggop-mailchimp input[type="email"],
.ggop-mailchimp input[type="text"] {
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  width: 100%;
  max-width: 22rem;
  margin-bottom: 0.5rem;
}
.ggop-mailchimp button,
.ggop-mailchimp input[type="submit"] {
  font-family: var(--font-ui);
  font-weight: 600;
  background: var(--crimson);
  color: #fff;
  border: 2px solid var(--crimson);
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  cursor: pointer;
}
.tribe-events .tribe-common-c-btn,
.tribe-events a.tribe-events-c-ical__link {
  font-family: var(--font-ui);
}

/* Header utility buttons: aligned height/vertical center */
.nav-utility {
  align-items: center;
}
.nav-utility .btn-header-util {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  line-height: 1.2;
  padding: 0.55rem 1rem;
  box-sizing: border-box;
  white-space: nowrap;
}
.nav-utility .btn-ghost {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}
.nav-utility .btn-ghost:hover {
  border-color: #fff;
  color: var(--star);
  background: rgb(255 255 255 / 0.08);
}

/* Footer newsletter (compact MC4WP form) */
.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.footer-newsletter-copy {
  max-width: 22rem;
}
.footer-newsletter-desc {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.75);
}
.footer-newsletter-form {
  flex: 1 1 16rem;
  max-width: 28rem;
}
.footer-newsletter-form .mc4wp-form,
.ggop-mailchimp .mc4wp-form {
  margin: 0;
}
.footer-newsletter-form .mc4wp-form input[type="email"],
.ggop-mailchimp .mc4wp-form input[type="email"] {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  width: min(100%, 16rem);
  margin-right: 0.4rem;
  margin-bottom: 0.35rem;
}
.footer-newsletter-form .mc4wp-form input[type="submit"],
.footer-newsletter-form .mc4wp-form button,
.ggop-mailchimp .mc4wp-form input[type="submit"],
.ggop-mailchimp .mc4wp-form button {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--crimson);
  color: #fff;
  border: 2px solid var(--crimson);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
}
.footer-newsletter-form .mc4wp-form label,
.ggop-mailchimp .mc4wp-form label {
  color: rgb(255 255 255 / 0.85);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.footer-newsletter-form .mc4wp-alert,
.ggop-mailchimp .mc4wp-alert {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

@media (max-width: 560px) {
  .nav-utility {
    width: 100%;
    gap: 0.5rem;
  }
  .nav-utility .btn-header-util {
    width: 100%;
  }
}



/* Election timeline on Voter Information */
.elec-timeline {
  --rail-pad: 1.35rem;
  --rail-x: 0.35rem; /* center of vertical line + dots */
  --line-w: 3px;
  --dot-size: 0.75rem;
  /* Match .elec-item-head h3 first-line box; center the dot on that line */
  --title-size: 1.25rem;
  --title-lh: 1.25;
  --dot-top: calc((var(--title-size) * var(--title-lh) - var(--dot-size)) / 2);
  --item-gap: 0.9rem;
  position: relative;
  margin: 1.25rem 0 1rem;
  padding-left: var(--rail-pad);
}
/* Full-height rail for the elections section only (closed div) */
.elec-timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - var(--line-w) / 2);
  top: calc(var(--dot-top) + var(--dot-size) / 2);
  bottom: 0;
  width: var(--line-w);
  background: var(--navy, #1b2a4a);
  z-index: 0;
}
.elec-item {
  position: relative;
  margin: 0 0 var(--item-gap);
  padding: 0;
}
.elec-item:last-child {
  margin-bottom: 0;
}
/* Dots centered on the line: grey = past, red = upcoming */
.elec-item::before {
  content: "";
  position: absolute;
  left: calc(0px - var(--rail-pad) + var(--rail-x) - var(--dot-size) / 2);
  top: var(--dot-top);
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: #5c6778;
  box-shadow: 0 0 0 3px var(--bg, #fff);
  z-index: 1;
}
.elec-item.is-upcoming::before {
  background: var(--crimson, #b01e2e);
}
.elec-item-head {
  display: block;
  margin: 0;
}
.elec-item-head h3 {
  display: block;
  margin: 0 0 0.1rem;
  font-family: var(--font-display, inherit);
  font-size: var(--title-size, 1.25rem);
  line-height: var(--title-lh, 1.25);
  color: var(--navy, #1b2a4a);
}
/* Results link sits under the past-election header (body link weight) */
.elec-item-head .elec-results,
.elec-item-head a.elec-results,
.elec-item-head p.elec-results {
  display: block;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.45;
}
.elec-item-head p.elec-results a {
  font-weight: inherit;
}
/* Space before detail grid only when present */
.elec-item-head + .elec-cols {
  margin-top: 0.55rem;
}
.elec-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.65rem;
}
@media (max-width: 640px) {
  .elec-cols { grid-template-columns: 1fr; }
}
.elec-col {
  background: var(--surface, #f4f6f9);
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
}
.elec-col h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-ui, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5c6778);
}
.elec-col p {
  margin: 0 0 0.3rem;
  font-size: inherit;
}
.elec-col p:last-child { margin-bottom: 0; }
.elec-reg {
  margin: 0 0 0.35rem;
  font-size: inherit;
}
/* Match other entry-content lists; no special font/size */
.elec-links {
  margin: 0.35rem 0 0;
}

/* Front page is full-bleed sections, not article measure */
.ggop-front .ggop-front-content.entry-content {
  max-width: none;
  font-family: inherit;
}
.ggop-front .ggop-front-content.entry-content > * {
  margin-left: 0;
  margin-right: 0;
}
.ggop-front .ggop-front-content > .seasonal:first-child {
  /* seasonal sits under header; no extra top gap from entry-content */
}
.hero-card-empty {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Empty row: one full-width cell (must beat .event-list li’s 3-col grid) */
.event-list li.event-list-empty {
  grid-template-columns: 1fr;
}
.event-list li.event-list-empty h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* About free content: match section-head type */
.about-content > h2:first-child,
.about-content > .wp-block-heading:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  color: var(--navy, #1b2a4a);
}
.about-content > p,
.about-content > .wp-block-paragraph {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 1rem;
}
.about-content > p:last-child,
.about-content > .wp-block-paragraph:last-child {
  margin-bottom: 0;
}
.about-content a {
  color: var(--crimson);
  font-weight: 600;
}
