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

:root {
  --irg-red: #c8102e;
  --irg-red-dark: #a00d24;
  --irg-red-light: #e8354d;
  --navy: #1b2a4a;
  --navy-light: #243556;
  --navy-dark: #111d33;
  --ink: #1d1d1f;
  --gray-1: #424245;
  --gray-2: #6e6e73;
  --gray-3: #86868b;
  --gray-4: #d2d2d7;
  --gray-5: #f5f5f7;
  --white: #ffffff;
  --green: #1a7a3a;
  --orange: #ff9500;
  --red: #ff3b30;
  --radius: 16px;
  --section-pad: clamp(56px, 6vw, 88px);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Typography */
.headline-xl { font-family: var(--font-display); font-size: clamp(40px, 6.5vw, 72px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.headline-lg { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 48px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
.headline-md { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.2; }
.body-lg { font-size: clamp(17px, 1.5vw, 19px); color: var(--gray-1); max-width: 640px; }
.body-md { font-size: 15px; color: var(--gray-2); }
.overline { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--irg-red); margin-bottom: 12px; }

em { font-style: italic; color: var(--irg-red); }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: all 0.2s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--irg-red); color: var(--white); }
.btn-primary:hover { background: var(--irg-red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-5); }
.btn-ghost { background: transparent; color: var(--irg-red); padding: 8px 0; font-weight: 600; border-bottom: 2px solid var(--irg-red); border-radius: 0; }

/* Top Bar */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,0.7); font-size: 12px; padding: 8px 24px; display: flex; justify-content: flex-end; gap: 16px; }
.topbar a { color: inherit; transition: color 0.2s; }
.topbar a:hover { color: var(--white); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--gray-4); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 32px; }
.nav-brand-divider { width: 1px; height: 24px; background: var(--gray-4); }
.nav-brand-sub { font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--irg-red); }
.nav-links a.active { color: var(--irg-red); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { padding: 100px 24px 80px; text-align: center; background: linear-gradient(180deg, var(--gray-5) 0%, var(--white) 100%); }
.hero-badge { display: inline-block; padding: 6px 16px; background: var(--irg-red); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero p { margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.hero-stat-num { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--irg-red); line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* Page Hero */
.page-hero { padding: 100px 0 60px; text-align: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); }
.page-hero .overline { color: var(--irg-red-light); }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .body-lg { color: rgba(255,255,255,0.7); margin: 0 auto; }

/* Sections */
.section { padding: var(--section-pad) 0; }
.section-gray { background: var(--gray-5); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .body-lg, .section-navy .body-md { color: rgba(255,255,255,0.7); }
.section-navy .overline { color: var(--irg-red-light); }
.section-red { background: var(--irg-red); color: var(--white); }
.section-red .body-lg { color: rgba(255,255,255,0.85); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-header .body-lg { margin: 16px auto 0; }

/* Stakes Grid (About / Why It Matters) */
.stakes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stakes-image img { border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.stakes-pullquote { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--navy); border-left: 3px solid var(--irg-red); padding: 12px 0 12px 20px; margin: 24px 0; }

/* Justice Grid */
.justices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.justice-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.justice-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.justice-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; background: var(--gray-5); }
.justice-info { padding: 16px; }
.justice-info h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); }
.justice-subtitle { font-size: 11px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.justice-score-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.justice-score { font-size: 18px; font-weight: 700; color: var(--navy); }
.justice-grade { padding: 2px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--white); }
.score-a, .grade-a { background: var(--green) !important; color: white; }
.score-b, .grade-b { background: #4a8a4a !important; color: white; }
.score-c, .grade-c { background: var(--orange) !important; color: white; }
.score-d, .grade-d { background: #ff7b30 !important; color: white; }
.score-f, .grade-f { background: var(--red) !important; color: white; }
.score-na, .grade-na { background: var(--gray-3) !important; color: white; }
.justice-score { display: inline-block; padding: 4px 14px; border-radius: 8px; color: var(--white); font-size: 19px; font-weight: 700; }
.justice-score.score-a { background: var(--green); color: var(--white); }
.justice-score.score-b { background: #4a8a4a; color: var(--white); }
.justice-score.score-c { background: var(--orange); color: var(--white); }
.justice-score.score-d { background: #ff7b30; color: var(--white); }
.justice-score.score-f { background: var(--red); color: var(--white); }
.justice-score.score-na { background: var(--gray-3); color: var(--white); }

/* Critical Cases */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.case-card { padding: 24px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.3s; }
.case-card:hover { background: var(--gray-5); transform: translateY(-2px); }
.case-split { font-size: 11px; font-weight: 700; color: var(--irg-red); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.case-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; color: var(--navy); }
.case-card p { font-size: 13px; color: var(--gray-2); }

/* Voting Table */
.voting-table-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); box-shadow: 0 2px 16px rgba(0,0,0,0.1); }
.voting-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--white); }
.voting-table th { background: var(--navy); color: var(--white); font-weight: 600; padding: 12px 10px; text-align: center; white-space: nowrap; font-size: 12px; }
.voting-table th:first-child, .voting-table th:nth-child(2), .voting-table th:nth-child(3) { text-align: left; }
.voting-table td { padding: 10px; border-bottom: 1px solid var(--gray-5); text-align: center; color: var(--ink); }
.voting-table td:first-child { font-weight: 600; text-align: left; white-space: nowrap; color: var(--navy); }
.voting-table td:nth-child(2) { text-align: left; color: var(--gray-3); font-size: 12px; }
.voting-table td:nth-child(3) { text-align: left; font-size: 12px; font-weight: 500; color: var(--gray-2); }
.voting-table tfoot td { background: var(--gray-5); font-weight: 700; color: var(--navy); }
.vote-yes { color: #1a7a3a !important; font-weight: 700; font-size: 16px; }
.vote-no { color: #ff3b30 !important; font-weight: 700; font-size: 16px; }
.vote-partial { color: #ff9500 !important; font-weight: 700; }

/* District Tabs (CoA) */
.district-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.district-tab { padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid var(--gray-4); background: var(--white); color: var(--gray-2); transition: all 0.2s; font-family: var(--font-body); }
.district-tab:hover { border-color: var(--irg-red); color: var(--irg-red); }
.district-tab.active { background: var(--irg-red); color: var(--white); border-color: var(--irg-red); }
.district-panel { display: none; }
.district-panel.active { display: block; }
.district-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.district-map { width: 100%; border-radius: 10px; border: 2px solid var(--gray-4); padding: 8px; background: var(--white); }
.district-map-label { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-3); margin-top: 8px; }

/* CoA Cards */
.coa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.coa-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.coa-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.coa-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center; background: var(--gray-5); }
.coa-info { padding: 14px; }
.coa-info h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.coa-subtitle { font-size: 11px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.04em; margin: 2px 0 8px; }
.coa-status { display: inline-block; padding: 3px 8px; font-size: 10px; font-weight: 700; border-radius: 999px; background: var(--gray-5); color: var(--gray-2); }

/* Reports / Primers */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.report-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; display: block; }
.report-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.report-tag { display: inline-block; padding: 3px 10px; background: var(--irg-red); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; margin-bottom: 12px; }
.report-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.report-card p { font-size: 14px; color: var(--gray-2); margin-bottom: 14px; }
.report-card .read-more { font-size: 13px; font-weight: 600; color: var(--irg-red); text-transform: uppercase; letter-spacing: 0.06em; }

.primer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.primer-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 24px 20px; transition: all 0.3s; display: block; }
.primer-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.primer-num { font-family: var(--font-display); font-size: 32px; color: var(--irg-red-light); margin-bottom: 8px; line-height: 1; }
.primer-card h3 { color: var(--white); font-size: 17px; font-weight: 600; }

