/* ============================================================
   UNITED HATZALAH INVESTIGATION — STYLESHEET
   Investigative journalism aesthetic: dark, authoritative
   ============================================================ */

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

:root {
  --ink: #1a1a1a;
  --ink-light: #3a3a3a;
  --ink-muted: #666;
  --paper: #f8f6f1;
  --paper-dark: #ede9e0;
  --dark-bg: #111827;
  --dark-text: #e5e7eb;
  --dark-muted: #9ca3af;
  --accent: #b91c1c;
  --accent-light: #fef2f2;
  --accent-dark: #7f1d1d;
  --gold: #92400e;
  --gold-light: #fef3c7;
  --border: #d1c9b8;
  --border-dark: #374151;
  --gap-red: #dc2626;
  --positive-green: #15803d;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

/* ============================================================
   MASTHEAD
   ============================================================ */

.masthead {
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}

.masthead-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  padding-bottom: 1rem;
  border-bottom: 1px solid #374151;
  margin-bottom: 1.5rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.4rem;
}

.site-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: #d1d5db;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* ============================================================
   STICKY GROUPED TAB NAVIGATION
   ============================================================ */

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111827;
  border-top: 1px solid #374151;
  border-bottom: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  min-height: 48px;
  transition: box-shadow 0.25s;
}

.main-nav--sticky {
  box-shadow: 0 4px 24px rgba(0,0,0,0.55);
  background: rgba(17,24,39,0.97);
  backdrop-filter: blur(8px);
}

/* Wordmark — only visible once sticky */
.nav-wordmark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.main-nav--sticky .nav-wordmark {
  opacity: 1;
  pointer-events: auto;
}

/* Tab list */
.nav-tabs {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex: 1;
}

/* Individual tab item */
.nav-item {
  position: relative;
}

/* Tab link / button base */
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
  padding: 0 1rem;
  height: 48px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.nav-link:hover {
  color: #f9fafb;
  background: rgba(255,255,255,0.04);
}

/* Active section highlight */
.nav-link--active {
  color: #f9fafb !important;
  border-bottom-color: #ef4444 !important;
}

.nav-link--parent-active {
  color: #f9fafb !important;
  border-bottom-color: #ef4444 !important;
}

/* Caret */
.nav-caret {
  font-size: 0.55rem;
  opacity: 0.6;
  transition: transform 0.18s;
  display: inline-block;
}

.nav-item--open > .nav-link--parent .nav-caret {
  transform: rotate(180deg);
}

/* Diagram link — distinct accent */
.nav-link--diagram {
  color: #60a5fa;
  margin-left: 0.5rem;
}

.nav-link--diagram:hover {
  color: #93c5fd;
}

/* ── Dropdown panel ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 200px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}

.nav-item--open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d1d5db;
  text-decoration: none;
  padding: 8px 16px;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}

.nav-dropdown-link:hover {
  color: #f9fafb;
  background: rgba(255,255,255,0.06);
}

.nav-dropdown-link.nav-link--active {
  color: #f9fafb;
  border-left-color: #ef4444;
  background: rgba(239,68,68,0.08);
}

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid #374151;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #9ca3af;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger--open span:nth-child(2) { opacity: 0; }
.nav-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--accent);
  color: #fff;
  padding: 4rem 2rem;
}

.hero .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-deck {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 780px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
}

/* ============================================================
   CONTAINERS & LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.section-dark .section-label {
  color: var(--accent);
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-intro {
  color: var(--dark-muted);
}

.section-dark p {
  color: #d1d5db;
}

.section-dark h3 {
  color: #f3f4f6;
}

.section-accent {
  background: var(--gold-light);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 760px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  color: var(--ink);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.section-dark .subsection-title {
  color: #f3f4f6;
  border-bottom-color: var(--border-dark);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.col-text p {
  margin-bottom: 1.2rem;
}

.col-text h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--ink);
}

/* ============================================================
   STAT BOXES
   ============================================================ */

