/* whoislana.com — shared stylesheet for all language folders */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #f0eee8;
  --surface-deep: #e8e4d8;
  --ink: #1d2524;
  --ink-soft: #3a4644;
  --muted: #5d6764;
  --muted-soft: #8a9290;
  --line: #d8d4ca;
  --line-soft: #e6e2d8;
  --accent: #8b2f32;
  --accent-deep: #5f1f22;
  --accent-soft: #b85659;
  --accent-ink: #ffffff;
  --amber: #966b14;
  --green: #2f6d4f;
  --blue: #315f83;
  --shadow-sm: 0 2px 8px rgba(29, 37, 36, 0.04);
  --shadow: 0 18px 40px rgba(29, 37, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(29, 37, 36, 0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 16px;

  --fs-display: clamp(40px, 6.5vw, 78px);
  --fs-h1: clamp(34px, 5vw, 58px);
  --fs-h2: clamp(24px, 3vw, 32px);
  --fs-h3: clamp(18px, 2vw, 22px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-tiny: 13px;

  --space-xs: 6px;
  --space-sm: 12px;
  --space: 18px;
  --space-md: 24px;
  --space-lg: 36px;
  --space-xl: 56px;
  --space-2xl: 96px;

  --content-max: 1120px;
  --content-pad: 32px;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:visited {
  color: var(--accent-deep);
}
a:hover,
a:focus {
  color: var(--accent-deep);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container helper */
.container,
.topbar,
.hero-inner,
.hero-split-inner,
.section-inner,
.site-footer-inner {
  width: min(var(--content-max), calc(100% - var(--content-pad)));
  margin-left: auto;
  margin-right: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--accent-ink);
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 64px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space);
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: var(--fs-small);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav-home { display: inline-flex; align-items: center; }
.nav-home svg { display: block; }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* Desktop "More ▾" dropdown */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more-toggle {
  color: var(--muted);
  font-size: var(--fs-small);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.nav-more-toggle:hover { color: var(--ink); }
.nav-more[open] .nav-more-toggle,
.nav-more.nav-more-active .nav-more-toggle {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}
.nav-more-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-xs) 0;
  min-width: 180px;
  z-index: 60;
  animation: nav-more-in 0.12s ease;
}
@keyframes nav-more-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-more-panel a {
  display: block;
  padding: 7px var(--space-md);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-small);
  white-space: nowrap;
}
.nav-more-panel a:hover { color: var(--ink); background: var(--surface-soft); }
.nav-more-panel a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-more-sep { border: none; border-top: 1px solid var(--line); margin: var(--space-xs) 0; }
@media (prefers-reduced-motion: reduce) {
  .nav-more-panel { animation: none; }
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-tiny);
  flex-wrap: wrap;
}
.lang-switcher a,
.lang-switcher span {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.lang-switcher a:hover { color: var(--ink); background: var(--surface-soft); }
.lang-switcher .current {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}
.lang-switcher .disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}
.lang-switcher .sep {
  color: var(--line);
  padding: 0 2px;
  user-select: none;
}

@media (max-width: 700px) {
  .topbar {
    flex-wrap: nowrap;
    min-height: 48px;
    padding: 8px 0;
    gap: 12px;
  }
  .brand { flex-shrink: 0; }
  .topbar .lang-switcher { display: none; }
  .nav { display: none; }
}
@media (min-width: 701px) {
  .mobile-menu { display: none; }
  .topbar { flex-wrap: nowrap; }
  .brand { flex-shrink: 0; }
  .lang-switcher { flex-shrink: 0; }
  .nav { flex-wrap: nowrap; gap: var(--space-sm); }
}