/* Methodology Pillars */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method-card { background: var(--white); border-radius: var(--radius); padding: 32px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.method-weight { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--irg-red); }
.method-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); margin: 12px 0 10px; }
.method-card p { font-size: 14px; color: var(--gray-2); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { text-align: center; }
.process-num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--irg-red); color: var(--white); font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.process-step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--gray-2); }

/* Scoring Framework */
.composite-visual { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; max-width: 880px; margin: 40px auto 0; }
.composite-half { background: var(--gray-5); border-radius: var(--radius); padding: 32px; text-align: center; }
.composite-pct { font-family: var(--font-display); font-size: 52px; font-weight: 700; color: var(--irg-red); }
.composite-half h3 { font-family: var(--font-display); font-size: 21px; color: var(--navy); margin-top: 6px; }
.composite-half p { font-size: 13px; color: var(--gray-2); margin-top: 8px; }
.composite-plus { display: flex; align-items: center; font-family: var(--font-display); font-size: 36px; color: var(--gray-3); }
.grade-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 720px; margin: 40px auto 0; }
.grade-pill { padding: 16px 12px; border-radius: 12px; text-align: center; color: var(--white); }
.grade-pill .grade-letter { font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.grade-pill .grade-range { font-size: 12px; opacity: 0.9; margin-top: 2px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; margin-top: 40px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.team-card-header { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 24px 0; text-align: center; }
.team-photo-placeholder { width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--irg-red)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 3px solid var(--irg-red); }
.team-photo-placeholder span { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: rgba(255,255,255,0.85); }
.team-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.team-title { font-size: 0.9rem; color: var(--irg-red); font-weight: 600; margin: 4px 0 0; }
.team-card-body { padding: 20px 28px 28px; }
.team-card-body p { font-size: 0.92rem; color: var(--gray-2); line-height: 1.65; margin-bottom: 12px; }

/* Summary Cards (Home) */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.summary-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); transition: all 0.3s; display: block; border-top: 4px solid var(--irg-red); }
.summary-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.summary-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.summary-card p { font-size: 0.95rem; color: var(--gray-2); line-height: 1.6; margin-bottom: 16px; }
.summary-card .stats { font-size: 12px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 18px; }
.summary-card .card-arrow { font-size: 0.85rem; font-weight: 700; color: var(--irg-red); text-transform: uppercase; letter-spacing: 1px; }