.stat-box {
  background: var(--ink);
  color: #fff;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* ============================================================
   CALLOUT BOXES (Financial)
   ============================================================ */

.callout-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.section-dark .callout-box {
  background: #1f2937;
  border-color: var(--border-dark);
}

.callout-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.section-dark .callout-label {
  color: var(--dark-muted);
}

.callout-amount {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.callout-amount.positive { color: var(--positive-green); }
.callout-amount.negative { color: var(--ink); }
.callout-amount.gap { color: var(--gap-red); }

.callout-source {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-style: italic;
}

.section-dark .callout-source {
  color: var(--dark-muted);
}

.gap-box {
  border-color: var(--gap-red);
  border-width: 2px;
}

.callout-note {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.5;
}

.section-dark .callout-note {
  color: #d1d5db;
}

/* ============================================================
   FACT CARDS
   ============================================================ */

.fact-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.fact-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.fact-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.fact-body {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.5;
}

/* ============================================================
   CASE BOX
   ============================================================ */

.case-box {
  background: var(--ink);
  color: #fff;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}

.section-accent .case-box {
  background: #78350f;
}

.case-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.5rem;
}

.case-item {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.case-key {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #9ca3af;
  margin-right: 0.4rem;
}

/* ============================================================
   PULLQUOTES
   ============================================================ */

.pullquote {
  border-left: 5px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  background: rgba(185,28,28,0.06);
}

.section-dark .pullquote {
  background: rgba(185,28,28,0.12);
}

.pullquote blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.section-dark .pullquote blockquote {
  color: #f3f4f6;
}

.pullquote cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

.section-dark .pullquote cite {
  color: var(--dark-muted);
}

.pullquote-small {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  background: rgba(185,28,28,0.04);
}

.pullquote-small blockquote {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.pullquote-small cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-style: normal;
}

/* ============================================================
   TABLES
   ============================================================ */

.org-table-wrap {
  margin-top: 3rem;
}

.table-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ink);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  border: 1px solid var(--border);
}

.data-table thead tr {
  background: var(--ink);
  color: #fff;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 500;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-light);
}

.data-table tbody tr:nth-child(even) {
  background: var(--paper-dark);
}

.data-table tbody tr.highlight-row {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
}

.data-table tbody tr:hover {
  background: var(--accent-light);
}

.table-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.75rem;
  border-left: 3px solid var(--border);
  padding-left: 0.8rem;
}

/* ============================================================
   CHART
   ============================================================ */

.chart-container {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 2rem 0 0.5rem;
  max-height: 320px;
}

.section-dark .chart-container {
  background: #1f2937;
  border-color: var(--border-dark);
}