/* Mobile menu (<details>/<summary>, no JS required) */
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: var(--fs-small);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.mobile-menu[open] .menu-toggle {
  background: var(--surface-soft);
  border-color: var(--accent);
}
.mobile-nav-panel {
  position: absolute;
  top: 49px;
  left: 0;
  right: 0;
  max-height: calc(100svh - 49px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  padding: var(--space-sm) 20px var(--space-md);
  display: flex;
  flex-direction: column;
  animation: mobile-nav-in 0.15s ease;
  box-shadow: var(--shadow);
  z-index: 49;
}
@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-label {
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: var(--space-sm) 0 var(--space-xs);
  margin-top: var(--space-xs);
}
.mobile-nav-label:first-child { margin-top: 0; }
.mobile-nav-panel nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav-panel nav a {
  padding: 9px 0;
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-panel nav a:last-child { border-bottom: none; }
.mobile-nav-panel nav a:hover { color: var(--ink); }
.mobile-nav-panel nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.mobile-nav-panel .lang-switcher {
  margin-top: var(--space);
  border-top: 1px solid var(--line);
  padding-top: var(--space-sm);
  flex-wrap: wrap;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel { animation: none; }
}

/* Default hero */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--accent);
  font-size: var(--fs-tiny);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.01em; }
h1 {
  max-width: 860px;
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 800;
}
.dek {
  max-width: 820px;
  margin: var(--space-md) 0 0;
  color: var(--muted);
  font-size: 19px;
}

