/* style.css — 1021211 COLOR_BLIND (색각랩)
   출발점: DesignKit kit-lineart (모노라인 · 면 대신 선 · 둥근 모서리 · 원형 아이콘 배지 · 큰 여백 · Inter)
   + 디자인 레퍼런스 notion.so (문서·읽기 중심 — 페이지 아이콘, 속성 행, 콜아웃, 토글, 갤러리 카드)
   → 무채 평면 변형: 순백 / 중립 잉크 계조만. 유채색은 "점묘판·색 견본(검사 대상)" 안에서만 쓴다.
   - 1px 헤어라인 + 14~24px 둥근 모서리 + 알약(pill) 버튼 · 원형 키패드 · 동심원 판 테두리
   - 그림자·블러·그라디언트·글로우·배경 패턴·유채 액센트 없음
   - 도구 화면은 가운데 정렬, 읽기 화면은 좌측 정렬 문서형
   - 배경·선은 R=G=B 중립 회색만 쓴다(판 주변 색 편향 방지) */
:root {
  --bg: #ffffff; --wash: #f5f5f5;
  --ink: #1e1e1e; --ink-2: #5c5c5c; --ink-3: #959595;
  --line: #e5e5e5; --line-2: #cfcfcf;
  --r-s: 8px; --r: 14px; --r-l: 20px; --r-xl: 26px;
  --sans: 'Inter', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Hiragino Sans', 'PingFang SC', sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #161616; --wash: #1f1f1f;
  --ink: #ebebeb; --ink-2: #a6a6a6; --ink-3: #737373;
  --line: #2b2b2b; --line-2: #3d3d3d;
  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(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65;
  letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--ink); }
button, input, select { font: inherit; color: inherit; }
.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: 1.5px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 6px 14px; border-radius: 999px; z-index: 60; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-3); }

/* ── header: 브랜드 · 가운데 알약 내비 · 도구 ── */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; flex: none; }
.brand .mark { flex: none; width: 30px; height: 30px; }
.brand-t { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 2px; margin: 0 auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .86rem; font-weight: 500; padding: 6px 14px; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; transition: color .15s var(--ease), border-color .15s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.top-tools { display: flex; gap: 8px; align-items: center; flex: none; }
.lang { height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 0 10px; font-size: .82rem; max-width: 124px; cursor: pointer; }
.theme-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--bg); border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.lang:hover, .theme-btn:hover { border-color: var(--ink-3); }
@media (max-width: 980px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 10px 12px; }
  .top-tools { margin-inline-start: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1 0 auto; text-align: center; }
}