/* Footer */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 40px 24px 20px; }
.footer-top { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; background: var(--white); padding: 8px 14px; border-radius: 8px; box-sizing: content-box; }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-cols { display: flex; gap: 40px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { max-width: 1140px; margin: 24px auto 0; display: flex; justify-content: space-between; font-size: 12px; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
  .justices-grid { grid-template-columns: repeat(3, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .stakes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 16px 24px; gap: 14px; border-bottom: 1px solid var(--gray-4); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-brand-sub { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stat-num { font-size: 32px; }
  .justices-grid { grid-template-columns: repeat(2, 1fr); }
  .coa-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .composite-visual { grid-template-columns: 1fr; }
  .composite-plus { display: none; }
  .grade-scale { grid-template-columns: repeat(3, 1fr); }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 24px; }
  .district-layout { grid-template-columns: 1fr; }
  .district-map { max-width: 200px; margin: 0 auto; }
  .voting-table { font-size: 11px; }
}

/* Justice Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal { background: var(--white); border-radius: var(--radius); max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--gray-5); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--gray-2); transition: all 0.2s; }
.modal-close:hover { background: var(--gray-4); color: var(--ink); }
.modal-header { padding: 32px 32px 24px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--gray-5); }
.modal-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top center; }
.modal-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); }
.modal-title { font-size: 13px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.modal-score-badge { margin-left: auto; text-align: center; }
.modal-grade { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--irg-red); line-height: 1; }
.modal-grade-label { font-size: 10px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.modal-body { padding: 24px 32px 32px; }
.modal-section { margin-bottom: 24px; }
.modal-section h4 { font-size: 11px; font-weight: 700; color: var(--irg-red); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.modal-section p { font-size: 14px; color: var(--gray-1); line-height: 1.65; }
.modal-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-stat { background: var(--gray-5); padding: 14px 16px; border-radius: 10px; }
.modal-stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1; }
.modal-stat-label { font-size: 11px; color: var(--gray-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.modal-quote { background: var(--gray-5); padding: 16px 18px; border-left: 3px solid var(--irg-red); border-radius: 6px; margin-bottom: 12px; }
.modal-quote-text { font-style: italic; font-size: 14px; color: var(--ink); line-height: 1.6; }
.modal-quote-src { font-size: 11px; color: var(--gray-3); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 600px) { .modal-dual { grid-template-columns: 1fr; } .modal-header { flex-wrap: wrap; } }

/* CoA Executive Summary */
.exec-summary { background: var(--white); border-left: 5px solid var(--irg-red); padding: 32px 36px; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); margin: 40px 0; }
.exec-summary h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.exec-summary p { color: var(--gray-1); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.exec-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0 16px; padding: 24px; background: var(--gray-5); border-radius: 12px; }
.exec-stat { text-align: center; }
.exec-stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--irg-red); line-height: 1; }
.exec-stat-label { font-size: 11px; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
@media (max-width: 768px) { .exec-stats { grid-template-columns: repeat(2, 1fr); } }

/* Takeaways */
.takeaway-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.takeaway-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border-top: 3px solid var(--irg-red); }
.takeaway-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--irg-red); line-height: 1; margin-bottom: 8px; }
.takeaway-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.takeaway-card p { font-size: 14px; color: var(--gray-2); line-height: 1.6; }
@media (max-width: 768px) { .takeaway-grid { grid-template-columns: 1fr; } }

