/* ═══════════════════════════════════════════════════
   PRECOGS — Analytical / Business Redesign
   Clean, data-driven editorial aesthetic
   Bloomberg meets The Economist
   ═══════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────── */
:root {
  /* Core palette — muted, professional */
  --bg-deep: #f8f7f4;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf8;
  --bg-elevated: #f2f1ee;

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a96;

  /* Accent colors — muted professional */
  --accent-primary: #2c5282;
  --accent-secondary: #2b6cb0;
  --accent-light: rgba(44, 82, 130, 0.08);
  --accent-border: rgba(44, 82, 130, 0.2);

  /* Status colors */
  --status-pending: #b7791f;
  --status-pending-bg: rgba(183, 121, 31, 0.08);
  --status-confirmed: #276749;
  --status-confirmed-bg: rgba(39, 103, 73, 0.08);
  --status-debunked: #9b2c2c;
  --status-debunked-bg: rgba(155, 44, 44, 0.08);
  --status-partial: #6b46c1;
  --status-partial-bg: rgba(107, 70, 193, 0.08);

  /* Borders */
  --border-subtle: #eae8e4;
  --border-default: #d8d6d0;
  --border-strong: #c4c2bc;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

  /* Layout */
  --radius: 4px;
  --radius-sm: 3px;
  --radius-xs: 2px;
  --content-width: 48rem;
  --header-height: 56px;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Safe areas */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);

  color-scheme: light;
}

/* ─── Animations — subtle, professional ──────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}


/* Scroll-triggered animation base */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Background decorative elements — removed neon grid/glows */
.bg-grid {
  display: none;
}

.bg-glow {
  display: none;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Header ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  padding-top: var(--sat);
  padding-left: max(0px, var(--sal));
  padding-right: max(0px, var(--sar));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border-default);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.site-logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-light);
}

.nav-link.is-active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ─── Main Content Area ───────────────────────────── */
.site-main {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - var(--header-height) - 200px);
}

/* ─── Hero Section ────────────────────────────────── */
.hero {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 3.5rem;
  padding-left: max(1.5rem, var(--sal));
  padding-right: max(1.5rem, var(--sar));
  border-bottom: 1px solid var(--border-subtle);
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  animation: fadeIn 0.6s ease-out both;
}

.hero-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
  animation: fadeInUp 0.7s ease-out both;
}

.hero-title-glow {
  color: var(--text-primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.65;
  margin: 0;
  animation: fadeIn 0.7s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  animation: fadeIn 0.5s ease-out 0.15s both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

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

.hero-center .hero-subtitle {
  margin: 0 auto;
}

.hero-center .hero-eyebrow {
  justify-content: center;
}

/* ─── Prediction Status Badges ────────────────────── */
.prediction-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prediction-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border: 1px solid rgba(183, 121, 31, 0.2);
}

.status-pending::before {
  background: var(--status-pending);
}

.status-confirmed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed);
  border: 1px solid rgba(39, 103, 73, 0.2);
}

.status-confirmed::before {
  background: var(--status-confirmed);
}

.status-debunked {
  background: var(--status-debunked-bg);
  color: var(--status-debunked);
  border: 1px solid rgba(155, 44, 44, 0.2);
}

.status-debunked::before {
  background: var(--status-debunked);
}

.status-partially {
  background: var(--status-partial-bg);
  color: var(--status-partial);
  border: 1px solid rgba(107, 70, 193, 0.2);
}

.status-partially::before {
  background: var(--status-partial);
}

/* ─── Index Page ──────────────────────────────────── */
.predictions-index {
  padding: 0 0 4rem;
  padding-bottom: calc(4rem + var(--sab));
}

.index-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-left: max(1.5rem, var(--sal));
  padding-right: max(1.5rem, var(--sar));
}

/* Language section */
.lang-section {
  margin-top: 3rem;
}

.lang-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0;
}

.lang-section-title::before {
  display: none;
}

/* ─── Prediction Cards Grid ───────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.prediction-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.prediction-card::before {
  display: none;
}

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

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
}

.card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--accent-primary);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.card-confidence {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.confidence-bar {
  width: 60px;
  height: 4px;
  background: var(--border-default);
  border-radius: 2px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width 0.6s ease-out;
}

.card-read-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-read-more::after {
  content: "\2192";
  transition: transform 0.2s;
}

.prediction-card:hover .card-read-more::after {
  transform: translateX(3px);
}

/* ─── Prediction Post Page ────────────────────────── */
.prediction {
  max-width: none;
  padding: 0 0 4rem;
  padding-bottom: calc(4rem + var(--sab));
}

