/* The Truth of the Luke Edwards Case — Investigative Archive */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --slate: #334155;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --cream: #f8f6f1;
  --white: #ffffff;
  --green: #166534;
  --green-bg: #dcfce7;
  --red: #991b1b;
  --red-bg: #fee2e2;
  --blue: #1e40af;
  --blue-bg: #dbeafe;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover { color: var(--gold); }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  max-width: 100%;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.header-logo-row {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 0.15rem 0;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  max-width: 620px;
}

.site-logo span {
  display: block;
  font-size: 0.72rem;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 7px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.35rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-nav {
  width: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.site-nav li {
  flex-grow: 1;
  text-align: center;
}

.site-nav a {
  display: block;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.55rem 0.4rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2d3a4f 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--white);
  font-weight: 700;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 0 0 1.5rem;
}

.hero-subheadline {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  max-width: 720px;
  margin: 0 0 1rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: #e8b923;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Main content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.section-subtitle {
  color: var(--slate);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* Conclusion box */
.conclusion-box {
  background: var(--white);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.conclusion-box h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--navy);
}

.conclusion-box p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.conclusion-box p:last-child { margin-bottom: 0; }

.conclusion-highlight {
  background: var(--green-bg);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.conclusion-highlight strong {
  color: var(--green);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Key Facts box on homepage */
.key-facts-section {
  margin-bottom: 2rem;
}

.key-facts-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.key-facts-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.key-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-facts-list li {
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}

.key-facts-list li:last-child {
  margin-bottom: 0;
}

.key-facts-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
  font-size: 1.1rem;
}

.key-facts-list strong {
  font-weight: 700;
  color: var(--navy);
}

/* Blog / Updates controls — layout only so desktop appearance stays neutral */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.blog-controls select {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  font-size: 16px; /* prevent iOS focus zoom */
  font-family: var(--font-sans);
}

#blog-display {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

#blog-display img,
#blog-body img {
  max-width: 100%;
  height: auto;
}

.blog-post {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.blog-post h3 {
  margin-top: 0;
  font-size: 1.25rem;
}
.post-meta {
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.blog-post .citation {
  font-size: 0.75rem;
  color: var(--slate);
  font-style: italic;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.blog-list {
  list-style: none;
  padding: 0;
}
.blog-list li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-list li:last-child {
  border-bottom: none;
}



/* Fact cards */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.fact-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.fact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.fact-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.fact-card .ref {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  font-family: monospace;
}

/* Evidence panel */
.evidence-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.evidence-panel-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.evidence-panel-body {
  padding: 1.5rem;
}

/* Video embed */
.video-container,
.video-embed-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 1rem;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container video,
.video-container iframe,
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-caption {
  font-size: 0.875rem;
  color: var(--slate);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Evidence / document images — always fit the container (fixes mobile crop) */
.evidence-image {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
}

.evidence-panel-body .evidence-image {
  max-width: 100%;
}

/* Original PDF iframe preview (first page container) */
.pdf-embed {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  background: #f8fafc;
  display: block;
}

/* Open full PDF — sits under the original preview container */
.pdf-open-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.25rem;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pdf-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  white-space: normal;
  text-align: center;
}

.pdf-open-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--slate);
  max-width: 36rem;
}

@media (max-width: 900px) {
  .pdf-embed {
    height: min(70vh, 520px);
    min-height: 320px;
  }

  .pdf-open-panel {
    align-items: stretch;
  }

  .pdf-open-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pdf-embed {
    height: min(65vh, 440px);
    min-height: 280px;
  }
}

/* Transcript block */
.transcript-block {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  max-height: 500px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.transcript-block h4 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}

/* Quote block */
blockquote.official-quote {
  border-left: 4px solid var(--gold);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--slate);
}

blockquote.official-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* Tables — wrapper used for horizontal scroll on narrow viewports only */
.table-scroll {
  width: 100%;
  max-width: 100%;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--navy);
  color: var(--white);
}

.data-table th,
.data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.data-table .false-claim {
  color: var(--red);
  font-weight: 500;
}

.data-table .actual-fact {
  color: var(--green);
  font-weight: 500;
}

/* Timeline */
.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.timeline-search {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--white);
}

.timeline-search:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.timeline-list {
  position: relative;
  padding-left: 2rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item.hidden { display: none; }

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.timeline-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.timeline-item p {
  margin: 0 0 0.75rem;
  color: var(--slate);
}

.timeline-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ref-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: monospace;
  font-weight: 600;
}

