@font-face {
  font-family: "NanumSquare";
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareR.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareR.woff") format("woff");
}
@font-face {
  font-family: "NanumSquare";
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareB.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareB.woff") format("woff");
}
@font-face {
  font-family: "NanumSquare";
  font-weight: 800;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareEB.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareEB.woff") format("woff");
}

:root {
  --navy: #180181;
  --indigo: #430ee5;
  --violet: #b408f6;
  --cyan: #2fe8f8;
  --bg: #f4f4f4;
  --bg-elev: #ffffff;
  --bg-sunk: #ececec;
  --bg-hover: #efefef;
  --text: #1c1c1c;
  --text-2: #484848;
  --text-3: #7a7a7a;
  --line: #e1e1e1;
  --line-strong: #cacaca;
  --heading: var(--navy);
  --brand-ink: var(--navy);
  --accent: var(--indigo);
  --accent-ink: var(--indigo);
  --accent-soft: color-mix(in srgb, var(--indigo) 9%, #ffffff);
  --violet-soft: color-mix(in srgb, var(--violet) 10%, #ffffff);
  --firm: var(--indigo);
  --tentative: var(--violet);
  --chip-due-text: var(--navy);
  --ink-black: #26272b;
  --ink-red: #d6336c;
  --ink-blue: #2f46c0;
  --board: #fbfbf9;
  --board-dot: #dcdcd6;
  --sky-1: color-mix(in srgb, var(--cyan) 26%, #ffffff);
  --sky-2: color-mix(in srgb, var(--cyan) 10%, #ffffff);
  --earth-1: color-mix(in srgb, var(--navy) 10%, #ffffff);
  --earth-2: color-mix(in srgb, var(--navy) 18%, #ffffff);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 30px -14px rgba(24, 1, 129, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "NanumSquare", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-logo: "Noto Sans KR", "NanumSquare", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-hand: "Gaegu", "Nanum Pen Script", var(--font);
  --track-body: -0.035em;
  --track-bold: -0.02em;
  --track-display: -0.097em;
  --track-logo: -0.085em;
  --topbar-h: 58px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #161616;
  --bg-elev: #212121;
  --bg-sunk: #1a1a1a;
  --bg-hover: #2a2a2a;
  --text: #ececec;
  --text-2: #bcbcbc;
  --text-3: #8c8c8c;
  --line: #2f2f2f;
  --line-strong: #404040;
  --heading: #ffffff;
  --brand-ink: #ffffff;
  --accent: var(--cyan);
  --accent-ink: var(--cyan);
  --accent-soft: color-mix(in srgb, var(--indigo) 28%, #212121);
  --violet-soft: color-mix(in srgb, var(--violet) 24%, #212121);
  --chip-due-text: #ffffff;
  --ink-black: #eef0f3;
  --ink-red: #ff8fb1;
  --ink-blue: #9db0ff;
  --board: #1b1d1f;
  --board-dot: #2e3134;
  --sky-1: color-mix(in srgb, var(--cyan) 16%, #212121);
  --sky-2: color-mix(in srgb, var(--cyan) 6%, #212121);
  --earth-1: color-mix(in srgb, var(--indigo) 20%, #212121);
  --earth-2: color-mix(in srgb, var(--navy) 45%, #212121);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616;
    --bg-elev: #212121;
    --bg-sunk: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text: #ececec;
    --text-2: #bcbcbc;
    --text-3: #8c8c8c;
    --line: #2f2f2f;
    --line-strong: #404040;
    --heading: #ffffff;
    --brand-ink: #ffffff;
    --accent: var(--cyan);
    --accent-ink: var(--cyan);
    --accent-soft: color-mix(in srgb, var(--indigo) 28%, #212121);
    --violet-soft: color-mix(in srgb, var(--violet) 24%, #212121);
    --chip-due-text: #ffffff;
    --ink-black: #eef0f3;
    --ink-red: #ff8fb1;
    --ink-blue: #9db0ff;
    --board: #1b1d1f;
    --board-dot: #2e3134;
    --sky-1: color-mix(in srgb, var(--cyan) 16%, #212121);
    --sky-2: color-mix(in srgb, var(--cyan) 6%, #212121);
    --earth-1: color-mix(in srgb, var(--indigo) 20%, #212121);
    --earth-2: color-mix(in srgb, var(--navy) 45%, #212121);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: var(--track-body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

::selection { background: color-mix(in srgb, var(--cyan) 45%, #ffffff); color: var(--navy); }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong, b { font-weight: 700; letter-spacing: var(--track-bold); color: var(--text); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--heading); }
h1, h2 { font-weight: 800; letter-spacing: var(--track-display); }
h3, h4 { font-weight: 700; letter-spacing: var(--track-bold); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--text-3); }
[hidden] { display: none !important; }

.typelogo {
  font-family: var(--font-logo);
  font-weight: 900;
  letter-spacing: var(--track-logo);
  color: var(--brand-ink);
  white-space: nowrap;
}

.horizon { display: grid; gap: 3px; width: 64px; }
.horizon i { display: block; height: 3px; border-radius: 2px; }
.horizon i:nth-child(1) { background: var(--navy); }
.horizon i:nth-child(2) { background: var(--indigo); }
.horizon i:nth-child(3) { background: var(--violet); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-symbol { height: 24px; width: auto; display: block; }
.brand .typelogo { font-size: 16px; line-height: 1; }
.brand-sep { width: 1px; height: 16px; background: var(--line-strong); }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: var(--track-bold); color: var(--text-2); }
.crumb { color: var(--text-3); font-weight: 700; font-size: 14px; margin-left: 4px; white-space: nowrap; letter-spacing: var(--track-bold); }
.spacer { flex: 1; }

.tbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: var(--track-bold);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tbtn:hover { background: var(--bg-hover); color: var(--text); }
.tbtn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tbtn.icon-only { width: 36px; padding: 0; justify-content: center; }

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.toc { display: none; }

.content { min-width: 0; max-width: 840px; width: 100%; margin: 0 auto; }

@media (min-width: 1120px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); gap: 48px; }
  .content { margin: 0; }
  .toc {
    display: block;
    position: sticky;
    top: calc(var(--topbar-h) + 28px);
    align-self: start;
    max-height: calc(100vh - var(--topbar-h) - 56px);
    overflow: auto;
    padding-top: 44px;
  }
  .toc-title { font-size: 12px; font-weight: 800; color: var(--text-3); letter-spacing: 0.06em; margin-bottom: 10px; }
  .toc ol { border-left: 2px solid var(--line); }
  .toc a {
    display: block;
    padding: 5px 0 5px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: var(--track-bold);
    text-decoration: none;
    line-height: 1.4;
  }
  .toc a:hover { color: var(--text); }
  .toc a[aria-current="true"] { color: var(--accent-ink); border-left-color: var(--accent); }
}

.hero { padding: 40px 0 6px; }
.hero > .horizon { margin-bottom: 18px; }

.eyebrow { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); font-size: 14px; font-weight: 700; letter-spacing: var(--track-bold); }
.eb-item { display: inline-flex; align-items: center; gap: 6px; }
.eb-item .ic { width: 16px; height: 16px; color: var(--text-3); }
.eb-item .muted { margin-left: 4px; font-size: 12.5px; }

.hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 14px 0 14px; }
.lead { font-size: 18px; color: var(--text-2); line-height: 1.7; max-width: 720px; }

.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.people { color: var(--text-2); font-weight: 700; font-size: 15px; letter-spacing: var(--track-bold); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: var(--track-bold);
  line-height: 1.6;
  white-space: nowrap;
}
.chip .ic { width: 14px; height: 14px; }
.chip-strong { background: var(--navy); color: #ffffff; border-color: var(--navy); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: var(--track-bold); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }

.callout {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--indigo) 22%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.callout-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
.callout-label .ic { width: 15px; height: 15px; }
.callout p { font-weight: 700; letter-spacing: var(--track-bold); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 22px; }
.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.stat:hover { transform: translateY(-1px); border-color: var(--line-strong); color: var(--text); }
.stat-num { font-size: 27px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--heading); }
.stat-label { color: var(--text-3); font-weight: 700; font-size: 14px; }

.offline-note {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--violet-soft);
  color: var(--text-2);
  font-size: 14px;
}

.section { margin-top: 64px; }
.section > h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 18px; }
.sec-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0.02em;
}
.sec-hint { color: var(--text-3); font-size: 13.5px; margin: -6px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.srcs { display: none; }
.show-src .srcs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.src {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  line-height: 1.6;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  cursor: help;
  white-space: nowrap;
}

.summary-list { display: grid; gap: 10px; }
.summary-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.summary-list .idx {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 1px;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.7;
  color: #ffffff;
}
.b-firm, .is-firm .badge { background: var(--firm); }
.b-tentative, .is-tentative .badge { background: var(--tentative); }

.decision-list { display: grid; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.decision { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 18px; align-items: baseline; }
.decision + .decision { border-top: 1px solid var(--line); }

.action-list { display: grid; gap: 10px; }
.action {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid var(--line-strong);
  display: inline-grid;
  place-items: center;
  margin-top: 1px;
  color: transparent;
}
.check .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.is-done .check { background: var(--indigo); border-color: var(--indigo); color: #ffffff; }
.is-done .action-text { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.action-text { font-weight: 700; letter-spacing: var(--track-bold); }
.action-note { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
.action-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-owner { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
:root[data-theme="dark"] .chip-owner { color: #ffffff; }
.chip-due { background: var(--violet-soft); color: var(--chip-due-text); border-color: transparent; }
.chip-due .ic { color: var(--violet); }
.chip-done { background: var(--indigo); color: #ffffff; border-color: transparent; }

.tone-cyan { --tone: var(--cyan); --tone-text: var(--navy); --tone-soft: color-mix(in srgb, var(--cyan) 16%, #ffffff); --tone-grad: linear-gradient(135deg, var(--cyan), var(--indigo)); }
.tone-violet { --tone: var(--violet); --tone-text: var(--violet); --tone-soft: color-mix(in srgb, var(--violet) 9%, #ffffff); --tone-grad: linear-gradient(135deg, var(--indigo), var(--violet)); }
.tone-indigo { --tone: var(--indigo); --tone-text: var(--indigo); --tone-soft: color-mix(in srgb, var(--indigo) 9%, #ffffff); --tone-grad: linear-gradient(135deg, var(--navy), var(--indigo)); }
.tone-navy { --tone: var(--navy); --tone-text: var(--navy); --tone-soft: color-mix(in srgb, var(--navy) 8%, #ffffff); --tone-grad: linear-gradient(135deg, var(--navy), var(--indigo)); }
:root[data-theme="dark"] .tone-cyan { --tone-text: var(--cyan); --tone-soft: color-mix(in srgb, var(--cyan) 12%, #212121); }
:root[data-theme="dark"] .tone-violet { --tone-text: #ffffff; --tone-soft: color-mix(in srgb, var(--violet) 22%, #212121); }
:root[data-theme="dark"] .tone-indigo { --tone-text: #ffffff; --tone-soft: color-mix(in srgb, var(--indigo) 28%, #212121); }
:root[data-theme="dark"] .tone-navy { --tone-text: #ffffff; --tone-soft: color-mix(in srgb, var(--indigo) 22%, #212121); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-cyan { --tone-text: var(--cyan); --tone-soft: color-mix(in srgb, var(--cyan) 12%, #212121); }
  :root:not([data-theme="light"]) .tone-violet { --tone-text: #ffffff; --tone-soft: color-mix(in srgb, var(--violet) 22%, #212121); }
  :root:not([data-theme="light"]) .tone-indigo { --tone-text: #ffffff; --tone-soft: color-mix(in srgb, var(--indigo) 28%, #212121); }
  :root:not([data-theme="light"]) .tone-navy { --tone-text: #ffffff; --tone-soft: color-mix(in srgb, var(--indigo) 22%, #212121); }
  :root:not([data-theme="light"]) .chip-owner { color: #ffffff; }
}

.topic > h2 span:last-child { min-width: 0; }
.topic-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tone-grad);
  color: #ffffff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0;
  flex: none;
  box-shadow: 0 6px 16px -8px var(--tone);
}
.topic-card { position: relative; overflow: hidden; padding: 26px 24px 24px; }
.topic-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone-grad); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--tone-text);
  background: var(--tone-soft);
  padding: 2px 10px;
  border-radius: 999px;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.topic-lead { font-size: 17px; margin-top: 12px; color: var(--text); line-height: 1.75; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 20px 0 0; }
.fact { background: var(--tone-soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.fact dt { font-size: 12px; font-weight: 800; color: var(--tone-text); }
.fact dd { margin: 2px 0 0; font-weight: 700; letter-spacing: var(--track-bold); font-size: 14.5px; line-height: 1.55; }

.group { margin-top: 26px; }
.group h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.group h3::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--tone-grad); }
.bullets li { position: relative; padding: 5px 0 5px 18px; color: var(--text-2); }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.bullets li strong { color: var(--text); }

.diagram { margin: 22px 0 0; }
.diagram-title { font-size: 13px; font-weight: 800; color: var(--text-3); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.diagram-caption { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.board-panel {
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: var(--board);
  background-image: radial-gradient(circle at 1px 1px, var(--board-dot) 1px, transparent 0);
  background-size: 16px 16px;
  font-family: var(--font-hand);
  letter-spacing: 0;
}
.board-panel .diagram-title, .board-panel .diagram-caption { font-family: var(--font); letter-spacing: var(--track-body); }
.ink-black { color: var(--ink-black); }
.ink-red { color: var(--ink-red); }
.ink-blue { color: var(--ink-blue); }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.flow-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px 7px;
  border: 2px solid currentColor;
  border-radius: 16px 12px 15px 11px / 12px 15px 11px 16px;
  background: var(--bg-elev);
  line-height: 1.25;
  text-align: center;
  min-height: 52px;
}
.flow-label { font-size: 20px; font-weight: 700; }
.flow-note { font-size: 15.5px; }
.flow-arrow { font-size: 22px; color: var(--text-3); font-family: var(--font); padding: 0 1px; }
.flow-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-family: var(--font); letter-spacing: var(--track-body); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--bg-elev);
  border: 1px dashed var(--line-strong);
  color: var(--text-2);
}
.pill b { font-weight: 800; color: var(--text); margin-right: 2px; }
.pill small { color: var(--text-3); font-size: 12px; }
.pill .ic { width: 15px; height: 15px; color: var(--violet); }
.pill-goal { border-style: solid; border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.board-notes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 19px; font-weight: 700; }
.board-notes li::before { content: "＊ "; color: var(--text-3); }

.stars { color: var(--ink-red); letter-spacing: 1px; font-size: 13px; line-height: 1; font-family: var(--font); }
.flow-node .stars { font-size: 12px; margin-bottom: 2px; }

.formula-head { font-size: 19px; font-weight: 700; margin-bottom: 10px; display: inline-block; padding: 1px 10px; border: 2px dashed currentColor; border-radius: 10px; }
.formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.formula-term {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 12px;
  border-radius: 14px 11px 15px 12px / 11px 15px 12px 14px;
  border: 2px solid var(--line-strong);
  background: var(--bg-elev);
  line-height: 1.3;
}
.formula-top { min-height: 15px; }
.formula-label { font-size: 22px; font-weight: 700; }
.formula-sub { font-size: 16.5px; }
.formula-extra { font-size: 16.5px; }
.formula-add { font-size: 17px; font-weight: 700; }
.formula-plus { align-self: center; font-size: 26px; font-weight: 700; color: var(--text-3); font-family: var(--font); }

.layers { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.band { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; align-items: stretch; }
.band-sky { background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.band-earth { background: linear-gradient(180deg, var(--earth-1), var(--earth-2)); border-top: 3px solid var(--navy); }
.band-name { font-weight: 800; font-size: 14px; color: var(--heading); display: flex; align-items: center; justify-content: center; text-align: center; border-right: 1px dashed color-mix(in srgb, var(--text-3) 50%, transparent); padding-right: 10px; }
.band-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.band-item {
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.band-item strong { font-size: 15px; }
.band-detail { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.band-ref { font-style: normal; font-size: 12px; font-weight: 800; color: var(--tone-text); }

.qa-list { display: grid; gap: 12px; }
.qa {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}
.qa p { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.qa .q { font-weight: 700; letter-spacing: var(--track-bold); }
.qa .a { color: var(--text-2); }
.mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  transform: translateY(2px);
}
.q .mark { background: var(--navy); color: #ffffff; }
.a .mark { background: var(--bg-sunk); color: var(--text-2); border: 1px solid var(--line); }
:root[data-theme="dark"] .q .mark { background: var(--indigo); }

.open-questions { display: grid; gap: 10px; }
.open-questions li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-elev) 60%, transparent);
}
.qicon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 800;
}
:root[data-theme="dark"] .qicon { background: var(--violet); color: #ffffff; }
.oq { font-weight: 700; letter-spacing: var(--track-bold); }
.oq-note { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }

.ref-group + .ref-group { margin-top: 28px; }
.ref-group h3 { font-size: 16px; margin-bottom: 12px; }
.ref-group .sec-hint { margin-top: -6px; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ref-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.ref-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ref-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.platform { font-size: 11.5px; font-weight: 800; letter-spacing: 0; padding: 1px 8px; border-radius: 6px; background: var(--bg-sunk); color: var(--text-2); border: 1px solid var(--line); }
.p-steam { background: #1c1c1c; color: #ffffff; border-color: #1c1c1c; }
.ref-card h4 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.04em; }
.ref-store { font-size: 12.5px; color: var(--text-3); font-weight: 700; }
.ref-note { font-size: 13.5px; color: var(--text-2); line-height: 1.6; margin-top: 4px; }
.ref-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  color: var(--text-2);
  text-decoration: none;
}
.ref-link:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.ref-link .ic { width: 13px; height: 13px; }
.ref-card.is-link { text-decoration: none; color: var(--text); }
.ref-card.is-link:hover { color: var(--text); border-color: color-mix(in srgb, var(--indigo) 40%, transparent); }
.ref-open { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
.ref-open .ic { width: 13px; height: 13px; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.board-fig { margin: 0; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--board); cursor: zoom-in; }
.zoom img { display: block; width: 100%; height: 300px; object-fit: contain; }
.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(24, 1, 129, 0.82);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.15s;
}
.zoom-hint .ic { width: 14px; height: 14px; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
.board-fig figcaption { padding: 12px 16px 14px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.fig-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fig-caption { font-size: 14px; color: var(--text-2); }
.fig-actions { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13.5px; font-weight: 700; }

.timeline { display: grid; gap: 24px; }
.tl-rec h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; margin-bottom: 10px; }
.tl-rec h3 .ic { color: var(--accent); }
.tl-rec h3 .muted { font-size: 13px; font-weight: 700; }
.tl { position: relative; padding-left: 4px; }
.tl::before { content: ""; position: absolute; left: 60px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--navy), var(--indigo), var(--violet)); border-radius: 2px; opacity: 0.55; }
.tl li { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 0 22px; padding: 6px 0; }
.tl li::after { content: ""; position: absolute; left: 53px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14.5px; letter-spacing: 0; grid-row: span 2; color: var(--heading); }
.tl-off { grid-column: 2; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1.3; letter-spacing: 0; }
.tl li p { grid-column: 2; color: var(--text-2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.pager-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
}
.pager-link small { display: block; color: var(--text-3); font-weight: 700; font-size: 12px; }
.pager-link.to-right { justify-content: flex-end; text-align: right; }
.pager-link:hover { border-color: var(--line-strong); color: var(--text); }

.foot { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; display: grid; gap: 6px; }
.foot .horizon { width: 48px; margin-bottom: 6px; }
.foot .typelogo { font-size: 13px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 6, 30, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; background: #ffffff; }
.lightbox figcaption { color: #ececec; font-weight: 700; font-size: 14px; }
.lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--navy);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.index-shell { max-width: 880px; margin: 0 auto; padding: 0 16px 96px; }
.index-hero { padding: 32px 0 10px; }
.brand-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 36px 40px 44px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy) 35%, var(--indigo) 100%);
  color: #ffffff;
  box-shadow: 0 24px 50px -28px rgba(24, 1, 129, 0.75);
}
.banner-logo { width: 220px; height: auto; flex: none; }
.banner-text { min-width: 0; }
.brand-banner .eyebrow-text { color: var(--cyan); font-weight: 800; font-size: 14px; letter-spacing: var(--track-bold); }
.brand-banner h1 { color: #ffffff; font-size: clamp(38px, 6vw, 56px); margin: 6px 0 10px; }
.brand-banner .lead { color: rgba(255, 255, 255, 0.86); font-size: 16.5px; }
.brand-banner .horizon { position: absolute; left: 40px; right: 40px; bottom: 18px; width: auto; }
.brand-banner .horizon i:nth-child(1) { background: rgba(255, 255, 255, 0.85); }
.brand-banner .horizon i:nth-child(2) { background: rgba(255, 255, 255, 0.5); }
.brand-banner .horizon i:nth-child(3) { background: rgba(255, 255, 255, 0.25); }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 16px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text-3);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; letter-spacing: var(--track-body); outline: none; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.tag-btn span { color: var(--text-3); font-size: 12px; }
.tag-btn[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #ffffff; }
.tag-btn[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.8); }

.open-actions {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.open-actions summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.open-actions summary::-webkit-details-marker { display: none; }
.open-actions[open] summary { margin-bottom: 8px; }
.open-actions h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.05em; }
.oa-toggle { width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform 0.15s; }
.open-actions[open] .oa-toggle { transform: rotate(-135deg); margin-bottom: -4px; }
.count { font-size: 12px; font-weight: 800; letter-spacing: 0; color: #ffffff; background: var(--indigo); border-radius: 999px; padding: 0 8px; }
.open-actions li + li { border-top: 1px solid var(--line); }
.open-actions a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; text-decoration: none; color: var(--text); }
.open-actions a:hover .oa-text { color: var(--accent-ink); }
.oa-date { color: var(--text-3); font-weight: 800; font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.oa-text { font-weight: 700; letter-spacing: var(--track-bold); font-size: 14.5px; }
.oa-meta { color: var(--text-3); font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.meeting-list { display: grid; gap: 14px; margin-top: 28px; }
.meeting-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 24px;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.meeting-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--indigo) 35%, transparent); color: var(--text); }
.mc-date { display: grid; justify-items: center; padding: 9px 0; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #ffffff; line-height: 1.15; letter-spacing: 0; }
.mc-month { font-size: 11.5px; font-weight: 700; opacity: 0.85; }
.mc-day { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.mc-wd { font-size: 11.5px; font-weight: 700; opacity: 0.85; }
.mc-body h2 { font-size: 20px; }
.mc-body p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; line-height: 1.6; }
.mc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mc-arrow { color: var(--text-3); }
.empty-state { margin-top: 28px; color: var(--text-3); text-align: center; padding: 28px 0; }

.item-link { margin-left: 6px; color: var(--text-3); text-decoration: none; font-weight: 800; font-size: 13px; opacity: 0; transition: opacity 0.15s; }
.decision:hover .item-link, .action:hover .item-link, .open-questions li:hover .item-link, .item-link:focus-visible { opacity: 1; }
.decision:target, .action:target, .open-questions li:target { box-shadow: inset 4px 0 0 var(--accent); }
.plan-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.section > .plan-refs { margin: -6px 0 14px; }
.plan-ref { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; background: var(--violet-soft); color: var(--text); font-size: 12.5px; font-weight: 700; letter-spacing: var(--track-bold); text-decoration: none; line-height: 1.6; }
.plan-ref b { font-size: 11px; font-weight: 800; color: #ffffff; background: var(--violet); border-radius: 999px; padding: 0 7px; letter-spacing: 0; }
.plan-ref:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--violet); }
.plan-cited { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.plan-cited-label { font-size: 12.5px; font-weight: 800; color: var(--text-3); margin-right: 2px; }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 26px; }
  .lead { font-size: 16.5px; }
  .section { margin-top: 52px; }
  .section > h2 { font-size: 21px; }
  .topic-card { padding: 22px 16px 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbtn span { display: none; }
  .tbtn { width: 36px; padding: 0; justify-content: center; }
  .hide-sm { display: none; }
  .crumb { display: none; }
  .brand-sep, .brand-name { display: none; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); align-self: center; line-height: 1; }
  .formula { flex-direction: column; }
  .formula-plus { align-self: center; line-height: 1; }
  .band { grid-template-columns: 1fr; }
  .band-name { border-right: 0; border-bottom: 1px dashed color-mix(in srgb, var(--text-3) 50%, transparent); padding: 0 0 6px; justify-content: flex-start; }
  .brand-banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 22px 40px; }
  .banner-logo { width: 150px; }
  .brand-banner .horizon { left: 22px; right: 22px; }
  .meeting-card { grid-template-columns: 62px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .mc-arrow { display: none; }
  .mc-day { font-size: 24px; }
  .open-actions a { grid-template-columns: 44px minmax(0, 1fr); }
  .oa-meta { grid-column: 2; }
  .pager { grid-template-columns: 1fr; }
  .zoom img { height: 240px; }
  .decision { grid-template-columns: 1fr; gap: 4px; }
  .decision .badge { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  :root { --bg: #ffffff; --bg-elev: #ffffff; --shadow: none; --shadow-sm: none; }
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  .no-print, .topbar, .toc, .lightbox, .toast, .zoom-hint, .fig-actions { display: none !important; }
  .shell { display: block; padding: 0; }
  .content { max-width: none; }
  .section { margin-top: 28px; break-inside: auto; }
  .card, .summary-list li, .action, .qa, .ref-card, .board-fig, .decision-list, .open-questions li { box-shadow: none; break-inside: avoid; }
  .zoom img { height: auto; max-height: 360px; }
  a { color: inherit; text-decoration: none; }
}
