:root {
  --paper: #faf9f5;
  --panel: #ffffff;
  --ink: #15171c;
  --ink-soft: #5b606b;
  --line: #e4e1d8;
  --accent: #e8501c;
  --accent-soft: #fdeee7;
  --code-bg: #15171c;
  --code-ink: #e9e6dd;
  --code-dim: #8a8f9a;
  --code-tag: #7fc8ff;
  --code-attr: #ffb26b;
  --code-str: #b6e3a1;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101114;
    --panel: #181a1f;
    --ink: #eeece6;
    --ink-soft: #9a9fab;
    --line: #2a2d35;
    --accent: #ff7a45;
    --accent-soft: #2a1a13;
    --code-bg: #0b0c0e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[h-cloak] { display: none; }
code { font-family: var(--mono); font-size: 0.88em; }
p code, li code, td code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  white-space: nowrap;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 머리 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font-family: var(--mono); font-weight: 700; font-size: 18px;
  text-decoration: none; letter-spacing: -0.02em; margin-right: auto; flex: none; white-space: nowrap;
}
.logo b { color: var(--accent); }
/* h-scope ↔ hyper-scope — "yper" 는 가려 두었다가 드러내고, "-scope" 는 그만큼 당겨 두었다가 밀어낸다.
   자리는 처음부터 펼친 폭으로 잡혀 있어 옆 메뉴가 밀리지 않는다. 두 키프레임의 구간과 이징은 같아야 한다. */