/* 6-Dimension Framework */
.framework-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.framework-card { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.framework-num { display: inline-block; padding: 4px 12px; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; border-radius: 999px; margin-bottom: 10px; }
.framework-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.framework-card p { font-size: 13px; color: var(--gray-2); line-height: 1.55; }
@media (max-width: 1024px) { .framework-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .framework-grid { grid-template-columns: 1fr; } }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: 10px; opacity: 0.7; }
.nav-dropdown-menu { position: absolute; top: 100%; right: 0; min-width: 280px; background: var(--white); border: 1px solid var(--gray-4); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; list-style: none; margin: 4px 0 0; z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a { display: block; padding: 10px 14px; font-size: 13px; color: var(--gray-1) !important; font-weight: 500; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.nav-dropdown-menu a:hover { background: var(--gray-5); color: var(--irg-red) !important; }
.nav-dropdown-divider { height: 1px; background: var(--gray-4); margin: 6px 4px; }
.nav-dropdown-label { display: block; padding: 6px 14px 4px; font-size: 10px; color: var(--gray-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
@media (max-width: 768px) {
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: 0; margin: 4px 0; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 4px; font-size: 13px; }
  .nav-dropdown-divider, .nav-dropdown-label { display: none; }
}

/* Team photos (matches placeholder dimensions) */
.team-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; object-position: center center; flex-shrink: 0; border: 3px solid var(--irg-red); background: var(--gray-5); }

/* Trim bottom padding on last section before footer */
.section + footer { margin-top: 0; }
section.section:last-of-type { padding-bottom: clamp(40px, 4vw, 64px); }

/* Vertical team card layout */
.team-card-header > div { width: 100%; }
.team-card-body { padding: 16px 28px 32px; text-align: center; }
.team-card-body p { text-align: justify; hyphens: none; -webkit-hyphens: none; word-break: keep-all; overflow-wrap: normal; }
.team-name { font-size: 1.5rem; line-height: 1.25; }
.team-title { font-size: 0.92rem; margin-top: 6px; line-height: 1.4; }

/* Capitol full-width banner */
.capitol-banner { width: 100vw; margin: 60px calc(-50vw + 50%) 0; overflow: hidden; max-height: 380px; }
.capitol-banner img { width: 100%; height: 380px; object-fit: cover; object-position: center 35%; display: block; }
@media (max-width: 768px) { .capitol-banner { max-height: 220px; margin-top: 40px; } .capitol-banner img { height: 220px; } }


/* === Section spacing === */
/* Sections keep their normal padding for breathing room inside colored backgrounds */
/* Last section before footer gets a slightly tighter bottom */
section.section:last-of-type { padding-bottom: clamp(48px, 5vw, 72px); }
/* Capitol banner sits flush against next section */
.capitol-banner { margin-top: 40px; margin-bottom: 0; }
/* Tighten footer top */
.footer { padding-top: 32px !important; }


/* === Sticky footer + ensure no white space below footer === */
html, body { height: auto; }
html { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
body > footer { margin-top: auto; }
body > script { display: none !important; }
body > .modal-overlay { flex: 0 0 auto; }

/* === Organized Primers Section === */
.primer-sections { display: flex; flex-direction: column; gap: 36px; margin-top: 32px; }
.primer-section-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px 32px; transition: background 0.25s; }
.primer-section-card:hover { background: rgba(255,255,255,0.09); }
.primer-section-main { display: grid; grid-template-columns: 72px 1fr auto; gap: 24px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.primer-roman { font-family: var(--font-display); font-size: 56px; font-weight: 700; color: var(--irg-red-light); line-height: 1; text-align: center; }
.primer-section-title h3 { color: var(--white); font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.primer-section-title p { color: rgba(255,255,255,0.65); font-size: 14px; font-style: italic; }
.primer-section-main .read-btn { background: var(--irg-red); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; transition: background 0.2s; }
.primer-section-main .read-btn:hover { background: var(--irg-red-dark); }
.primer-topics { margin-top: 24px; }
.primer-topics-label { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--white); background: var(--irg-red); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.primer-topic-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; padding: 0; margin: 0; }
.primer-topic-list li { margin: 0; }
.primer-topic-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--white); color: var(--navy) !important; font-size: 15px; font-weight: 600; line-height: 1.4; border-radius: 10px; border: 2px solid transparent; transition: all 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.primer-topic-list a:hover { background: var(--white); color: var(--irg-red) !important; border-color: var(--irg-red); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.primer-topic-list a::before {
  content: "";
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--irg-red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='8' y1='13' x2='16' y2='13'/><line x1='8' y1='17' x2='14' y2='17'/></svg>");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}
.primer-topic-list a:hover::before { transform: scale(1.08) rotate(-3deg); }
.primer-topic-list a::after { content: "→"; margin-left: auto; color: var(--irg-red); font-weight: 800; font-size: 20px; flex-shrink: 0; transition: transform 0.2s; }
.primer-topic-list a:hover::after { transform: translateX(4px); }
@media (max-width: 768px) { .primer-topic-list { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .primer-section-main { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .primer-section-main .read-btn { justify-self: center; }
}

/* ═════════ Court Resources Page ═════════ */
.court-resources-hero { position: relative; overflow: hidden; }
.hero-scales { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 260px; height: 260px; color: rgba(255,255,255,0.08); pointer-events: none; }
@media (max-width: 1024px) { .hero-scales { display: none; } }

/* Master hero card */
.cr-master-card { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--gray-4); border-radius: var(--radius); padding: 32px 36px; box-shadow: 0 6px 28px rgba(0,0,0,0.08); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; margin-top: 24px; }
.cr-master-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.12); border-color: var(--irg-red); }
.cr-master-icon { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.cr-master-icon svg { width: 54px; height: 54px; }
.cr-master-text h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cr-master-text p { font-size: 15px; color: var(--gray-1); line-height: 1.6; margin-bottom: 10px; }
.cr-master-link { font-size: 13px; font-weight: 700; color: var(--irg-red); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) { .cr-master-card { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; } .cr-master-icon { margin: 0 auto; } }

/* Resource card grid */
.cr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 24px; }
.cr-card { background: var(--white); border: 1px solid var(--gray-4); border-radius: var(--radius); padding: 28px 26px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; display: block; }
.cr-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.1); border-color: var(--irg-red); }
.cr-icon { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, var(--irg-red), var(--irg-red-dark)); color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cr-icon svg { width: 32px; height: 32px; }
.cr-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.cr-card p { font-size: 14px; color: var(--gray-2); line-height: 1.6; margin-bottom: 14px; }
.cr-link { font-size: 12px; font-weight: 700; color: var(--irg-red); text-transform: uppercase; letter-spacing: 0.08em; }

/* Procedural PDF cards on navy bg */
.cr-procedural-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }
.cr-proc-card { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 22px 24px; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.cr-proc-card:hover { background: rgba(255,255,255,0.09); border-color: var(--irg-red-light); transform: translateY(-3px); }
.cr-proc-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--irg-red); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.cr-proc-card h3 { color: var(--white); font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cr-proc-card p { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.55; }

/* Credit line in footer */
.footer-credit { font-style: italic; opacity: 0.7; }

/* Nav Donate button (CTA in main nav) */
.nav-donate { background: var(--irg-red); color: var(--white) !important; padding: 8px 18px; border-radius: 999px; font-weight: 700 !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.06em; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 10px rgba(200,16,46,0.25); }
.nav-donate:hover { background: var(--irg-red-dark); color: var(--white) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,16,46,0.35); }
@media (max-width: 768px) {
  .nav-donate { display: inline-block; margin-top: 4px; }
}