.prediction-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  padding-left: max(1.5rem, var(--sal));
  padding-right: max(1.5rem, var(--sar));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.prediction-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.category-tag:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-light);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}

.lang-switch:hover,
.lang-switch:visited:hover {
  background: var(--accent-light);
  color: var(--accent-secondary);
}

/* ─── Prediction Content ──────────────────────────── */
.prediction-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-left: max(1.5rem, var(--sal));
  padding-right: max(1.5rem, var(--sar));
  font-size: clamp(1.05rem, 2.5vw, 1.175rem);
  line-height: 1.9;
}

.prediction-content p {
  margin-bottom: 1.625rem;
}

.prediction-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3.5rem 0 1.25rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1rem;
}

.prediction-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.prediction-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 700;
  margin: 2.5rem 0 0.875rem;
  color: var(--text-primary);
}

.prediction-content blockquote {
  border: none;
  border-left: 3px solid var(--accent-primary);
  margin: 2.5rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
}

.prediction-content em {
  color: var(--text-secondary);
}

.prediction-content strong {
  font-weight: 700;
  color: var(--text-primary);
}

.prediction-content hr {
  border: none;
  margin: 3rem 0;
  height: 1px;
  background: var(--border-default);
}

.prediction-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.prediction-content a:hover {
  text-decoration-color: var(--accent-primary);
  color: var(--accent-secondary);
}

.prediction-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.prediction-content pre {
  background: #1a1a2e;
  color: #e8eaf6;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prediction-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ─── Callouts ────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
}

.callout-warm {
  border-left: 3px solid var(--status-debunked);
  background: var(--status-debunked-bg);
}

.callout-teal {
  border-left: 3px solid var(--status-confirmed);
  background: var(--status-confirmed-bg);
}

.callout-gold {
  border-left: 3px solid var(--status-pending);
  background: var(--status-pending-bg);
}

.callout-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.callout-warm .callout-title { color: var(--status-debunked); }
.callout-teal .callout-title { color: var(--status-confirmed); }
.callout-gold .callout-title { color: var(--status-pending); }

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

/* ─── Stat Grid ───────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  line-height: 1.35;
}

/* ─── Pull Quote ──────────────────────────────────── */
.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.375rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: center;
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  border-top: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  position: relative;
}

/* ─── Diagram ─────────────────────────────────────── */
.diagram {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.diagram-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-align: center;
}

.flow-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.flow-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
  color: var(--text-primary);
}

.flow-step small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 0 0.75rem;
  flex-shrink: 0;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--border-default);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.625rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-deep);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
  line-height: 1.5;
}

/* ─── Verdict ─────────────────────────────────────── */
.prediction-verdict {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin: 3rem 0 0;
  box-shadow: var(--shadow-sm);
}

.verdict-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.verdict-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.verdict-body p:last-child { margin-bottom: 0; }

.verdict-horizon {
  margin-top: 1.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── About Page ──────────────────────────────────── */
.about {
  padding: 0 0 4rem;
  padding-bottom: calc(4rem + var(--sab));
}

.about-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  padding-left: max(1.5rem, var(--sal));
  padding-right: max(1.5rem, var(--sar));
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.85;
}

.about-body p { margin-bottom: 1.5rem; }

.about-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
  padding-left: 1rem;
}

.about-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.about-body p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.85;
  margin: 0.05em 0.12em 0 0;
  color: var(--accent-primary);
}

.about-divider {
  border: none;
  margin: 3rem 0;
  height: 1px;
  background: var(--border-default);
}

.status-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.status-legend-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  min-height: 44px;
  transition: border-color 0.2s;
}