/* Hero split (used on index) */
.hero-split {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at top right, rgba(139, 47, 50, 0.05), transparent 60%),
    var(--bg);
}
.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 880px) {
  .hero-split-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
  }
}
.hero-quote { display: flex; flex-direction: column; }
.hero-quote .eyebrow { margin-bottom: var(--space); }
.hero-quote-original {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-quote-translation {
  margin: var(--space-md) 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
}
.hero-quote-source {
  margin: var(--space-lg) 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}
.hero-quote-source a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-quote-context {
  margin: var(--space) 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.hero-image { position: relative; margin: 0; }
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  filter: saturate(0.7) contrast(0.96);
  box-shadow: var(--shadow);
}
.hero-image figcaption {
  margin-top: var(--space-sm);
  font-size: var(--fs-tiny);
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* Evidence figure — for redacted-document images, screenshots, etc. */
.evidence-figure {
  margin: var(--space) 0 0;
  padding: var(--space-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.evidence-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}
.evidence-figure figcaption {
  margin-top: var(--space-sm);
  font-size: var(--fs-tiny);
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* Sections */
.section { padding: var(--space-xl) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
  margin: 0 0 var(--space);
  font-size: var(--fs-h2);
  font-weight: 800;
}
.lead {
  max-width: 850px;
  margin: 0 0 var(--space-md);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.note {
  margin: var(--space) 0;
  padding: var(--space) var(--space-md);
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Status row + badges */
.status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-tiny);
  font-weight: 700;
}
.badge.warn { border-color: #d4b66a; color: var(--amber); }
.badge.archive { border-color: #9fb6c7; color: var(--blue); }
.badge.ok { border-color: #93b8a3; color: var(--green); }

/* Argument grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space);
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.argument {
  padding: var(--space);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.argument h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  font-weight: 700;
}
.argument p { margin: 0; color: var(--muted); }
.argument a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Evidence cards */
.evidence-list { display: grid; gap: var(--space-md); }
.evidence-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-head {
  padding: var(--space-md);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}
.card-head h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 800;
}
.card-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}
.card-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.card-body {
  padding: var(--space-md);
  display: grid;
  gap: var(--space-md);
}
.card-section h4 {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

/* Citation stack */
.citation-stack { display: grid; gap: var(--space); }
.citation-item {
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space);
}
.citation-item:first-child { border-top: 0; padding-top: 0; }
.citation-item h5 {
  margin: 0 0 var(--space-sm);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.meta {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: var(--space-sm) 0;
  background: var(--surface-soft);
  padding: var(--space-sm) var(--space);
  border-radius: var(--radius-sm);
}
.meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px var(--space);
}
.meta dt { font-weight: 700; color: var(--ink-soft); }
.meta dd { margin: 0; color: var(--muted); word-break: break-word; }
.evidence-clip {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  background: #000;
}
.meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.meta .status-row {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

/* Quote block (citations) */
.quote-block { display: grid; gap: var(--space-sm); margin-top: var(--space-sm); }
.quote-block blockquote {
  margin: 0;
  padding: var(--space-sm) var(--space);
  background: var(--surface-soft);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  line-height: 1.55;
}
.quote-block blockquote.translation {
  background: transparent;
  border-left-color: var(--accent-soft);
  color: var(--ink-soft);
  font-style: italic;
  font-size: 14px;
}
.quote-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

/* SL pages: original Slovenian gets full weight; translation block hidden */
html[lang="sl"] .quote-block blockquote {
  background: var(--surface-soft);
  border-left-color: var(--accent);
  font-size: 16px;
  font-style: normal;
  color: var(--ink);
}
html[lang="sl"] .quote-block .translation { display: none; }
html[lang="sl"] .quote-label { display: none; }
html[lang="sl"] .hero-quote-translation { display: none; }
html[lang="sl"] .callout-quote .translation { display: none; }

/* Contrast section (claims vs record) */
.contrast-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-deep) 100%);
  padding: var(--space-2xl) 0;
}
.contrast-intro { text-align: center; margin-bottom: var(--space-xl); }
.contrast-intro h2 { font-size: var(--fs-h2); margin: 0 0 var(--space); }
.contrast-intro p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}
.contrast-rows { display: grid; gap: var(--space-xl); }
.contrast-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space);
  position: relative;
}
@media (min-width: 760px) {
  .contrast-row {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: stretch;
  }
}
.contrast-side {
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.contrast-side .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--muted);
}
.contrast-side.claim .label { color: var(--accent); }
.contrast-side.record .label { color: var(--green); }
.contrast-side .content {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.contrast-side .source {
  margin-top: var(--space);
  font-size: var(--fs-tiny);
  color: var(--muted);
}
.contrast-side .source a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contrast-divider {
  display: none;
  align-self: center;
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
@media (min-width: 760px) { .contrast-divider { display: block; } }

/* Reveal-on-scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* Timeline (predictions page) */
.timeline { display: grid; gap: var(--space); margin: var(--space-md) 0; }
.timeline-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  padding: var(--space);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 4px solid var(--line);
}
.timeline-row.failed { border-left-color: var(--accent); }
.timeline-row.unfalsifiable { border-left-color: var(--amber); }
.timeline-row.open { border-left-color: var(--blue); }
@media (min-width: 880px) {
  .timeline-row {
    grid-template-columns: 130px 1fr 130px 1fr 110px;
    gap: var(--space);
    align-items: center;
  }
}
.timeline-cell { font-size: var(--fs-small); }
.timeline-cell.date,
.timeline-cell.window {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.timeline-cell.outcome,
.timeline-cell.text { color: var(--muted); line-height: 1.4; }
.timeline-cell.status .badge { font-size: 11px; }

/* Claim/authority table (health page) */
.claim-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.claim-table thead th {
  background: var(--surface-soft);
  text-align: left;
  padding: var(--space-sm) var(--space);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.claim-table tbody td {
  padding: var(--space) var(--space);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.5;
}
.claim-table tbody td:first-child { color: var(--accent-deep); font-weight: 600; }
.claim-table tbody td:last-child { color: var(--ink-soft); }
.claim-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
  .claim-table {
    border: 0;
    background: transparent;
  }
  .claim-table thead { display: none; }
  .claim-table tbody, .claim-table tr, .claim-table td { display: block; width: 100%; }
  .claim-table tr {
    margin-bottom: var(--space);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
  }
  .claim-table td { border-bottom: 0; padding: var(--space); }
  .claim-table td:first-child {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
  }
  .claim-table td:first-child::before {
    content: "Claim";
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
  }
  .claim-table td:last-child::before {
    content: "Authority position";
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
  }
}

/* Matrix table (patterns page) */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-md) 0;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.matrix-table th,
.matrix-table td {
  padding: var(--space-sm) var(--space);
  border: 1px solid var(--line);
  text-align: center;
}
.matrix-table thead th {
  background: var(--surface-soft);
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.matrix-table tbody th {
  text-align: left;
  background: var(--surface-soft);
  font-weight: 700;
}
.matrix-table a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.matrix-table td.cell-strong { background: #eaf3ee; color: var(--green); font-weight: 700; }
.matrix-table td.cell-strong a { color: var(--green); }
.matrix-table td.cell-partial { background: #fdf5e4; color: var(--amber); font-weight: 700; }
.matrix-table td.cell-partial a { color: var(--amber); }
.matrix-table td.cell-none { background: var(--surface-soft); color: var(--muted-soft); }

/* Heat map (warning signs) */
.heat-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}
@media (min-width: 640px) { .heat-map { grid-template-columns: repeat(5, 1fr); } }
.heat-cell {
  padding: var(--space) var(--space-sm);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-small);
}
.heat-cell .label {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: block;
}
.heat-cell .rating {
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.heat-cell.strong {
  background: rgba(139, 47, 50, 0.06);
  border-color: var(--accent);
}
.heat-cell.strong .rating { color: var(--accent); }
.heat-cell.partial {
  background: rgba(150, 107, 20, 0.06);
  border-color: #d4b66a;
}
.heat-cell.partial .rating { color: var(--amber); }
.heat-cell.not-established {
  background: var(--surface-soft);
  border-color: var(--line);
}
.heat-cell.not-established .rating { color: var(--muted); }

/* Callout quote (used in topic-page heroes) */
.callout-quote {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.callout-quote blockquote {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}
.callout-quote .translation {
  margin-top: var(--space-sm);
  color: var(--ink-soft);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 18px);
}
.callout-quote .source {
  margin-top: var(--space);
  font-size: var(--fs-tiny);
  color: var(--muted);
}
.callout-quote .source a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Table of contents */
.toc {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}
.toc h2 { margin: 0 0 var(--space-sm); font-size: var(--fs-h3); }
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .toc ul { grid-template-columns: repeat(2, 1fr); } }
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--fs-small);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toc a::before { content: "›"; color: var(--accent); font-weight: 700; }
.toc a:hover { color: var(--accent); }

/* Disclaimer block (small, end-of-page) */
.disclaimer-block {
  margin-top: var(--space-xl);
  padding: var(--space) var(--space-md);
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-tiny);
  color: var(--muted);
  line-height: 1.55;
}
.disclaimer-block strong { color: var(--ink-soft); }