.ref-source {
  display: inline-block;
  background: #f1f5f9;
  color: var(--slate);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.timeline-category {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.cat-forensic { background: var(--blue-bg); color: var(--blue); }
.cat-legal { background: #fef3c7; color: #92400e; }
.cat-media { background: var(--red-bg); color: var(--red); }
.cat-official { background: var(--green-bg); color: var(--green); }

/* Map comparison */
.map-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.map-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card.actual { border-top: 4px solid var(--green); }
.map-card.false { border-top: 4px solid var(--red); }

.map-card-header {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.map-card.actual .map-card-header {
  background: var(--green-bg);
  color: var(--green);
}

.map-card.false .map-card-header {
  background: var(--red-bg);
  color: var(--red);
}

.map-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.map-card-body {
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--slate);
}

/* CTA links */
.page-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.page-nav-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.page-nav-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--navy);
}

.page-nav-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--navy);
}

.page-nav-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.6;
}

/* Utility */
.crawler-archive {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-center { text-align: center; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-verified { background: var(--green-bg); color: var(--green); }
.badge-disputed { background: var(--red-bg); color: var(--red); }

/* Facility showcase */
.facility-reel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  margin-bottom: 2.5rem;
  min-height: 280px;
}

.facility-reel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-reel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
}

.facility-reel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-reel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: var(--white);
  font-size: 0.95rem;
}

.facility-reel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.6);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.facility-reel-nav:hover { background: rgba(201, 162, 39, 0.9); }
.facility-reel-nav.prev { left: 1rem; }
.facility-reel-nav.next { right: 1rem; }

.facility-reel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--white);
}

.facility-reel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.facility-reel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  border: none;
  padding: 0;
  background: var(--navy);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
}

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

.gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
  color: var(--white);
  font-size: 0.8rem;
  text-align: left;
}

.gallery-item.hidden {
  display: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.video-grid-single {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.video-grid-single .evidence-panel {
  width: 100%;
  max-width: 720px;
}

.fb-embed-wrap {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0 auto 2rem;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 476;
}

.fb-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.fb-link-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  margin-bottom: 1rem;
}

.fb-link-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--navy);
}

.fb-link-card .fb-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  text-align: center;
  max-width: 600px;
  font-size: 0.95rem;
}

.narrative-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.narrative-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.narrative-card.false {
  background: var(--red-bg);
  border-top: 4px solid var(--red);
}

.narrative-card.true {
  background: var(--green-bg);
  border-top: 4px solid var(--green);
}

.narrative-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.narrative-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.narrative-card cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}

/* Official position banner (homepage) */
.official-position-banner {
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.official-position-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ffffff 100%);
  border: 2px solid #86efac;
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.official-position-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--green);
}

.official-position-box p {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.6;
}

.official-position-box p:last-child {
  margin-bottom: 0;
}

.official-position-box a {
  font-weight: 600;
}

/* Official Documents page */
.about-site-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.about-site-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.about-site-box p {
  margin: 0;
  color: var(--slate);
}

.doc-jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.doc-jump-nav strong {
  color: var(--navy);
  margin-right: 0.25rem;
}

.doc-jump-nav a {
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  background: #f1f5f9;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.82rem;
}

.doc-jump-nav a:hover {
  background: var(--navy);
  color: var(--white);
}

.document-entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}

