:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1a1d24;
  --muted: #5a6070;
  --line: #e2ddd2;
  --blue: #0b2a5b;
  --red: #c8102e;
  --myth-bg: #fbecee;
  --fact-bg: #eaf0f8;
  --max: 860px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --surface: #1a1e26;
    --ink: #eceae4;
    --muted: #a3a9b6;
    --line: #2c323d;
    --blue: #8fb3ec;
    --red: #ff6b7f;
    --myth-bg: #2a1a1e;
    --fact-bg: #18233a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}
a { color: var(--blue); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.hero {
  background: #0b2a5b;
  color: #fff;
  padding: 72px 0 56px;
  border-bottom: 6px solid #c8102e;
}
.hero .kicker {
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffb3bd;
}
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 14px 0 18px; }
.hero p { font-size: 19px; max-width: 640px; color: #dbe3f1; margin: 0; }

nav.toc {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font: 500 14px/1 system-ui, sans-serif;
}
nav.toc ul {
  display: flex; gap: 6px; overflow-x: auto; list-style: none;
  margin: 0 auto; padding: 12px 16px; max-width: 1100px; scrollbar-width: thin;
}
nav.toc a {
  display: block; white-space: nowrap; text-decoration: none;
  color: var(--ink); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
}
nav.toc a:hover { border-color: var(--red); color: var(--red); }

main { padding: 32px 0 64px; }
.intro { font-size: 18px; color: var(--muted); border-left: 4px solid var(--red); padding-left: 16px; margin: 16px 0 40px; }

section.myth {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 28px 20px;
  margin: 0 0 32px;
  scroll-margin-top: 72px;
}
@media (max-width: 600px) { section.myth { padding: 20px 16px 12px; } }
.num { font: 700 13px/1 system-ui, sans-serif; color: var(--red); letter-spacing: .1em; text-transform: uppercase; }
section.myth h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 8px 0 18px; }
.claim, .verdict {
  border-radius: 8px; padding: 14px 16px; margin: 0 0 18px;
}
.claim { background: var(--myth-bg); border-left: 4px solid var(--red); }
.verdict { background: var(--fact-bg); border-left: 4px solid var(--blue); }
.claim strong, .verdict strong {
  display: block; font: 700 12px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px;
}
.claim strong { color: var(--red); }
.verdict strong { color: var(--blue); }
section.myth h3 { font: 700 15px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.stat b { display: block; font: 700 28px/1.1 system-ui, sans-serif; color: var(--red); }
.stat span { font: 14px/1.4 system-ui, sans-serif; color: var(--muted); }
blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--line); font-style: italic; color: var(--muted); }
blockquote cite { display: block; font-style: normal; font-size: 14px; margin-top: 6px; }
ol.timeline { list-style: none; padding: 0; margin: 12px 0; }
ol.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
ol.timeline li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
ol.timeline time { font: 700 14px/1 system-ui, sans-serif; color: var(--blue); margin-right: 6px; }
details.sources { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; font: 14px/1.5 system-ui, sans-serif; color: var(--muted); }
details.sources summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.sources ol { padding-left: 20px; }
.top { font: 13px/1 system-ui, sans-serif; display: inline-block; margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font: 14px/1.6 system-ui, sans-serif; color: var(--muted); }

/* Inline citations */
sup.cite { font: 600 11px/0 system-ui, sans-serif; margin-left: 1px; }
sup.cite a { text-decoration: none; color: var(--red); padding: 0 1px; }
sup.cite a:hover { text-decoration: underline; }
details.sources li { scroll-margin-top: 80px; padding: 2px 4px; border-radius: 4px; word-break: break-word; }
details.sources li:target { background: var(--fact-bg); outline: 2px solid var(--blue); }

/* Language menu */
.hero .lang { display: flex; justify-content: flex-end; margin: -40px 0 24px; font: 600 14px/1.2 system-ui, sans-serif; }
.langs { position: relative; z-index: 10; }
.langs summary {
  list-style: none; cursor: pointer; color: #fff; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::before { content: "🌐 "; }
.langs summary::after { content: " ▾"; font-size: 11px; }
.langs[open] summary { background: rgba(255,255,255,.12); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
  list-style: none; min-width: 170px; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.langs li a, .langs li span { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.langs li a:hover { background: var(--fact-bg); }
.langs li span { font-weight: 700; color: var(--red); }

/* Chat assistant */
#chat-root { font: 15px/1.5 system-ui, sans-serif; }
.chat-open {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 18px; font: 600 15px/1 system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.chat-open::before { content: "💬 "; }
.chat-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 31;
  width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 32px));
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; background: #0b2a5b; color: #fff; }
.chat-panel header p { margin: 2px 0 0; font-size: 12px; color: #dbe3f1; }
.chat-close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 90%; padding: 9px 12px; border-radius: 12px; word-wrap: break-word; }
.chat-msg.user { align-self: flex-end; background: var(--blue); color: #fff; }
.chat-msg.assistant { align-self: flex-start; background: var(--fact-bg); }
.chat-msg.pending { opacity: .6; }
.chat-msg ul { margin: 4px 0; padding-left: 18px; }
.chat-msg a { color: var(--blue); }
.chat-msg.user a { color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.chat-send { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 0 14px; font-weight: 600; cursor: pointer; }
@media (max-width: 600px) {
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

.chat-ts { position: fixed; bottom: 0; left: 0; width: 0; height: 0; overflow: hidden; }
