:root {
  color-scheme: dark;
  --bg: #040814;
  --bg-secondary: #071326;
  --panel: rgba(10, 20, 38, 0.72);
  --panel-strong: rgba(12, 24, 46, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fbff;
  --muted: #aab7cb;
  --accent: #8bd3ff;
  --accent-strong: #4ea8ff;
  --accent-violet: #8b5cf6;
  --green-tint: rgba(34, 197, 94, 0.24);
  --green-border: rgba(74, 222, 128, 0.86);
  --red-tint: rgba(239, 68, 68, 0.24);
  --red-border: rgba(248, 113, 113, 0.88);
  --yellow-tint: rgba(250, 204, 21, 0.24);
  --yellow-border: rgba(250, 204, 21, 0.88);
  --shadow: 0 30px 80px rgba(1, 7, 18, 0.45);
  --shadow-strong: 0 40px 120px rgba(1, 7, 18, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(78, 168, 255, 0.24), transparent 26%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 28%),
    radial-gradient(circle at bottom, rgba(34, 197, 94, 0.1), transparent 32%),
    linear-gradient(180deg, #06101f 0%, var(--bg) 44%, #03060f 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

body::before {
  top: 96px;
  right: -80px;
  background: rgba(78, 168, 255, 0.4);
}

body::after {
  bottom: 80px;
  left: -100px;
  background: rgba(139, 92, 246, 0.34);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  margin-bottom: 28px;
}

.hero-shell,
.flag-filter-bar,
.production-card,
.state-card,
.entity-tooltip {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-shell,
.flag-filter-bar,
.state-card {
  border-radius: 32px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 32px;
  padding: 42px;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -16% auto auto 52%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(78, 168, 255, 0.26), transparent 72%);
  transform: translateX(-40%);
  pointer-events: none;
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-kicker-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-kicker-row {
  margin-bottom: 6px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 211, 255, 0.2);
  border-radius: 999px;
  background: rgba(139, 211, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.hero-action-pill,
.count-pill,
.info-badge,
.year-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.83rem;
}

.hero-action-pill {
  color: var(--text);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
}

.cta-button-primary {
  border-color: rgba(139, 211, 255, 0.48);
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.42), rgba(139, 92, 246, 0.3));
}

.cta-button-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.hero-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.hero-value-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}

.hero-value-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(139, 211, 255, 0.22);
  border-radius: 999px;
  background: rgba(139, 211, 255, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-value-title,
.overview-card h3,
.mission-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.hero-value-card p,
.overview-card p,
.mission-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-side-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 16px;
}

.hero-spotlight-card,
.hero-signal-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(7, 19, 38, 0.84);
}

.hero-spotlight-label,
.hero-signal-title {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-spotlight-heading {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-spotlight-copy {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 168px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat-card-accent {
  background:
    linear-gradient(135deg, rgba(78, 168, 255, 0.22), rgba(139, 92, 246, 0.24)),
    rgba(255, 255, 255, 0.045);
}

.hero-stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat-value {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.hero-stat-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero-signal-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hero-signal-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-signal-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  transform: translateY(-50%);
}

.section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
  padding: 18px 22px;
}

.section-nav-copy {
  display: grid;
  gap: 6px;
}

.section-nav-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.section-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.section-nav-button:hover,
.section-nav-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 211, 255, 0.7);
  background: rgba(139, 211, 255, 0.08);
}

.flag-filter-bar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  margin: 0 0 28px;
  padding: 28px;
}

.mission-section,
.roadmap-section,
.production-section,
.overview-section {
  margin-bottom: 28px;
}

.mission-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mission-card,
.overview-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.mission-card p,
.roadmap-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.roadmap-list {
  display: grid;
  gap: 14px;
  padding-left: 0;
  list-style: none;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.roadmap-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.roadmap-step,
.section-card-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roadmap-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(139, 211, 255, 0.18);
  border-radius: 999px;
  background: rgba(139, 211, 255, 0.08);
}

