﻿/* =========================================================
   宏观分析 · 知识图谱
   Editorial / research-notebook visual system
   ========================================================= */

:root {
  --ts: 1.12;
  --paper: #f4efe4;
  --paper-2: #ece4d4;
  --paper-3: #fbf8f0;
  --ink: #17221f;
  --ink-2: #26342f;
  --ink-soft: #4e5b54;
  --muted: #7b8378;
  --line: rgba(23, 34, 31, 0.14);
  --line-strong: rgba(23, 34, 31, 0.28);
  --gold: #b58a4a;
  --gold-soft: #d8bd8c;
  --red: #b5503b;
  --teal: #2f7568;
  --blue: #3f6f8f;
  --olive: #62703f;
  --coral: #c26b45;
  --violet: #5b5f78;
  --dark: #101a18;
  --dark-2: #162420;
  --cream: #f7f1e4;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --max: 1240px;
  --topbar-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--topbar-h) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(181, 138, 74, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(47, 117, 104, 0.07), transparent 60%),
    linear-gradient(rgba(23, 34, 31, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 31, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  font-family: var(--sans);
  font-size: calc(15px * var(--ts, 1));
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #fff; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

/* ---------- topbar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  background: rgba(244, 239, 228, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: background 0.35s, border-color 0.35s, height 0.35s;
}

.topbar.scrolled {
  background: rgba(244, 239, 228, 0.94);
  border-color: var(--line);
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: calc(22px * var(--ts, 1));
  line-height: 1;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(247, 241, 228, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: calc(15px * var(--ts, 1));
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.brand-text em {
  font-style: normal;
  font-size: calc(11px * var(--ts, 1));
  letter-spacing: 0.18em;
  color: var(--muted);
  font-family: var(--mono);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 10px;
  font-size: calc(13px * var(--ts, 1));
  color: var(--ink-soft);
  transition: color 0.25s;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.text-size {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 3px;
  border: 1px solid var(--line);
  gap: 1px;
  flex: 0 0 auto;
}

.ts-label {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  padding: 0 5px 0 3px;
  white-space: nowrap;
}

.text-size button {
  width: 32px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: calc(12px * var(--ts, 1));
  line-height: 1;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.text-size button:hover { background: var(--paper-2); color: var(--ink); }
.text-size button.active { background: var(--ink); color: var(--cream); }
.mobile-text-size { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background 0.25s, border-color 0.25s;
}

.icon-btn:hover { background: var(--paper-2); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.search-hint {
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  color: var(--muted);
}

.top-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  color: var(--ink-soft);
}

.tp-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--p, 0%), rgba(23, 34, 31, 0.12) 0);
  position: relative;
}

.tp-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--paper);
}

.mobile-toggle { display: none; }

/* ---------- generic ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 28px;
}

.section-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.sec-no {
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-bottom: 14px;
  white-space: nowrap;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.6vw, 4.45rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.sec-aside {
  font-size: calc(13px * var(--ts, 1));
  line-height: 1.9;
  color: var(--ink-soft);
  padding-bottom: 8px;
}

.mini-label {
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: calc(13px * var(--ts, 1));
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn span { font-family: var(--mono); font-size: calc(11px * var(--ts, 1)); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-outline { background: transparent; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: var(--paper-3); }

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: calc(12px * var(--ts, 1));
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-btn:hover { color: var(--ink); }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  padding: 138px 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 58px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.2vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-left: -4px;
}

.hero h1 .accent {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.hero h1 .hero-line { white-space: nowrap; }

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -8px;
  bottom: 0.06em;
  height: 0.18em;
  background: linear-gradient(90deg, rgba(181, 138, 74, 0.85), rgba(216, 189, 140, 0.55));
  z-index: -1;
  transform: rotate(-1.2deg);
}

.hero-lead {
  max-width: 570px;
  margin-top: 28px;
  font-size: calc(15px * var(--ts, 1));
  line-height: 1.95;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 620px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  margin-right: 16px;
}
.hero-stats div:last-child { border-right: 0; margin-right: 0; }

.hero-stats strong {
  font-family: var(--mono);
  font-size: calc(22px * var(--ts, 1));
  font-weight: 500;
  letter-spacing: -0.04em;
}
.hero-stats span { font-size: calc(10px * var(--ts, 1)); letter-spacing: 0.08em; color: var(--muted); }

.hero-visual {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(160deg, #1a2b26, #0d1714 70%);
  color: var(--cream);
  padding: 20px 20px 16px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(16, 26, 24, 0.55);
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(181, 138, 74, 0.65);
  border-style: solid;
}
.hero-visual::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.hero-visual::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.hero-visual-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  letter-spacing: 0.14em;
  color: rgba(247, 241, 228, 0.45);
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(247, 241, 228, 0.12);
}

.mini-funnel { padding-top: 10px; }

.mini-layer {
  --i: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: -1px;
  width: calc(100% - var(--i) * 13px);
  margin-left: calc(var(--i) * 6.5px);
  padding: 11px 12px;
  border: 1px solid rgba(247, 241, 228, 0.12);
  background: rgba(247, 241, 228, 0.018);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}

.mini-layer:hover {
  background: rgba(181, 138, 74, 0.14);
  border-color: rgba(181, 138, 74, 0.55);
  transform: translateX(5px);
}

.mini-no {
  font-family: var(--mono);
  font-size: calc(9px * var(--ts, 1));
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.mini-name {
  font-family: var(--serif);
  font-size: calc(16px * var(--ts, 1));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mini-name em {
  font-style: normal;
  font-family: var(--sans);
  font-size: calc(9px * var(--ts, 1));
  color: rgba(247, 241, 228, 0.42);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mini-q {
  grid-column: 2;
  font-size: calc(10px * var(--ts, 1));
  color: rgba(247, 241, 228, 0.52);
  margin-top: -2px;
}

.hero-visual-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(247, 241, 228, 0.12);
  font-size: calc(9px * var(--ts, 1));
  letter-spacing: 0.04em;
  color: rgba(247, 241, 228, 0.5);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(181, 138, 74, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 138, 74, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(181, 138, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 138, 74, 0); }
}

.hero-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 12px 0;
  background: rgba(251, 248, 240, 0.35);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 46s linear infinite;
  font-family: var(--mono);
  font-size: calc(9px * var(--ts, 1));
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track i { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- thesis strip ---------- */

.thesis-strip {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 34px 28px;
  border-bottom: 1px solid var(--line);
}

.thesis {
  display: flex;
  gap: 14px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.thesis:first-child { padding-left: 0; }
.thesis:last-child { border-right: 0; }

.thesis-no {
  font-family: var(--mono);
  font-size: calc(9px * var(--ts, 1));
  color: var(--gold);
  padding-top: 5px;
}

.thesis strong {
  display: block;
  font-family: var(--serif);
  font-size: calc(16px * var(--ts, 1));
  margin-bottom: 3px;
}
.thesis p { font-size: calc(11px * var(--ts, 1)); color: var(--muted); line-height: 1.7; }

/* ---------- overview ---------- */

.question-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.question-card {
  padding: 22px 20px 24px 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}
.question-card:last-child { border-right: 0; }
.question-card + .question-card { padding-left: 20px; }

.question-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.question-card:hover::before { width: 100%; }
.question-card:hover { background: rgba(251, 248, 240, 0.55); }

.q-no {
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.q-title { font-family: var(--serif); font-size: calc(20px * var(--ts, 1)); margin-bottom: 8px; }
.q-text { font-size: calc(12px * var(--ts, 1)); line-height: 1.85; color: var(--ink-soft); }
.q-arrow { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: calc(11px * var(--ts, 1)); color: var(--gold); }

.funnel-block {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  margin-top: 86px;
  align-items: start;
}

.funnel-copy h3,
.strands-head h3,
.chain-head h3,
.closing h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.funnel-copy p { font-size: calc(13px * var(--ts, 1)); line-height: 1.9; color: var(--ink-soft); max-width: 280px; }
.funnel-hint {
  margin-top: 28px;
  font-size: calc(11px * var(--ts, 1));
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.funnel-hint span { color: var(--gold); }

.funnel { border-top: 1px solid var(--line-strong); }

.funnel-item {
  display: grid;
  grid-template-columns: 64px 170px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  padding: 21px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s, padding 0.35s var(--ease);
  position: relative;
}

.funnel-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mc, var(--gold));
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}

.funnel-item:hover { background: rgba(251, 248, 240, 0.7); padding-left: 16px; }
.funnel-item:hover::before { transform: scaleY(1); }

.f-no { font-family: var(--mono); font-size: calc(11px * var(--ts, 1)); color: var(--gold); }
.f-name { font-family: var(--serif); font-size: calc(22px * var(--ts, 1)); }
.f-q { font-size: calc(13px * var(--ts, 1)); color: var(--ink-soft); }
.f-desc { font-size: calc(11px * var(--ts, 1)); color: var(--muted); display: block; margin-top: 3px; }
.f-arrow { font-family: var(--mono); color: var(--gold); font-size: calc(13px * var(--ts, 1)); opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.funnel-item:hover .f-arrow { opacity: 1; transform: translateX(3px); }

.strands { margin-top: 96px; }

.strands-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-strong);
}
.strands-head h3 { margin-bottom: 0; }
.strands-head > p { max-width: 340px; font-size: calc(12px * var(--ts, 1)); line-height: 1.85; color: var(--ink-soft); }

.strand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.strand-card {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 20px 20px 16px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s, padding 0.3s var(--ease);
  position: relative;
}
.strand-card:nth-child(4n) { border-right: 0; }
.strand-card:nth-child(n+5) { padding-left: 0; }
.strand-card:hover { background: rgba(251, 248, 240, 0.66); padding-left: 12px; }

.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.sc-no { font-family: var(--mono); font-size: calc(10px * var(--ts, 1)); color: var(--gold); }
.sc-glyph {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: calc(13px * var(--ts, 1));
  color: var(--mc);
}
.sc-title { font-family: var(--serif); font-size: calc(19px * var(--ts, 1)); line-height: 1.35; margin-bottom: 6px; }
.sc-meta { font-size: calc(10px * var(--ts, 1)); color: var(--muted); letter-spacing: 0.04em; margin-top: auto; }
.sc-meta em { font-style: normal; color: var(--gold); }

/* ---------- knowledge map ---------- */

.section-map {
  border-top: 1px solid var(--line-strong);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.map-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.map-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 10px;
  font-size: calc(10px * var(--ts, 1));
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.map-filter b {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  font-weight: 500;
}
.map-filter:hover { border-color: var(--gold); color: var(--ink); }
.map-filter.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.map-filter.active b { color: rgba(247, 241, 228, 0.55); }
.map-reset {
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 7px 12px;
  font-size: calc(10px * var(--ts, 1));
  color: var(--ink-soft);
}
.map-reset:hover { border-color: var(--ink); color: var(--ink); }

.map-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.map-canvas {
  position: relative;
  min-width: 0;
  background: var(--paper-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
}
.map-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 7px;
  background: rgba(251, 248, 240, 0.88);
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  pointer-events: none;
}

.map-ring {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 2 7;
}
.map-edge {
  fill: none;
  stroke: rgba(23, 34, 31, 0.18);
  stroke-width: 1;
}
.map-edge.active { stroke: var(--gold); stroke-width: 2; }

.map-root { cursor: pointer; }
.map-root-circle { fill: var(--ink); stroke: var(--gold); stroke-width: 1; }
.map-root-title {
  fill: var(--cream);
  font-family: var(--serif);
  font-size: calc(23px * var(--ts, 1));
  text-anchor: middle;
}
.map-root-sub {
  fill: var(--gold-soft);
  font-family: var(--mono);
  font-size: calc(7px * var(--ts, 1));
  letter-spacing: 0.12em;
  text-anchor: middle;
}

.map-node { cursor: pointer; transition: opacity 0.25s; }
.map-node.dim { opacity: 0.2; }
.map-node:focus .map-node-bg, .map-root:focus .map-root-circle {
  outline: none;
  stroke-width: 2.5;
}
.map-node-bg {
  fill: var(--paper-3);
  stroke: var(--line-strong);
  stroke-width: 1;
  transition: fill 0.25s, stroke 0.25s;
}
.map-node:hover .map-node-bg { stroke: var(--mc); fill: #fffdf7; }
.map-node.active .map-node-bg { fill: #fffdf7; stroke: var(--mc); stroke-width: 2; }
.map-node-no {
  fill: var(--mc);
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
}
.map-node-title {
  fill: var(--ink);
  font-family: var(--serif);
  font-size: calc(15px * var(--ts, 1));
}
.map-node-count {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: calc(7px * var(--ts, 1));
}
.map-node-glyph {
  fill: var(--mc);
  font-family: var(--serif);
  font-size: calc(19px * var(--ts, 1));
  text-anchor: middle;
}

.map-spoke {
  stroke: var(--mc);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.55;
}
.map-concept { cursor: pointer; animation: mapDotIn 0.35s var(--ease) both; }
@keyframes mapDotIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.map-dot-hit { fill: transparent; }
.map-dot {
  fill: var(--mc);
  stroke: var(--paper-3);
  stroke-width: 2;
  transition: transform 0.2s;
  transform-box: fill-box;
  transform-origin: center;
}
.map-concept:hover .map-dot { transform: scale(1.35); }
.map-dot-label {
  fill: var(--cream);
  font-family: var(--mono);
  font-size: calc(7.5px * var(--ts, 1));
  text-anchor: middle;
  pointer-events: none;
}

.map-panel {
  border: 1px solid var(--line);
  background: var(--paper-3);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.map-panel-empty { margin: auto 0; }
.map-panel-kicker {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
}
.map-panel-title {
  font-family: var(--serif);
  font-size: calc(25px * var(--ts, 1));
  line-height: 1.25;
  margin-bottom: 8px;
}
.map-panel-question {
  border-left: 2px solid var(--gold);
  padding-left: 9px;
  font-size: calc(11px * var(--ts, 1));
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}
.map-panel-summary {
  font-size: calc(11px * var(--ts, 1));
  line-height: 1.8;
  color: var(--ink-soft);
}
.map-panel-empty p {
  font-size: calc(11px * var(--ts, 1));
  line-height: 1.9;
  color: var(--ink-soft);
}
.map-panel-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: calc(22px * var(--ts, 1));
  color: var(--ink);
  margin-bottom: 8px;
}
.map-concepts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}
.map-concept-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 5px 7px;
  font-size: calc(9.5px * var(--ts, 1));
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: left;
}
.map-concept-btn:hover { border-color: var(--mc, var(--gold)); color: var(--ink); background: var(--paper); }
.map-concept-btn b {
  font-family: var(--mono);
  font-size: calc(7.5px * var(--ts, 1));
  color: var(--gold);
  margin-right: 4px;
}
.map-enter {
  margin-top: auto;
  padding-top: 16px;
}
.map-enter button {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  padding: 9px 10px;
  font-size: calc(10px * var(--ts, 1));
}
.map-enter button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- foundations ---------- */

.basics-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.basics-guide div {
  display: flex;
  gap: 10px;
  padding: 16px 18px 16px 0;
  border-right: 1px solid var(--line);
}
.basics-guide div:last-child { border-right: 0; }
.basics-guide div + div { padding-left: 18px; }
.basics-guide b {
  font-family: var(--mono);
  font-size: calc(9px * var(--ts, 1));
  color: var(--gold);
  font-weight: 500;
  padding-top: 2px;
}
.basics-guide span {
  font-size: calc(11px * var(--ts, 1));
  line-height: 1.7;
  color: var(--ink-soft);
}

.basics-tabs {
  display: flex;
  gap: 6px;
  margin-top: 32px;
}
.basics-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 13px;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.basics-tab b {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  font-weight: 500;
}
.basics-tab span { font-size: calc(12px * var(--ts, 1)); }
.basics-tab:hover { border-color: var(--fc); color: var(--ink); }
.basics-tab.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.basics-tab.active b { color: rgba(247, 241, 228, 0.55); }

.basics-intro {
  margin-top: 12px;
  font-size: calc(12px * var(--ts, 1));
  line-height: 1.8;
  color: var(--muted);
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.foundation-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--fc, var(--gold));
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.foundation-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -26px rgba(23, 34, 31, 0.55); }
.foundation-card.flash { box-shadow: 0 0 0 2px var(--gold), 0 18px 34px -24px rgba(23, 34, 31, 0.5); }

.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fc-no { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); color: var(--fc); }
.fc-group {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  border: 1px solid var(--fc);
  color: var(--fc);
  padding: 1px 6px;
}
.fc-term {
  font-family: var(--serif);
  font-size: calc(22px * var(--ts, 1));
  line-height: 1.25;
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.fc-en {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: 3px;
}
.fc-plain {
  font-size: calc(12px * var(--ts, 1));
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 10px;
}
.fc-core {
  margin-top: 12px;
  padding: 9px 10px;
  background: var(--paper);
  border-left: 2px solid var(--fc);
  font-size: calc(10.5px * var(--ts, 1));
  line-height: 1.8;
  color: var(--ink);
}
.fc-core b {
  display: block;
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 3px;
}
.fc-example {
  margin-top: 10px;
  font-size: calc(10.5px * var(--ts, 1));
  line-height: 1.75;
  color: var(--ink-soft);
}
.fc-example b, .fc-confusion b {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--teal);
  font-weight: 500;
  margin-right: 6px;
}
.fc-confusion {
  margin-top: 7px;
  font-size: calc(10px * var(--ts, 1));
  line-height: 1.7;
  color: var(--muted);
}
.fc-confusion b { color: var(--red); }
.fc-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fc-foot span {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
}
.fc-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: calc(9px * var(--ts, 1));
  color: var(--fc);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.fc-link:hover { color: var(--ink); }

.basics-note {
  margin-top: 16px;
  font-size: calc(10px * var(--ts, 1));
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- knowledge ---------- */

.section-knowledge {
  max-width: none;
  background: rgba(251, 248, 240, 0.48);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-left: max(28px, calc((100vw - var(--max)) / 2 + 28px));
  padding-right: max(28px, calc((100vw - var(--max)) / 2 + 28px));
}

.module-tabs {
  display: flex;
  gap: 8px;
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.module-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.6);
  color: var(--ink-soft);
  font-size: calc(12px * var(--ts, 1));
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.module-tab .mt-glyph {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: calc(13px * var(--ts, 1));
  color: var(--mc);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.module-tab .mt-no { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); color: var(--muted); }
.module-tab:hover { border-color: var(--mc); color: var(--ink); }
.module-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.module-tab.active .mt-glyph { background: var(--mc); border-color: var(--mc); color: #fff; }
.module-tab.active .mt-no { color: rgba(247, 241, 228, 0.55); }

.module-panel { margin-top: 34px; }

.module-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 48px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}

.mi-kicker { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); letter-spacing: 0.18em; color: var(--mc); margin-bottom: 12px; }
.mi-title { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.1; margin-bottom: 12px; }
.mi-question {
  display: inline-block;
  font-size: calc(12px * var(--ts, 1));
  color: var(--ink);
  border-left: 2px solid var(--mc);
  padding-left: 10px;
  margin-top: 4px;
}
.mi-summary { font-size: calc(13px * var(--ts, 1)); line-height: 1.95; color: var(--ink-soft); }
.mi-meta { display: flex; gap: 22px; margin-top: 20px; font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); color: var(--muted); }
.mi-meta strong { color: var(--mc); font-weight: 500; }

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
}