.status-legend-item:hover {
  border-color: var(--border-strong);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-pending { background: var(--status-pending); }
.status-dot-confirmed { background: var(--status-confirmed); }
.status-dot-debunked { background: var(--status-debunked); }
.status-dot-partially { background: var(--status-partial); }

/* ─── Footer ──────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
  padding: 3rem 1.5rem;
  padding-bottom: max(3rem, calc(1.5rem + var(--sab)));
  padding-left: max(1.5rem, var(--sal));
  padding-right: max(1.5rem, var(--sar));
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-copy p { margin: 0; }

/* ─── SVG Confidence Gauge ────────────────────────── */
.gauge-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.gauge-svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: var(--border-default);
  stroke-width: 4;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ─── SVG Status Indicator ────────────────────────── */
.status-indicator-svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet (< 48rem)
   ═══════════════════════════════════════════════════ */
@media (max-width: 48rem) {
  .hero {
    padding: 3rem max(1.5rem, var(--sar)) 2.5rem max(1.5rem, var(--sal));
  }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

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

  .prediction-content {
    font-size: 1.05rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-horizontal {
    flex-direction: column;
    gap: 0;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.25rem;
  }

  .status-legend {
    grid-template-columns: 1fr;
  }

  .pull-quote {
    font-size: 1.15rem;
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }

  .prediction-verdict {
    padding: 1.5rem;
  }

  .callout {
    padding: 1.25rem;
  }

  .diagram {
    padding: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Phone (< 30rem / ~480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 30rem) {
  .index-content,
  .prediction-content,
  .prediction-header,
  .about-body {
    padding-left: max(1rem, var(--sal));
    padding-right: max(1rem, var(--sar));
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  .stat-number { font-size: 1.375rem; }
  .stat-label { font-size: 0.7rem; }

  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }

  .hero-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .prediction-card {
    padding: 1.25rem;
  }

  .prediction-content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 1.25rem;
  }

  .about-body p:first-of-type::first-letter {
    font-size: 2.75rem;
  }

  .prediction-verdict {
    padding: 1.25rem;
    margin-top: 2rem;
  }
}

/* ═══════════════════════════════════════════════════
   PWA STANDALONE MODE
   ═══════════════════════════════════════════════════ */
@media (display-mode: standalone) {
  .site-header {
    padding-top: max(env(safe-area-inset-top, 20px), 20px);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0.5px 0 var(--border-subtle);
  }

  html { background: var(--bg-deep); }

  body {
    min-height: 100dvh;
    position: relative;
  }

  .hero { padding-top: 3rem; }

  .site-footer {
    padding-bottom: max(1.5rem, var(--sab));
  }

  .site-footer::after {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    opacity: 0.2;
    margin: 1rem auto 0;
  }
}

@media (display-mode: fullscreen) {
  .site-header {
    padding-top: max(env(safe-area-inset-top, 0px), 0px);
  }
}

/* ═══════════════════════════════════════════════════
   TOUCH DEVICE OPTIMIZATIONS
   ═══════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .prediction-card:hover {
    transform: none;
    box-shadow: none;
  }

  .prediction-card:active {
    transform: scale(0.985);
  }

  .card-title a:hover { color: var(--text-primary); }

  a, button, [role="button"],
  .category-tag, .lang-switch, .hero-badge, .nav-link {
    touch-action: manipulation;
  }

  .cards-grid {
    -webkit-user-select: none;
    user-select: none;
  }

  .prediction-content,
  .about-body {
    -webkit-user-select: text;
    user-select: text;
  }

  input, select, textarea { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════
   LANDSCAPE ORIENTATION ON MOBILE
   ═══════════════════════════════════════════════════ */
@media (max-width: 48rem) and (orientation: landscape) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    padding-left: calc(1.5rem + var(--sal));
    padding-right: calc(1.5rem + var(--sar));
  }

  .hero-title {
    font-size: clamp(1.25rem, 4vw, 1.875rem);
    margin-bottom: 0.5rem;
  }

  .hero-subtitle { font-size: 0.95rem; }
  .hero-meta { margin-bottom: 0.75rem; }
  .prediction-header { padding-top: 1.25rem; }
}

/* ═══════════════════════════════════════════════════
   VERY SMALL PHONES (< 22rem / ~352px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 22rem) {
  .index-content,
  .prediction-content,
  .prediction-header,
  .about-body {
    padding-left: calc(0.875rem + var(--sal));
    padding-right: calc(0.875rem + var(--sar));
  }

  .stat-number { font-size: 1.25rem; }
  .stat-card { padding: 0.875rem 0.625rem; }
  .prediction-categories { gap: 0.25rem; }
  .category-tag { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
}

/* ═══════════════════════════════════════════════════
   SCROLL & ANCHOR OFFSET
   ═══════════════════════════════════════════════════ */
:target {
  scroll-margin-top: calc(var(--header-height) + 16px + var(--sat));
}

.prediction-card:nth-child(n+10) {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}

/* ═══════════════════════════════════════════════════
   FOCUS STYLES — ACCESSIBILITY
   ═══════════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
label:focus-visible,
[role="button"]:focus-visible,
.category-tag:focus-visible,
.lang-switch:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ═══════════════════════════════════════════════════
   SVG INFOGRAPHIC COMPONENTS
   ═══════════════════════════════════════════════════ */

/* Prediction Timeline SVG */
.prediction-timeline-svg {
  margin: 2rem 0;
  padding: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prediction-timeline-svg svg {
  min-width: 400px;
  display: block;
}

/* Cover Image System */
.cover-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-image-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
}

/* Gauge in hero — inline version */
.hero-badge .gauge-svg {
  width: 28px;
  height: 28px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

