@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);
  --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;
  --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);
  --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);
    --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, h5, h6 { margin: 0; line-height: 1.3; color: var(--heading); }
h1, h2 { font-weight: 800; letter-spacing: var(--track-display); }
h3, h4, h5, h6 { 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); min-width: 0; flex: none; }
.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); white-space: nowrap; }
.crumb { color: var(--text-3); font-weight: 700; font-size: 14px; margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; 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;
  flex: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tbtn:hover { background: var(--bg-hover); color: var(--text); }
.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: 820px; width: 100%; margin: 0 auto; }

@media (min-width: 1120px) {
  .shell { grid-template-columns: 220px 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 .toc-l3 a { padding-left: 26px; font-size: 13px; font-weight: 400; }
  .toc a:hover { color: var(--text); }
  .toc a[aria-current="true"] { color: var(--accent-ink); border-left-color: var(--accent); }
}

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

.hero { padding: 40px 0 8px; }
.hero > .horizon { margin-bottom: 18px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; 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); }
.hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 14px 0 14px; }
.lead { font-size: 18px; color: var(--text-2); line-height: 1.7; max-width: 720px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--st-text, var(--text-2));
  background: var(--st-soft, var(--bg-sunk));
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-dot, var(--text-3)); }
.st-idea { --st-dot: var(--cyan); --st-soft: color-mix(in srgb, var(--cyan) 16%, var(--bg-elev)); --st-text: var(--navy); }
.st-draft { --st-dot: var(--violet); --st-soft: var(--violet-soft); --st-text: var(--violet); }
.st-review { --st-dot: var(--indigo); --st-soft: var(--accent-soft); --st-text: var(--indigo); }
.st-final { --st-dot: #ffffff; --st-soft: var(--navy); --st-text: #ffffff; }
.st-hold { --st-dot: var(--text-3); --st-soft: var(--bg-sunk); --st-text: var(--text-3); }
:root[data-theme="dark"] .st-idea { --st-text: var(--cyan); }
:root[data-theme="dark"] .st-draft, :root[data-theme="dark"] .st-review { --st-text: #ffffff; }
:root[data-theme="dark"] .st-final { --st-soft: var(--indigo); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-idea { --st-text: var(--cyan); }
  :root:not([data-theme="light"]) .st-draft, :root:not([data-theme="light"]) .st-review { --st-text: #ffffff; }
  :root:not([data-theme="light"]) .st-final { --st-soft: var(--indigo); }
}
.ver { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 800; letter-spacing: 0; padding: 1px 9px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-2); font-variant-numeric: tabular-nums; line-height: 1.6; white-space: nowrap; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 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; }

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

.latest {
  margin-top: 22px;
  display: grid;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--indigo) 22%, transparent);
  overflow: hidden;
}
.latest-main { display: grid; gap: 2px; padding: 14px 18px; color: var(--text); text-decoration: none; }
.latest-main:hover { color: var(--text); background: color-mix(in srgb, var(--indigo) 6%, transparent); }
.latest-marked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 18px 12px; border-top: 1px solid color-mix(in srgb, var(--indigo) 18%, transparent); font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
.chg-link { font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--text); text-decoration: none; white-space: nowrap; }
.chg-link:hover { color: var(--text); border-color: var(--violet); }
.chg { display: inline-block; margin-left: 10px; vertical-align: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1.7; padding: 0 9px; border-radius: 999px; color: #ffffff; background: var(--violet); white-space: nowrap; }
.chg-new { background: var(--indigo); }
.toc-chg { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--violet); vertical-align: 2px; }
.latest-head { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); }
.latest-head .ic { width: 15px; height: 15px; }
.latest-text { font-weight: 700; letter-spacing: var(--track-bold); }