.concept-card {
  --mc: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 20px 20px 16px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mc);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.concept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -26px rgba(23, 34, 31, 0.6);
  border-color: var(--line-strong);
}
.concept-card .cc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cc-no { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); color: var(--muted); }
.cc-state { width: 7px; height: 7px; border: 1px solid var(--line-strong); border-radius: 50%; }
.concept-card.mastered .cc-state { background: var(--mc); border-color: var(--mc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 16%, transparent); }
.cc-title { font-family: var(--serif); font-size: calc(21px * var(--ts, 1)); line-height: 1.28; margin-bottom: 2px; }
.cc-en { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.cc-lead { font-size: calc(12px * var(--ts, 1)); line-height: 1.8; color: var(--ink-soft); flex: 1; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.cc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.cc-open { font-family: var(--mono); font-size: calc(10px * var(--ts, 1)); color: var(--mc); opacity: 0; transform: translateX(-3px); transition: opacity 0.3s, transform 0.3s; }
.concept-card:hover .cc-open { opacity: 1; transform: translateX(0); }

.tag, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  font-size: calc(9px * var(--ts, 1));
  line-height: 1.4;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.chip { cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- case ---------- */

.section-dark {
  max-width: none;
  background:
    radial-gradient(ellipse 70% 40% at 20% 0%, rgba(181, 138, 74, 0.13), transparent 60%),
    linear-gradient(160deg, #162420, #0e1715 70%);
  color: var(--cream);
  padding: 96px 28px 100px;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 241, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 241, 228, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.case-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }

.section-head.light { border-top-color: rgba(247, 241, 228, 0.2); }
.section-head.light .sec-title { color: var(--cream); }
.case-title { font-size: clamp(2.4rem, 3.4vw, 3.6rem); }
.section-head.light .sec-aside { color: rgba(247, 241, 228, 0.58); }
.section-head.light .sec-no { color: var(--gold-soft); }

.case-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 52px;
}

.case-panel {
  border: 1px solid rgba(247, 241, 228, 0.16);
  background: rgba(247, 241, 228, 0.03);
  padding: 26px 26px 24px;
  position: relative;
}
.case-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cc);
}
.case-panel.a { --cc: #c46b50; }
.case-panel.b { --cc: #5f8ca8; }

.cp-date { font-family: var(--mono); font-size: calc(10px * var(--ts, 1)); letter-spacing: 0.1em; color: var(--cc); margin-bottom: 24px; }
.cp-name { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; margin-bottom: 10px; }
.cp-nature { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-nature span { border: 1px solid rgba(247, 241, 228, 0.2); padding: 3px 8px; font-size: calc(9px * var(--ts, 1)); color: rgba(247, 241, 228, 0.66); }
.cp-nature span:first-child { border-color: var(--cc); color: var(--cc); }

.case-vs {
  display: grid;
  place-items: center;
  position: relative;
}
.case-vs::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: rgba(247, 241, 228, 0.14);
}
.case-vs span {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid rgba(181, 138, 74, 0.55);
  background: var(--dark);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: calc(12px * var(--ts, 1));
  color: var(--gold-soft);
  position: relative;
  z-index: 1;
}

.case-table {
  margin-top: 30px;
  border-top: 1px solid rgba(247, 241, 228, 0.18);
}

.case-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 0.8fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(247, 241, 228, 0.12);
  align-items: start;
}
.case-row.head { padding: 9px 0; font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); letter-spacing: 0.12em; color: rgba(247, 241, 228, 0.42); }
.case-dim { font-family: var(--serif); font-size: calc(14px * var(--ts, 1)); color: var(--gold-soft); }
.case-a, .case-b { font-size: calc(11px * var(--ts, 1)); line-height: 1.75; color: rgba(247, 241, 228, 0.8); }
.case-a::before, .case-b::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 7px;
  vertical-align: 2px;
}
.case-a::before { background: #c46b50; }
.case-b::before { background: #5f8ca8; }
.case-read { font-size: calc(10px * var(--ts, 1)); line-height: 1.7; color: rgba(247, 241, 228, 0.45); border-left: 1px solid rgba(247, 241, 228, 0.14); padding-left: 14px; }

.chain-block { margin-top: 58px; padding-top: 28px; border-top: 1px solid rgba(247, 241, 228, 0.18); }
.chain-head h3 { color: var(--cream); margin-bottom: 8px; }
.chain-head p:not(.mini-label) { font-size: calc(11px * var(--ts, 1)); color: rgba(247, 241, 228, 0.48); }

.chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
}

.chain-step {
  position: relative;
  padding: 0 14px 0 0;
  border-right: 1px solid rgba(247, 241, 228, 0.12);
}
.chain-step:last-child { border-right: 0; padding-right: 0; }
.chain-step::after {
  content: "→";
  position: absolute;
  right: -7px; top: 8px;
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  color: var(--gold);
  background: var(--dark);
  padding: 0 3px;
}
.chain-step:last-child::after { display: none; }

.cs-no {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid rgba(247, 241, 228, 0.22);
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.cs-title { font-family: var(--serif); font-size: calc(15px * var(--ts, 1)); margin-bottom: 7px; }
.cs-desc { font-size: calc(10px * var(--ts, 1)); line-height: 1.7; color: rgba(247, 241, 228, 0.48); padding-right: 8px; }

.case-quote {
  margin: 54px 0 0;
  padding: 24px 28px;
  border-left: 2px solid var(--gold);
  background: rgba(181, 138, 74, 0.07);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.7;
  color: var(--cream);
}
.case-quote::before { content: "“"; color: var(--gold); margin-right: 4px; }
.case-quote::after { content: "”"; color: var(--gold); margin-left: 4px; }

/* ---------- indicators ---------- */

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.indicator-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 20px 18px 18px;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.indicator-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--st);
}
.indicator-card[data-status="danger"] { --st: var(--red); }
.indicator-card[data-status="warning"] { --st: var(--gold); }
.indicator-card[data-status="positive"] { --st: var(--teal); }
.indicator-card[data-status="neutral"] { --st: var(--blue); }

