/* ============================================================
   Corinth Group Investigation — v2 Design System
   Professional investigative journalism aesthetic
   Light theme, clean typography, document-centric
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f5f4;
  --color-border: #e5e5e5;
  --color-border-strong: #d4d4d4;
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-text-muted: #78716c;
  --color-text-faint: #a8a29e;

  --color-navy: #1e293b;
  --color-navy-light: #334155;
  --color-navy-dark: #0f172a;

  --color-red: #dc2626;
  --color-red-light: #fef2f2;
  --color-red-border: #fecaca;
  --color-red-text: #991b1b;

  --color-amber: #d97706;
  --color-amber-light: #fffbeb;
  --color-amber-border: #fde68a;
  --color-amber-text: #92400e;

  --color-blue: #2563eb;
  --color-blue-light: #eff6ff;
  --color-blue-border: #bfdbfe;
  --color-blue-text: #1e40af;

  --color-green: #059669;
  --color-green-light: #ecfdf5;
  --color-green-border: #a7f3d0;

  --color-purple: #7c3aed;
  --color-purple-light: #f5f3ff;
  --color-purple-border: #ddd6fe;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --max-width: 1140px;
  --max-width-narrow: 780px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
a:hover { color: var(--color-navy); }

strong { font-weight: 600; }

small, .text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-red { color: var(--color-red); }
.text-navy { color: var(--color-navy); }

.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* --- Site Header --- */
.site-header {
  background: var(--color-navy-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo:hover { color: #e2e8f0; }

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 2s ease-in-out infinite;
}

.site-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.site-nav a.active {
  background: rgba(255,255,255,0.12);
}

/* Mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.6rem 0.75rem; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
  }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--color-text); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--color-text-faint); }
.breadcrumbs .current { color: var(--color-text-secondary); font-weight: 500; }

/* --- Hero Section --- */
.hero {
  padding: 1.25rem 0 1.5rem;
  border-bottom: none;
  margin-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: var(--color-red-light);
  border: 1px solid var(--color-red-border);
  color: var(--color-red);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.25rem;
  max-width: 100%;
}

.hero .swindler {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero .subtitle {
  font-size: clamp(0.82rem, 1.6vw, 0.92rem);
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 100%;
}

/* --- Address cards --- */
.address-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
}

.address-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  position: relative;
}

.address-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

.address-card .serve-banner {
  background: var(--color-navy-dark);
  color: #e2e8f0;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.4rem 0;
  text-decoration: none;
  display: block;
  transition: background 0.15s;
}

.address-card .serve-banner:hover {
  background: var(--color-red);
  color: #fff;
}

.address-card .addr-body {
  padding: 0.75rem 1rem 0.85rem;
}

.address-card .addr-who {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.address-card .addr-where {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1.5;
  margin-top: 0.3rem;
}

.address-card .addr-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.address-card .addr-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.5;
}

.address-card .addr-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  font-style: italic;
}

/* Highlight the main office card */
.address-card.main-office {
  border-color: var(--color-red-border);
  border-width: 2px;
  background: var(--color-red-light);
}

.address-card.main-office .serve-banner {
  background: var(--color-red);
}

.address-card.main-office:hover {
  border-color: var(--color-red);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
}

@media (max-width: 768px) {
  .address-strip {
    grid-template-columns: 1fr;
  }
}

.entity-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.entity-chain .entity-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  background: var(--color-navy);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.entity-tag.entity-tag-gold {
  cursor: pointer;
  background: #fde68a;
  color: #000;
  border: 1px solid var(--color-red);
  animation: pill-shake 3s ease-in-out infinite;
}

.entity-tag.entity-tag-gold:hover {
  background: #fef3c7;
}