/* Source list */
.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.source-list li {
  padding-left: 14px;
  position: relative;
  font-size: var(--fs-small);
}
.source-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.source-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* Topic-page routing grid (used on index) */
.topic-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
@media (min-width: 720px) { .topic-nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .topic-nav { grid-template-columns: repeat(3, 1fr); } }
.topic-nav a {
  display: block;
  padding: var(--space) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.topic-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.topic-nav a strong { display: block; font-size: 16px; margin-bottom: 2px; }
.topic-nav a span { display: block; font-size: var(--fs-tiny); color: var(--muted); }

/* Topic strip — "Explore more topics" shown on inner content pages */
.topic-strip-heading {
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 var(--space);
}
.topic-nav .topic-nav-current {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
  border-color: var(--line-soft);
  transform: none;
  box-shadow: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-deep);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}
.site-footer-inner {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 760px) {
  .site-footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
  }
}
.site-footer h4 {
  margin: 0 0 var(--space-sm);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.site-footer p {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  font-size: var(--fs-small);
  max-width: 60ch;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.site-footer ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-small);
}
.site-footer ul a:hover { color: var(--accent); }
.site-footer .lang-switcher { margin-top: var(--space); }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }

/* Print */
@media print {
  .site-header,
  .site-footer,
  .lang-switcher,
  .topic-nav,
  .reveal-on-scroll { animation: none; transform: none; opacity: 1; }
  .site-header,
  .site-footer,
  .lang-switcher,
  .topic-nav { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .evidence-card,
  .argument,
  .timeline-row { break-inside: avoid; box-shadow: none; }
  .hero-image { display: none; }
}

/* ============================================================
   Form styles (share-your-story.html, corrections.html)
   ============================================================ */

.story-form {
  max-width: 720px;
  margin: var(--space-md) 0;
  display: grid;
  gap: var(--space-sm);
}

.story-form label {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink);
}