.ind-value { font-family: var(--mono); font-size: calc(38px * var(--ts, 1)); line-height: 1; letter-spacing: -0.05em; color: var(--st); margin-top: 8px; }
.ind-value small { font-size: calc(16px * var(--ts, 1)); margin-left: 2px; letter-spacing: 0; }
.ind-label { font-family: var(--serif); font-size: calc(15px * var(--ts, 1)); margin-top: 12px; }
.ind-note { font-size: calc(10px * var(--ts, 1)); color: var(--muted); margin-top: 3px; line-height: 1.6; }
.ind-source { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); color: var(--muted); margin-top: auto; padding-top: 12px; letter-spacing: 0.03em; }

.data-note { margin-top: 18px; font-size: calc(10px * var(--ts, 1)); color: var(--muted); }

/* ---------- timeline ---------- */

.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 38px; }

.timeline { margin-top: 26px; border-top: 1px solid var(--line-strong); }

.tl-item {
  display: grid;
  grid-template-columns: 92px 30px minmax(0, 1fr);
  gap: 16px;
  padding: 0;
  position: relative;
}

.tl-date {
  font-family: var(--mono);
  font-size: calc(10px * var(--ts, 1));
  color: var(--ink-soft);
  padding: 24px 0 0;
  letter-spacing: 0.02em;
}