.logo .yper, .logo .tail { display: inline-block; animation: 7s infinite; }
.logo .yper { clip-path: inset(0 100% 0 0); animation-name: logo-yper; }
.logo .tail { transform: translateX(calc(-4ch + 0.08em)); animation-name: logo-tail; }
.logo:hover .yper, .logo:hover .tail,
.logo:focus-visible .yper, .logo:focus-visible .tail { animation-play-state: paused; }
@keyframes logo-yper {
  0%, 57% { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  63%, 96% { clip-path: inset(0 0 0 0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { clip-path: inset(0 100% 0 0); }
}
@keyframes logo-tail {
  0%, 57% { transform: translateX(calc(-4ch + 0.08em)); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  63%, 96% { transform: translateX(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  100% { transform: translateX(calc(-4ch + 0.08em)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo .yper, .logo .tail { animation: none; }
}
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top .lang { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.top .lang a { padding: 4px 11px; text-decoration: none; color: var(--ink-soft); }
.top .lang a:hover { color: var(--ink); }
.top .lang a[aria-current] { background: var(--ink); color: var(--paper); }

/* 비공개 저장소 자리 — 링크가 아니다. 커서를 올리거나 · 포커스하거나 · 누르면 site.js 가 .tip 을 붙여 «PoC» 를 알린다.
   말풍선은 .tip 일 때만 생긴다(숨은 채로 자리를 차지해 화면이 옆으로 밀리지 않게). --dx 는 화면 밖으로 나가지 않게 site.js 가 민다. */
.poc {
  position: relative;
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.top nav .poc { font-weight: 600; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.top nav .poc:hover, .top nav .poc.tip { color: var(--ink); }
.poc.tip::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 30;
  transform: translateX(calc(-50% + var(--dx, 0px)));
  width: max-content; max-width: calc(100vw - 32px);
  padding: 6px 10px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; white-space: normal;
  pointer-events: none;
  animation: poc-tip 0.15s ease-out;
}
@keyframes poc-tip { from { opacity: 0; } }

/* 첫 접속 안내 — PoC 이고 일찍 만든 사이트임을 확인해야 닫힌다 */
.poc-modal {
  width: min(440px, calc(100vw - 32px));
  padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.poc-modal::backdrop { background: rgba(10, 11, 14, 0.55); backdrop-filter: blur(2px); }
.poc-modal .badge {
  display: inline-block; margin-bottom: 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
}
.poc-modal h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.35; }
.poc-modal p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.poc-modal label {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1.5; cursor: pointer;
}
.poc-modal input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.poc-modal button {
  width: 100%; padding: 11px 16px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.poc-modal button:disabled { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }

/* 코드 판 */
.code {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  tab-size: 2;
}
.code code { font-size: inherit; }
.code .c { color: var(--code-dim); }
.code .t { color: var(--code-tag); }
.code .a { color: var(--code-attr); }
.code .s { color: var(--code-str); }
.code .m { color: #f2d06b; }

/* 살아 있는 예제 */
.demo {
  border: 1px dashed var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--panel);
  padding: 18px 20px;
  position: relative;
}
.demo::before {
  content: attr(data-label);
  position: absolute; top: -11px; right: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--accent); color: #fff;
  padding: 1px 8px; border-radius: 99px;
}
.example .code:has(+ .demo) { border-radius: 10px 10px 0 0; }
.demo button {
  font: inherit; font-size: 15px; font-weight: 600;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 7px; padding: 6px 14px; cursor: pointer;
}
.demo button:hover { background: var(--accent); color: #fff; }
.demo input {
  font: inherit; font-size: 15px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px;
}
.demo input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.demo ul { margin: 10px 0 0; padding-left: 20px; }
.demo .menu {
  margin-top: 8px; padding: 10px 14px; display: inline-block;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}

/* 첫 화면 */
.hero { padding: 84px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15;
  letter-spacing: -0.035em; margin: 0 0 22px; text-wrap: balance;
}
.hero .wrap > * { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--ink-soft); margin: 0 0 30px; max-width: 30em; }
.cta {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 9px;
}
.cta:hover { filter: brightness(1.08); }

/* 세 마디 */
/* hero 도해 — 기본은 다 그려진 그림이다. .play 가 붙고 모션을 허용할 때만 한 번 그려진다. */
.hero p code { font-family: var(--mono); font-size: 0.92em; color: var(--ink); }
.concept-box { margin: 0; position: relative; }
/* 코드는 진짜 글자(pre)이고 강조는 mark 다 — 자리를 어림하지 않는다. 연결선만 스크립트가 두 요소의 자리를 재서 긋는다. */
.concept { position: relative; padding: 0 96px 44px 0; }
.c-pane { background: var(--code-bg); border-radius: 12px; padding: 30px 14px 14px; }
.c-scope { position: relative; padding: 10px 14px; }
.c-border { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.c-border rect { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.c-tag { position: absolute; right: 8px; top: -21px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.c-code { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 2; color: var(--code-ink); white-space: pre; overflow-x: auto; }
.c-code mark { background: color-mix(in srgb, var(--accent) 34%, transparent); color: inherit; border-radius: 6px; padding: 3px 4px; margin: 0 -4px; }
.c-from { display: inline-block; width: 1px; height: 1px; margin-left: 12px; vertical-align: middle; }
.c-out {
  position: absolute; right: 0; bottom: 0; min-width: 132px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.c-out small { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); }
.c-out span { display: flex; align-items: center; gap: 18px; }
.c-out b { background: var(--ink); color: var(--paper); border-radius: 7px; padding: 4px 12px; font-size: 14px; }
.c-out strong { font-size: 26px; font-weight: 800; line-height: 1; }
.c-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.c-link .link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.c-link .dot { fill: var(--accent); }
.replay {
  position: absolute; right: 0; top: 0;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-soft);
  background: none; border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px; cursor: pointer;
}
.replay:hover { color: var(--ink); border-color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .concept.play .c-border rect { animation: hs-draw 0.9s cubic-bezier(.4, 0, .2, 1) 0.2s both; }
  .concept.play .c-tag { animation: hs-fade 0.3s ease-out 1s both; }
  .concept.play .k1 { animation: hs-mark 0.35s ease-out 1.4s both; }
  .concept.play .k2 { animation: hs-mark 0.35s ease-out 1.9s both; }
  .concept.play .k3 { animation: hs-mark 0.35s ease-out 2.4s both; }
  .concept.play .dot { animation: hs-fade 0.2s ease-out 2.9s both; }
  .concept.play .link { animation: hs-draw 0.6s cubic-bezier(.4, 0, .2, 1) 3s both; }
  .concept.play .c-out { animation: hs-fade 0.4s ease-out 3.5s both; }
}
@media (prefers-reduced-motion: reduce) { .replay { display: none; } }
@keyframes hs-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hs-mark { from { background-color: transparent; } }
@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }

/* hero 는 네 장이다 — 왼쪽 글은 겹쳐 두고 흐려 바꾸고, 오른쪽 카드는 앞뒤로 자리를 바꾼다. */
.hero .wrap { align-items: start; }
.hero-copy { padding-top: 22px; }
.hc-stack { display: grid; }
.hc { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.hc.on { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.18s; }
.hc h2 { font-size: 34px; line-height: 1.25; letter-spacing: -0.035em; margin: 0 0 18px; text-wrap: balance; }
.hc p { margin: 0 0 16px; }
.hc p code { font-family: var(--mono); font-size: 0.92em; color: var(--ink); }
.hc .rel { font-size: 13px; }
.hc .rel a { font-family: var(--mono); color: var(--accent); text-decoration: none; margin-left: 8px; }
.hc .rel a:hover { text-decoration: underline; }
.hero-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 14px; }
.hero-nav [hidden] { display: none !important; }
.hero-nav .go { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-nav .cta.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.hero-nav .cta.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); filter: none; }
.hero-nav .cta { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hero-nav .back { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; }
.hero-nav .back:hover { color: var(--ink); }

.hero-stage { display: grid; perspective: 1400px; padding: 0 44px 40px 0; }
.card {
  grid-area: 1 / 1; align-self: start; min-width: 0; margin: 0;
  transform-origin: 50% 30%;
  transition: transform 0.75s cubic-bezier(.22, 1, .36, 1), opacity 0.5s ease, filter 0.5s ease;
}
/* 앞 */
.card[data-pos="0"] { z-index: 3; }
/* 바로 뒤에서 희미하게 기다린다 */
.card[data-pos="1"] { z-index: 2; transform: translate3d(38px, 34px, -140px) scale(0.95); opacity: 0.26; filter: blur(1.5px); pointer-events: none; }
/* 그보다 뒤, 그리고 앞에서 물러난 것 — 뒤로 가서 사라진다 */
.card:not([data-pos="0"]):not([data-pos="1"]) { z-index: 1; transform: translate3d(72px, 62px, -280px) scale(0.9); opacity: 0; pointer-events: none; }
.card .demo label { display: inline-flex; align-items: center; gap: 6px; margin: 0 10px; }
.card .demo button:disabled { opacity: 0.4; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .card, .hc, .hc.on { transition: none; } }

/* 맞는 곳 · 맞지 않는 곳 — 두 칸 비교. 표시는 글자가 아니라 그린 것이다(✓ · ✕). */
.fit { padding: 64px 0; border-top: 1px solid var(--line); }
.fit h2 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 10px; }
.fit-lead { color: var(--ink-soft); margin: 0 0 28px; max-width: 40em; }
.fit-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.fit-col { padding: 24px 26px 26px; min-width: 0; }
.fit-col + .fit-col { border-left: 1px solid var(--line); }
.fit-col h3 { margin: 0 0 16px; font-size: 16px; letter-spacing: -0.01em; }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit-col li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.fit-col li b { color: var(--ink); }
.fit-col li code { font-family: var(--mono); font-size: 0.92em; color: var(--ink); }
.fit-col li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; }
.fit-col li::after { content: ""; position: absolute; }
.fit-col.yes li::before { background: var(--accent); }
.fit-col.yes li::after { left: 6.5px; top: 7px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fit-col.no li::before { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.fit-col.no li::after { left: 4.5px; top: 12.25px; width: 9px; height: 1.5px; background: var(--ink-soft); transform: rotate(45deg); box-shadow: 0 0 0 0 transparent; }
.fit-col.no li i { display: none; }

.claims { padding: 56px 0; border-top: 1px solid var(--line); }
.claims h2 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.15;
  letter-spacing: -0.035em; margin: 0;
}
.claims h2:nth-of-type(3) { color: var(--accent); }
.claims p { color: var(--ink-soft); max-width: 38em; margin: 28px 0 0; }
.claims p b { color: var(--ink); }

/* 레퍼런스 */
.ref { padding: 8px 0 40px; }
.ref h3 {
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin: 56px 0 18px;
  display: flex; align-items: baseline; gap: 10px;
}
.ref h3 span {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0;
  background: var(--ink); color: var(--paper); padding: 0 8px; border-radius: 99px;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.entry {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.entry:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.entry h4 { margin: 0; font-family: var(--mono); font-size: 18px; color: var(--accent); }
.entry p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.entry .code { margin-top: auto; font-size: 13px; padding: 14px 16px; }

/* Turbo 띠 */

.foot { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--ink-soft); font-size: 14px; }
.foot p { margin: 0 0 6px; max-width: 46em; }

/* 프리뷰 — 첫 페이지의 짧은 소개. 설명 한 칸, 코드 한 칸. */
.preview { padding: 64px 0 56px; border-top: 1px solid var(--line); }
.preview h2 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 10px; }
.pv-lead { color: var(--ink-soft); margin: 0 0 28px; max-width: 42em; }
.pv-lead b { color: var(--ink); }
.pv-map { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pv-map table { border-collapse: collapse; width: 100%; font-size: 15px; }
.pv-map th, .pv-map td { text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pv-map tr:last-child td { border-bottom: 0; }
.pv-map th { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.pv-map td:first-child { color: var(--ink-soft); }
.pv-map td:last-child, .pv-map th:last-child { background: var(--accent-soft); }
.pv-map code { font-family: var(--mono); font-size: 0.9em; }
.pv-sub { font-size: 19px; margin: 44px 0 12px; }
.pv-diff { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-soft); max-width: 46em; }
.pv-diff b { color: var(--ink); }
.pv-block {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start;
  padding: 36px 0; border-top: 1px solid var(--line); margin-top: 36px;
}
.pv-block + .pv-block { margin-top: 0; }
.pv-copy h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; }
.pv-copy p { margin: 0 0 12px; color: var(--ink-soft); }
.pv-copy code { font-family: var(--mono); font-size: 0.9em; color: var(--ink); }
.readmore { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.readmore:hover { text-decoration: underline; }
.pv-block .code { font-size: 13px; }
.pv-next { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 36px; border-top: 1px solid var(--line); }
.demo .on { background: var(--accent); color: #fff; }
.demo small { display: block; color: #d1432f; margin: 2px 0 8px; }
.demo input + small + input, .demo small + input { margin-top: 4px; }

/* 길잡이 — 문서 · 확장의 대문에서 갈 곳을 고른다. */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 8px; }
.guide a {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
}
.guide a:hover { border-color: var(--accent); }
.guide b { font-size: 18px; display: flex; align-items: baseline; gap: 8px; }
.guide b i { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--ink); color: var(--paper); padding: 0 8px; border-radius: 99px; }
.guide b code { font-family: var(--mono); color: var(--accent); }
.guide span { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.doc .grid { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
.doc .entry p { margin: 0; }
.doc .entry .example { margin: 0; }

/* 문서 */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr) 180px; gap: 44px; padding-top: 36px; padding-bottom: 80px; }
.side, .toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.side h5, .toc h5 {
  margin: 22px 0 6px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.side h5:first-child, .toc h5:first-child { margin-top: 0; }
.side a, .toc a { display: block; text-decoration: none; color: var(--ink-soft); padding: 2px 0; }
.side a:hover, .toc a:hover { color: var(--accent); }
.side a[aria-current] { color: var(--ink); font-weight: 700; }
.side a.mono { font-family: var(--mono); font-size: 13px; }
.toc a.sub { padding-left: 12px; font-size: 13px; }

.doc h1 { font-size: 42px; letter-spacing: -0.035em; line-height: 1.2; margin: 0 0 14px; }
.doc h2 { font-size: 28px; letter-spacing: -0.03em; margin: 60px 0 10px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 19px; margin: 34px 0 6px; }
.doc p { margin: 12px 0; }
.doc .lead { color: var(--ink-soft); font-size: 19px; }
.doc .example { margin: 18px 0 22px; }
.doc ul { padding-left: 22px; }
.doc .table { overflow-x: auto; margin: 18px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.doc .readmore { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.doc .readmore:hover { text-decoration: underline; }
.pager { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 700; }
.pager a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .side, .toc { display: none; }
}
@media (max-width: 760px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap, .grid, .fit-table, .pv-block, .guide { grid-template-columns: minmax(0, 1fr); }
  .fit-col + .fit-col { border-left: 0; border-top: 1px solid var(--line); }
  .hero-stage { padding: 0 20px 24px 0; }
  .hc h2 { font-size: 26px; }
  .top nav { gap: 16px; }
  .wrap { padding: 0 16px; }
}
/* 휴대폰 폭 — 로고 · 메뉴 · 언어 스위치가 한 줄에 들어가지 않는다. 첫 줄에 로고와 스위치, 둘째 줄에 메뉴. */
@media (max-width: 560px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 8px; column-gap: 12px; }
  .top nav { order: 3; width: 100%; gap: 20px; }
  html { scroll-padding-top: 104px; }
}
