/* style.css — 1021216 STROOP_TEST (스트룹 테스트)
   출발점: DesignKit kit-blueprint (가는 도면선 · crosshair 정합 마크 · 치수선 · 모노 주석 · 2px 모서리)
   변형: 청사진 파랑·모눈 배경은 버리고 평면 무채로 — 회색 책상 위 흰 도면 한 장(.sheet)을 헤어라인으로 구획.
         헤더·푸터는 도면 표제란처럼 칸(cell) 구조 · 테스트는 우측 사양 칸(시행·과제·오답) + 좌측 자극 창(크롭 마크)
         · 결과 수치에 치수선 · 가이드 허브는 도면 목록형 셀 그리드 · IBM Plex Sans + JetBrains Mono
   유채색은 테스트 영역(자극 잉크·버튼 견본)에만 — --c0~--c3 은 data/colors.json 에서 index 에만 주입.
   액센트색을 두지 않는 이유: 파랑·빨강·초록·노랑은 전부 자극 색이라, UI 크롬에 색을 쓰면 그 자체가 스트룹 단서가 된다. */
:root {
  --desk: #f1f1f1; --paper: #ffffff; --ink: #1a1a1a; --t2: #575757; --t3: #8c8c8c;
  --ln: #d2d2d2; --ln-2: #e9e9e9; --sunk: #f6f6f6; --sw-edge: rgb(0 0 0 / .24);
  --sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
          'PingFang SC', 'Microsoft YaHei', 'Segoe UI', 'Noto Sans', 'Geeza Pro', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, 'Pretendard Variable', Pretendard, monospace;
  --w: 1200px; --r: 2px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --desk: #0a0a0a; --paper: #121212; --ink: #ebebeb; --t2: #a9a9a9; --t3: #6f6f6f;
  --ln: #2f2f2f; --ln-2: #202020; --sunk: #191919; --sw-edge: rgb(255 255 255 / .2);
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--t3); }
a:hover { text-decoration-color: var(--ink); }
button, select { font: inherit; color: inherit; }
kbd { font-family: var(--mono); font-size: .74em; border: 1px solid var(--ln); border-radius: var(--r); padding: 0 4px; margin-inline-start: 6px; color: var(--t2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.mark { flex: none; display: block; }

/* ── sheet: 책상 위 도면 한 장 ── */
.sheet { max-width: var(--w); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); border-inline: 1px solid var(--ln); }
@media (max-width: 720px) { .sheet { border-inline: 0; } }

/* ── header: 표제란 칸 ── */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ln); }
.top-in { display: flex; align-items: stretch; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; text-decoration: none; font-weight: 600; font-size: .98rem;
  letter-spacing: -0.01em; white-space: nowrap; border-inline-end: 1px solid var(--ln); }
.nav { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; text-decoration: none; color: var(--t2); font-size: .86rem;
  white-space: nowrap; border-inline-end: 1px solid var(--ln-2); position: relative; }
.nav-n { font-family: var(--mono); font-size: .66rem; color: var(--t3); }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; inset-inline: 18px; bottom: -1px; height: 1px; background: var(--ink); }
.nav a[aria-current="page"] .nav-n { color: var(--ink); }
.top-tools { margin-inline-start: auto; display: flex; align-items: stretch; border-inline-start: 1px solid var(--ln); }
.lang { border: 0; border-inline-end: 1px solid var(--ln-2); border-radius: 0; background: var(--paper); padding: 0 12px; font-size: .84rem;
  max-width: 140px; cursor: pointer; font-family: var(--mono); }
