/* VoteNoYarmouth.com — Merged with Coalition for Safe Communities content
   Design: distinct from yarmouthrtc.com — Manrope font, darker navy, gold accents */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --navy: #0a1628;
  --navy-mid: #152238;
  --navy-light: #1e3050;
  --red: #b71c1c;
  --red-soft: #d32f2f;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --bg: #f5f5f0;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --border: #ddd;
  --green: #2e7d32;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --radius: 6px;
  --max-w: 1100px;
}

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

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-weight: 800; }

/* ─── HEADER ─── */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.logo-accent { color: var(--red-soft); }
.logo-gold { color: var(--gold); }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ─── URGENT BANNER ─── */
.urgent-banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.urgent-banner a { color: var(--gold-light); text-decoration: underline; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 50%, var(--gold) 100%);
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero .accent { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── COUNTDOWN ─── */
.countdown-bar {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 20px 32px;
  margin: 0 auto 32px;
  max-width: 700px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.countdown-item {
  text-align: center;
}
.countdown-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Fira Code', monospace;
  display: block;
}
.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ─── STAT BOXES ─── */
.stat-strip {
  background: var(--navy);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-box {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}
.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Fira Code', monospace;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.4;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-primary:hover { background: #8e0000; border-color: #8e0000; color: #fff; }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ─── SECTIONS ─── */
section { padding: 56px 0; }
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.3px;
}
.section-intro {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

/* ─── FACT CARDS ─── */
.key-facts { background: #fff; }
.fact-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.fact-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.fact-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fact-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.fact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.fact-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.fact-card a { color: inherit; display: block; }
.fact-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 6px;
}
.fact-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.fact-detail {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── CONTENT CARDS ─── */
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.content-card.highlight { border-left: 4px solid var(--red); }
.content-card.highlight-gold { border-left: 4px solid var(--gold); }
.content-card.highlight-navy { border-left: 4px solid var(--navy); }
.content-card h2 { color: var(--navy); margin-bottom: 16px; }
.content-card h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.1rem; }
.content-card p { margin-bottom: 14px; }

/* ─── QUOTE BLOCK ─── */
.quote-block {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
  position: relative;
}
.quote-block::before {
  content: '\201C';
  font-size: 6rem;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-text {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 16px;
  text-align: center;
  color: rgba(255,255,255,0.9);
}
.quote-attr {
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.quote-context {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ─── BALLOT TEXT ─── */
.ballot-text {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 20px 0;
  position: relative;
}
.ballot-text::before {
  content: 'OFFICIAL BALLOT LANGUAGE';
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── ANALYSIS BLOCKS ─── */
.analysis-block {
  background: var(--bg);
  border-left: 3px solid var(--navy);
  padding: 18px 22px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.analysis-block h4 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.analysis-block.warning { border-left-color: var(--red); background: #fff5f5; }
.analysis-block.info { border-left-color: var(--gold); background: #fffdf0; }

/* ─── CHECK LISTS ─── */
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '\2192';
  position: absolute;
  left: 4px;
  color: var(--navy);
  font-weight: 700;
}
.check-list.red li::before { color: var(--red); content: '\2717'; }
.check-list.gold li::before { color: var(--gold); content: '\25B6'; }

/* ─── VIDEO CARDS ─── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-card video {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-card .video-info {
  padding: 20px 24px;
}
.video-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.video-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }
.video-card .video-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ─── COST TABLE ─── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.cost-table th:first-child,
.cost-table td:first-child { width: 28%; }
.cost-table th:nth-child(2),
.cost-table td:nth-child(2),
.cost-table th:nth-child(3),
.cost-table td:nth-child(3),
.cost-table th:nth-child(4),
.cost-table td:nth-child(4) { width: 24%; text-align: center; }
.cost-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.cost-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.cost-table tr:nth-child(even) { background: var(--bg); }
.cost-table .amount { text-align: center; font-weight: 700; font-family: 'Fira Code', monospace; }
.cost-table .total-row { font-weight: 800; background: #fff5f5 !important; }
.cost-table .total-row td { border-top: 2px solid var(--red); }

/* ─── ORG CARDS ─── */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.org-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.org-card:hover { box-shadow: var(--shadow-hover); }
.org-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.org-stat { color: var(--red); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.org-detail { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }

/* ─── ACTION CARDS ─── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.action-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.action-card h3 { color: var(--navy); margin-bottom: 12px; }
.action-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.action-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

/* ─── SIGN REQUEST FORM ─── */
.sign-form {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 600px;
  margin: 32px auto 0;
}
.sign-form h3 { text-align: center; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,162,39,0.2);
}

/* ─── PROP 2.5 EXPLAINER ─── */
.explainer {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
}
.explainer h2 { color: var(--gold); text-align: center; margin-bottom: 24px; }
.explainer p { color: rgba(255,255,255,0.85); max-width: 800px; margin: 0 auto 16px; }
.explainer strong { color: #fff; }
.explainer .highlight-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px auto;
  max-width: 800px;
}

/* ─── TOWN MEETING CALLOUT ─── */
.meeting-callout {
  background: linear-gradient(135deg, var(--red) 0%, #8e0000 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.meeting-callout h2 { color: #fff; margin-bottom: 16px; font-size: 2rem; }
.meeting-callout p { color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto 24px; font-size: 1.05rem; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 36px 0 16px;
  font-size: 0.85rem;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 20px;
}
.footer-info { max-width: 420px; line-height: 1.7; }
.footer-info strong { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.footer-allies {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.footer-allies a {
  color: rgba(255,255,255,0.4);
  margin: 0 12px;
  font-size: 0.8rem;
}
.footer-allies a:hover { color: var(--gold); }

/* ─── QUESTION TABS ─── */
.q-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.q-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 130px;
  box-shadow: var(--shadow);
  font-family: 'Manrope', system-ui, sans-serif;
}
.q-tab:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.q-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.q-tab-num {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Fira Code', monospace;
  color: var(--navy);
}
.q-tab.active .q-tab-num { color: var(--gold); }
.q-tab-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}
.q-tab.active .q-tab-label { color: rgba(255,255,255,0.9); }
.q-tab-type {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 8px;
  border-radius: 3px;
}
.q-tab-type-red { background: #fff5f5; color: var(--red); }
.q-tab-type-gold { background: #fffdf0; color: #8a6d00; }
.q-tab-type-navy { background: #f0f2f5; color: var(--navy); }
.q-tab.active .q-tab-type-red { background: rgba(183,28,28,0.3); color: #ff8a80; }
.q-tab.active .q-tab-type-gold { background: rgba(201,162,39,0.3); color: var(--gold-light); }
.q-tab.active .q-tab-type-navy { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }

/* ─── FEATURED BALLOT TEXT ─── */
.ballot-text-featured {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  border: none;
  border-radius: var(--radius);
  padding: 24px 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 16px 0 20px;
  position: relative;
  box-shadow: 0 4px 16px rgba(10,22,40,0.25);
}
.ballot-text-featured::before {
  content: 'OFFICIAL BALLOT LANGUAGE';
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ballot-text-featured strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* ─── DETAILS TOGGLE ─── */
.q-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.2s;
  margin-top: 4px;
}
.q-details-toggle:hover {
  background: var(--bg);
  border-color: var(--navy);
}
.q-details-toggle .arrow { transition: transform 0.2s; display: inline-block; }
.q-details-toggle.open .arrow { transform: rotate(180deg); }

.q-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.q-details.open {
  max-height: 2000px;
}

/* ─── COST LINK ─── */
.q-cost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 12px;
  text-decoration: none;
}
.q-cost-link:hover { color: var(--navy); }

/* ─── PRIORITY BADGES ─── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-red { background: var(--red); color: #fff; }
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-navy { background: var(--navy); color: #fff; }
.badge-green { background: var(--green); color: #fff; }

/* ─── RESPONSIVE — TABLET ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 40px 0 32px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .section-title { font-size: 1.4rem; }

  .fact-grid, .fact-grid.cols-4, .fact-grid.cols-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-grid .stat-box { padding: 12px; }
  .stat-number { font-size: 1.6rem; }
  .org-grid { grid-template-columns: 1fr !important; }
  .video-grid { grid-template-columns: 1fr !important; }
  .video-card video { max-height: 180px; }
  .action-grid { grid-template-columns: 1fr !important; }

  .countdown-bar { gap: 20px; padding: 16px 20px; }
  .countdown-number { font-size: 1.8rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 200;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; font-size: 0.95rem; }
  .nav-toggle { display: block; }

  .bottom-grid { grid-template-columns: 1fr !important; }
  .q-tabs { gap: 6px; }
  .q-tab { min-width: 0; flex: 1 1 calc(50% - 6px); padding: 10px 8px; }
  .q-tab-num { font-size: 1rem; }
  .q-tab-label { font-size: 0.65rem; }
  .ballot-text-featured { padding: 16px 18px; font-size: 0.92rem; }
  .q-cost-link { display: block; margin-left: 0; margin-top: 8px; }
  .content-card { padding: 20px; }
  .ballot-text { padding: 16px; }
  section { padding: 36px 0; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .quote-text { font-size: 1rem; padding: 0 12px; }
  .sign-form { padding: 24px; margin: 20px auto 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.3rem; }
  .hero { padding: 28px 0 24px; }
  .fact-grid, .fact-grid.cols-4, .fact-grid.cols-3, .fact-grid.cols-2 { grid-template-columns: 1fr !important; }
  .btn { padding: 10px 20px; font-size: 0.82rem; }
  .logo { font-size: 1.05rem; }
  .header-inner { height: 56px; }
  .countdown-bar { gap: 16px; }
  .countdown-number { font-size: 1.5rem; }
}

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
  .site-header { position: -webkit-sticky; position: sticky; }
  a, button { -webkit-tap-highlight-color: rgba(0,0,0,0.1); }
}

/* ─── DEFEATED watermark (Town Meeting 2026-04-28: Q3 defeated) ─── */
@keyframes defeatedPulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(-22deg) scale(1); filter: drop-shadow(0 0 0 rgba(220,38,38,0)); }
  50%      { transform: translate(-50%, -50%) rotate(-22deg) scale(1.04); filter: drop-shadow(0 0 18px rgba(220,38,38,0.55)); }
}

.defeated-overlay {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.defeated-overlay::after {
  content: 'DEFEATED';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-family: 'Impact', 'Arial Black', 'Helvetica', sans-serif;
  font-size: clamp(5rem, 20vw, 14rem);
  font-weight: 900;
  letter-spacing: 0.45rem;
  color: #d32f2f;
  text-shadow:
    0 0 2px #fff,
    0 0 6px rgba(0,0,0,0.5),
    0 6px 22px rgba(0,0,0,0.45);
  border-top: 14px solid #d32f2f;
  border-bottom: 14px solid #d32f2f;
  padding: 18px 72px;
  pointer-events: none;
  z-index: 50;
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
  text-transform: uppercase;
  animation: defeatedPulse 2.4s ease-in-out infinite;
}
/* dim underlying content so the stamp pops */
.defeated-overlay > *:not(.defeated-meta) { opacity: 0.32; filter: grayscale(0.4); }

/* small-card variant for index/cost grid cards — much more obvious now */
.defeated-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid #d32f2f !important;
  box-shadow: 0 0 0 4px rgba(211,47,47,0.18), 0 8px 24px rgba(211,47,47,0.25) !important;
}
.defeated-card::before {
  content: 'BALLOT INITIATIVE STOPPED';
  position: absolute;
  top: 12px;
  left: -38px;
  transform: rotate(-45deg);
  background: #d32f2f;
  color: #fff;
  padding: 4px 44px;
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  z-index: 51;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-transform: uppercase;
}
.defeated-card::after {
  content: 'DEFEATED';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.25rem;
  color: #d32f2f;
  text-shadow:
    0 0 2px #fff,
    0 0 6px rgba(0,0,0,0.5),
    0 4px 14px rgba(0,0,0,0.4);
  border-top: 7px solid #d32f2f;
  border-bottom: 7px solid #d32f2f;
  padding: 8px 28px;
  pointer-events: none;
  z-index: 50;
  white-space: nowrap;
  text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  animation: defeatedPulse 2.4s ease-in-out infinite;
}
.defeated-card > a, .defeated-card > * { opacity: 0.32; filter: grayscale(0.4); }

/* "DEFEATED at Town Meeting" header strip — sits above the dimmed content */
.defeated-meta {
  position: relative;
  z-index: 51;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 12px 18px;
  margin: -28px -28px 22px -28px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.92rem;
  opacity: 1 !important;
}
.defeated-meta small {
  display: block;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  opacity: 0.92;
  margin-top: 2px;
  font-size: 0.78rem;
}

/* post-meeting urgent banner — keep readable on small screens */
.urgent-banner.post-meeting {
  background: linear-gradient(90deg, var(--red) 0%, var(--navy) 60%, var(--navy) 100%);
}
.urgent-banner .strike { text-decoration: line-through; opacity: 0.75; }