/* ── 공통 버튼 · 라벨 ── */
.btn-ink, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.btn-ink { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-ink:disabled { background: transparent; color: var(--ink-3); border-color: var(--line-2); cursor: default; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kicker::before { content: ''; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }

/* ── tool: 가운데 한 줄기 ── */
.app { width: 100%; max-width: 1080px; margin: 0 auto; padding: 44px 20px 48px; flex: 1; }
.stage { min-height: 60vh; }
.view { display: block; }
.cover canvas, .plate-wrap canvas { display: block; border-radius: 50%; }

/* 시작 화면: 동심원 판 → 제목 → 판 수 카드 → 조건 → 시작 */
.v-start { max-width: 600px; margin: 0 auto; text-align: center; }
.cover { position: relative; width: min(74vw, 300px); aspect-ratio: 1; margin: 18px auto 48px; display: flex; justify-content: center; align-items: center; }
.cover::before { content: ''; position: absolute; inset: -16px; border: 1px solid var(--line-2); border-radius: 50%; pointer-events: none; }
.cover canvas { max-width: 100%; }
.start-h { font-size: clamp(1.65rem, 4.2vw, 2.35rem); line-height: 1.2; letter-spacing: -0.035em; margin: 0 0 30px; font-weight: 600; word-break: keep-all; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-b { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink-2); font-size: .86rem; min-width: 0;
  transition: border-color .15s var(--ease), color .15s var(--ease); }
.seg-b:hover { color: var(--ink); border-color: var(--line-2); }
.seg-b[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.modes .seg-b { border-radius: var(--r-l); padding: 18px 8px 14px; display: grid; gap: 6px; justify-items: center; }
.modes .seg-b b { font-size: 2rem; font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.modes .seg-b span { font-size: .8rem; }
.modes .seg-b[aria-pressed="true"] b { color: var(--ink); font-weight: 400; }
.cond { list-style: none; counter-reset: c; text-align: start; padding: 18px 20px; margin: 22px 0 30px; border: 1px solid var(--line); border-radius: var(--r-l);
  display: grid; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.cond li { counter-increment: c; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.55; }
.cond li::before { content: counter(c); width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; font-weight: 500; color: var(--ink-2); margin-top: -1px; }
.start-row { display: flex; flex-direction: column; align-items: center; gap: 16px; }
#startBtn { min-width: 250px; min-height: 54px; font-size: 1rem; }
.seed { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--ink-3); }
.seed input { width: 8.5em; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .88rem; text-align: center;
  text-transform: uppercase; letter-spacing: .08em; font-variant-numeric: tabular-nums; padding: 0 10px; color: var(--ink); }
.seed input:focus { outline: none; border-color: var(--ink); }
.hist { margin: 30px auto 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r); font-size: .84rem; color: var(--ink-2);
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }

/* 판 화면: 동심원 판 + 둥근 응답 패널 · 원형 키패드 */
.v-plate { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center; }
.plate-wrap { margin: 0; min-width: 0; min-height: 260px; display: flex; justify-content: center; align-items: center; }
.plate-wrap canvas { max-width: calc(100% - 36px); height: auto !important; outline: 1px solid var(--line-2); outline-offset: 16px; }
.side { display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-xl); }
.count { margin: 0; font-size: 3.6rem; line-height: 1; font-weight: 200; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.count .of { font-size: .3em; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-inline-start: 8px; }
.bar { height: 2px; background: var(--line); border-radius: 2px; position: relative; }
.bar i { position: absolute; inset-inline-start: 0; top: 0; height: 2px; border-radius: 2px; background: var(--ink); width: 0; transition: width .2s var(--ease); }
.ans-l { margin: 4px 0 0; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ans { display: flex; gap: 10px; direction: ltr; }
.ans span { width: 62px; height: 62px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 1.9rem; font-weight: 400; line-height: 60px; text-align: center;
  font-variant-numeric: tabular-nums; }
.ans span:not(:empty) { border-color: var(--ink); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; justify-items: center; direction: ltr; }
.key { width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.25rem; font-weight: 400; cursor: pointer;
  touch-action: manipulation; font-variant-numeric: tabular-nums; transition: border-color .12s var(--ease); }
.key:hover { border-color: var(--ink-3); }
.key:active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.k-ok { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.k-ok:hover { border-color: var(--ink); }
.k-ok:disabled { background: transparent; color: var(--ink-3); border-color: var(--line); cursor: default; }
.pad.lock .key { pointer-events: none; }
.none { min-height: 46px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; }
.none:hover { border-color: var(--ink); }
.keys-hint { margin: 0; font-size: .74rem; color: var(--ink-3); text-align: center; line-height: 1.5; }
.quit { align-self: center; border: 0; background: none; padding: 2px 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .82rem; }
.quit:hover { color: var(--ink); }

@media (max-width: 860px) {
  .app { padding-top: 22px; }
  .v-plate { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .side { padding: 0; border: 0; border-radius: 0; }
  .v-plate .side { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; }
  .v-plate .count { grid-column: 1; font-size: 2.6rem; }
  .v-plate .bar { grid-column: 1 / -1; grid-row: 2; }
  .v-plate .ans-l { display: none; }
  .v-plate .ans { grid-column: 2; grid-row: 1; justify-self: end; }
  .v-plate .ans span { width: 50px; height: 50px; font-size: 1.5rem; line-height: 48px; }
  .v-plate .pad, .v-plate .none, .v-plate .keys-hint, .v-plate .quit { grid-column: 1 / -1; }
  .v-plate .pad { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 6px; }
  .v-plate .key { width: 100%; max-width: 54px; height: 48px; border-radius: 999px; }
  .v-plate .quit { justify-self: center; }
  .keys-hint { display: none; }
}

/* 결과 */
.v-result { max-width: 840px; margin: 0 auto; }
.res-head { text-align: center; padding: 6px 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.verdict { font-size: clamp(1.55rem, 3.6vw, 2.25rem); line-height: 1.25; letter-spacing: -0.035em; margin: 0 0 12px; font-weight: 600; word-break: keep-all; }
.rtype { display: inline-block; margin: 0 0 14px; padding: 5px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: .88rem; font-weight: 500; }
.rdesc { margin: 0 auto; color: var(--ink-2); max-width: 60ch; }
.ladder { display: inline-flex; gap: 5px; direction: ltr; vertical-align: middle; }
.ladder i { width: 10px; height: 10px; border: 1px solid var(--ink-2); border-radius: 50%; display: inline-block; }
.ladder i.o { background: var(--ink); border-color: var(--ink); }
.warns { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.warns:empty { display: none; }
/* 콜아웃(노션식): 둥근 선 상자 + 원형 기호 */
.warns li, .disc, .note-box { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; padding-inline-start: 48px;
  font-size: .9rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.warns li::before, .disc::before, .note-box::before { content: '!'; position: absolute; inset-inline-start: 15px; top: 12px; width: 20px; height: 20px;
  border: 1px solid var(--ink-3); border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; line-height: 1; color: var(--ink-2); }
.disc::before, .note-box::before { content: 'i'; font-style: italic; font-family: Georgia, serif; font-weight: 600; font-size: .78rem; }
.disc { margin: 20px 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 46px; }
.sub-h { display: flex; align-items: center; gap: 16px; margin: 46px 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sub-h::before, .sub-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sub-d { margin: 0 0 18px; font-size: .85rem; color: var(--ink-3); text-align: center; }
.review { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.review li { display: grid; gap: 10px; justify-items: center; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: var(--r-l); }
.review canvas { display: block; border-radius: 50%; }
.review p { margin: 0; display: grid; gap: 2px; font-size: .78rem; color: var(--ink-2); text-align: center; }
.review b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.review li.ng p span:last-child { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rv-ax { color: var(--ink-3); font-size: .72rem; letter-spacing: .02em; }

/* ── simulator: 위 제어 패널(4묶음) → 아래 비교 액자 ── */
.sim-grid { display: grid; gap: 22px; }
.sim-ctrl { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px 26px; align-items: start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); }
.ctl-g { display: grid; gap: 10px; min-width: 0; }
.ctl-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.drop { position: relative; display: grid; gap: 6px; justify-items: center; border: 1.5px dashed var(--line-2); border-radius: var(--r-l); padding: 20px 14px 18px; cursor: pointer; text-align: center;
  transition: border-color .15s var(--ease); }
.drop::before { content: '+'; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; font-weight: 300; color: var(--ink-2); }
.drop.over, .drop:hover { border-color: var(--ink); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-t { font-weight: 600; font-size: .92rem; }
.drop-s { font-size: .76rem; color: var(--ink-3); }
.ctl-h { margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.ctl-h output { color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.seg.stack { display: grid; grid-template-columns: 1fr 1fr; }
.seg.stack .seg-b { font-size: .84rem; padding: 8px 10px; }
.range { display: grid; gap: 8px; }
.range input { width: 100%; accent-color: var(--ink); }
.range-s { font-size: .76rem; color: var(--ink-3); line-height: 1.5; }
.src-note { font-size: .76rem; color: var(--ink-3); margin: 0; flex: 1 1 280px; line-height: 1.55; }
.sim-view { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.sim-view[data-view="split"] { grid-template-columns: 1fr; }
.pane, .split { margin: 0; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-l); }
.pane figcaption { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  padding: 3px 11px; border: 1px solid var(--line-2); border-radius: 999px; margin: 0 0 12px; }
.pane canvas, .split canvas { display: block; width: 100%; height: auto; background: var(--wash); border-radius: var(--r-s); }
.split { display: grid; gap: 12px; }
.split input { width: 100%; accent-color: var(--ink); }
@media (max-width: 900px) {
  .sim-ctrl { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .sim-view { grid-template-columns: 1fr; }
}

/* ── 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: 40px 0; }

/* ── 문서 페이지(노션식): 페이지 아이콘 · 큰 제목 · 속성 행 · 콜아웃 · 토글 ── */
.page { width: 100%; max-width: 740px; margin: 0 auto; padding: 30px 20px 64px; flex: 1; }
.page.wide { max-width: 1040px; }
.crumb { font-size: .8rem; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 38px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--line-2); }
.page-mark { width: 60px; height: 60px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; margin: 0 0 22px; color: var(--ink); }
.page-mark .mark { width: 30px; height: 30px; }
.prose { font-size: 1rem; line-height: 1.8; }
.prose h1, .page-h { font-size: clamp(1.95rem, 4.8vw, 2.65rem); line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 16px; font-weight: 700; word-break: keep-all; }
.prose h2 { font-size: 1.28rem; line-height: 1.35; margin: 50px 0 12px; letter-spacing: -0.025em; font-weight: 600; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-3); }
.prose code { font-size: .88em; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; }
.lead { font-size: 1.1rem; line-height: 1.7; font-weight: 300; color: var(--ink-2); margin: 0 0 18px; }
.pull { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; font-size: 1.04rem; line-height: 1.65; margin: 26px 0 !important; }
.note-box { margin: 20px 0 !important; }
.fn { font-size: .82rem; color: var(--ink-3); }
.facts { display: grid; margin: 26px 0 10px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(120px, 32%) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .84rem; color: var(--ink-3); line-height: 1.6; }
.facts dt::before { content: ''; display: inline-block; width: 7px; height: 7px; border: 1px solid var(--ink-3); border-radius: 50%; margin-inline-end: 10px; vertical-align: 1px; }
.facts dd { margin: 0; font-size: .94rem; line-height: 1.6; }
@media (max-width: 560px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.tbl { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--r); }
.tbl table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl caption { text-align: start; font-size: .78rem; color: var(--ink-3); padding: 10px 14px; caption-side: bottom; border-top: 1px solid var(--line); line-height: 1.5; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; line-height: 1.5; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { font-weight: 600; font-size: .76rem; color: var(--ink-3); white-space: nowrap; letter-spacing: .02em; }
.tbl tbody th { font-weight: 500; white-space: nowrap; }
.num-c { white-space: nowrap; font-variant-numeric: tabular-nums; }
.swatch td { white-space: nowrap; }
.swatch code { font-size: .72rem; color: var(--ink-3); margin-inline-start: 6px; border: 0; padding: 0; }
.chip { display: inline-block; width: 28px; height: 18px; border-radius: 5px; vertical-align: middle; outline: 1px solid var(--line); outline-offset: -1px; }
.btn-ink.inline, .cta .btn-ink, .cta .btn-line { min-height: 44px; }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.faq { position: relative; border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 8px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; padding: 13px 18px; padding-inline-start: 50px; position: relative; line-height: 1.55; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ''; position: absolute; inset-inline-start: 16px; top: 14px; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; }
.faq summary::after { content: ''; position: absolute; inset-inline-start: 24px; top: 22px; width: 5px; height: 5px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(-45deg); transition: transform .15s var(--ease); }
[dir="rtl"] .faq summary::after { transform: rotate(135deg); }
.faq[open] summary::after, [dir="rtl"] .faq[open] summary::after { transform: rotate(45deg); top: 20px; }
.faq[open] { border-color: var(--line-2); }
.faq p { margin: 0; padding: 0 18px 16px; padding-inline-start: 50px; color: var(--ink-2); }
.refs li { font-size: .88rem; color: var(--ink-2); }
.mail { font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); }
.mail span { font-size: .8rem; color: var(--ink-3); }
.related { margin-top: 46px; padding: 4px 20px 8px; border: 1px solid var(--line); border-radius: var(--r-l); }
.related h2 { margin: 16px 0 4px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.55; color: var(--ink-2); }
.related li:last-child { border-bottom: 0; }
.related a { color: var(--ink); font-weight: 500; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* 허브: 갤러리 카드(유형) · 번호 원 카드(가이드) */
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0 10px; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "strip strip" "t p" "a a" "d d"; gap: 3px 12px; align-content: start;
  padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: var(--ink); transition: border-color .15s var(--ease); }
.entry:hover { border-color: var(--ink); }
.entry-strip { grid-area: strip; display: flex; height: 26px; border-radius: var(--r-s); overflow: hidden; margin-bottom: 12px; }
.entry-strip span { flex: 1; }
.entry-t { grid-area: t; font-size: 1.06rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.entry-a { grid-area: a; font-size: .78rem; color: var(--ink-3); }
.entry-d { grid-area: d; color: var(--ink-2); font-size: .88rem; line-height: 1.6; margin-top: 6px; }
.entry-p { grid-area: p; align-self: center; font-size: .72rem; color: var(--ink-2); white-space: nowrap; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-variant-numeric: tabular-nums; }
.guides-list .entry { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "t" "d"; }
.entry-n { grid-area: n; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  font-size: .78rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: border-color .15s var(--ease); }
.entry:hover .entry-n { border-color: var(--ink); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .84rem; color: var(--ink-3); margin: 22px 0 0; }
.legend .entry-strip { width: 170px; height: 16px; margin: 0; border-radius: 5px; }
@media (max-width: 680px) { .entries { grid-template-columns: minmax(0, 1fr); } }

.nf { text-align: center; padding-top: 30px; }
.nf-code { width: 150px; height: 150px; margin: 0 auto 30px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 200; letter-spacing: -0.04em; line-height: 1; }
.nf-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; font-size: .84rem; }
.nf-langs a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.nf-langs a:hover { border-color: var(--ink); color: var(--ink); }
.nf .cta { justify-content: center; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); margin-top: 48px; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 38px 20px 30px; display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 26px 40px; }
.foot-h { margin: 0 0 12px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.foot-h a { color: inherit; text-decoration: none; }
.foot-h a:hover { color: var(--ink); }
.foot-main, .foot-sub { display: grid; gap: 6px; align-content: start; }
.foot-main a, .foot-sub a { color: var(--ink-2); text-decoration: none; font-size: .86rem; line-height: 1.45; }
.foot-sub a { font-size: .83rem; }
.foot a:hover { color: var(--ink); }
.foot-note, .copyright { grid-column: 1 / -1; margin: 0; font-size: .76rem; color: var(--ink-3); text-align: center; line-height: 1.6; }
.foot-note { border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-col:first-child { grid-column: 1 / -1; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 9px 18px; border-radius: 999px; font-size: .88rem;
  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); }