.tl-spine { position: relative; display: flex; justify-content: center; }
.tl-spine::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--line);
}
.tl-dot {
  width: 9px; height: 9px;
  border: 1px solid var(--pc, var(--gold));
  background: var(--paper);
  border-radius: 50%;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.tl-item[data-phase="排雷"] { --pc: var(--red); }
.tl-item[data-phase="总攻"] { --pc: var(--gold); }
.tl-item[data-phase="实战"] { --pc: var(--blue); }
.tl-item[data-phase="制度"] { --pc: var(--teal); }
.tl-item[data-phase="外部"] { --pc: var(--violet); }

.tl-card {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}
.tl-phase {
  display: inline-flex;
  border: 1px solid var(--pc);
  color: var(--pc);
  font-size: calc(9px * var(--ts, 1));
  padding: 2px 7px;
  margin-bottom: 8px;
}
.tl-title { font-family: var(--serif); font-size: calc(19px * var(--ts, 1)); margin-bottom: 4px; }
.tl-desc { font-size: calc(11px * var(--ts, 1)); line-height: 1.8; color: var(--ink-soft); max-width: 760px; }
.tl-tags { display: flex; gap: 5px; margin-top: 9px; }

/* ---------- evidence ---------- */

.section-evidence {
  max-width: none;
  background: rgba(251, 248, 240, 0.56);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-left: max(28px, calc((100vw - var(--max)) / 2 + 28px));
  padding-right: max(28px, calc((100vw - var(--max)) / 2 + 28px));
}

.evidence-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 38px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: calc(10px * var(--ts, 1));
  color: var(--ink-soft);
}
.evidence-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.evidence-legend b {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  font-family: var(--mono);
  font-size: calc(9px * var(--ts, 1));
  color: #fff;
  background: var(--muted);
}
.evidence-legend span:nth-child(1) b { background: var(--teal); }
.evidence-legend span:nth-child(2) b { background: var(--gold); }
.evidence-legend span:nth-child(3) b { background: var(--red); }
.evidence-legend em { margin-left: auto; font-style: normal; color: var(--muted); font-size: calc(9px * var(--ts, 1)); }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.evidence-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--eg, var(--gold));
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.evidence-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -26px rgba(23, 34, 31, 0.55); }
.evidence-card[data-grade="A"] { --eg: var(--teal); }
.evidence-card[data-grade="B"] { --eg: var(--gold); }
.evidence-card[data-grade="C"] { --eg: var(--red); }
.evidence-card.flash { box-shadow: 0 0 0 2px var(--gold), 0 18px 34px -24px rgba(23, 34, 31, 0.5); }