/* --- Click Badge --- */
.click-badge {
  position: absolute;
  top: -8px;
  left: -6px;
  background: #fde68a;
  color: #000;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--color-red);
  letter-spacing: 0.06em;
  line-height: 1.3;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes pill-shake {
  0%, 85%, 100% { transform: translateX(0); }
  88% { transform: translateX(-3px); }
  91% { transform: translateX(3px); }
  94% { transform: translateX(-2px); }
  97% { transform: translateX(2px); }
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.card-icon.red { background: var(--color-red-light); color: var(--color-red); }
.card-icon.blue { background: var(--color-blue-light); color: var(--color-blue); }
.card-icon.amber { background: var(--color-amber-light); color: var(--color-amber); }
.card-icon.green { background: var(--color-green-light); color: var(--color-green); }
.card-icon.purple { background: var(--color-purple-light); color: var(--color-purple); }
.card-icon.navy { background: #f1f5f9; color: var(--color-navy); }

/* --- Person Cards --- */
/* --- Headshot Strip --- */
.headshot-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
  width: 100%;
  text-align: center;
}

.headshot {
  cursor: pointer;
  text-align: center;
}

.headshot img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  margin-bottom: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.headshot:hover img {
  border-color: var(--color-red);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.3);
}

.headshot-alec img {
  border-color: #dc2626 !important;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
  animation: alec-shake 2s ease-in-out infinite;
}

@keyframes alec-shake {
  0%, 85%, 100% { transform: rotate(0); }
  88% { transform: rotate(-4deg); }
  91% { transform: rotate(4deg); }
  94% { transform: rotate(-3deg); }
  97% { transform: rotate(2deg); }
}

.headshot .hs-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.headshot .hs-role {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .headshot-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .headshot-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .headshot img {
    width: 80px;
    height: 80px;
  }
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.person-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.person-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.person-card .photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  margin-bottom: 1rem;
}

.person-card .name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.person-card .role-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--color-red-light);
  color: var(--color-red-text);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.person-card .bio {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.person-card .registry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-border);
  color: var(--color-blue-text);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.person-card .registry-link:hover {
  background: #dbeafe;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem 0;
}

.stats-bar .stat {
  background: var(--color-surface);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stats-bar .stat .number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stats-bar .stat .label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Hero Split (text left, video right) --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 0.5rem;
}

.hero-left {
  /* text content — inherits hero styles */
}

.hero-right {
  /* video carousel container */
}

/* --- Video Carousel --- */
.video-carousel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-carousel-viewport video,
.video-carousel-viewport iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
  gap: 0.5rem;
}

.video-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.video-placeholder-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
}

.video-placeholder-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.video-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}

.video-nav {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.video-nav:hover {
  background: var(--color-surface);
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.video-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Swindler Quote (under tagline) --- */
.swindler-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-amber);
  margin: -0.25rem 0 0.75rem;
  letter-spacing: 0;
}
.swindler-quote a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.swindler-quote a.swindler-link {
  font-size: 0.65em;
}
.swindler-quote a:hover {
  color: var(--color-blue);
  opacity: 0.8;
}

/* --- Brief Section Layout (prosecution-style) --- */
.brief-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.brief-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-navy);
  padding-bottom: 0.75rem;
}

.brief-numeral {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
  flex-shrink: 0;
}

.brief-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.3;
}

.brief-attr {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* --- Victim Testimony Hero --- */
.testimony-hero {
  position: relative;
  padding: 2.5rem 3rem;
  margin: 2rem 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
}

.testimony-hero::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--color-border-strong);
  line-height: 1;
}

.testimony-hero .testimony-lead {
  font-size: 1.15rem;
  font-weight: 600;
}

.testimony-hero p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.testimony-attr {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* --- Pattern Timeline --- */
.pattern-timeline {
  position: relative;
  margin: 2rem 0 0;
  padding-left: 3.5rem;
}

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

.timeline-step {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -3.5rem;
  top: 0.25rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-marker.final {
  background: var(--color-red);
  width: 34px;
  height: 34px;
  left: calc(-3.5rem - 2px);
}

.timeline-content {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.timeline-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

.timeline-step-final .timeline-content {
  background: var(--color-red-light);
  border-color: var(--color-red-border);
}

.clause-link {
  font-size: 0.78rem;
  color: var(--color-blue);
}

.key-fact {
  color: var(--color-red);
  font-weight: 600;
}

/* --- Contract Verdict --- */
.contract-verdict {
  background: var(--color-red-light);
  border: 1px solid var(--color-red-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-red-text);
  line-height: 1.6;
}

/* --- Evidence List --- */
.evidence-list {
  margin: 1.5rem 0 0;
}

.evidence-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.evidence-item:first-child {
  padding-top: 0;
}

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

.evidence-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-red);
  flex-shrink: 0;
  width: 28px;
  padding-top: 0.15rem;
}

.evidence-body h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.evidence-body p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.evidence-source {
  font-size: 0.72rem;
  color: var(--color-text-faint);
  display: block;
  margin-top: 0.35rem;
}

.evidence-img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-top: 0.75rem;
}