.section-card-kicker {
  margin: 0;
}

.section-heading-support {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.section-heading-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 211, 255, 0.18);
  border-radius: 999px;
  background: rgba(139, 211, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.filter-bar-copy {
  max-width: 760px;
}

.filter-bar-copy h2,
.section-heading h2,
.hover-section h4 {
  margin: 0;
}

.filter-bar-copy h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
}

.filter-summary,
.section-heading p,
.production-status,
.tooltip-subtitle,
.nested-heading {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.filter-controls {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-bar-panel {
  display: grid;
  gap: 18px;
}

.filter-support-grid {
  display: grid;
  gap: 12px;
}

.filter-support-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.filter-support-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.filter-group {
  display: grid;
  gap: 10px;
  position: relative;
}

.filter-group.is-open {
  z-index: 35;
}

.filter-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.filter-menu-toggle:hover,
.filter-menu-toggle:focus-visible {
  transform: translateY(-1px);
}

.filter-menu-toggle-green {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.2);
}

.filter-menu-toggle-red {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.2);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: min(100vw - 48px, 320px);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(11, 15, 23, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.filter-option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  text-align: center;
}

.filter-option-emoji {
  display: inline-block;
  white-space: nowrap;
  font-size: 1.28rem;
  line-height: 1;
}

.filter-option-button:hover,
.filter-option-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 211, 255, 0.7);
}

.filter-option-button.is-active-green {
  border-color: var(--green-border);
  background: rgba(34, 197, 94, 0.18);
}

.filter-option-button.is-active-red {
  border-color: var(--red-border);
  background: rgba(239, 68, 68, 0.18);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.production-section {
  position: relative;
}

.production-browser-shell {
  display: grid;
  gap: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(7, 19, 38, 0.74);
}

.production-browser-filter-header {
  margin: 0;
}

.production-browser-title {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.production-browser-copy {
  margin: 0;
  max-width: 620px;
}

.production-browser-filter-title {
  margin: 8px 0 0;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
}

.production-browser-state {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.count-pill {
  color: var(--text);
  background: rgba(139, 92, 246, 0.14);
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.production-card {
  position: relative;
  overflow: visible;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.production-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 211, 255, 0.28);
  box-shadow: 0 24px 72px rgba(1, 7, 18, 0.42);
}

.production-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%, rgba(255, 255, 255, 0.02));
}

.production-card:focus-visible,
.production-card.is-active,
.production-card[aria-expanded="true"] {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(139, 211, 255, 0.44);
  box-shadow: var(--shadow-strong);
}

.production-card.is-green-flagged {
  border-color: var(--green-border);
  box-shadow: 0 34px 90px rgba(34, 197, 94, 0.16);
}

.production-card.is-red-flagged {
  border-color: var(--red-border);
  box-shadow: 0 34px 90px rgba(239, 68, 68, 0.16);
}

.production-card.is-yellow-flagged {
  border-color: var(--yellow-border);
  box-shadow: 0 34px 90px rgba(250, 204, 21, 0.16);
}

.production-card.is-green-flagged .production-meta {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.04), rgba(34, 197, 94, 0.11));
}

.production-card.is-red-flagged .production-meta {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.04), rgba(239, 68, 68, 0.11));
}

.production-card.is-yellow-flagged .production-meta {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.04), rgba(250, 204, 21, 0.11));
}

.poster-shell {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 30px 30px 22px 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(78, 168, 255, 0.3), rgba(139, 92, 246, 0.28));
}

.poster-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 16, 0.85));
  pointer-events: none;
}

.poster-image,
.poster-fallback {
  width: 100%;
  height: 100%;
}

.poster-image {
  display: block;
  object-fit: cover;
}

.poster-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  text-align: center;
}

.poster-shell.is-fallback .poster-image {
  display: none;
}

.poster-shell.is-fallback .poster-fallback {
  display: flex;
}

.production-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 20px 20px 22px;
}