.story-form .req {
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}

.story-form .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--fs-tiny);
}

.story-form input[type="text"],
.story-form input[type="email"],
.story-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.story-form input[type="text"]:focus,
.story-form input[type="email"]:focus,
.story-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 47, 50, 0.15);
}

.story-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.story-form button[type="submit"] {
  margin-top: var(--space-md);
  padding: 12px 24px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-self: start;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.story-form button[type="submit"]:hover {
  background: var(--accent-deep);
}

.story-form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(139, 47, 50, 0.4);
  outline-offset: 2px;
}

.story-form button[type="submit"]:active {
  transform: translateY(1px);
}

.story-form .form-note {
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-tiny);
  color: var(--muted);
}

/* Honeypot — visually hidden but reachable to naive bots that
   parse HTML without applying CSS. NOT display:none — well-behaved
   bots that respect display:none would correctly skip it; we want
   them to fill it so we silent-drop. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Safety block — distinguished tinted area on share-your-story */
.safety-block {
  margin: var(--space) 0 0;
  padding: var(--space-md);
  background: rgba(47, 109, 79, 0.06);
  border: 1px solid rgba(47, 109, 79, 0.25);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  line-height: 1.6;
}

.safety-block p {
  margin: 0 0 var(--space-sm);
}

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

.safety-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Invitation block — small aside on impact.html, warning-signs.html */
.invitation-block {
  margin: var(--space-lg) 0;
  padding: var(--space) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.invitation-block p {
  margin: 0;
}

.invitation-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Related stories block — used on analysis pages to link to stories */
.related-stories-block {
  margin: var(--space-lg) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-soft);
  border-left: 3px solid var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.related-stories-block p {
  margin: 0;
}

.related-stories-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Story entry — used on stories.html index list */
.story-entry {
  padding: var(--space) 0;
  border-bottom: 1px solid var(--line-soft);
}

.story-entry:last-child {
  border-bottom: none;
}

.story-entry h3 {
  margin: 0 0 6px;
  font-size: var(--fs-h3);
}

.story-entry h3 a {
  color: var(--ink);
  text-decoration: none;
}

.story-entry h3 a:hover {
  color: var(--accent);
}

.story-meta {
  margin: 0 0 4px;
  font-size: var(--fs-tiny);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.story-excerpt {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

/* ============================================================
   Citation library cards (evidence.html "by topic" section)
   Extends .argument; gives each card a structured citation list
   with finding-first hierarchy and a baseline-aligned CTA.
   ============================================================ */

.library-card {
  display: flex;
  flex-direction: column;
}

.library-card h3 {
  margin-top: 0;
}

.library-card .library-intro {
  margin: 0 0 var(--space) 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.library-card .library-intro strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.library-citations {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space) 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.library-citations li {
  display: grid;
  gap: 2px;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--line);
  transition: border-color 0.15s ease;
}

.library-citations li:hover {
  border-left-color: var(--accent-soft);
}

.library-citations .finding {
  display: block;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink);
  line-height: 1.35;
}

.library-citations .source {
  display: block;
  font-size: var(--fs-tiny);
  color: var(--muted);
  line-height: 1.4;
}

.library-citations .source .when {
  color: var(--muted-soft);
}

.library-cta {
  margin: auto 0 0;
  padding-top: var(--space-sm);
  font-size: var(--fs-small);
  border-top: 1px solid var(--line-soft);
}

.library-cta a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.library-cta a:hover {
  border-bottom-color: var(--accent);
}