.evidence-item-feature {
  padding-bottom: 1.5rem;
}

/* --- Still Collecting Grid --- */
.still-collecting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sc-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.55;
}

.sc-red {
  background: var(--color-red-light);
  border: 1px solid var(--color-red-border);
  color: var(--color-red-text);
}

.sc-amber {
  background: var(--color-amber-light);
  border: 1px solid var(--color-amber-border);
  color: var(--color-amber-text);
}

.sc-blue {
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-border);
  color: var(--color-blue-text);
}

.sc-grey {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--color-navy-light);
}

/* --- Compact Callout Strip (Authority + Banking/FBI) --- */
.callout-compact {
  margin: 1.5rem 0;
}

.callout-authority {
  text-align: center;
  background: var(--color-red-light);
  border: 2px solid var(--color-red);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  color: var(--color-red-text);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.callout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.callout-action {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-green);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.callout-action:last-child {
  border-top-color: var(--color-blue);
}

.callout-action strong {
  color: var(--color-navy);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.callout-action a {
  color: var(--color-blue);
  font-weight: 600;
}

.callout-action a:hover {
  color: var(--color-navy);
}

@media (max-width: 640px) {
  .callout-actions {
    grid-template-columns: 1fr;
  }
}

/* --- Methodology Strip --- */
.methodology-strip {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.method-item {
  flex: 1;
  text-align: center;
}

.method-item h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.method-item p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.method-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}

/* --- Ownership Tree (shared with companies.html modal) --- */
.ownership-tree {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.tree-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tree-node {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  max-width: 300px;
}

.tree-node.swiss { background: var(--color-red-light); border: 1px solid var(--color-red-border); color: var(--color-red-text); }
.tree-node.uk-parent { background: var(--color-blue-light); border: 1px solid var(--color-blue-border); color: var(--color-blue-text); }
.tree-node.uk-sub { background: var(--color-surface-alt); border: 1px solid var(--color-border-strong); color: var(--color-text-secondary); }
.tree-node.spv { background: var(--color-purple-light); border: 1px solid var(--color-purple-border); color: #5b21b6; }
.tree-node.psc { background: var(--color-amber-light); border: 1px solid var(--color-amber-border); color: var(--color-amber-text); }

.tree-connector {
  width: 2px; height: 16px; background: var(--color-border); margin: 0.15rem auto;
}

.tree-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tree-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  text-align: center;
}

.tree-node-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.tree-node-sub a { color: var(--color-blue); }

/* --- Rename Chain (strikethrough old names) --- */
.rename-chain {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
}
.rename-old { color: var(--color-text-muted); text-decoration: line-through; }
.rename-arrow { color: var(--color-text-faint); }
.rename-new { color: var(--color-red); font-weight: 600; }
.rename-gold { color: var(--color-amber); font-weight: 600; }

@media (max-width: 640px) {
  .still-collecting-grid,
  .action-strip {
    grid-template-columns: 1fr;
  }
  .pattern-timeline {
    padding-left: 2.5rem;
  }
  .timeline-marker {
    left: -2.5rem;
  }
  .timeline-marker.final {
    left: calc(-2.5rem - 2px);
  }
  .testimony-hero {
    padding: 2rem 1.5rem;
  }
  .brief-section {
    padding: 1.5rem 1.25rem;
  }
  .methodology-strip {
    flex-direction: column;
    gap: 1rem;
  }
  .method-divider {
    width: 100%;
    height: 1px;
  }
}

/* --- Source Pills --- */
.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.source-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.source-pill:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background: var(--color-blue-light);
}

.source-pill.defunct {
  color: var(--color-text-faint);
  border-style: dashed;
  cursor: default;
}

.source-pill.new {
  background: var(--color-amber-light);
  border-color: var(--color-amber-border);
  color: var(--color-amber-text);
  font-weight: 700;
}

/* --- Blockquote / Testimony --- */
.testimony {
  background: var(--color-surface);
  border-left: 4px solid var(--color-navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.testimony p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.testimony .attribution {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* --- Alert Banners --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.alert.red {
  background: var(--color-red-light);
  border: 1px solid var(--color-red-border);
  border-left: 4px solid var(--color-red);
  color: var(--color-red-text);
}

.alert.amber {
  background: var(--color-amber-light);
  border: 1px solid var(--color-amber-border);
  border-left: 4px solid var(--color-amber);
  color: var(--color-amber-text);
}

.alert.blue {
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-border);
  border-left: 4px solid var(--color-blue);
  color: var(--color-blue-text);
}

.alert.green {
  background: var(--color-green-light);
  border: 1px solid var(--color-green-border);
  border-left: 4px solid var(--color-green);
  color: #065f46;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}
.btn-primary:hover {
  background: var(--color-navy-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border-strong);
}
.btn-outline:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-navy);
}

.btn-red {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}
.btn-red:hover {
  background: #b91c1c;
}

.btn-amber {
  background: var(--color-amber);
  color: #fff;
  border-color: var(--color-amber);
}
.btn-amber:hover {
  background: #b45309;
}

.btn-authority {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.65rem 1.25rem;
}
.btn-authority:hover {
  background: var(--color-navy-light);
  color: #fff;
}

.btn-casefiles {
  background: var(--color-amber-light);
  color: var(--color-amber-text);
  border-color: var(--color-amber-border);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.65rem 1.25rem;
}
.btn-casefiles:hover {
  background: #fef3c7;
  border-color: var(--color-amber);
  color: var(--color-amber-text);
}

/* --- Status Badges --- */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.status-badge.dissolved { background: #f5f5f4; color: #57534e; border: 1px solid #d6d3d1; }
.status-badge.liquidation { background: var(--color-red-light); color: var(--color-red-text); border: 1px solid var(--color-red-border); }
.status-badge.revoked { background: var(--color-red-light); color: var(--color-red-text); border: 1px solid var(--color-red-border); }

/* Jurisdiction flags */
.jurisdiction-flag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: var(--color-navy-light);
  border: 1px solid #e2e8f0;
}

/* --- Refund Clause Section --- */
.refund-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}

.contract-quote {
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-amber);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* --- Alec Lightbox Gallery --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 640px;
  width: 92%;
  cursor: default;
}
.lightbox-slide { display: none; }
.lightbox-slide.active { display: block; }
.lightbox-slide img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 40px rgba(59,130,246,0.3);
}
.lightbox-caption {
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2rem;
  height: 2rem;
  background: #1e293b;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lightbox-close:hover { background: #334155; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(30,41,59,0.9);
  border: 2px solid #475569;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lightbox-nav:hover { background: #334155; border-color: #3b82f6; }
.lightbox-nav.prev { left: -3.5rem; }
.lightbox-nav.next { right: -3.5rem; }
@media (max-width: 720px) {
  .lightbox-nav.prev { left: -0.25rem; }
  .lightbox-nav.next { right: -0.25rem; }
}
.lightbox-counter {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.05em;
}
.lightbox-header {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Image Slider --- */
.img-slider {
  margin: 1.5rem 0;
  max-width: 100%;
  width: 100%;
}

.img-slider-viewport {
  position: relative;
  height: 260px;
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slider-img.active { opacity: 1; }

.img-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.img-slider-controls button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.img-slider-controls button:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-border-strong);
}

.img-slider-counter {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.slider-caption {
  display: none;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}
.slider-caption.active { display: block; }

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(2px);
}

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

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.modal-close:hover { color: var(--color-text); }

.modal-body {
  padding: 1.5rem 2rem 2rem;
}

/* --- Authority Contact Accordion --- */
.auth-section {
  margin-bottom: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-section[open] {
  border-color: var(--color-border-strong);
}

.auth-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}

.auth-section-head::-webkit-details-marker { display: none; }
.auth-section-head::marker { content: ''; }

.auth-section-head::before {
  content: '\25B6';
  font-size: 0.55rem;
  margin-right: 0.5rem;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.auth-section[open] > .auth-section-head::before {
  transform: rotate(90deg);
}

.auth-count {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.auth-section-head.media { background: rgba(147, 51, 234, 0.06); color: #7c3aed; }
.auth-section-head.criminal { background: rgba(220, 38, 38, 0.04); color: var(--color-red-text); }
.auth-section-head.regulator { background: rgba(37, 99, 235, 0.04); color: var(--color-blue-text); }
.auth-section-head.enforcement { background: rgba(217, 119, 6, 0.04); color: var(--color-amber-text); }
.auth-section-head.political { background: rgba(22, 163, 74, 0.04); color: #065f46; }
.auth-section-head.international { background: rgba(99, 102, 241, 0.04); color: #4338ca; }

.auth-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  background: var(--color-surface);
}

.auth-tbl thead th {
  text-align: left;
  padding: 0.35rem 0.6rem;
  background: var(--color-surface-alt);
  border-bottom: 2px solid var(--color-border);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.auth-tbl td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.auth-tbl tbody tr:nth-child(even) td {
  background: var(--color-surface-alt);
}

.auth-tbl tbody tr:hover td {
  background: #eef2ff;
}

.auth-tbl tbody tr:last-child td {
  border-bottom: none;
}

.auth-tbl .nm {
  color: var(--color-navy);
  font-weight: 700;
  white-space: nowrap;
}

.auth-tbl .li-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.3rem;
  vertical-align: middle;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.auth-tbl .li-link:hover {
  opacity: 1;
}

.auth-tbl a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
}

.auth-tbl a:hover {
  text-decoration: underline;
}

.auth-tbl .tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.auth-tbl .tag-key { background: rgba(220, 38, 38, 0.08); color: var(--color-red); }
.auth-tbl .tag-free { background: rgba(22, 163, 74, 0.08); color: #16a34a; }

.auth-note {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  padding: 0.5rem 0.75rem;
  font-style: italic;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.auth-tbl .act {
  text-align: right;
  white-space: nowrap;
}

.auth-tbl th:last-child {
  text-align: right;
}

.copy-msg-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.copy-msg-btn:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue-border);
  color: var(--color-blue-text);
}

/* Compact case-files table */
.case-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-tbl thead th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--color-navy-dark);
  color: #94a3b8;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: none;
}

.case-tbl td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text-secondary);
}

.case-tbl tbody tr:nth-child(even) td {
  background: var(--color-surface-alt);
}

.case-tbl tbody tr:hover td {
  background: #eef2ff;
}

.case-tbl tbody tr:last-child td {
  border-bottom: none;
}

.case-tbl .auth-name {
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.case-tbl .ref-code {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.case-tbl a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 500;
}

.case-tbl a:hover {
  text-decoration: underline;
}
.msg-preview { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1100; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 680px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.msg-preview.active { display: block; }
.msg-preview-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1099; }
.msg-preview-backdrop.active { display: block; }
.msg-preview h4 { color: #16a34a; font-size: 0.8rem; margin: 0 0 0.5rem; font-weight: 700; }
.msg-preview pre { white-space: pre-wrap; font-size: 0.72rem; color: var(--color-text-secondary); line-height: 1.6; background: var(--color-surface-alt); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--color-border); margin: 0 0 1rem; }
.msg-preview .msg-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.msg-preview .msg-copy-big { padding: 0.5rem 1.5rem; border-radius: 6px; background: #16a34a; border: none; color: #fff; font-weight: 700; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; }
.msg-preview .msg-copy-big:hover { background: #15803d; }
.msg-preview .msg-close { padding: 0.5rem 1.5rem; border-radius: 6px; background: var(--color-surface-alt); border: 1px solid var(--color-border); color: var(--color-text-secondary); font-weight: 600; font-size: 0.75rem; cursor: pointer; }

/* --- Tables --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--color-surface-alt);
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

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

.data-table tr:hover td {
  background: var(--color-surface-alt);
}

/* --- Section Dividers --- */
.section {
  margin: 3rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-navy);
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* --- Contract Trap Steps --- */
.trap-flow {
  margin: 2rem 0;
}

.trap-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
}

.trap-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.trap-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
}

.trap-step-line {
  flex: 1;
  width: 2px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.trap-step-content {
  padding-bottom: 2rem;
}

.trap-step-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.trap-step-body {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.trap-step:last-child .trap-step-line {
  display: none;
}

/* --- Location Pills --- */
.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.location-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-navy-dark);
  color: #fff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-section .btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Mega Footer --- */
.mega-footer {
  background: var(--color-navy-dark);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.mega-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  overflow: hidden;
}

@media (max-width: 640px) {
  .mega-footer {
    padding: 2rem 0 1rem;
  }
  .mega-footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    padding: 0 1rem;
  }
  .mega-footer-section h4 {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }
  .mega-footer-section a {
    font-size: 0.7rem;
    padding: 0.15rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mega-footer-bottom {
    padding: 1rem 1rem 0;
  }
  .mega-footer-bottom p {
    font-size: 0.65rem;
  }
}

.mega-footer-section h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.mega-footer-section a {
  display: block;
  color: #64748b;
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

.mega-footer-section a:hover {
  color: #e2e8f0;
}

.mega-footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.mega-footer-bottom p {
  font-size: 0.72rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* --- Disclaimer --- */
.disclaimer {
  max-width: var(--max-width-narrow);
  margin: 3rem auto;
  padding: 2rem;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.disclaimer strong {
  color: var(--color-text-secondary);
}

/* --- Addresses Grid (legacy, use .address-strip) --- */
.addresses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

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

/* --- Banking / Action Callouts --- */
.callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

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

/* (auth-tier styles replaced by auth-section accordion above) */

/* --- Person Bio Modal --- */
.person-bio-modal {
  max-width: 720px;
}

.person-bio-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.person-bio-left {
  text-align: center;
}

.person-bio-left img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
  margin-bottom: 0.75rem;
}

.person-bio-left .bio-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.person-bio-left .bio-name-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.person-bio-left .role-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--color-red-light);
  color: var(--color-red-text);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.person-bio-left .bio-address {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--color-border);
}

.person-bio-left .bio-address strong {
  color: var(--color-text-secondary);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.15rem;
}

.person-bio-right p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.person-bio-right p:last-child {
  margin-bottom: 0;
}

.person-bio-right .registry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-border);
  color: var(--color-blue-text);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.person-bio-right .registry-link:hover {
  background: #dbeafe;
}

@media (max-width: 600px) {
  .person-bio-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .person-bio-left img {
    width: 100px;
    height: 100px;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header, .site-nav, .nav-toggle, .mega-footer { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .card, .person-card, .red-flag-card { box-shadow: none; border: 1px solid #ccc; }
  .hero { padding: 1rem 0; }
  .modal-overlay { display: none !important; }
}

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

.hidden { display: none; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ============================================================
   Template-Page Styles (pSEO generated pages)
   Person, Entity, Investigate, FAQ, Alias page types
   ============================================================ */

/* --- 1. Pills (inline tag/badge) --- */
.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-sans);
  line-height: 1.4;
  white-space: nowrap;
}

/* --- 2. Pill color variants --- */
.pill.red {
  background: var(--color-red-light);
  border-color: var(--color-red-border);
  color: var(--color-red-text);
}

.pill.amber {
  background: var(--color-amber-light);
  border-color: var(--color-amber-border);
  color: var(--color-amber-text);
}

/* --- 3. Content section (card wrapper for h2 + body) --- */
.content-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-size: 1.35rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.content-section p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* --- 4–5. Related links container & link pills --- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.related-links a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-border);
  color: var(--color-blue-text);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.related-links a:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-surface);
}

/* --- 6. Page-type wrapper classes --- */
.person-page,
.entity-page,
.investigate-page,
.faq-page,
.alias-page {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.investigate-page {
  max-width: var(--max-width);
}

/* --- 7. Person page — photo --- */
.person-page .person-photo {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: block;
  margin: 0 auto 1.5rem;
}

/* --- 8. Person page — meta pills row --- */
.person-page .person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.75rem 0 1.5rem;
}

/* --- 9. Entity page — definition list --- */
.entity-page dl {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
}

.entity-page dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entity-page dd {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* --- 10–12. Alias page — rename chain visualization --- */
.alias-page .rename-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.alias-page .rename-chain .chain-name {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.alias-page .rename-chain .chain-name.old {
  background: var(--color-surface-alt);
  border-color: var(--color-border-strong);
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--color-text-faint);
}

.alias-page .rename-chain .chain-name.current {
  background: var(--color-amber-light);
  border-color: var(--color-amber-border);
  color: var(--color-amber-text);
}

.alias-page .rename-chain .chain-arrow {
  color: var(--color-text-faint);
  font-size: 1.2rem;
  line-height: 1;
}

/* --- 13. Broken reference link --- */
.broken-ref {
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: default;
  font-style: italic;
}

/* --- 14. Victim CTA callout --- */
.victim-cta {
  background: var(--color-red-light);
  border: 1px solid var(--color-red-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}

.victim-cta h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-red-text);
  margin-bottom: 0.5rem;
}

.victim-cta p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.victim-cta a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-red);
  color: var(--color-surface);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.victim-cta a:hover {
  background: var(--color-red-text);
}