.card-action-hint {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.production-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.production-status {
  font-size: 0.9rem;
}

.badge-row,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-badge {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.info-badge.ideology-info-badge {
  position: relative;
  cursor: help;
}

.ideology-badge-with-tooltip {
  position: relative;
  display: inline-flex;
}

.ideology-badge-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translate(-50%, 6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 40;
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 10px 12px;
  border: 1px solid rgba(139, 211, 255, 0.24);
  border-radius: 12px;
  background: rgba(5, 12, 24, 0.98);
  box-shadow: 0 12px 34px rgba(1, 7, 18, 0.58);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

.ideology-badge-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(5, 12, 24, 0.98);
}

.ideology-info-badge:hover + .ideology-badge-tooltip,
.ideology-info-badge:focus + .ideology-badge-tooltip,
.ideology-badge-with-tooltip:focus-within .ideology-badge-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.info-badge.ideology-info-badge:focus-visible {
  outline: 2px solid rgba(139, 211, 255, 0.8);
  outline-offset: 2px;
}

.production-donation-summary {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.detail-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 16, 0.74);
  cursor: pointer;
}

.detail-drawer-shell {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 16px;
  padding: 24px;
  pointer-events: none;
}

.detail-panel {
  width: min(380px, calc(100vw - 32px));
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-strong);
  pointer-events: auto;
}

.detail-panel-header,
.detail-panel-actions,
.panel-entity-title-row,
.detail-panel-hero {
  display: flex;
  gap: 12px;
}

.detail-panel-header {
  align-items: flex-start;
  justify-content: space-between;
}

.detail-panel-actions {
  min-width: fit-content;
}

.detail-panel-copy {
  flex: 1 1 auto;
}

.detail-panel-title,
.detail-panel-subtitle,
.detail-panel-section h4,
.detail-definition-list {
  margin: 0;
}

.detail-panel-title {
  font-size: 1.35rem;
  line-height: 1.2;
}

.detail-panel-subtitle,
.detail-panel-body-copy,
.panel-entity-meta,
.detail-definition-list dt,
.nested-person-meta {
  color: var(--muted);
}

.detail-panel-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.detail-panel-hero {
  align-items: center;
}