/* ═════════ Hero Video (cinematic background) ═════════ */
.hero-video-host {
  position: absolute; inset: 0; overflow: hidden;
  background: #F7F4EE; color: #0E1116;
  font-family: 'Playfair Display', Georgia, serif;
  pointer-events: none;
}
/* In dark mode (system preference), switch to "ink" palette */
@media (prefers-color-scheme: dark) {
  .hero-video-host { background: #0B0E13; color: #F7F4EE; }
}
.hv-bg { position: absolute; inset: 0; }
.hv-bg-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: grayscale(0.8) contrast(1.02) brightness(1.05) sepia(0.18);
  opacity: 0.55;
}
.hv-bg-wash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,244,238,0.55) 0%, rgba(247,244,238,0.15) 45%, rgba(247,244,238,0.85) 100%);
}
@media (prefers-color-scheme: dark) {
  .hv-bg-img { filter: grayscale(0.85) contrast(1.1) brightness(0.55); opacity: 0.42; }
  .hv-bg-wash { background: linear-gradient(180deg, rgba(11,14,19,0.55) 0%, rgba(11,14,19,0.25) 45%, rgba(11,14,19,0.85) 100%); }
}
.hv-rule {
  position: absolute; left: 4.4%; right: 4.4%; top: 50%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(14,17,22,0.2) 20%, rgba(14,17,22,0.2) 80%, transparent);
  transform-origin: center; transform: scaleX(0);
}
@media (prefers-color-scheme: dark) {
  .hv-rule { background: linear-gradient(to right, transparent, rgba(247,244,238,0.25) 20%, rgba(247,244,238,0.25) 80%, transparent); }
}