.prose { margin-top: 30px; font-size: 16.5px; }
.prose > * + * { margin-top: 16px; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { position: relative; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.prose h1 { font-size: 30px; margin-top: 56px; }
.prose h2 { font-size: 25px; margin-top: 56px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 19px; margin-top: 36px; }
.prose h4 { font-size: 16.5px; margin-top: 28px; }
.prose h5, .prose h6 { font-size: 15px; margin-top: 24px; color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 14px; }
.hlink { margin-left: 8px; color: var(--text-3); text-decoration: none; font-weight: 700; opacity: 0; transition: opacity 0.15s; }
.prose h1:hover .hlink, .prose h2:hover .hlink, .prose h3:hover .hlink, .prose h4:hover .hlink, .hlink:focus-visible { opacity: 1; }
.prose p { line-height: 1.8; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ul ul { list-style: circle; }
.prose ol { list-style: decimal; }
.prose li { margin: 4px 0; padding-left: 2px; }
.prose li::marker { color: var(--text-3); }
.prose li > ul, .prose li > ol { margin-top: 4px; }
.prose li > p + p { margin-top: 8px; }
.prose ul.tasks { list-style: none; padding-left: 2px; }
.task { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.task .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-strong); display: inline-grid; place-items: center; margin-top: 4px; color: transparent; }
.task .box .ic { width: 13px; height: 13px; stroke-width: 2.8; }
.task.is-done .box { background: var(--indigo); border-color: var(--indigo); color: #ffffff; }
.task.is-done > .task-body { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 36px 0; }
.prose blockquote { margin: 16px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-strong); color: var(--text-2); }
.prose blockquote > * + * { margin-top: 10px; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.88em; letter-spacing: 0; padding: 1px 6px; border-radius: 6px; background: var(--bg-sunk); border: 1px solid var(--line); }
.prose pre.code { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-sunk); border: 1px solid var(--line); overflow-x: auto; line-height: 1.55; }
.prose pre.code code { padding: 0; border: 0; background: none; font-size: 13.5px; }
.prose mark { background: color-mix(in srgb, var(--cyan) 38%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.prose del { color: var(--text-3); }
.prose sup:not(.fn) { font-size: 11px; font-weight: 700; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.prose .tag { font-size: 0.85em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; font-weight: 800; color: var(--text-3); background: var(--bg-sunk); letter-spacing: var(--track-bold); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; letter-spacing: var(--track-bold); color: var(--heading); }
.prose .al-center { text-align: center; }
.prose .al-right { text-align: right; }

.co { margin: 18px 0 0; border-radius: var(--radius-sm); border: 1px solid var(--co-line); background: var(--co-soft); overflow: hidden; }
.co-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 800; color: var(--co-ink); letter-spacing: var(--track-bold); }
.co-icon { display: inline-grid; place-items: center; }
.co-icon .ic { width: 19px; height: 19px; }
.co-title { min-width: 0; }
.co-body { padding: 0 16px 14px 43px; color: var(--text); }
.co-body > * + * { margin-top: 10px; }
.co-body ul, .co-body ol { padding-left: 20px; }
.co-body .table-wrap { box-shadow: none; }
summary.co-head { cursor: pointer; list-style: none; }
summary.co-head::-webkit-details-marker { display: none; }
.co-fold { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; opacity: 0.7; flex: none; }
details.co[open] .co-fold { transform: rotate(45deg); }
.co-note { --co-ink: var(--indigo); --co-soft: var(--accent-soft); --co-line: color-mix(in srgb, var(--indigo) 22%, transparent); }
.co-tip { --co-ink: var(--navy); --co-soft: color-mix(in srgb, var(--cyan) 14%, var(--bg-elev)); --co-line: color-mix(in srgb, var(--cyan) 55%, transparent); }
.co-ask { --co-ink: var(--text-2); --co-soft: var(--bg-elev); --co-line: var(--line-strong); }
.co-warn { --co-ink: var(--violet); --co-soft: var(--violet-soft); --co-line: color-mix(in srgb, var(--violet) 35%, transparent); }
:root[data-theme="dark"] .co-note, :root[data-theme="dark"] .co-tip { --co-ink: var(--cyan); }
:root[data-theme="dark"] .co-warn { --co-ink: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .co-note, :root:not([data-theme="light"]) .co-tip { --co-ink: var(--cyan); }
  :root:not([data-theme="light"]) .co-warn { --co-ink: #ffffff; }
}

.fig { margin: 20px 0 0; }
.fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--text-3); line-height: 1.6; }
.zoom { position: relative; display: inline-block; max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev); cursor: zoom-in; overflow: hidden; vertical-align: top; }
.zoom img { display: block; max-width: 100%; height: auto; }
.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; }

.mermaid-box { margin: 20px 0 0; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow-sm); overflow-x: auto; }
pre.mermaid { margin: 0; text-align: center; font-family: var(--font); color: var(--text-3); white-space: pre-wrap; }
pre.mermaid:not([data-processed]) { font-size: 12.5px; text-align: left; }
pre.mermaid svg { max-width: 100%; height: auto; }