.detail-panel-poster {
  flex: 0 0 92px;
  width: 92px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-panel-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-panel-poster.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.detail-panel-hero-copy,
.detail-panel-section,
.detail-panel-section-heading {
  display: grid;
  gap: 8px;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-metric-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-metric-value {
  font-size: 0.96rem;
}

.panel-entity-list,
.nested-chip-list {
  display: grid;
  gap: 10px;
}

.production-ideology-list {
  display: grid;
  gap: 10px;
}

.production-ideology-item {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.production-ideology-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.production-ideology-item .detail-panel-body-copy {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.panel-entity-button {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 15px;
  cursor: pointer;
  font: inherit;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.panel-entity-button:hover,
.panel-entity-button:focus-visible,
.detail-panel-button:hover,
.detail-panel-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 211, 255, 0.7);
}

.panel-entity-button.is-green-affiliated {
  border-color: var(--green-border);
  background: rgba(34, 197, 94, 0.1);
}

.panel-entity-button.is-red-affiliated {
  border-color: var(--red-border);
  background: rgba(239, 68, 68, 0.1);
}

.panel-entity-button.is-yellow-affiliated {
  border-color: var(--yellow-border);
  background: rgba(250, 204, 21, 0.1);
}

.panel-entity-title-row {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.panel-entity-flags {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

.panel-entity-flags-group,
.detail-panel-flags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-panel-subtitle.is-flag-group {
  display: inline-flex;
  width: fit-content;
  color: var(--text);
}

.flag-pair {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
}

.detail-definition-list {
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr;
  gap: 8px 12px;
  font-size: 0.88rem;
}

.detail-definition-list dd {
  margin: 0;
}

.detail-drawer.has-entity-panel .detail-panel:first-child {
  box-shadow: 0 20px 80px rgba(1, 7, 18, 0.45);
}

.nested-person-card {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.nested-person-card.is-green-affiliated {
  border-color: var(--green-border);
  background: rgba(34, 197, 94, 0.1);
}

.nested-person-card.is-red-affiliated {
  border-color: var(--red-border);
  background: rgba(239, 68, 68, 0.1);
}

.nested-person-card.is-yellow-affiliated {
  border-color: var(--yellow-border);
  background: rgba(250, 204, 21, 0.1);
}

.nested-person-name {
  font-size: 0.9rem;
}

.nested-person-meta {
  font-size: 0.79rem;
}

.nested-person-link,
.tooltip-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.nested-person-link:hover,
.nested-person-link:focus-visible,
.tooltip-link:hover,
.tooltip-link:focus-visible {
  color: #ffffff;
}

.secondary-button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.secondary-button[disabled],
.flag-option-button[disabled] {
  cursor: progress;
  opacity: 0.6;
}

.state-card {
  padding: 28px;
  color: var(--muted);
}

.help-out-section {
  display: grid;
  gap: 20px;
}

.contact-section {
  display: grid;
  gap: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.contact-field textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-submit {
  width: fit-content;
}

.help-out-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.help-out-intro-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.help-out-intro-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.help-out-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.help-out-search,
.recipient-select-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.help-out-search {
  flex: 1 1 320px;
}

.help-out-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.recipient-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.recipient-card {
  display: grid;
  gap: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(7, 19, 38, 0.6);
}

.recipient-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.recipient-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 320px;
}

.recipient-header h3,
.recipient-header p,
.recipient-stats,
.recipient-people {
  margin: 0;
}

.recipient-meta,
.recipient-stats,
.recipient-people {
  color: var(--muted);
}

.recipient-details,
.recipient-people-shell {
  display: grid;
  gap: 12px;
}

.recipient-people-heading {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.recipient-flag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flag-option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.flag-option-button:hover,
.flag-option-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 211, 255, 0.7);
}

.recipient-flag:empty {
  display: none;
}

.sentiment-section {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}

.sentiment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
}

.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sentiment-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.sentiment-card h3,
.sentiment-value,
.sentiment-summary {
  margin: 0;
}

.sentiment-card-like {
  border-color: var(--green-border);
  background: rgba(34, 197, 94, 0.1);
}

.sentiment-card-dislike {
  border-color: var(--red-border);
  background: rgba(239, 68, 68, 0.1);
}

.sentiment-value {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
}

.sentiment-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sentiment-summary {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.sentiment-note-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.sentiment-note-card h3,
.sentiment-note-card p {
  margin: 0;
}

.sentiment-note-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.sentiment-note-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-shell,
  .flag-filter-bar,
  .mission-grid,
  .overview-grid,
  .hero-value-grid,
  .help-out-intro-grid,
  .sentiment-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-copy {
    max-width: none;
  }

  .filter-controls {
    justify-content: flex-start;
  }

  .section-nav {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 24px;
  }

  .hero-shell,
  .flag-filter-bar,
  .overview-section,
  .mission-section,
  .roadmap-section,
  .sentiment-section,
  .state-card {
    border-radius: 24px;
    padding: 24px;
  }

  .section-nav {
    padding: 20px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .production-browser-shell {
    padding: 20px;
  }

  .detail-drawer-shell {
    align-items: flex-start;
    overflow-y: auto;
  }

  .detail-drawer.has-entity-panel .detail-drawer-shell {
    flex-direction: column;
  }

  .detail-panel {
    width: min(100%, 560px);
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .title-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading-support,
  .section-nav-links {
    width: 100%;
  }

  .filter-controls {
    width: 100%;
  }

  .filter-group,
  .filter-options {
    width: 100%;
  }

  .filter-dropdown {
    min-width: 100%;
  }

  .filter-options {
    justify-content: flex-start;
  }

  .detail-panel {
    width: 100%;
  }

  .detail-metric-grid {
    grid-template-columns: 1fr;
  }
}