.hv-act { position: absolute; }
.hv-kicker {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 3px; color: #B8292F; font-weight: 600; text-transform: uppercase;
}
.hv-italic { font-style: italic; }
.hv-red { color: #B8292F; }
.hv-char { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(4px); white-space: pre; }
.hv-split { display: inline-block; white-space: nowrap; }

/* Act 1 */
.hv-act-1 { left: 4.4%; top: 18%; width: 72%; max-width: 920px; }
.hv-act1-headline {
  font-size: clamp(30px, 4.6vw, 68px); line-height: 1.06; letter-spacing: -1.2px;
  font-weight: 500; margin-top: 24px; white-space: nowrap;
}
.hv-act1-sub {
  margin-top: 28px; font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(14px, 1.2vw, 18px); line-height: 1.5;
  color: rgba(14,17,22,0.55); max-width: 520px; opacity: 0;
}
@media (prefers-color-scheme: dark) { .hv-act1-sub { color: rgba(247,244,238,0.55); } }

/* Act 2 */
.hv-act-2 { left: 4.4%; right: 4.4%; top: 18%; }
.hv-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5vw; margin-top: 50px; }
.hv-stat { opacity: 0; }
.hv-stat-n {
  font-size: clamp(64px, 7.5vw, 112px); line-height: 1; font-weight: 500; letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.hv-stat-rule { margin-top: 14px; height: 2px; background: #B8292F; width: 32px; }
.hv-stat-label {
  margin-top: 14px; font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(11px, 1vw, 14px); letter-spacing: 0.5px;
  text-transform: uppercase; font-weight: 500;
}

/* Act 3 */
.hv-act-3 { left: 4.4%; right: 4.4%; top: 50%; transform: translateY(-50%); text-align: center; }
.hv-act3-headline {
  margin-top: 28px; font-size: clamp(44px, 6.5vw, 96px); line-height: 1;
  letter-spacing: -1.8px; font-weight: 500;
}
.hv-act3-tagline {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 2.5px; color: rgba(14,17,22,0.55); opacity: 0;
}
.hv-line { width: 24px; height: 1px; background: rgba(14,17,22,0.55); }
@media (prefers-color-scheme: dark) {
  .hv-act3-tagline { color: rgba(247,244,238,0.55); } .hv-line { background: rgba(247,244,238,0.55); }
}

/* Chrome */
.hv-corner {
  position: absolute; top: 5.6%;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 2px; color: rgba(14,17,22,0.55);
}
.hv-corner-left { left: 4.4%; }
.hv-corner-right { right: 4.4%; }
@media (prefers-color-scheme: dark) { .hv-corner { color: rgba(247,244,238,0.55); } }

.hv-progress {
  position: absolute; bottom: 5.6%; left: 4.4%; right: 4.4%;
  display: flex; justify-content: space-between; align-items: center;
}
.hv-progress-dots { display: flex; gap: 10px; }
.hv-dot { width: 8px; height: 3px; background: rgba(14,17,22,0.2); transition: width 0.4s ease, background 0.4s ease; }
.hv-dot.hv-dot-active { width: 28px; background: #B8292F; }
@media (prefers-color-scheme: dark) { .hv-dot { background: rgba(247,244,238,0.25); } }
.hv-progress-url {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 2px; color: rgba(14,17,22,0.55);
}
@media (prefers-color-scheme: dark) { .hv-progress-url { color: rgba(247,244,238,0.55); } }

.hv-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, #2a2418 140%); opacity: 0.25;
}
@media (prefers-color-scheme: dark) {
  .hv-vignette { background: radial-gradient(ellipse at center, transparent 40%, #000 140%); opacity: 0.55; }
}

.hv-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: overlay;
}
@media (prefers-color-scheme: dark) { .hv-grain { opacity: 0.06; } }

/* Hero section host setup */
.hero.hero-with-video { position: relative; min-height: 90vh; padding: 0; overflow: hidden; background: transparent; }
.hero.hero-with-video .hero-overlay {
  position: relative; z-index: 10;
  padding: clamp(100px, 12vh, 180px) 24px 80px;
  text-align: center; color: var(--navy);
  background: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero.hero-with-video .hero-overlay { color: #F7F4EE; }
}

/* Mobile: simpler cinematic (stack stats into 2 cols, smaller positioning) */
@media (max-width: 768px) {
  .hv-act-1 { width: 92%; top: 14%; }
  .hv-act1-headline { white-space: normal; font-size: clamp(26px, 6.5vw, 40px); }
  .hv-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
  .hv-rule { top: 46%; }
}

/* Standalone cinematic video section (between stats and About IRG) */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
  background: #F7F4EE;
}
@media (prefers-color-scheme: dark) { .hero-video-section { background: #0B0E13; } }
@media (max-width: 768px) { .hero-video-section { height: 70vh; min-height: 480px; } }

/* The video host inside the standalone section */
.hero-video-section .hero-video-host {
  position: absolute; inset: 0;
}

/* Substack tab in nav */
.nav-substack {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #FF6719 !important;
  padding: 7px 14px; border: 1.5px solid #FF6719; border-radius: 999px;
  font-weight: 700 !important; font-size: 13px !important;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-substack::before {
  content: ""; width: 12px; height: 14px; flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF6719'><path d='M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z'/></svg>");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  transition: filter 0.2s;
}
.nav-substack:hover { background: #FF6719; color: var(--white) !important; transform: translateY(-1px); }
.nav-substack:hover::before { filter: brightness(0) invert(1); }

/* ═════ Nav: keep everything on one line across widths ═════ */
.nav-inner { flex-wrap: nowrap; gap: 16px; }
.nav-links { gap: 20px; white-space: nowrap; flex-wrap: nowrap; }
.nav-links a { font-size: 13px; }

/* Tighter pill buttons so they don't push the nav past one line */
.nav-donate { padding: 6px 14px !important; font-size: 12px !important; }
.nav-substack { padding: 6px 12px !important; font-size: 12px !important; }
.nav-substack::before { width: 11px; height: 13px; }

/* Hide the "Court Watch" text label on mid-width screens so logos stay */
@media (max-width: 1200px) {
  .nav-brand-sub { display: none; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 1024px) {
  .nav-links { gap: 14px; }
  .nav-brand-divider { display: none; }
  .nav-brand img { height: 28px; }
}

/* ═════ Nav: each label on one line, compact brand ═════ */
.nav-links li { white-space: nowrap; }
.nav-links a { white-space: nowrap; display: inline-flex; align-items: center; }

/* Brand: tighten so nav has more room */
.nav-brand { gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 30px; }
.nav-brand-sub { display: none; } /* "Court Watch" text label — logo already conveys it */
.nav-brand-divider { display: none; }

/* Push nav links to the right */
.nav-inner { gap: 12px; }
.nav-links { margin-left: auto; gap: 22px; }

@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12.5px; }
}

/* Judge modal tagline */
.modal-tagline {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--irg-red); font-weight: 700; margin-top: 6px;
}

/* ═════ Search button in nav ═════ */
.nav-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: transparent; color: var(--gray-2); border: 1px solid var(--gray-4);
  cursor: pointer; transition: all 0.2s; padding: 0;
}
.nav-search-btn svg { width: 16px; height: 16px; }
.nav-search-btn:hover { border-color: var(--irg-red); color: var(--irg-red); }

/* ═════ Search Modal Overlay ═════ */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11, 14, 19, 0.55); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 10vh 20px 20px; overflow-y: auto;
}
.search-overlay.open { display: flex; }
.search-dialog {
  background: var(--white); border-radius: 16px;
  width: 100%; max-width: 680px; position: relative;
  padding: 24px 28px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: search-slide-in 0.2s ease-out;
}
@keyframes search-slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.search-close {
  position: absolute; top: 12px; right: 14px;
  background: var(--gray-5); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; line-height: 1; color: var(--gray-2);
  cursor: pointer; transition: all 0.2s;
}
.search-close:hover { background: var(--gray-4); color: var(--ink); }
.search-footnote {
  font-size: 11px; color: var(--gray-3);
  text-align: center; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--gray-5); font-style: italic;
}

/* ═════ Pagefind UI theming (match IRG look) ═════ */
#pagefindSearch {
  --pagefind-ui-primary: var(--irg-red);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--white);
  --pagefind-ui-border: var(--gray-4);
  --pagefind-ui-tag: var(--gray-5);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 10px;
  --pagefind-ui-image-border-radius: 8px;
  --pagefind-ui-image-box-ratio: 3 / 2;
  --pagefind-ui-font: var(--font-body);
}
.pagefind-ui__search-input { font-size: 18px !important; }
.pagefind-ui__result-link { color: var(--navy) !important; font-weight: 600 !important; font-family: var(--font-display) !important; }
.pagefind-ui__result-link:hover { color: var(--irg-red) !important; }
.pagefind-ui__result-excerpt mark { background: rgba(200, 16, 46, 0.15); color: var(--irg-red); padding: 0 2px; border-radius: 2px; }
.pagefind-ui__message { color: var(--gray-2) !important; font-size: 13px !important; }

@media (max-width: 600px) {
  .search-overlay { padding: 20px 12px; }
  .search-dialog { padding: 18px 18px 14px; }
}