.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-code { font-family: var(--mono); font-size: calc(10px * var(--ts, 1)); letter-spacing: 0.08em; color: var(--eg); }
.ev-grade {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid var(--eg);
  color: var(--eg);
  font-size: calc(8px * var(--ts, 1));
  white-space: nowrap;
}
.ev-date { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); color: var(--muted); margin-top: 14px; letter-spacing: 0.04em; }
.ev-title { font-family: var(--serif); font-size: calc(23px * var(--ts, 1)); line-height: 1.3; margin-top: 5px; letter-spacing: -0.01em; }
.ev-claim { font-size: calc(12.5px * var(--ts, 1)); line-height: 1.85; color: var(--ink-soft); margin-top: 8px; }

.ev-section { margin-top: 15px; }
.ev-section h4 { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); letter-spacing: 0.1em; color: var(--gold); margin-bottom: 7px; }
.ev-facts { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ev-facts li { position: relative; padding-left: 12px; font-size: calc(11px * var(--ts, 1)); line-height: 1.75; color: var(--ink-soft); }
.ev-facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: var(--eg); }
.ev-theory { display: flex; flex-wrap: wrap; gap: 5px; }
.ev-theory span { border: 1px solid var(--line); padding: 2px 7px; font-size: calc(9px * var(--ts, 1)); color: var(--muted); }

.ev-read, .ev-caveat {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: calc(10.5px * var(--ts, 1));
  line-height: 1.75;
  color: var(--ink-soft);
}
.ev-read b, .ev-caveat b {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-right: 8px;
}
.ev-caveat { border-top: 0; padding-top: 6px; color: var(--muted); }
.ev-caveat b { color: var(--red); }

.evidence-note { margin-top: 18px; font-size: calc(10px * var(--ts, 1)); line-height: 1.8; color: var(--muted); }
.evidence-note code { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); }

/* concept modal: related evidence */
.mini-evidence {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  cursor: pointer;
}
.mini-evidence:last-child { border-bottom: 0; }
.mini-evidence:hover .me-title { color: var(--gold); }
.me-top { display: flex; align-items: center; gap: 6px; }
.me-code { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); color: var(--gold); }
.me-grade {
  font-family: var(--mono);
  font-size: calc(7px * var(--ts, 1));
  border: 1px solid var(--line-strong);
  padding: 0 4px;
  color: var(--muted);
}
.me-grade.grade-A { color: var(--teal); border-color: var(--teal); }
.me-grade.grade-B { color: var(--gold); border-color: var(--gold); }
.me-grade.grade-C { color: var(--red); border-color: var(--red); }
.me-title { font-family: var(--serif); font-size: calc(13px * var(--ts, 1)); line-height: 1.45; margin-top: 3px; }
.me-claim { font-size: calc(9.5px * var(--ts, 1)); line-height: 1.65; color: var(--muted); margin-top: 2px; }

/* ---------- perspectives ---------- */

.section-perspectives {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.perspective-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 38px;
}
.perspective-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 12px;
  font-size: calc(12px * var(--ts, 1));
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.perspective-tab b {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  font-weight: 500;
}
.perspective-tab:hover { border-color: var(--pc); color: var(--ink); }
.perspective-tab.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.perspective-tab.active b { color: rgba(247, 241, 228, 0.55); }

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.perspective-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--pc, var(--gold));
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.perspective-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -26px rgba(23, 34, 31, 0.55); }
.perspective-card.flash { box-shadow: 0 0 0 2px var(--gold), 0 18px 34px -24px rgba(23, 34, 31, 0.5); }