.theme-btn { width: 52px; border: 0; background: var(--paper); display: grid; place-items: center; cursor: pointer; border-radius: 0; }
.lang:hover, .theme-btn:hover { background: var(--sunk); }
@media (max-width: 860px) {
  .top-in { flex-wrap: wrap; height: auto; }
  .brand { height: 48px; padding: 0 16px; border-inline-end: 0; }
  .top-tools { height: 48px; }
  .nav { order: 3; width: 100%; overflow-x: auto; border-top: 1px solid var(--ln-2); scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { height: 42px; padding: 0 16px; }
  .nav a[aria-current="page"]::after { inset-inline: 16px; }
}

/* ── test rig: 좌 자극 창 · 우 사양 칸 ── */
.app { width: 100%; padding: 40px 40px 56px; flex: 1; }
.rig { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; grid-template-areas: "stage meta" "keys meta";
  border: 1px solid var(--ink); }
/* 도면 모서리 정합 마크(+) — 좌상·우하 */
.rig::before, .rig::after { content: ''; position: absolute; width: 17px; height: 17px; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; }
.rig::before { top: -9px; left: -9px; }
.rig::after { bottom: -9px; right: -9px; }

.meta { grid-area: meta; display: flex; flex-direction: column; border-inline-start: 1px solid var(--ink); min-width: 0; }
.m { padding: 14px 18px 16px; display: grid; gap: 4px; border-bottom: 1px solid var(--ln); min-width: 0; }
.m-k { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.m-v { font-family: var(--mono); font-size: 1.5rem; font-weight: 300; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; }
.m-t { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; line-height: 1.4; white-space: normal; }
.m-end { margin-top: auto; border-bottom: 0; border-top: 1px solid var(--ln); padding: 14px 18px; }
.stop { width: 100%; height: 40px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); cursor: pointer; font-size: .86rem; font-weight: 500; }
.stop:hover { background: var(--sunk); }

.stage { grid-area: stage; position: relative; min-height: clamp(340px, 52vh, 520px); display: grid; container-type: inline-size;
  --cm: var(--ln);
  background:
    linear-gradient(var(--cm), var(--cm)) 14px 14px / 14px 1px no-repeat, linear-gradient(var(--cm), var(--cm)) 14px 14px / 1px 14px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right 14px top 14px / 14px 1px no-repeat, linear-gradient(var(--cm), var(--cm)) right 14px top 14px / 1px 14px no-repeat,
    linear-gradient(var(--cm), var(--cm)) left 14px bottom 14px / 14px 1px no-repeat, linear-gradient(var(--cm), var(--cm)) left 14px bottom 14px / 1px 14px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right 14px bottom 14px / 14px 1px no-repeat, linear-gradient(var(--cm), var(--cm)) right 14px bottom 14px / 1px 14px no-repeat,
    var(--paper); }
.v-setup { padding: 44px 48px 40px; display: grid; gap: 30px; align-content: start; }
.task { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.4; max-width: 26em; }
.task b { font-weight: 600; box-shadow: inset 0 -1px 0 var(--ink); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.opt { display: grid; gap: 8px; align-content: start; min-width: 0; }
.opt-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--t3);
  display: flex; align-items: center; gap: 8px; }
.opt-k::after { content: ''; flex: 1; height: 1px; background: var(--ln-2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-b { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ln); border-radius: var(--r); background: var(--paper);
  padding: 0 12px; min-height: 36px; cursor: pointer; font-size: .9rem; color: var(--t2); }
.seg-b::before { content: ''; width: 7px; height: 7px; border: 1px solid currentColor; flex: none; }
.seg-b:hover { border-color: var(--t3); color: var(--ink); }
.seg-b[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.seg-b[aria-pressed="true"]::before { background: currentColor; }
.go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 22px; border-top: 1px dashed var(--ln); }
.go { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--r); padding: 0 26px; height: 46px;
  font-weight: 500; font-size: .98rem; cursor: pointer; }
.go:hover { background: var(--paper); color: var(--ink); }
.hint { font-size: .76rem; color: var(--t3); font-family: var(--mono); }