/* --- 15. Mega-footer FAQ list --- */
.mega-footer-section.faq-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-footer-section.faq-list ul li {
  padding: 0.2rem 0;
}

.mega-footer-section.faq-list ul li a {
  display: block;
  color: #64748b;
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.15rem 0;
  transition: color 0.15s;
}

.mega-footer-section.faq-list ul li a:hover {
  color: #e2e8f0;
}

/* --- 16. Mega-footer 'View all' link --- */
.mega-footer-section .view-all {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mega-footer-section .view-all:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* --- Template pages — responsive --- */
@media (max-width: 768px) {
  .person-page,
  .entity-page,
  .investigate-page,
  .faq-page,
  .alias-page {
    padding: 1.25rem 1rem 2rem;
  }

  .content-section {
    padding: 1.25rem;
  }

  .person-page .person-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }

  .entity-page dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .entity-page dt {
    margin-top: 0.5rem;
  }

  .alias-page .rename-chain {
    flex-direction: column;
    align-items: flex-start;
  }

  .alias-page .rename-chain .chain-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .victim-cta {
    padding: 1.5rem 1rem;
  }
}

/* --- Section Index Pages (FAQ, Investigate, etc.) --- */
.index-subtitle {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.index-category-section {
  margin-bottom: 2.5rem;
}

.index-category-heading {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.index-category-count {
  font-weight: 400;
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.index-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.5rem;
}

.index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.index-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: #f1f5f9;
}

.index-card-title {
  flex: 1;
  min-width: 0;
}

.index-card-arrow {
  flex-shrink: 0;
  color: #475569;
  margin-left: 0.75rem;
  font-size: 1rem;
  transition: color 0.15s, transform 0.15s;
}

.index-card:hover .index-card-arrow {
  color: var(--color-gold);
  transform: translateX(2px);
}

/* Simple list layout for profile, entities, aliases, de */
.index-list {
  list-style: none;
  padding: 0;
}

.index-list-item {
  margin-bottom: 0;
}

.index-list-item a {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s, color 0.15s;
}

.index-list-item a:hover {
  background: rgba(255,255,255,0.04);
  color: #f1f5f9;
}

.index-list-subtitle {
  color: #64748b;
  font-size: 0.82rem;
  margin-left: 0.75rem;
}

@media (max-width: 768px) {
  .index-card-grid {
    grid-template-columns: 1fr;
  }
}