.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-no { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); color: var(--pc); }
.pc-school {
  font-size: calc(8px * var(--ts, 1));
  border: 1px solid var(--pc);
  color: var(--pc);
  padding: 1px 6px;
  white-space: nowrap;
}
.pc-name {
  font-family: var(--serif);
  font-size: calc(24px * var(--ts, 1));
  line-height: 1.2;
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.pc-en {
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  margin-top: 3px;
}
.pc-core {
  font-size: calc(12px * var(--ts, 1));
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 10px;
}
.pc-block {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: calc(10.5px * var(--ts, 1));
  line-height: 1.75;
  color: var(--ink-soft);
}
.pc-block b {
  display: block;
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  letter-spacing: 0.04em;
  color: var(--pc);
  font-weight: 500;
  margin-bottom: 3px;
}
.pc-block.blind b { color: var(--red); }
.pc-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pc-work {
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
  line-height: 1.5;
}
.pc-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: calc(9px * var(--ts, 1));
  color: var(--pc);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.pc-link:hover { color: var(--ink); }
.perspective-note {
  margin-top: 16px;
  font-size: calc(10px * var(--ts, 1));
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- focus ---------- */

.focus-block {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.focus-head { margin-bottom: 20px; }
.focus-head h3 {
  font-family: var(--serif);
  font-size: calc(30px * var(--ts, 1));
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.focus-head p:not(.mini-label) {
  max-width: 720px;
  font-size: calc(12px * var(--ts, 1));
  line-height: 1.85;
  color: var(--ink-soft);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.focus-card { border-top-color: #8b6547; }
.focus-note {
  margin-top: 16px;
  font-size: calc(10px * var(--ts, 1));
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- path ---------- */

.path-progress {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pp-copy strong { display: block; font-family: var(--serif); font-size: calc(18px * var(--ts, 1)); }
.pp-copy span { font-size: calc(10px * var(--ts, 1)); color: var(--muted); }
.pp-bar { height: 3px; background: rgba(23, 34, 31, 0.12); overflow: hidden; }
.pp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width 0.6s var(--ease); }

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.path-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 20px 20px 18px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  transition: background 0.25s, border-color 0.25s;
}
.path-card.done { background: rgba(47, 117, 104, 0.06); border-color: rgba(47, 117, 104, 0.28); }
.path-week { font-family: var(--mono); font-size: calc(11px * var(--ts, 1)); color: var(--gold); padding-top: 3px; }
.path-card h3 { font-family: var(--serif); font-size: calc(19px * var(--ts, 1)); margin-bottom: 3px; }
.path-goal { font-size: calc(11px * var(--ts, 1)); color: var(--ink-soft); margin-bottom: 10px; }
.path-tasks { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.path-tasks li { font-size: calc(10px * var(--ts, 1)); line-height: 1.65; color: var(--ink-soft); padding-left: 12px; position: relative; }
.path-tasks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border: 1px solid var(--gold); }
.path-output { font-size: calc(9px * var(--ts, 1)); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.path-output strong { color: var(--teal); font-weight: 500; }
.path-check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-size: calc(9px * var(--ts, 1));
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.path-check input { appearance: none; width: 13px; height: 13px; border: 1px solid var(--line-strong); margin: 0; position: relative; cursor: pointer; }
.path-check input:checked { background: var(--teal); border-color: var(--teal); }
.path-check input:checked::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: calc(9px * var(--ts, 1)); display: grid; place-items: center; }

/* ---------- glossary ---------- */

.section-glossary { padding-top: 92px; }
.glossary-tools { margin-top: 38px; display: flex; flex-direction: column; gap: 12px; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke-width: 1.8;
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: calc(12px * var(--ts, 1));
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.glossary-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
  transition: border-color 0.25s, transform 0.25s;
}
.glossary-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.gc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gc-term { font-family: var(--serif); font-size: calc(17px * var(--ts, 1)); }
.gc-en { font-family: var(--mono); font-size: calc(7px * var(--ts, 1)); color: var(--muted); text-align: right; }
.gc-def { font-size: calc(11px * var(--ts, 1)); line-height: 1.75; color: var(--ink-soft); margin-top: 6px; }
.gc-tag { margin-top: 10px; }

/* ---------- closing ---------- */

.closing {
  border-top: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(181, 138, 74, 0.12), transparent 60%),
    var(--paper-2);
  padding: 90px 28px;
}
.closing-inner { max-width: var(--max); margin: 0 auto; }
.closing h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); margin-bottom: 34px; }

.principles { border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 54px 250px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.p-no { font-family: var(--mono); font-size: calc(10px * var(--ts, 1)); color: var(--gold); }
.p-title { font-family: var(--serif); font-size: calc(18px * var(--ts, 1)); }
.p-text { font-size: calc(12px * var(--ts, 1)); color: var(--ink-soft); }

.closing-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.footer {
  background: var(--dark);
  color: rgba(247, 241, 228, 0.72);
  padding: 46px 28px 20px;
}
.footer-main {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { background: var(--gold); color: var(--ink); }
.footer-brand strong { display: block; font-family: var(--serif); font-size: calc(16px * var(--ts, 1)); color: var(--cream); }
.footer-brand span { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); letter-spacing: 0.1em; color: rgba(247, 241, 228, 0.4); }
.footer-note { font-size: calc(10px * var(--ts, 1)); line-height: 1.9; color: rgba(247, 241, 228, 0.44); }
.footer-links { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(247, 241, 228, 0.10); font-size: calc(11px * var(--ts, 1)); justify-content: flex-start; align-content: flex-start; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-disclaimer {
  max-width: var(--max);
  margin: 24px auto 0;
  font-size: calc(9px * var(--ts, 1));
  line-height: 1.8;
  color: rgba(247, 241, 228, 0.50);
}
.footer-bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 241, 228, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  letter-spacing: 0.06em;
  color: rgba(247, 241, 228, 0.34);
}

/* ---------- back top ---------- */

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 248, 240, 0.94);
  color: var(--ink);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); border-color: var(--ink); }

/* ---------- search overlay ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 20, 18, 0.72);
  backdrop-filter: blur(8px);
  padding: 9vh 20px 20px;
  overflow-y: auto;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(780px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.search-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--cream); font-family: var(--serif); font-size: calc(15px * var(--ts, 1)); }
.search-top input { flex: 1; border: 0; outline: 0; background: transparent; font-size: calc(16px * var(--ts, 1)); min-width: 0; }
.search-top input::placeholder { color: var(--muted); }
.search-quick { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.search-results { max-height: 56vh; overflow-y: auto; padding: 8px 0; }
.sr-group { padding: 6px 18px 2px; font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); letter-spacing: 0.12em; color: var(--muted); }
.sr-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  cursor: pointer;
  border-left: 2px solid transparent;
}
.sr-item:hover, .sr-item.active { background: var(--paper-3); border-left-color: var(--gold); }
.sr-type { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); color: var(--gold); border: 1px solid var(--line); padding: 2px 4px; text-align: center; }
.sr-title { font-size: calc(13px * var(--ts, 1)); font-family: var(--serif); }
.sr-sub { font-size: calc(10px * var(--ts, 1)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-go { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); color: var(--muted); }
.sr-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: calc(12px * var(--ts, 1)); }
.search-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); color: var(--muted); }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 20, 18, 0.68); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border-top: 4px solid var(--mc, var(--gold));
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6);
}
.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 14px 0 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.92);
  z-index: 3;
  font-size: calc(12px * var(--ts, 1));
}
.modal-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.modal-body { padding: 28px 36px 36px; }

.mb-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); letter-spacing: 0.1em; color: var(--mc); margin-bottom: 16px; }
.mb-kicker span { border: 1px solid var(--mc); padding: 2px 7px; }
.mb-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.mb-en { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); letter-spacing: 0.12em; color: var(--muted); margin-top: 7px; text-transform: uppercase; }
.mb-lead { font-size: calc(16px * var(--ts, 1)); line-height: 1.9; color: var(--ink-soft); margin-top: 20px; max-width: 780px; }

.mb-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.75fr); gap: 38px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.mb-block { margin-bottom: 26px; }
.mb-block h4 { font-family: var(--mono); font-size: calc(9px * var(--ts, 1)); letter-spacing: 0.12em; color: var(--gold); margin-bottom: 10px; }
.mb-block p { font-size: calc(13px * var(--ts, 1)); line-height: 1.95; color: var(--ink-soft); }
.reality-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.reality-list li { position: relative; padding-left: 16px; font-size: calc(13px * var(--ts, 1)); line-height: 1.95; color: var(--ink-soft); }
.reality-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--mc); transform: rotate(45deg); }
.signal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.signal-chips span { border: 1px solid var(--line); padding: 4px 8px; font-size: calc(10px * var(--ts, 1)); color: var(--ink-soft); background: var(--paper-3); }
.pitfall-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pitfall-list li { font-size: calc(12px * var(--ts, 1)); line-height: 1.8; color: var(--red); padding-left: 15px; position: relative; }
.pitfall-list li::before { content: "×"; position: absolute; left: 0; font-family: var(--mono); color: var(--red); }

.mb-side { border-left: 1px solid var(--line); padding-left: 24px; }
.side-block { margin-bottom: 26px; }
.side-block h4 { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.mv-title { font-family: var(--serif); font-size: calc(13px * var(--ts, 1)); line-height: 1.4; }
.mv-meta { font-family: var(--mono); font-size: calc(8px * var(--ts, 1)); color: var(--muted); margin-top: 2px; }
.related-chips { display: flex; flex-direction: column; gap: 5px; }
.related-chip { text-align: left; border: 1px solid var(--line); background: transparent; padding: 6px 8px; font-size: calc(11px * var(--ts, 1)); color: var(--ink-soft); }
.related-chip:hover { border-color: var(--mc); color: var(--ink); }

.mb-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.master-btn { border: 1px solid var(--line-strong); background: transparent; padding: 8px 14px; font-size: calc(11px * var(--ts, 1)); }
.master-btn.on { background: var(--mc); border-color: var(--mc); color: #fff; }
.modal-note { font-size: calc(9px * var(--ts, 1)); color: var(--muted); margin-left: auto; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 400;
  background: var(--ink);
  color: var(--cream);
  font-size: calc(11px * var(--ts, 1));
  padding: 9px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); font-size: calc(12px * var(--ts, 1)); border: 1px dashed var(--line); }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .topbar { gap: 16px; padding: 0 18px; }
  .nav a { padding: 8px 7px; font-size: calc(12px * var(--ts, 1)); }
  .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .ts-label { display: none; }
  .section-head { grid-template-columns: 64px minmax(0, 1fr); }
  .sec-aside { grid-column: 2; max-width: 650px; padding-bottom: 0; }
  .hero-grid { gap: 38px; }
  .funnel-block { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
  .strand-grid { grid-template-columns: repeat(2, 1fr); }
  .strand-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .strand-card:nth-child(2n) { border-right: 0; }
  .strand-card:nth-child(n+3) { padding-top: 20px; }
  .concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foundation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perspective-grid, .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-row { grid-template-columns: 100px 1fr 1fr; }
  .case-read { display: none; }
}

@media (max-width: 900px) {
  :root { --topbar-h: 62px; }
  .nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 16px;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: calc(14px * var(--ts, 1)); }
  .nav a::after { display: none; }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    margin-left: auto;
    border: 1px solid var(--line);
    background: transparent;
    padding: 0 9px;
  }
  .mobile-toggle span { display: block; height: 1px; background: var(--ink); transition: transform 0.25s; }
  .mobile-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .mobile-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .top-actions { margin-left: 0; }
  .top-progress { display: none; }
  .search-hint { display: none; }
  .top-actions > .text-size { display: none; }
  .mobile-text-size {
    display: flex;
    align-self: flex-start;
    margin: 12px 0 4px;
    background: var(--paper-3);
  }

  .hero { min-height: auto; padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 5.4rem); }
  .hero-visual { max-width: 540px; }
  .thesis-strip { grid-template-columns: 1fr; padding: 20px 28px; }
  .thesis { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .thesis:last-child { border-bottom: 0; }
  .question-grid { grid-template-columns: repeat(2, 1fr); }
  .question-card:nth-child(2) { border-right: 0; }
  .question-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .question-card:nth-child(3) { padding-left: 0; }
  .funnel-block { grid-template-columns: 1fr; gap: 30px; }
  .funnel-copy p { max-width: none; }
  .funnel-item { grid-template-columns: 48px 140px minmax(0, 1fr) 20px; }
  .module-intro { grid-template-columns: 1fr; gap: 20px; }
  .map-body { grid-template-columns: 1fr; }
  .map-canvas { overflow-x: auto; }
  .map-canvas svg { min-width: 760px; }
  .map-panel { min-height: auto; }
  .case-arena { grid-template-columns: 1fr; }
  .case-vs { height: 50px; }
  .case-vs::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .case-row { grid-template-columns: 90px 1fr 1fr; gap: 12px; }
  .chain { grid-template-columns: repeat(3, 1fr); gap: 22px 0; }
  .chain-step:nth-child(3n) { border-right: 0; }
  .chain-step:nth-child(3n)::after { display: none; }
  .indicator-grid { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-legend em { margin-left: 0; width: 100%; }
  .vs-item:nth-child(2) { border-right: 0; }
  .vs-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .path-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; grid-row: 2; }
  .footer-links { grid-column: 1 / -1; grid-row: auto; }
  .mb-grid { grid-template-columns: 1fr; gap: 20px; }
  .mb-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
}

@media (max-width: 640px) {
  body { font-size: calc(14px * var(--ts, 1)); }
  .section { padding: 72px 18px; }
  .section-evidence { padding-left: 18px; padding-right: 18px; }
  .section-dark { padding: 66px 18px 72px; }
  .hero { padding: 96px 18px 0; }
  .hero-grid { padding-bottom: 38px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .hero-stats div:nth-child(2) { border-right: 0; margin-right: 0; }
  .hero-stats div:nth-child(n+3) { padding-top: 10px; }
  .hero-lead { font-size: calc(13px * var(--ts, 1)); }
  .hero-marquee { padding: 9px 0; }
  .section-head { grid-template-columns: 1fr; gap: 12px; padding-top: 18px; }
  .sec-no { padding-bottom: 0; }
  .sec-aside { grid-column: 1; }
  .sec-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .question-grid { grid-template-columns: 1fr; }
  .question-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0 !important; }
  .question-card:last-child { border-bottom: 0; }
  .question-card::before { display: none; }
  .funnel-item { grid-template-columns: 40px 1fr 20px; gap: 8px; padding: 16px 0; }
  .f-q { grid-column: 2 / -1; font-size: calc(11px * var(--ts, 1)); }
  .f-desc { display: none; }
  .f-name { font-size: calc(18px * var(--ts, 1)); }
  .strand-grid { grid-template-columns: 1fr; }
  .strand-card { border-right: 0 !important; padding-left: 0 !important; }
  .concept-grid { grid-template-columns: 1fr; }
  .foundation-grid { grid-template-columns: 1fr; }
  .perspective-grid, .focus-grid { grid-template-columns: 1fr; }
  .perspective-card { padding: 16px 16px 14px; }
  .focus-head h3 { font-size: calc(24px * var(--ts, 1)); }
  .foundation-card { padding: 16px 16px 14px; }
  .concept-card { min-height: 0; }
  .module-tabs { margin-top: 30px; }
  .module-tab { padding: 8px 10px 8px 8px; }
  .module-tab .mt-glyph { width: 24px; height: 24px; }
  .case-table { border-top: 0; }
  .case-row.head { display: none; }
  .case-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .case-dim { font-size: calc(12px * var(--ts, 1)); color: var(--gold-soft); }
  .case-a, .case-b { font-size: calc(11px * var(--ts, 1)); }
  .case-read { display: block; border-left: 0; padding-left: 0; font-size: calc(9px * var(--ts, 1)); }
  .chain { grid-template-columns: 1fr; gap: 0; }
  .chain-step { border-right: 0; border-bottom: 1px solid rgba(247, 241, 228, 0.1); padding: 0 0 16px; margin-bottom: 16px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
  .chain-step::after { display: none; }
  .cs-no { margin-bottom: 0; }
  .cs-title { margin-bottom: 2px; }
  .cs-desc { grid-column: 2; }
  .indicator-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .evidence-card { padding: 16px 16px 14px; }
  .ev-title { font-size: calc(20px * var(--ts, 1)); }
  .ev-claim { font-size: calc(11.5px * var(--ts, 1)); }
  .indicator-card { min-height: 148px; padding: 16px 14px 12px; }
  .ind-value { font-size: calc(30px * var(--ts, 1)); }
  .ind-label { font-size: calc(13px * var(--ts, 1)); }
  .timeline { margin-top: 16px; }
  .tl-item { grid-template-columns: 62px 18px 1fr; gap: 8px; }
  .tl-date { font-size: calc(8px * var(--ts, 1)); padding-top: 22px; }
  .tl-card { grid-template-columns: 1fr; gap: 6px; }
  .tl-title { font-size: calc(17px * var(--ts, 1)); }
  .search-field.compact { width: auto; flex: 1; }
  .path-progress { grid-template-columns: 1fr; gap: 12px; }
  .glossary-grid { grid-template-columns: 1fr; }
  .map-hint { display: none; }
  .map-toolbar { align-items: stretch; }
  .principle { grid-template-columns: 34px 1fr; gap: 8px; }
  .p-text { grid-column: 2; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; }
  .footer-note { grid-column: 1; grid-row: auto; }
  .footer-links { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .search-overlay { padding-top: 5vh; }
  .modal { padding: 10px; }
  .modal-panel { max-height: 94vh; }
  .modal-body { padding: 22px 18px 28px; }
  .mb-lead { font-size: calc(14px * var(--ts, 1)); }
  .mb-title { font-size: 2rem; }
  .mb-actions { align-items: flex-start; }
  .modal-note { margin-left: 0; }
  .back-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}






/* ---------- advanced dossiers ---------- */

.section-advanced { padding-top: 110px; }
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}
.adv-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--ac);
  border-radius: 16px;
  background: var(--paper-3);
  overflow: hidden;
}
.adv-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 15px;
}
.adv-card summary::-webkit-details-marker { display: none; }
.adv-no {
  font-family: var(--mono);
  font-size: calc(9px * var(--ts, 1));
  color: var(--ac);
  padding-top: 3px;
}
.adv-card h3 {
  font-family: var(--display);
  font-size: calc(17px * var(--ts, 1));
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.adv-card summary p {
  margin-top: 3px;
  font-size: calc(10px * var(--ts, 1));
  line-height: 1.6;
  color: var(--muted);
}
.adv-card summary i {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  color: var(--gold);
  font-size: calc(14px * var(--ts, 1));
}
.adv-card[open] summary i { font-size: 0; }
.adv-card[open] summary i::after { content: "−"; font-size: calc(14px * var(--ts, 1)); }
.adv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.adv-block:first-child { grid-column: 1 / -1; }
.adv-block b {
  display: block;
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 4px;
}
.adv-block p {
  font-size: calc(9.5px * var(--ts, 1));
  line-height: 1.75;
  color: var(--ink-soft);
}
.adv-reading {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: calc(9px * var(--ts, 1));
  line-height: 1.7;
  color: var(--muted);
}
.adv-reading b { color: var(--gold); font-family: var(--mono); font-weight: 500; margin-right: 5px; }
.toolbox {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.toolbox-head h3 {
  font-family: var(--display);
  font-size: calc(22px * var(--ts, 1));
  color: var(--ink);
  letter-spacing: -0.02em;
}
.toolbox-head p:not(.mini-label) {
  margin-top: 3px;
  font-size: calc(10px * var(--ts, 1));
  color: var(--muted);
}
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.toolbox-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-3);
}
.toolbox-card strong {
  display: block;
  font-family: var(--display);
  font-size: calc(11px * var(--ts, 1));
  color: var(--ink);
}
.toolbox-card > span {
  display: block;
  margin-top: 3px;
  font-size: calc(8.5px * var(--ts, 1));
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .advanced-grid { grid-template-columns: 1fr; }
  .toolbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .adv-body { grid-template-columns: 1fr; }
  .adv-block:first-child, .adv-reading { grid-column: auto; }
  .toolbox-grid { grid-template-columns: 1fr; }
}

/* metric keyword strip: shared by light and dark */
.metric-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  font-style: normal;
  font-family: var(--mono);
  font-size: calc(8px * var(--ts, 1));
  color: var(--muted);
}
.metric-keywords span {
  display: inline-block;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
}
.metric-keywords span + span::before {
  content: "·";
  margin: 0 7px;
  color: var(--line-strong);
}