.chart-caption {
  font-size: 0.78rem;
  color: var(--dark-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ============================================================
   NETWORK DIAGRAM
   ============================================================ */

.network-diagram {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.section-dark .network-diagram {
  background: #1f2937;
  border-color: var(--border-dark);
}

.network-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.section-dark .network-title {
  color: var(--dark-muted);
  border-bottom-color: var(--border-dark);
}

.network-node {
  border: 2px solid var(--border);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-align: center;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.section-dark .network-node {
  color: #e5e7eb;
  border-color: var(--border-dark);
}

.network-node span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.section-dark .network-node span {
  color: var(--dark-muted);
}

.us-node {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.section-dark .us-node {
  background: #1e3a5f;
  border-color: #3b82f6;
  color: #bfdbfe;
}

.il-node {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section-dark .il-node {
  background: #450a0a;
  border-color: var(--accent);
  color: #fca5a5;
}

.network-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: var(--ink-muted);
  line-height: 1;
  margin: 0.2rem 0;
}

.network-gap {
  background: var(--gap-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.8rem;
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.network-other {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.small-node {
  font-size: 0.72rem;
  padding: 0.5rem 0.6rem;
}

/* ============================================================
   MINI TIMELINE (sidebar)
   ============================================================ */

.timeline-mini {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.2rem;
}

.section-dark .timeline-mini {
  background: #1f2937;
  border-color: var(--border-dark);
}

.timeline-mini-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.section-dark .timeline-mini-item {
  border-bottom-color: var(--border-dark);
}

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

.tm-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  padding-top: 0.1rem;
}

.tm-text {
  color: var(--ink-light);
  line-height: 1.4;
}

.section-dark .tm-text {
  color: #d1d5db;
}

/* ============================================================
   MAIN TIMELINE
   ============================================================ */

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-dark);
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--dark-bg);
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  padding-top: 0.15rem;
  text-align: right;
}

.tl-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.tl-body {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ============================================================
   SOURCES GRID
   ============================================================ */

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.source-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.source-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.source-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.source-body {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}

.source-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  display: inline-block;
}

.source-link:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: #6b7280;
  padding: 3rem 0;
  border-top: 4px solid var(--accent);
}

.footer-note {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 1rem;
  border-left: 3px solid #374151;
  padding-left: 1rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #4b5563;
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .col-aside {
    order: -1;
  }

  .timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .network-other {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .masthead-inner {
    padding: 1rem;
  }

  /* Mobile nav */
  .nav-hamburger { display: flex; }
  .nav-wordmark { display: none; }

  .nav-tabs {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #1f2937;
    border-bottom: 1px solid #374151;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    padding: 8px 0;
    z-index: 999;
  }

  .nav-tabs--open { display: flex; }

  .nav-item { width: 100%; }

  .nav-link {
    height: auto;
    padding: 10px 20px;
    width: 100%;
    justify-content: space-between;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .nav-link--active, .nav-link--parent-active {
    border-left-color: #ef4444 !important;
    border-bottom-color: transparent !important;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0,0,0,0.2);
    display: none;
    padding: 0;
  }

  .nav-item--open > .nav-dropdown { display: block; }

  .nav-dropdown-link { padding: 8px 32px; }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

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

  .timeline {
    padding-left: 1.2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .tl-year {
    text-align: left;
  }
}

/* ============================================================
   SEARCH BAR
   ============================================================ */

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid #374151;
  border-radius: 4px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  flex-shrink: 0;
}

.nav-search-toggle:hover,
.nav-search-toggle--active {
  color: #f9fafb;
  border-color: #6b7280;
  background: rgba(255,255,255,0.06);
}

.nav-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 300;
}

.nav-search-panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search-input {
  width: 100%;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 5px;
  color: #f9fafb;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s;
}

.nav-search-input:focus {
  border-color: #6b7280;
}

.nav-search-input::placeholder {
  color: #6b7280;
}

.nav-search-results {
  display: none;
  flex-direction: column;
  margin-top: 6px;
  max-height: 340px;
  overflow-y: auto;
  border-radius: 4px;
}

.nav-search-results--visible {
  display: flex;
}

.nav-search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
  border-bottom: 1px solid #374151;
}

.nav-search-result:last-child {
  border-bottom: none;
}

.nav-search-result:hover {
  background: rgba(255,255,255,0.06);
}

.nav-search-result-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f9fafb;
}

.nav-search-result-snippet {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-search-result mark {
  background: rgba(239,68,68,0.25);
  color: #fca5a5;
  border-radius: 2px;
  padding: 0 1px;
}

.nav-search-no-results {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #6b7280;
  padding: 10px 12px;
  font-style: italic;
}

/* Mobile search */
@media (max-width: 768px) {
  .nav-search-panel {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrap {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.form-optional {
  color: #6b7280;
  font-size: 0.65rem;
}

.form-required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 5px;
  color: #f9fafb;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #6b7280;
  box-shadow: 0 0 0 3px rgba(107,114,128,0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #4b5563;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.form-select option {
  background: #1f2937;
  color: #f9fafb;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-char-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #6b7280;
  text-align: right;
  margin-top: 2px;
}

.form-char-count--warn {
  color: #f59e0b;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #ef4444;
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-submit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #ef4444;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
}

.form-submit:hover {
  background: #dc2626;
}

.form-submit:active {
  transform: scale(0.98);
}

.form-submit:disabled {
  background: #6b7280;
  cursor: not-allowed;
}

.form-status {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
}

.form-status--success { color: #34d399; }
.form-status--error   { color: #f87171; }

/* Contact sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.contact-info-card--warning {
  border-color: #78350f;
  background: rgba(120,53,15,0.15);
}

.contact-info-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info-list li {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.5;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #374151;
}

.contact-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-card p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.6;
  margin: 0;
}

/* Add contact to nav */
@media (max-width: 768px) {
  .nav-search { margin-left: 0.5rem; }
}

/* ═══════════════════════════════════════════════
   WHATSAPP SHARING FEATURES
   ═══════════════════════════════════════════════ */

/* Masthead share row */
.masthead-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.masthead-share-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.share-btn-wa {
  background: #25D366;
  color: #fff;
}
.share-btn-copy {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Per-section share links */
.section-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #25D366;
  text-decoration: none;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.25);
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 12px;
  vertical-align: middle;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}
.section-share-btn:hover {
  background: rgba(37,211,102,0.18);
}

/* Floating WhatsApp button */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
#wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
#wa-float span {
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  #wa-float span { display: none; }
  #wa-float { padding: 14px; border-radius: 50%; bottom: 20px; right: 16px; }
  .masthead-share { gap: 8px; }
}

/* ============================================================
   GOVERNANCE / SECTION-ALT STYLES
   (Used by #governance and #private-business sections)
   ============================================================ */

.section-alt {
  background: #f0f4f8;
  border-top: 3px solid #2d3748;
  border-bottom: 3px solid #2d3748;
}

.section-alt .section-title {
  color: #1a202c;
}

.section-alt .section-label {
  color: #2d3748;
}

/* section-inner: max-width wrapper used inside section-alt */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* section-header: title row with optional share button */
.section-header {
  margin-bottom: 2rem;
}

/* section-number: "NEW" badge or numeric label */
.section-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

/* section-subtitle: lead paragraph below the title */
.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 760px;
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.6;
}

/* section-body: prose container inside section-alt */
.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.section-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.section-body p {
  margin-bottom: 1.2rem;
  color: var(--ink-light);
}

/* section-source: small citation line */
.section-source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.section-dark .section-source {
  color: #6b7280;
  border-top-color: #374151;
}

.section-alt .section-source {
  color: #718096;
  border-top-color: #cbd5e0;
}

@media (max-width: 768px) {
  .section-inner {
    padding: 3rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   X FEED FACT-CHECK SECTION
   ═══════════════════════════════════════════════════════════════════ */

.xfc-meta {
  font-size: 0.82rem;
  color: var(--dark-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.xfc-meta a { color: var(--accent); }

.xfc-loading,
.xfc-error {
  font-style: italic;
  color: var(--dark-muted);
  padding: 1rem 0;
}

.xfc-error { color: #f87171; }

.xfc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.xfc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.xfc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.xfc-verdict {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.xfc-verdict--true       { background: #166534; color: #bbf7d0; }
.xfc-verdict--false      { background: #7f1d1d; color: #fecaca; }
.xfc-verdict--misleading { background: #78350f; color: #fde68a; }
.xfc-verdict--unverified { background: #1e3a5f; color: #bae6fd; }
.xfc-verdict--opinion    { background: #3b0764; color: #e9d5ff; }

.xfc-date {
  font-size: 0.75rem;
  color: var(--dark-muted);
}

.xfc-tweet {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d1d5db;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin: 0;
  font-style: italic;
}

.xfc-tweet a {
  color: inherit;
  text-decoration: none;
}

.xfc-tweet a:hover { text-decoration: underline; }

.xfc-summary {
  font-size: 0.88rem;
  color: #f3f4f6;
  margin: 0;
}

.xfc-detail {
  font-size: 0.83rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.xfc-confidence {
  font-size: 0.75rem;
  color: var(--dark-muted);
  margin-top: auto;
  padding-top: 0.4rem;
}

.xfc-conf-high   { color: #86efac; font-weight: 600; }
.xfc-conf-medium { color: #fde68a; font-weight: 600; }
.xfc-conf-low    { color: #fca5a5; font-weight: 600; }

@media (max-width: 600px) {
  .xfc-grid { grid-template-columns: 1fr; }
}
