:root {
  --navy: #1a2332;
  --blue: #2c5f8a;
  --accent: #3a8fd4;
  --gold: #c9a84c;
  --red: #c0392b;
  --green: #27ae60;
  --orange: #e67e22;
  --gray-light: #f4f6f8;
  --gray-mid: #dce1e6;
  --gray-dark: #5a6a7a;
  --text: #2c3e50;
  --bg: #ffffff;
  --dem-blue: #2166ac;
  --rep-red: #b2182b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
.page { max-width: 960px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); }
p { margin-bottom: 12px; }
ul, ol { margin: 8px 0 16px 20px; }
li { margin-bottom: 6px; }

/* Classification bar */
.classification-bar { background: var(--green); color: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 6px; text-transform: uppercase; }

/* Breadcrumb nav */
.dossier-nav { background: var(--navy); padding: 8px 24px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dossier-nav a { color: var(--gold); text-decoration: none; }
.dossier-nav a:hover { text-decoration: underline; }
.nav-sep { color: rgba(255,255,255,0.4); }
.nav-current { color: rgba(255,255,255,0.8); }

/* Header — party-specific gradients */
.header { color: #fff; padding: 48px 0 36px; }
.header.party-dem { background: linear-gradient(135deg, var(--navy) 0%, var(--dem-blue) 100%); }
.header.party-rep { background: linear-gradient(135deg, var(--navy) 0%, var(--rep-red) 100%); }
.header.party-neutral { background: linear-gradient(135deg, var(--navy) 0%, #3a3a5c 100%); }
.header h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.5px; }
.header h2 { font-size: 18px; font-weight: 400; opacity: 0.9; margin-bottom: 16px; }
.header-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; opacity: 0.85; }
.header-meta span { white-space: nowrap; }
.tlp-badge { display: inline-block; background: var(--green); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.status-badge { display: inline-block; color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 3px; }
.status-badge.dem { background: var(--dem-blue); }
.status-badge.rep { background: var(--rep-red); }
.status-badge.neutral { background: var(--gray-dark); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
thead th { background: var(--navy); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 13px; }
tbody td { padding: 9px 12px; border-bottom: 1px solid var(--gray-mid); vertical-align: top; }
tbody tr:hover { background: var(--gray-light); }
tbody tr:nth-child(even) { background: #fafbfc; }
td:first-child { font-weight: 600; white-space: nowrap; width: 220px; }

/* Sections */
.section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--gray-mid); }
.section:first-of-type { border-top: none; margin-top: 32px; }
.section h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.section-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0; }
h3 { font-size: 17px; font-weight: 700; color: var(--blue); margin: 20px 0 12px; }

/* Findings (dossier pages) */
.finding { background: var(--gray-light); border-radius: 8px; padding: 20px 24px; margin: 16px 0; border-left: 4px solid var(--gray-mid); }
.finding.critical { border-left-color: var(--red); }
.finding.severe { border-left-color: var(--orange); }
.finding.high { border-left-color: var(--gold); }
.finding.moderate { border-left-color: var(--accent); }
.finding h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.finding dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.finding dt { font-weight: 600; color: var(--gray-dark); }
.finding dd { margin: 0; }

/* Impact badges */
.impact-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: 0.5px; text-transform: uppercase; vertical-align: middle; margin-left: 8px; }
.impact-critical { background: #f8d7da; color: #721c24; }
.impact-severe { background: #ffe0cc; color: #8a3500; }
.impact-high { background: #fff3cd; color: #856404; }
.impact-moderate { background: #d1ecf1; color: #0c5460; }
.impact-low { background: #d4edda; color: #155724; }

/* Source lists */
.source-list { list-style: none; padding: 0; margin-top: 8px; }
.source-list li { font-size: 13px; color: var(--gray-dark); padding: 2px 0 2px 16px; position: relative; }
.source-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }

/* Journalist leads */
.leads { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.leads h3 { color: var(--gold); margin-top: 0; }
.leads ol { padding-left: 20px; }
.leads li { margin-bottom: 8px; font-size: 14px; }

/* Callouts (brief pages) */
.callout { background: #d4edda; border: 1px solid #c3e6cb; border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.callout h3 { color: #155724; margin-top: 0; }
.note-box { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.note-box strong { color: var(--gold); }

/* BLUF (race dynamics pages) */
.bluf { background: var(--gray-light); border-left: 5px solid var(--gold); padding: 24px 28px; margin: 32px 0; font-size: 16px; line-height: 1.7; }
.bluf-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

/* Matchup cards (race dynamics) */
.matchup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.matchup-card { border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-mid); }
.matchup-card-header { padding: 12px 16px; color: #fff; font-weight: 700; font-size: 16px; }
.matchup-card-header a { color: #fff; text-decoration: none; }
.matchup-card-header a:hover { text-decoration: underline; }
.matchup-card-header.dem { background: var(--dem-blue); }
.matchup-card-header.rep { background: var(--rep-red); }
.matchup-card-body { padding: 16px; }
.matchup-card-body h4 { font-size: 14px; font-weight: 700; margin: 12px 0 6px; color: var(--navy); }
.matchup-card-body h4:first-child { margin-top: 0; }
.matchup-card-body ul { margin: 4px 0 8px 16px; font-size: 13px; }
.matchup-card-body li { margin-bottom: 4px; }

/* Assessment box */
.assessment { background: #e8f4fd; border: 1px solid #bee5eb; border-radius: 8px; padding: 24px; margin: 24px 0; }
.assessment h3 { color: var(--blue); margin-top: 0; }

/* Status badges for field table */
.status-active { display: inline-block; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.status-withdrawn { display: inline-block; background: var(--gray-dark); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.status-suspended { display: inline-block; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }

/* Dossier link cards */
.dossier-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.dossier-link { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--gray-mid); border-radius: 8px; padding: 20px; transition: box-shadow 0.15s, transform 0.15s; }
.dossier-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.dossier-link h4 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.dossier-link .party-tag { font-size: 12px; font-weight: 700; }
.dossier-link .party-tag.dem { color: var(--dem-blue); }
.dossier-link .party-tag.rep { color: var(--rep-red); }
.dossier-link p { font-size: 13px; color: var(--gray-dark); margin: 8px 0 0; }

/* Footer */
.footer { margin-top: 48px; padding: 24px 0; border-top: 2px solid var(--gray-mid); font-size: 13px; color: var(--gray-dark); text-align: center; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* State grid (states index page) */
.state-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 32px 0; }
.state-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; border: 1px solid var(--gray-mid); border-radius: 8px; text-decoration: none; color: var(--text); background: var(--gray-light); transition: box-shadow 0.15s, transform 0.15s; text-align: center; min-height: 90px; }
.state-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.state-card--active { border-left: 4px solid var(--gold); background: #fff; }
.state-abbr { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.state-name { font-size: 12px; color: var(--gray-dark); margin-top: 2px; }
.state-badge { display: inline-block; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-top: 6px; text-transform: uppercase; }

/* No-research placeholder */
.no-research { background: var(--gray-light); border: 1px dashed var(--gray-mid); border-radius: 8px; padding: 24px; margin: 16px 0; text-align: center; color: var(--gray-dark); }
.no-research--hero { padding: 40px 32px; margin: 32px 0; border: 2px dashed var(--gray-mid); }
.no-research h3 { color: var(--gray-dark); font-size: 18px; margin-bottom: 12px; }
.no-research p { font-size: 14px; margin-bottom: 8px; }
.no-research-note { font-size: 13px; font-style: italic; margin-top: 8px; }

/* Responsive */
@media (max-width: 900px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .matchup { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .finding dl { grid-template-columns: 1fr; } td:first-child { white-space: normal; } }
@media (max-width: 500px) { .state-grid { grid-template-columns: repeat(2, 1fr); } }
@media print { .page { max-width: 100%; } .finding, .matchup-card, .state-card { break-inside: avoid; } body { font-size: 12px; } .dossier-nav { display: none; } .state-grid { grid-template-columns: repeat(5, 1fr); } }