.document-entry-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.document-meta {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.document-source,
.document-date {
  margin: 0.35rem 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.document-summary {
  background: #f8fafc;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
}

.document-summary h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.document-summary p {
  margin: 0;
  color: var(--navy);
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-doc-secondary {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-doc-secondary:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: #fffbeb;
}

.document-entry .btn-primary {
  color: var(--navy);
}

.transcript-text {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--navy);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  max-height: 480px;
  overflow-y: auto;
}

a.ref-tag {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

a.ref-tag:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ==========================================================================
   Responsive — layout only (same colours, type, and content)
   ========================================================================== */

/* Large tablets / small laptops: slightly denser nav before hamburger */
@media (max-width: 1100px) {
  .site-nav a {
    font-size: 0.75rem;
    padding: 0.5rem 0.2rem;
  }

  .header-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Tablets & phones: hamburger navigation + stacked layouts */
@media (max-width: 900px) {
  .header-inner {
    padding: 0.85rem 1rem;
    gap: 0;
  }

  .header-logo-row {
    justify-content: flex-start;
    padding-right: 3.25rem; /* room for hamburger */
  }

  .site-logo {
    text-align: left;
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    max-width: calc(100% - 0.5rem);
  }

  .site-logo span {
    text-align: left;
    font-size: clamp(0.6rem, 2.2vw, 0.7rem);
    letter-spacing: 0.05em;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    padding: 0.5rem 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    max-height: min(70vh, calc(100dvh - 4.5rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
    align-items: stretch;
  }

  .site-nav li {
    width: 100%;
    flex-grow: 0;
    text-align: left;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.35;
    min-height: 44px;
  }

  .main-content {
    padding: 2rem 1rem 3.5rem;
  }

  .hero {
    padding: 2.25rem 1rem 2.75rem;
  }

  .hero-lead,
  .hero-subheadline {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    text-align: center;
    white-space: normal;
    width: 100%;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .section {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .conclusion-box {
    padding: 1.35rem 1.15rem;
  }

  .conclusion-box h2 {
    font-size: 1.25rem;
  }

  .conclusion-box p {
    font-size: 1.02rem;
  }

  .key-facts-box,
  .official-position-box,
  .about-site-box {
    padding: 1.25rem 1.1rem;
  }

  .official-position-box h2 {
    font-size: 1.2rem;
  }

  .fact-card {
    padding: 1.35rem;
  }

  .map-comparison,
  .narrative-compare {
    grid-template-columns: 1fr;
  }

  .facility-reel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .facility-reel-nav.prev { left: 0.5rem; }
  .facility-reel-nav.next { right: 0.5rem; }

  .facility-reel-caption {
    padding: 1.5rem 1rem 1rem;
    font-size: 0.85rem;
  }

  .transcript-block,
  .transcript-text {
    max-height: min(50vh, 360px);
    padding: 1rem;
    font-size: 0.85rem;
  }

  .document-entry {
    padding: 1.35rem 1.1rem 1.5rem;
    scroll-margin-top: 5.5rem;
  }

  .document-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .document-actions .btn,
  .document-actions .btn-doc-secondary,
  .document-actions .btn-primary {
    width: 100%;
    text-align: center;
  }

  .doc-jump-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .doc-jump-nav a {
    display: block;
    text-align: center;
    padding: 0.55rem 0.75rem;
    min-height: 44px;
    line-height: 1.4;
  }

  .fb-link-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem;
  }

  .lightbox {
    padding: 1rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .lightbox img {
    max-width: 100%;
    max-height: 75vh;
  }

  .lightbox-close {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }

  .lightbox-caption {
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
    font-size: 0.85rem;
  }

  .timeline-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-search {
    min-width: 0;
    width: 100%;
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  .timeline-filters {
    width: 100%;
  }

  .filter-btn,
  .gallery-filters .filter-btn,
  .gallery-filter-btn {
    min-height: 40px;
  }

  .timeline-list {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-footer {
    padding: 2rem 1rem;
  }

  .data-table {
    font-size: 0.82rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.7rem 0.85rem;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .table-scroll .data-table {
    min-width: 36rem;
  }

  blockquote.official-quote {
    padding: 0.9rem 1rem;
    margin: 1.15rem 0;
  }

  .evidence-panel-header,
  .evidence-panel-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery-item {
    min-height: 44px;
  }

  .blog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-controls select {
    flex: none;
    width: 100%;
  }

  .blog-controls button {
    width: 100%;
    white-space: normal;
    margin-left: 0 !important; /* override inline spacing on Updates page */
  }

  #blog-display {
    padding: 1.15rem !important;
  }

  audio,
  video {
    max-width: 100%;
  }
}

/* Phones */
@media (max-width: 480px) {
  .header-inner {
    padding: 0.7rem 0.85rem;
  }

  .header-logo-row {
    padding-right: 3rem;
  }

  .main-content {
    padding: 1.5rem 0.85rem 3rem;
  }

  .hero {
    padding: 1.75rem 0.85rem 2.25rem;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 7.5vw, 1.85rem);
  }

  .hero-ctas {
    gap: 0.5rem;
  }

  .btn,
  .btn-doc-secondary {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
  }

  .facts-grid,
  .video-grid,
  .gallery-grid,
  .page-nav-cards {
    gap: 1rem;
  }

  .facility-reel {
    min-height: 200px;
  }

  .document-entry {
    padding: 1.1rem 0.9rem 1.25rem;
  }

  .key-facts-list li {
    padding-left: 1.5rem;
  }

  .timeline-list {
    padding-left: 1.25rem;
  }

  .timeline-item::before {
    left: -1.25rem;
    width: 12px;
    height: 12px;
  }

  .table-scroll .data-table {
    min-width: 32rem;
    font-size: 0.78rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.6rem 0.7rem;
  }

  .conclusion-highlight {
    padding: 1rem;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .site-logo {
    font-size: 0.9rem;
  }

  .site-logo span {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
  }

  .main-content {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .hero {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

/* Prefer reduced motion (accessibility; no visual redesign) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Landscape phones: keep nav usable */
@media (max-width: 900px) and (max-height: 480px) {
  .site-nav {
    max-height: calc(100dvh - 3.5rem);
  }

  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }
}

/* Touch-friendly: no hover lift on coarse pointers (prevents sticky hover on mobile) */
@media (hover: none) and (pointer: coarse) {
  .fact-card:hover,
  .page-nav-card:hover,
  .gallery-item:hover,
  .fb-link-card:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}