.mref { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px 0 6px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.86em; font-weight: 700; text-decoration: none; white-space: nowrap; line-height: 1.7; vertical-align: 1px; }
.mref .ic { width: 14px; height: 14px; }
.mref:hover { background: var(--indigo); color: #ffffff; }
.ext-link .ext { width: 13px; height: 13px; margin-left: 2px; vertical-align: -1px; opacity: 0.7; }
.wl { font-weight: 700; }
.wl-missing { color: var(--text-3); border-bottom: 1px dashed var(--line-strong); }
.embed-link, .file-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-elev); text-decoration: none; font-weight: 700; color: var(--text); }
.embed-link small { color: var(--text-3); font-weight: 700; }
.embed-link .ic, .file-link .ic { color: var(--accent); }
sup.fn a { font-size: 11px; font-weight: 800; text-decoration: none; padding: 0 2px; }
.footnotes { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.footnotes ol { padding-left: 20px; list-style: decimal; }
.fn-back { text-decoration: none; margin-left: 4px; }

.related { margin-top: 56px; }
.related h2 { font-size: 19px; margin-bottom: 6px; }
.related-hint { color: var(--text-3); font-size: 13.5px; margin-bottom: 12px; }
.related ul { display: grid; gap: 10px; }
.mref-card, .back-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); }
.mref-card:hover, .back-card:hover { color: var(--text); border-color: color-mix(in srgb, var(--indigo) 40%, transparent); }
.mref-card .ic, .back-card .ic { color: var(--accent); width: 20px; height: 20px; }
.mref-card span { display: grid; min-width: 0; flex: 1; }
.mref-card small { color: var(--text-3); font-size: 13px; font-weight: 700; }
.mref-card em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.back-card { font-weight: 700; }

.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); max-width: calc(100vw - 32px); }

.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); }

.changes { margin-top: 32px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); }
.changes summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.changes summary::-webkit-details-marker { display: none; }
.changes[open] summary { margin-bottom: 8px; }
.changes h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.05em; }
.changes h2 .ic { color: var(--accent); }
.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; }
.changes[open] .oa-toggle { transform: rotate(-135deg); margin-bottom: -4px; }
.changes li + li { border-top: 1px solid var(--line); }
.changes a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; text-decoration: none; color: var(--text); }
.changes a:hover strong { color: var(--accent-ink); }
.cl-date { color: var(--text-3); font-weight: 800; font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cl-body { font-size: 14.5px; }
.cl-body .ver { margin: 0 6px; font-size: 11.5px; padding: 0 6px; }
.cl-text { color: var(--text-2); }
.cl-where { display: block; margin-top: 2px; color: var(--violet); font-size: 12.5px; font-weight: 700; }
:root[data-theme="dark"] .cl-where { color: var(--cyan); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cl-where { color: var(--cyan); }
}

.doc-list { display: grid; gap: 14px; margin-top: 28px; }
.doc-card { position: relative; display: block; padding: 20px 56px 20px 24px; 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; }
.doc-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--navy), var(--indigo), var(--violet)); }
.doc-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--indigo) 35%, transparent); color: var(--text); }
.dc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.doc-card h2 { font-size: 21px; margin-top: 10px; }
.doc-card p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; line-height: 1.65; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dc-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.empty-state { margin-top: 28px; color: var(--text-3); text-align: center; padding: 28px 0; }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 26px; }
  .lead { font-size: 16.5px; }
  .prose { font-size: 15.5px; }
  .prose h2 { font-size: 21px; margin-top: 44px; }
  .prose h3 { font-size: 17.5px; }
  .co-body { padding-left: 16px; }
  .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; }
  .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; }
  .doc-card { padding: 18px 18px 18px 22px; }
  .dc-arrow { display: none; }
  .changes a { grid-template-columns: 44px minmax(0, 1fr); }
  .prose th, .prose td { padding: 9px 11px; }
}

@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, .related, .hlink { display: none !important; }
  .shell { display: block; padding: 0; }
  .content { max-width: none; }
  .table-wrap, .co, .mermaid-box, .fig { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  .mref { background: none; padding: 0; }
}
.prose li.task { list-style: none; }
