/* style.css — 1021210 DYNAMIC_VISION (동체시력 테스트)
   2026-09-26 REDESIGN: kit-blueprint(헤어라인 계측기) → kit-swiss "육상 경기 포스터"
   - 큰 압축 산세리프(Archivo wdth 62–125 · 800~900) · 두꺼운 잉크 괘선(3·6px) · 12단 비대칭 격자 · 모서리 0
   - 무채 잉크 1색 + 회색 면(--fill) — 유채 액센트·배경 패턴·그림자·그라디언트·블러 없음
   - 테스트 표시 영역(stage/canvas)의 크기 규칙은 구판 그대로(너비 = 본문 폭, 높이 clamp 200–300px) — 노출 시간·KVA 최대 크기가 여기에 달려 있다
   - 자극 숫자 글꼴(JetBrains Mono 700)은 측정 조건이라 유지, UI 에서는 모노 글꼴을 쓰지 않는다 */
:root {
  --bg: #ffffff; --stage: #ffffff; --fill: #eeeeec; --fill-2: #e2e2df;
  --ink: #0b0b0b; --text: #0b0b0b; --text-2: #4a4a48; --text-3: #8c8c89;
  --line: #dcdcd9; --line-2: #b9b9b5;
  --bad: #b3261e;
  --sans: 'Archivo', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cond: 72%;
  --rule: 6px; --rule-2: 3px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0c0c; --stage: #0c0c0c; --fill: #1c1c1b; --fill-2: #282827;
  --ink: #f1f1ee; --text: #f1f1ee; --text-2: #b7b7b3; --text-3: #7e7e7a;
  --line: #2a2a29; --line-2: #454543;
  --bad: #f2867c;
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
/* 아랍 문자는 자간을 주면 글자 연결이 끊긴다 */
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.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; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
kbd { font-family: var(--sans); font-size: .62em; font-weight: 700; letter-spacing: .06em; border: 2px solid currentColor; padding: 1px 5px; opacity: .75; vertical-align: .15em; }
/* 압축 디스플레이 공통 */
.brand-t, .nav a, .seg-b, .go, .seen, .key, .ro dd, .res-big, .idx, .panel-h, .btn-ink, .btn-line,
.page-h, .prose h1, .g-n, .nf-code, .foot-word, .foot-main a, .kicker { font-stretch: var(--cond); }

/* ── header ── */
.top { border-bottom: var(--rule-2) solid var(--ink); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand-t { font-weight: 850; font-size: 1.28rem; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1; }
.mark { color: var(--ink); flex: none; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 5px 10px 4px; line-height: 1.3; }
.nav a:hover { color: var(--text); background: var(--fill); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--ink); }
.top-tools { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.lang { height: 36px; border: 0; border-radius: 0; background: var(--fill); padding: 0 8px; font-size: .86rem; font-weight: 600; max-width: 124px; }
.theme-btn { width: 36px; height: 36px; border: 0; background: var(--fill); display: grid; place-items: center; color: var(--text); }
.theme-btn:hover, .lang:hover { background: var(--fill-2); }
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 8px 12px; }
  .brand-t { font-size: 1.12rem; }
  .nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px 10px; overflow-x: auto; }
  .nav a { white-space: nowrap; font-size: .95rem; }
}