.v-run, .v-msg { display: grid; place-items: center; text-align: center; padding: 28px 24px; }
.v-run > * { grid-area: 1 / 1; }
.fix { font-family: var(--mono); font-size: 2.6rem; font-weight: 300; color: var(--ink); line-height: 1; }
.word { --len: 4; font-weight: 700; letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  font-size: clamp(2.4rem, calc(84cqw / (var(--len) * 0.7)), 8rem); user-select: none; -webkit-user-select: none; }
/* 라이트: 모든 자극 글자에 똑같은 얇은 무채 윤곽 — 흰 바탕에서 노랑이 흐려지지 않게(색·조건과 무관하게 균일 → 단서가 되지 않는다) */
:root:not([data-theme="dark"]) .word { -webkit-text-stroke: max(1px, .02em) rgb(0 0 0 / .22); paint-order: stroke fill; }
:lang(ja) .word, :lang(zh) .word, :lang(ko) .word { letter-spacing: 0; }
.fb { font-family: var(--mono); font-weight: 500; font-size: 1.1rem; }
.fb[data-k="ok"] { color: var(--t2); }
.v-msg { gap: 20px; }
.v-msg p { margin: 0; font-size: 1.15rem; font-weight: 500; max-width: 26em; }

.keys { grid-area: keys; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.key { border: 0; border-inline-end: 1px solid var(--ln); background: var(--paper); padding: 12px 16px 16px; min-height: 96px; cursor: pointer; text-align: start;
  display: grid; align-content: space-between; gap: 12px; border-radius: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.key:last-child { border-inline-end: 0; }
.k-n { font-family: var(--mono); font-size: .7rem; color: var(--t3); letter-spacing: .04em; }
.k-b { display: flex; align-items: center; gap: 12px; min-width: 0; }
.k-sw { width: 24px; height: 24px; flex: none; border: 1px solid var(--sw-edge); }
.k-l { font-weight: 500; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key:hover { background: var(--sunk); }
.key.hit { background: var(--sunk); box-shadow: inset 0 0 0 2px var(--ink); }
.key.hit .k-n { color: var(--ink); }
.rig[data-state="setup"] .key { cursor: default; }
.rig[data-state="setup"] .key:hover { background: var(--paper); }
.rig[data-state="setup"] .k-l, .rig[data-state="setup"] .k-sw { opacity: .5; }

@media (max-width: 900px) {
  .app { padding: 28px 24px 48px; }
  .rig { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "stage" "keys"; }
  .meta { flex-direction: row; border-inline-start: 0; border-bottom: 1px solid var(--ink); }
  .m { flex: 1 1 0; border-bottom: 0; border-inline-end: 1px solid var(--ln); padding: 10px 14px 12px; }
  .m:nth-child(2) { flex-grow: 1.5; }
  .m-v { font-size: 1.2rem; }
  .m-t { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-end { flex: 0 0 auto; margin: 0; border: 0; padding: 10px 12px; display: grid; align-content: center; }
  .stop { width: auto; padding: 0 12px; height: 36px; }
  .v-setup { padding: 32px 28px 28px; }
}
@media (max-width: 560px) {
  .app { padding: 20px 16px 40px; }
  .rig::before, .rig::after { display: none; }
  .m { padding: 8px 10px 10px; }
  .m-k { font-size: .62rem; }
  .m-v { font-size: 1.02rem; }
  .v-setup { padding: 24px 18px 22px; gap: 24px; }
  .opts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .go { width: 100%; }
  .key { padding: 10px 10px 12px; min-height: 86px; }
  .k-b { flex-direction: column; align-items: flex-start; gap: 8px; }
  .k-l { font-size: .95rem; }
  .k-sw { width: 20px; height: 20px; }
}

/* ── report: 치수선 달린 결과 도면 ── */
.report { margin-top: 48px; border: 1px solid var(--ln); scroll-margin-top: 80px; }
.rep-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 14px 22px;
  border-bottom: 1px solid var(--ln); }
.rep-h { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.rep-meta { font-family: var(--mono); font-size: .76rem; color: var(--t2); }
.rep-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.big { display: grid; align-content: start; gap: 6px; padding: 26px 26px 28px; border-inline-end: 1px solid var(--ln); }
.big-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.big-v { position: relative; font-family: var(--mono); font-size: clamp(3rem, 8vw, 5.4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums; padding-top: 20px; justify-self: start; }
/* 치수선: 수치 폭만큼 양끝 틱 + 가로선 */
.big-v::before { content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 9px;
  background: linear-gradient(var(--t3), var(--t3)) left center / 1px 100% no-repeat, linear-gradient(var(--t3), var(--t3)) right center / 1px 100% no-repeat,
    linear-gradient(var(--t3), var(--t3)) center / 100% 1px no-repeat; }
.big-v small { font-size: .24em; letter-spacing: 0; font-weight: 400; margin-inline-start: 8px; color: var(--t2); }
.big-s { font-size: .82rem; color: var(--t2); }
.big-line { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--ln); font-weight: 500; font-size: 1rem; max-width: 24em; }
.rep-data { min-width: 0; padding: 18px 22px 20px; }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 16px 0 0; }
.dl dt, .dl dd { padding: 7px 0; border-bottom: 1px dashed var(--ln); margin: 0; font-size: .9rem; }
.dl dt { color: var(--t2); }
.dl dd { font-family: var(--mono); text-align: end; }
.excl { font-size: .78rem; color: var(--t3); margin: 12px 0 0; font-family: var(--mono); }
.warn { margin: 12px 0 0; padding: 8px 12px; border: 1px solid var(--ink); border-radius: var(--r); font-size: .88rem; font-weight: 500; }
.shape { display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; vertical-align: 0; }
.shape[data-c="c"] { border: 1.3px solid var(--ink); border-radius: 50%; }
.shape[data-c="i"] { background: var(--ink); }
.shape[data-c="n"] { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--t2); }
.chart { margin: 0; padding: 18px 22px 16px; border-top: 1px solid var(--ln); }
.chart figcaption { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); margin-bottom: 8px; }
.sc { width: 100%; height: auto; display: block; color: var(--ink); overflow: visible; }
.sc .gl { stroke: var(--ln-2); stroke-width: 1; }
.sc .ax { stroke: var(--ink); stroke-width: 1; }
.sc .tk { fill: var(--t3); font-family: var(--mono); font-size: 10.5px; }
.sc .ml { fill: var(--t2); font-size: 11px; font-weight: 500; }
.sc .mean { stroke: var(--t2); stroke-width: 1; }
.sc .pt-c { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; }
.sc .pt-i { fill: var(--ink); }
.sc .pt-n { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.sc .pt-x { stroke: var(--t2); stroke-width: 1.4; fill: none; }
.sc .tl { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.sc .td { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; }
.sc .zero { stroke: var(--t3); stroke-dasharray: 2 3; }
[dir="rtl"] .sc { direction: ltr; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .8rem; color: var(--t2); margin-top: 10px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.disc { margin: 0; padding: 14px 22px; font-size: .86rem; color: var(--t2); border-top: 1px solid var(--ln); background: var(--sunk); }
.disc strong { color: var(--ink); font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px 20px; border-top: 1px solid var(--ln); }
.ghost { border: 1px solid var(--ln); border-radius: var(--r); background: var(--paper); padding: 0 18px; height: 46px; cursor: pointer; font-weight: 500; }
.ghost:hover { border-color: var(--ink); }
@media (max-width: 760px) {
  .rep-grid { grid-template-columns: minmax(0, 1fr); }
  .big { border-inline-end: 0; border-bottom: 1px solid var(--ln); padding: 20px 18px 22px; }
  .rep-head, .rep-data, .chart, .disc, .acts { padding-inline: 16px; }
  .acts .go, .acts .ghost { flex: 1 1 auto; }
}

/* ── history ── */
.hist { margin-top: 48px; }
.hist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 14px; }
.hist h2 { margin: 0; font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hist h2::before { content: ''; width: 9px; height: 9px; border: 1px solid var(--ink); }
.txt { border: 0; background: none; padding: 0; cursor: pointer; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; color: var(--t2); font-family: var(--mono); }
.trend { margin: 4px 0 18px; }
.tr-h { margin: 0 0 6px; font-size: .78rem; color: var(--t2); font-family: var(--mono); }
.empty { color: var(--t3); font-size: .9rem; margin: 0; }
.ht td.hx { font-weight: 500; color: var(--ink); }

/* ── tables ── */
.tbl { overflow-x: auto; margin: 0 0 16px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl th, .tbl td { padding: 8px 14px 8px 0; border-bottom: 1px dashed var(--ln); text-align: start; vertical-align: top; }
[dir="rtl"] .tbl th, [dir="rtl"] .tbl td { padding: 8px 0 8px 14px; }
.tbl thead th { border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: .68rem; font-weight: 400; text-transform: uppercase; letter-spacing: .05em;
  color: var(--t3); white-space: nowrap; }
.rt td, .ht td { font-family: var(--mono); white-space: nowrap; color: var(--t2); }
.rt tbody th { font-weight: 500; white-space: nowrap; }
.words-t td { font-weight: 600; font-size: 1rem; white-space: nowrap; }
.words-t td.neu { font-weight: 400; color: var(--t2); font-family: var(--mono); font-size: .86rem; }
.words-t tr.cur th, .words-t tr.cur td { background: var(--sunk); }
.words-t tbody th a { text-decoration: none; font-weight: 500; }

/* ── ads (애드핏 규정: 래퍼에 radius·overflow 금지) ── */
.ad-wrap { margin: 40px auto 0; }
.ad-grid { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 672px; margin: 0 auto; }
.ad-grid[data-ad-layout="mixed"] { max-width: 760px; }
.ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.ad-cell { min-height: 50px; max-width: 100%; }
.ad-pc { display: none; }
@media (min-width: 720px) { .ad-pc { display: flex; } .ad-mo { display: none; } }
.prose .ad-wrap { margin: 36px 0; }

/* ── content pages ── */
.page { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 40px 64px; flex: 1; }
.page.wide { max-width: none; }
.crumb { font-family: var(--mono); font-size: .72rem; color: var(--t3); display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; margin-bottom: 36px;
  border-bottom: 1px solid var(--ln-2); }
.crumb a { color: var(--t2); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb .sep { color: var(--ln); }
.prose { font-size: 1rem; line-height: 1.8; }
.prose h1, .page-h { font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.18; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 18px; }
.prose h2 { font-size: 1.2rem; margin: 48px 0 12px; letter-spacing: -0.01em; font-weight: 600; padding-top: 16px; border-top: 1px dashed var(--ln); }
.prose.guide { counter-reset: sec; }
.prose.guide h2 { display: flex; align-items: baseline; gap: 12px; }
.prose.guide h2::before { counter-increment: sec; content: counter(sec) ".0"; font-family: var(--mono); font-size: .74rem; font-weight: 400; color: var(--t3);
  flex: none; min-width: 2.2rem; }
.prose.guide .related h2 { display: block; }
.prose.guide .related h2::before { content: none; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 1.25em; margin: 0 0 16px; }
.prose li { margin: 5px 0; }
.prose ul li::marker { color: var(--t3); }
.prose code { font-family: var(--mono); font-size: .86em; border: 1px solid var(--ln-2); background: var(--sunk); padding: 0 4px; border-radius: var(--r); }
.lead { color: var(--t2); font-size: 1.08rem; line-height: 1.7; }
.kicker { font-family: var(--mono); font-size: .74rem; color: var(--t3); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.kicker::after { content: ''; width: 40px; height: 1px; background: var(--ln); }
.kicker span { color: var(--ink); }
.formula { font-family: var(--mono); font-size: .9rem; border: 1px solid var(--ln); border-inline-start: 2px solid var(--ink); padding: 12px 16px; margin: 18px 0;
  background: var(--sunk); }
.ref { font-size: .8rem; color: var(--t2); line-height: 1.55; margin: 0 0 8px; padding-inline-start: 1.6em; text-indent: -1.6em; text-align: left; overflow-wrap: anywhere; }
.fn { font-size: .82rem; color: var(--t2); font-family: var(--mono); }
.btn { display: inline-flex; align-items: center; height: 46px; background: var(--ink); color: var(--paper); text-decoration: none; padding: 0 22px; font-weight: 500;
  border: 1px solid var(--ink); border-radius: var(--r); }
.btn:hover { background: var(--paper); color: var(--ink); }
.cta { margin-top: 36px; }
.faq { border-bottom: 1px dashed var(--ln); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style-position: outside; }
.faq summary::marker { color: var(--t3); }
.faq p { margin: 8px 0 0; color: var(--t2); }
.notes li { margin: 8px 0; }
.mail { font-size: 1.02rem; font-family: var(--mono); }
.mail span { font-family: var(--sans); font-weight: 500; margin-inline-end: 8px; }
.related { margin-top: 48px; }
.related ul { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.related li { border-bottom: 1px dashed var(--ln); margin: 0; }
.related a { display: block; padding: 10px 0; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* guides hub: 도면 목록형 셀 그리드 */
.glist { list-style: none; padding: 0; margin: 36px 0 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-inline-start: 1px solid var(--ln); }
.glist li { border-inline-end: 1px solid var(--ln); border-bottom: 1px solid var(--ln); min-width: 0; }
.gl-row { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 18px 20px 16px; text-decoration: none; }
.gl-n { font-family: var(--mono); font-size: .72rem; color: var(--t3); }
.gl-t { font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; line-height: 1.4; }
.gl-d { color: var(--t2); font-size: .88rem; line-height: 1.6; }
.gl-a { font-family: var(--mono); justify-self: end; color: var(--t3); font-size: .9rem; }
[dir="rtl"] .gl-a { transform: scaleX(-1); }
.gl-row:hover { background: var(--sunk); }
.gl-row:hover .gl-a { color: var(--ink); }
.gl-extra { margin: 16px 0 0; font-weight: 500; }
@media (max-width: 960px) { .glist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .glist { grid-template-columns: minmax(0, 1fr); } .gl-row { padding: 16px; } }
.nf { padding-top: 10px; }
.nf-code { font-family: var(--mono); font-weight: 300; font-size: 4.6rem; margin: 0; line-height: 1; letter-spacing: -0.04em; }
.nf-langs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; font-size: .88rem; }
@media (max-width: 720px) { .page { padding: 0 16px 48px; } }

/* ── footer: 표제란 ── */
.foot { border-top: 1px solid var(--ink); margin-top: 32px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.foot-in > * { padding: 18px 20px 20px; border-inline-end: 1px solid var(--ln); min-width: 0; }
.foot-in > :nth-child(3) { border-inline-end: 0; }
.foot-brand { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.foot-main, .foot-guides { display: grid; gap: 4px 20px; align-content: start; }
.foot-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot a { text-decoration: none; font-size: .84rem; color: var(--t2); }
.foot-guides a { color: var(--t3); font-size: .8rem; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.copyright { grid-column: 1 / -1; margin: 0; padding: 10px 20px !important; border-top: 1px solid var(--ln); border-inline-end: 0 !important;
  font-size: .7rem; color: var(--t3); font-family: var(--mono); }
@media (max-width: 720px) {
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; border-inline-end: 0 !important; border-bottom: 1px solid var(--ln); }
  .foot-in > * { padding: 16px; }
  .foot-guides { grid-template-columns: minmax(0, 1fr); }
  .copyright { padding: 10px 16px !important; }
}

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 9px 16px;
  font-family: var(--mono); font-size: .8rem; border-radius: var(--r); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 50;
  max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
