/* ============================================
   PANDEMIC DEBATE — DESIGN TOKENS
   ============================================ */
:root {
  --blue-primary: #1B4FD6;
  --blue-sky: #4FA8E8;
  --navy: #0F2A5E;
  --off-white: #F7F9FC;
  --warm-gray: #6B7280;
  --amber: #D98E3F;
  --amber-soft: #FBF0E1;
  --white: #FFFFFF;
  --border-hairline: #DCE3EE;

  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius-card: 4px;
  --shadow-card: 0 1px 2px rgba(15, 42, 94, 0.06), 0 1px 1px rgba(15, 42, 94, 0.04);
  --shadow-card-hover: 0 6px 16px rgba(15, 42, 94, 0.12);

  --max-width: 1140px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--off-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-link img {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: 12px;
  flex-shrink: 0;
}

.main-nav a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-primary);
  text-decoration: none;
  border-bottom-color: var(--blue-primary);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.header-search input {
  width: 100%;
  max-width: 240px;
  padding: 8px 12px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--off-white);
}

.header-search input:focus {
  background: var(--white);
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-search input { max-width: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  border-bottom: 1px solid var(--border-hairline);
  padding: 20px;
}

.hero-frame {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  grid-template-rows: auto auto auto;
  gap: 2px;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-frame-top, .hero-frame-bottom {
  grid-column: 1 / 4;
  width: 100%;
  aspect-ratio: 1583 / 206;
  object-fit: cover;
  display: block;
}

.hero-frame-left {
  width: 100%;
  aspect-ratio: 286 / 723;
  object-fit: cover;
  display: block;
}

.hero-frame-right {
  width: 100%;
  aspect-ratio: 271 / 723;
  object-fit: cover;
  display: block;
}

.hero-content {
  grid-column: 2;
  grid-row: 2;
  background: var(--white);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .hero-frame {
    grid-template-columns: 0 1fr 0;
    grid-template-rows: auto auto auto;
    gap: 2px;
  }
  .hero-frame-left, .hero-frame-right { display: none; }
  .hero-content { padding: 28px 16px; }
}

@media (max-width: 480px) {
  .hero-frame {
    grid-template-rows: auto auto auto;
  }
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 720px;
  margin: 0 auto 14px;
}

.hero p.subhead {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--warm-gray);
  font-size: 1.05rem;
}

.hero-search {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.hero-search input {
  flex: 1;
  padding: 15px 18px;
  font-size: 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.hero-search button {
  padding: 15px 24px;
  background: var(--blue-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.hero-search button:hover { background: var(--navy); }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--blue-sky);
  border-radius: 999px;
  color: var(--blue-primary);
  background: var(--white);
  cursor: pointer;
}

.chip:hover { background: var(--blue-sky); color: var(--white); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 56px 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head h2 {
  font-size: 1.6rem;
}

.section-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: block;
  margin-bottom: 6px;
}

/* ============================================
   CATEGORY DOSSIER CARDS
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-card);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin: 0 0 10px;
}

.category-card .count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue-primary);
}

/* ============================================
   EVIDENCE CARD (signature element)
   ============================================ */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.evidence-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 0 18px 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease;
  overflow: hidden;
}

.card-thumb {
  margin: 0 -18px 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
  position: relative;
  cursor: pointer;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8CA0C6;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.card-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 42, 94, 0.72);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.card-thumb:hover .card-thumb-play {
  background: var(--blue-primary);
  transform: translate(-50%, -50%) scale(1.08);
}

.evidence-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.evidence-card .stamp {
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--warm-gray);
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-hairline);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.evidence-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  line-height: 1.35;
}

.evidence-card .person {
  font-size: 0.85rem;
  color: var(--blue-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.evidence-card .role {
  font-size: 0.78rem;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

.evidence-card .desc {
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.evidence-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-source { background: #E4ECFB; color: var(--blue-primary); }
.tag-summary { background: #E9EEF5; color: var(--navy); }
.tag-opinion { background: var(--amber-soft); color: var(--amber); }
.tag-verified { background: #E1F5EA; color: #1F8348; }
.tag-disputed { background: #FBEAEA; color: #C0392B; }
.tag-correction { background: #FDF3D9; color: #A67C00; }

.watch-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-primary);
  border: 1px solid var(--blue-primary);
  padding: 5px 12px;
  border-radius: var(--radius-card);
  background: var(--white);
  cursor: pointer;
}

.watch-btn:hover { background: var(--blue-primary); color: var(--white); text-decoration: none; }

/* ============================================
   TOPIC FILTER TABS
   ============================================ */
.topic-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.topic-tab {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.topic-tab:hover { border-color: var(--blue-sky); }

.topic-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 94, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-card);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--warm-gray);
  cursor: pointer;
  line-height: 1;
}

.modal-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-card);
}

.modal-video-frame .no-embed {
  color: var(--white);
  text-align: center;
  padding: 24px;
}

.modal-video-frame .no-embed a {
  color: var(--blue-sky);
  font-weight: 600;
}

.modal-box h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--warm-gray);
}

.empty-state h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: #C7D3EA;
  padding: 40px 24px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner a { color: #DCE7FB; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-note {
  font-size: 0.78rem;
  color: #8CA0C6;
  max-width: 420px;
}

.footer-social {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
}

.footer-signup {
  display: flex;
  gap: 6px;
  max-width: 260px;
}

.footer-signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-signup input[type="email"]::placeholder {
  color: #8CA0C6;
}

.footer-signup button {
  padding: 8px 14px;
  background: var(--blue-sky);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.footer-signup button:hover {
  background: var(--white);
}

.footer-signup-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #AFC6EE;
  min-height: 1em;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6E82A8;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden { display: none !important; }