/* ── bench (테스트) ── */
.app { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 16px 40px; flex: 1; }
.bench { position: relative; }
.bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 18px; }
.bar-r { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.seg-cap { flex-basis: 100%; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.seg-b { background: var(--fill); border: 0; padding: 7px 13px 6px; color: var(--text-2); font-size: .98rem; font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.seg-b:hover { color: var(--text); background: var(--fill-2); }
.seg-b[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
/* 모드 = 포스터 제목 크기의 두 칸, 선택 칸은 윗선이 잉크로 */
#modeSeg { gap: 0 20px; align-items: stretch; }
#modeSeg .seg-b { background: none; border-top: var(--rule) solid var(--fill-2); padding: 10px 0 0; min-width: 210px; text-align: start;
  color: var(--text-3); font-size: clamp(1.45rem, 3.4vw, 2.15rem); font-weight: 850; line-height: 1.02; letter-spacing: -0.01em; }
#modeSeg .seg-b:hover { color: var(--text-2); }
#modeSeg .seg-b[aria-pressed="true"] { color: var(--text); border-top-color: var(--ink); background: none; }
.seg-n { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 6px; font-stretch: 100%; }

.stage { position: relative; height: clamp(200px, 34vh, 300px); background: var(--stage); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--ink); pointer-events: none; z-index: 2; }
#cv { display: block; width: 100%; height: 100%; }
.msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; pointer-events: none; z-index: 3; }
.msg > * { pointer-events: auto; }
.msg-t { margin: 0; max-width: 560px; color: var(--text-2); font-size: .98rem; line-height: 1.55; background: var(--stage); padding: 2px 8px; }
.msg-t:empty { display: none; }
.go { background: var(--ink); color: var(--bg); border: 0; padding: 12px 48px 11px; font-weight: 850; font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.go:hover { background: var(--text-2); }

.answer { display: flex; flex-direction: column; align-items: center; min-height: 0; }
.pad { display: grid; gap: 4px; margin: 16px auto 0; }
.pad-digit { grid-template-columns: repeat(10, 56px); }
.pad-dir { grid-template-columns: repeat(3, 64px); }
.key { height: 60px; border: 0; background: var(--fill); font-size: 1.7rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.pad-dir .key { height: 64px; font-size: 1.6rem; font-weight: 600; }
.key:hover { outline: 3px solid var(--ink); outline-offset: -3px; }
.key:active { background: var(--ink); color: var(--bg); }
.key[hidden] { display: block !important; visibility: hidden; }
.key-c { display: grid; place-items: center; }
.key-c::after { content: ''; width: 10px; height: 10px; background: var(--ink); }
.seen { margin: 16px auto 0; width: min(520px, 100%); height: 60px; background: var(--ink); color: var(--bg); border: 0; font-weight: 850; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.seen:hover { background: var(--text-2); }
.seen kbd { margin-inline-start: 10px; }
@media (max-width: 620px) {
  .pad-digit { grid-template-columns: repeat(5, 60px); }
  .key { height: 60px; }
}

/* 판독 = 경기장 전광판: 칸마다 윗선 3px, 속도 칸은 2칸 폭의 큰 숫자 */
.readout { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px 14px; margin: 24px 0 0; }
.ro { border-top: var(--rule-2) solid var(--ink); padding-top: 7px; min-width: 0; display: flex; flex-direction: column; }
.ro:nth-child(2) { grid-column: span 2; }
.ro dt { flex: 1; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); line-height: 1.3; overflow-wrap: anywhere; }
.ro dd { margin: 6px 0 0; font-size: 1.5rem; font-weight: 750; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: start; letter-spacing: -0.01em; }
.ro:nth-child(2) dd { font-size: 2.6rem; font-weight: 850; }
[dir="rtl"] .ro dd { text-align: right; }
.re { border: 0; background: var(--fill); color: var(--text-2); font-size: .9rem; width: 26px; height: 26px; padding: 0; vertical-align: .2em; margin-inline-start: 4px; font-stretch: 100%; }
.re:hover { color: var(--bg); background: var(--ink); }
@media (max-width: 860px) {
  .readout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ro:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .ro:nth-child(2) dd { font-size: 2.3rem; }
  .ro dd { font-size: 1.3rem; }
  #modeSeg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; width: 100%; }
  #modeSeg .seg-b { min-width: 0; font-size: 1.22rem; }
}

/* 결과 — 포스터의 큰 기록 숫자 */
.result { margin-top: 36px; padding-top: 14px; border-top: var(--rule) solid var(--ink); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4px 48px; }
.res-h { grid-column: 1 / -1; margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.res-big { margin: 0; font-size: clamp(3.4rem, 11vw, 7rem); font-weight: 900; letter-spacing: -0.02em; line-height: .92; font-variant-numeric: tabular-nums; }
.res-big small { font-size: .28em; font-weight: 700; color: var(--text-2); letter-spacing: 0; margin-inline-start: 4px; }
.res-dl { margin: 0; grid-column: 2; grid-row: 2 / span 8; align-self: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.res-dl > div { border-top: 2px solid var(--ink); padding-top: 5px; min-width: 0; }
.res-dl dt { font-size: .74rem; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.res-dl dd { margin: 3px 0 0; font-size: 1.06rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.res-note { margin: 12px 0 0; font-size: .9rem; color: var(--text-2); line-height: 1.55; max-width: 560px; }
.res-disc { margin: 12px 0 0; font-size: .84rem; color: var(--text-2); background: var(--fill); padding: 10px 14px; max-width: 560px; }
.res-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
@media (max-width: 760px) {
  .result { grid-template-columns: minmax(0, 1fr); }
  .res-dl { grid-column: auto; grid-row: auto; margin-top: 16px; }
}

.btn-ink { display: inline-block; background: var(--ink); color: var(--bg); border: 0; padding: 11px 22px 10px; font-weight: 800; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; line-height: 1.2; }
.btn-ink:hover { background: var(--text-2); }
.btn-line { display: inline-block; background: var(--fill); color: var(--text); border: 0; padding: 11px 20px 10px; font-weight: 800; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; line-height: 1.2; }
.btn-line:hover { background: var(--fill-2); }
.btn-line.sm { padding: 7px 14px 6px; font-size: .92rem; margin-top: 12px; }

/* 보정·기록 */
.lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px 48px; margin-top: 56px; }
@media (max-width: 900px) { .lower { grid-template-columns: minmax(0, 1fr); } }
.panel { border-top: var(--rule) solid var(--ink); padding-top: 12px; min-width: 0; }
.panel-h { display: flex; align-items: flex-end; gap: 14px; font-size: 1.5rem; font-weight: 850; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 16px; }
.idx { font-size: 3.4rem; font-weight: 900; line-height: .78; flex: none; }
.cal-state { font-size: .84rem; color: var(--text-3); margin: 0 0 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.cal-state.on { color: var(--text); font-weight: 600; }
.cal-sec { margin: 12px 0 14px; }
.hint { font-size: .88rem; color: var(--text-2); margin: 8px 0 10px; line-height: 1.55; }
.card-track { overflow-x: auto; padding: 4px 0 8px; }
.card-box { aspect-ratio: 85.6 / 53.98; border: 2px solid var(--ink); display: grid; place-items: end start; padding: 6px 9px; min-width: 60px; }
[dir="rtl"] .card-box { place-items: end end; }
.card-box span { font-size: .78rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; accent-color: var(--ink); }
.range-row output { font-size: 1rem; font-weight: 750; min-width: 5.5em; text-align: end; font-variant-numeric: tabular-nums; }
.fld { display: grid; gap: 5px; margin: 12px 0; max-width: 280px; }
.fld span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.fld input { height: 44px; border: 0; background: var(--fill); font-size: 1.15rem; font-weight: 700; padding: 0 12px; border-radius: 0; font-variant-numeric: tabular-nums; }
.fld input:focus { outline: 3px solid var(--ink); outline-offset: -3px; }
.cal-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }

.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 18px; }
@media (max-width: 480px) { .charts { grid-template-columns: minmax(0, 1fr); } }
.ch { margin: 0; min-width: 0; }
.ch figcaption { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.ch-box { position: relative; height: 118px; }
.ch-box svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ch-box .ln { fill: none; stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: miter; stroke-linecap: square; }
.ch-box .ax { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ch-box .mk { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ch-box .hit { fill: transparent; }
.ch-box .pt { cursor: pointer; }
.ch-box .pt.on .mk { fill: var(--ink); }
.ch-lab { position: absolute; inset-inline-end: 0; font-size: .68rem; font-weight: 700; color: var(--text-2); background: var(--bg); padding: 0 3px; font-variant-numeric: tabular-nums; }
.ch-hi { top: -2px; }
.ch-lo { bottom: -4px; }
.ch-tip { position: absolute; z-index: 3; background: var(--ink); color: var(--bg); font-size: .76rem; font-weight: 700; padding: 4px 8px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.ch-empty { margin: 0; height: 100%; display: grid; place-items: center; background: var(--fill); font-size: .82rem; color: var(--text-2); text-align: center; padding: 10px; }
.hist-t td.empty { color: var(--text-3); text-align: center; font-size: .86rem; }

/* ── 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: 1120px; margin: 0 auto; padding: 32px 16px 56px; flex: 1;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 32px; align-content: start; }
.page > * { grid-column: 2; min-width: 0; }
.page > .crumb { grid-column: 1; grid-row: 1 / span 20; align-self: start; position: sticky; top: 92px; }
.page > .page-h, .page > .lead { max-width: 760px; }
.crumb { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  display: flex; flex-direction: column; gap: 4px; border-top: var(--rule-2) solid var(--ink); padding-top: 9px; margin-bottom: 24px; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--text); text-decoration: underline; }
.crumb .sep { display: none; }
.crumb > span:last-child { color: var(--text); }
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .page > *, .page > .crumb { grid-column: 1; grid-row: auto; position: static; }
  .crumb { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 22px; }
  .crumb .sep { display: inline; color: var(--line-2); }
}
.kicker { font-size: .78rem; font-weight: 750; letter-spacing: .14em; color: var(--text-2); margin: 0 0 10px; }
.prose { font-size: 1.04rem; line-height: 1.8; max-width: 760px; counter-reset: sec; }
.prose h1, .page-h { font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 850; line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 22px; }
html[lang="ko"] .prose h1, html[lang="ko"] .page-h, html[lang="ja"] .prose h1, html[lang="ja"] .page-h,
html[lang="zh"] .prose h1, html[lang="zh"] .page-h { line-height: 1.2; letter-spacing: -0.03em; }
.prose > h2 { counter-increment: sec; }
.prose h2 { font-size: 1.45rem; font-weight: 850; line-height: 1.2; margin: 52px 0 14px; letter-spacing: -0.01em; padding-top: 10px; border-top: var(--rule-2) solid var(--ink); }
.prose > h2::before { content: counter(sec, decimal-leading-zero); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--text-3); margin-bottom: 4px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 18px; }
.prose li { margin: 5px 0; }
.prose ul li::marker { content: '■  '; font-size: .6em; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--fill); padding: 1px 5px; }
.lead { color: var(--text-2); font-size: 1.2rem; line-height: 1.6; }
.formula { font-size: 1rem; font-weight: 600; background: var(--fill); padding: 12px 16px; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.disc-box { background: var(--fill); padding: 12px 16px; font-size: .92rem; color: var(--text-2); }
.tbl { overflow-x: auto; margin: 0 0 22px; border-top: var(--rule-2) solid var(--ink); }
.tbl table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-inline-start: 0; }
.tbl thead th { font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid var(--ink); }
.num-c { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hist-t td, .hist-t th { font-size: .84rem; padding: 7px 8px; font-variant-numeric: tabular-nums; }
.hist-t td:first-child { white-space: nowrap; color: var(--text-2); }
.cta { margin-top: 36px; }
.faq { border-top: 2px solid var(--ink); padding: 0; }
.faq:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; gap: 16px; align-items: baseline; padding: 14px 0; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-inline-start: auto; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 16px; color: var(--text-2); }
.refs { margin-top: 44px; font-size: .86rem; }
.refs h2, .related h2 { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-top: 0; padding-top: 9px; }
.refs ol { padding-inline-start: 1.4em; color: var(--text-2); }
.refs a { color: var(--text-2); overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.mail { font-size: 1.15rem; font-weight: 700; }
.related { margin-top: 44px; }
.related ul { padding-inline-start: 0; list-style: none; }
.related li { margin: 0; border-bottom: 1px solid var(--line); }
.related li::marker { content: none; }
.related a { display: block; padding: 10px 0; font-weight: 700; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* 가이드 허브 = 큰 번호 2단 타일 */
.g-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin: 36px 0 12px; }
@media (max-width: 620px) { .g-list { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.g-row { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 10px; border-top: var(--rule) solid var(--ink); text-decoration: none; color: var(--text); }
.g-row:hover .g-t { text-decoration: underline; text-decoration-thickness: 2px; }
.g-n { font-size: 3.6rem; font-weight: 900; line-height: .85; letter-spacing: -0.02em; }
.g-body { display: grid; gap: 6px; }
.g-t { font-weight: 800; font-size: 1.18rem; line-height: 1.3; }
.g-d { color: var(--text-2); font-size: .92rem; line-height: 1.55; }
.g-a { position: absolute; top: 12px; inset-inline-end: 0; font-size: 1.5rem; font-weight: 800; line-height: 1; }
[dir="rtl"] .g-a { transform: scaleX(-1); }
.nf { text-align: start; padding-top: 12px; }
.nf-code { font-size: clamp(7rem, 26vw, 13rem); font-weight: 900; line-height: .8; margin: 0 0 24px; letter-spacing: -0.03em; }
.nf-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; font-size: .9rem; }
.nf-langs a { background: var(--fill); padding: 5px 10px; text-decoration: none; font-weight: 600; }
.nf-langs a:hover { background: var(--ink); color: var(--bg); }

/* ── footer: 큰 워드마크 + 비대칭 2단 ── */
.foot { border-top: var(--rule) solid var(--ink); margin-top: 40px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 18px 16px 36px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 32px; }
.foot-word { grid-column: 1 / -1; margin: 0 0 18px; font-size: clamp(2.6rem, 11.2vw, 9.4rem); font-weight: 900; line-height: .8; letter-spacing: -0.025em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.foot-main { display: flex; flex-direction: column; gap: 4px; }
.foot-main a { color: var(--text); text-decoration: none; font-size: 1.12rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.25; }
.foot-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; align-content: start; }
.foot-guides a { color: var(--text-2); text-decoration: none; font-size: .88rem; border-top: 1px solid var(--line); padding-top: 6px; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot-disc { grid-column: 2; margin: 12px 0 0; font-size: .8rem; color: var(--text-3); max-width: 720px; }
.copyright { grid-column: 2; margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
@media (max-width: 720px) {
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-disc, .copyright { grid-column: 1; }
  .foot-main { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .foot-guides { grid-template-columns: minmax(0, 1fr); }
}

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 10px 18px; font-size: .92rem; font-weight: 700; 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; } }
