/* ============================================================
   Pollfinity Research LLC — Shared Stylesheet
   Palette: Navy #1a1a2e | Indigo #4f46e5 | Teal #0d9488
   Fonts: Inter (body) | Playfair Display (headlines)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: #1a1a2e;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: #4f46e5;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: #f8f9fb;
}

/* ── Navigation ── */
.site-nav {
  background: #1a1a2e;
  border-bottom: 3px solid #4f46e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(79, 70, 229, 0.25);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #cbd5e1;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  background: #1a1a2e;
  padding: 5rem 0 4rem;
  border-bottom: 4px solid #4f46e5;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 1rem;
}

.hero h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero-tagline {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Credential Bar ── */
.credential-bar {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 0.875rem 0;
}

.credential-bar .container {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.credential-item {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.credential-item::before {
  content: '✓';
  color: #0d9488;
  font-weight: 700;
}

/* ── Section Headers ── */
.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 0.5rem;
  display: block;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: #4f46e5;
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* ── Poll Card ── */
.poll-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}

.poll-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.poll-card-header {
  background: #1a1a2e;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.poll-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #4f46e5;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.poll-card-date {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 400;
}

.poll-card-body {
  padding: 1.5rem;
}

.poll-card-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.poll-card-body h3 a {
  color: #1a1a2e;
  text-decoration: none;
}

.poll-card-body h3 a:hover {
  color: #4f46e5;
}

.poll-card-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.poll-meta-item {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.poll-meta-item strong {
  color: #374151;
  font-weight: 600;
}

.poll-card-body p {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* ── CTA Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #0d9488;
  color: #fff;
}
.btn-primary:hover {
  background: #0f766e;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #4f46e5;
  border: 1.5px solid #4f46e5;
}
.btn-secondary:hover {
  background: #4f46e5;
  color: #fff;
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* ── Poll Archive Table ── */
.poll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.poll-table th {
  background: #1a1a2e;
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 1rem;
  text-align: left;
}

.poll-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.poll-table tr:last-child td {
  border-bottom: none;
}

.poll-table tr:hover td {
  background: #f8f9fb;
}

.poll-table a {
  color: #4f46e5;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.status-published {
  background: #d1fae5;
  color: #065f46;
}
.status-pending {
  background: #fef3c7;
  color: #92400e;
}

/* ── About / Intro Section ── */
.about-brief {
  max-width: 720px;
}

.about-brief h2 {
  margin-bottom: 1rem;
}

/* ── Team Card ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}

.team-card-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 0.4rem;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ── Methodology Boxes ── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.method-card {
  border-left: 4px solid #4f46e5;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: #f8f9fb;
  border-radius: 0 6px 6px 0;
}

.method-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 0.6rem;
}

.method-card p {
  font-size: 0.9rem;
  color: #374151;
}

/* ── Methodology Box (poll release) ── */
.methodology-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.methodology-box h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a2e;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.methodology-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.methodology-dl dt {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.methodology-dl dd {
  color: #4b5563;
}

.independence-note {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border-left: 3px solid #0d9488;
  border-radius: 0 4px 4px 0;
  font-size: 0.875rem;
  color: #374151;
  font-style: italic;
}

/* ── Key Findings ── */
.findings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

.findings-table th {
  background: #1a1a2e;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
}

.findings-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.findings-table tr:last-child td {
  border-bottom: none;
}

.findings-table tr:nth-child(even) td {
  background: #f8f9fb;
}

.candidate-name {
  font-weight: 600;
  color: #1a1a2e;
}

.candidate-party {
  font-size: 0.8rem;
  color: #6b7280;
  margin-left: 0.4rem;
  font-weight: 400;
}

.pct-value {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #4f46e5;
}

.pct-bar-cell {
  width: 180px;
}

.pct-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.pct-bar-fill {
  height: 100%;
  border-radius: 5px;
}

.bar-dem { background: #2563eb; }
.bar-rep { background: #dc2626; }
.bar-lib { background: #ca8a04; }
.bar-und { background: #9ca3af; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: #1a1a2e;
  padding: 3rem 0 2.5rem;
  border-bottom: 4px solid #4f46e5;
}

.page-hero .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  max-width: 800px;
}

.page-hero .subhead {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.65;
}

/* ── Release Meta Strip ── */
.release-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.875rem 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.release-meta span strong {
  color: #374151;
}

/* ── Prose Content ── */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  margin-bottom: 1rem;
}

.prose li {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.65;
}

.prose strong {
  color: #1a1a2e;
}

/* ── Info Boxes ── */
.info-box {
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.info-box-blue {
  background: #eff6ff;
  border-left: 4px solid #4f46e5;
}

.info-box-teal {
  background: #f0fdfa;
  border-left: 4px solid #0d9488;
}

.info-box-gray {
  background: #f8f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

/* ── Contact Block ── */
.contact-block {
  background: #f8f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.contact-block h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.contact-block a {
  color: #0d9488;
  font-weight: 500;
}

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  border-top: 3px solid #4f46e5;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
  border-radius: 3px;
  opacity: 0.9;
}

.footer-brand-text {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
}

.footer-brand-text strong {
  color: #cbd5e1;
  display: block;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #94a3b8;
}

.footer-copy {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.78rem;
  color: #475569;
  margin-top: 0.5rem;
}

/* ── Privacy / Legal ── */
.legal-section h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-section p, .legal-section li {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.25rem; }

  .page-hero h1 { font-size: 1.75rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-top: 1px solid #2d2d5e;
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 2rem;
    border-radius: 0;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: relative;
  }

  .credential-bar .container {
    gap: 1rem;
  }

  .methodology-dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .methodology-dl dt {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .poll-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .pct-bar-cell {
    display: none;
  }

  .release-meta {
    gap: 1rem;
  }

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

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero h1 { font-size: 1.875rem; }
  h1 { font-size: 1.625rem; }
  .section { padding: 3rem 0; }
}

/* ── Page Header (interior pages) ── */
.page-header {
  background: #1a1a2e;
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.page-header .section-label {
  color: #0d9488;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.page-header h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.page-header p {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0;
}

/* ── Two-column layout (main + sidebar) ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.content-main h2 { margin-top: 2rem; margin-bottom: 0.25rem; font-size: 1.5rem; }
.content-main h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; font-size: 1.1rem; }
.content-main p { margin-bottom: 1rem; }

/* ── Sidebar ── */
.content-sidebar { position: sticky; top: 5rem; }
.sidebar-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}
.sidebar-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
}

/* ── Prose content (privacy policy etc.) ── */
.prose-content { max-width: 760px; }
.prose-content h2 { margin-top: 2.5rem; margin-bottom: 0.25rem; font-size: 1.375rem; }
.prose-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.05rem; color: #374151; }
.prose-content p { margin-bottom: 1rem; color: #374151; }
.lead-text {
  font-size: 1.05rem;
  color: #374151;
  border-left: 3px solid #0d9488;
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Contact Card ── */
.contact-card {
  background: #f0fdf9;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}
.contact-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 0.5rem;
}
.contact-card-name { font-size: 1.1rem; font-weight: 600; color: #1a1a2e; margin-bottom: 0.5rem; }
.contact-card-detail { font-size: 0.9rem; color: #374151; margin-top: 0.35rem; }

/* ── Content list ── */
.content-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-list li {
  margin-bottom: 0.5rem;
  color: #374151;
  line-height: 1.6;
}

/* ── Responsive for content-grid ── */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    position: static;
  }
}

/* ── About grid (two-column: text + stats) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 0.25rem; }
.about-text p { color: #374151; margin-bottom: 1rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #0d9488;
  margin-left: 2px;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 0.4rem;
}
.stat-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

/* Tighten section spacing */
.section { padding: 4rem 0; }
.section--alt { padding: 4rem 0; }

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Nav logo — text wordmark (replaces tiny image) ── */
.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: #4f46e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  letter-spacing: -1px;
}
.nav-logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-words strong {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.nav-logo-words span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0d9488;
}

/* ── Hero logo image ── */
.hero-logo {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}
.hero-logo img {
  width: 420px;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* ── Mobile-first fixes ── */

/* Poll release page two-column layout */
.release-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* Nav mobile hamburger fix */
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Prevent any element from causing horizontal scroll */
*, *::before, *::after {
  max-width: 100%;
}
img { max-width: 100%; height: auto; }

/* Hero logo responsive */
.hero-logo img {
  width: min(420px, 90vw);
}

/* Credential bar — wrap on mobile */
.credential-bar .container {
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 860px) {
  /* Poll release grid → stack */
  .release-grid {
    grid-template-columns: 1fr;
  }

  /* About grid → stack */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Content grid (media/privacy pages) → stack */
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-sidebar { position: static; }

  /* Nav links — ensure hamburger works */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 1rem 1.5rem;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Release meta — stack on mobile */
  .release-meta {
    flex-direction: column;
    gap: 0.4rem;
  }

  /* Section padding tighter on mobile */
  .section { padding: 2.5rem 0; }
  .page-header { padding: 2rem 0 1.5rem; }

  /* Stats grid — 2 col on mobile is fine */
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }

  /* Findings table scroll on mobile */
  .findings-table-wrap { overflow-x: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .about-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .poll-card-meta { flex-direction: column; gap: 0.25rem; }
  .footer-links { flex-direction: column; gap: 0.5rem; }
}

/* ── Averages promo section (homepage) ── */
.averages-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.averages-promo-text h2 { margin-bottom: 0.25rem; }
.averages-promo-text p { color: #374151; margin-bottom: 1rem; }

.averages-promo-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tracker-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.tracker-stat--highlight {
  border-left-color: #0d9488;
  background: #f0fdf9;
  border-color: #99f6e4;
  border-left-color: #0d9488;
}
.tracker-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}
.tracker-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.tracker-stat-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .averages-promo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
