/*
  말씨 지도(dialect-atlas) style.css v1 · 2026-10-26 · 심(sim.boltandnutt.com)
  - 1~2절(껍데기: 색·버튼·내비·푸터)과 읽을거리·시리즈·쿠팡 구역은 키 세계지도(height-atlas/style.css v1)와 같은 값.
  - 고유 부분(맨 아래): 방언 지도 판, 문항 카드, 결과.
*/
:root {
  --bg: #f4f6f3; --surface: #ffffff;
  --brand: #23506b; --brand-hover: #1c4258; --brand-press: #163546; --brand-tint: #e2ecf1; --on-brand: #ffffff;
  --ink: #161b18; --ink-2: #4a524e; --line: #e0e4e0; --line-ui: #7d8682;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 48px; --sp-6: 64px; --sp-7: 96px;
  --r-tag: 6px; --r-sm: 8px; --r-md: 12px;
  --f-display: 32px; --f-h3: 22px; --f-body: 16px; --f-sm: 15px; --f-min: 14px;
  --gutter: 16px; --nav-h: 56px;
  --paper: var(--bg); --paper-2: var(--bg); --ink-3: var(--ink-2); --rule-ui: var(--line-ui);
  --accent: var(--brand); --accent-ink: var(--on-brand); --focus: var(--brand);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111412; --surface: #191d1b; --brand: #8ec5df; --brand-hover: #a9d4e8; --brand-press: #c3e2f0;
    --brand-tint: #1b2d36; --on-brand: #0d1a20;
    --ink: #e8ece9; --ink-2: #b3bbb6; --line: #2c322f; --line-ui: #7f8883;
    --paper: var(--bg); --paper-2: var(--bg); --ink-3: var(--ink-2); --rule-ui: var(--line-ui);
    --accent: var(--brand); --accent-ink: var(--on-brand); --focus: var(--brand);
    color-scheme: dark;
  }
}
@media (min-width: 960px) {
  :root { --f-display: 56px; --f-h3: 28px; --gutter: 24px; --nav-h: 64px; }
}

body { background: var(--bg); color: var(--ink); font: 400 var(--f-body)/1.6 var(--font); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
h1, h2, h3, p, ul { margin: 0; }
a:hover { color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 20; padding: 8px 16px; background: var(--surface); border: 1.5px solid var(--brand); border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1168px; margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; gap: var(--sp-2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-3); }
  .c-12 { grid-column: span 12; } .c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; }
}

/* 부품: 버튼(기본·올림·누름·비활성) · 태그 · 카드 · 원형 배지 — card-two-months/style.css 3절과 같은 값 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 48px; padding: 0 var(--sp-3); border-radius: var(--r-sm); border: 1.5px solid transparent; font: 700 var(--f-body)/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; filter: none; }
.btn:hover { filter: none; }
.btn-primary, .btn-primary:hover, .btn-primary:active { color: var(--on-brand); }
.btn-primary { background: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-press); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--ink-2); cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.ic { display: block; width: 20px; height: 20px; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 var(--sp-1); border-radius: var(--r-tag); font-size: var(--f-min); font-weight: 700; line-height: 1; white-space: nowrap; background: var(--brand-tint); color: var(--brand); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); }
.badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); flex: none; }
.badge .ic { width: 24px; height: 24px; }

/* 상단 고정 내비게이션 */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (background: color-mix(in srgb, #000 50%, transparent)) {
  .nav { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px); }
}
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: var(--sp-2); }
.logo { display: inline-flex; align-items: center; gap: var(--sp-1); text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.logo svg { width: 28px; height: 28px; }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: var(--sp-1); }
.nav-menu a { font-size: var(--f-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; padding: var(--sp-1) 12px; border-radius: var(--r-sm); }
.nav-menu a:hover { color: var(--ink); background: var(--surface); }

/* 모바일 상단 메뉴(T-0106): card-two-months/style.css 4-1절과 같은 규격. 959px 이하에서 [로고] … [메뉴] + 펼침 패널.
   첫 화면에는 카드 안 '카드 계산기 열기'가 대표 버튼이므로 줄에 행동 버튼을 따로 두지 않는다(같은 동작 버튼 중복 방지). */
[hidden] { display: none !important; }
.nav-toggle, .nav-panel { display: none; }
@media (max-width: 959px) {
  .nav-menu a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav .logo { min-height: 44px; }
  .nav.is-js .nav-menu a:not(.btn) { display: none; }
  /* T-0128: 첫 화면 '주요 메뉴'의 유일 항목(계산기)이 위 규칙으로 숨으므로 nav 자체를 숨겨 빈 랜드마크를 없앤다.
     메뉴가 맡던 margin-left:auto 는 메뉴 버튼이 이어받아 버튼 위치는 그대로다. 960px 이상·스크립트 꺼짐은 영향 없음. */
  .nav.is-js .nav-menu { display: none; }
  .nav.is-js .nav-toggle { margin-left: auto; }
  .nav.is-js .wrap { gap: var(--sp-1); }
  .nav-toggle { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -6px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .12s, color .12s; }
  .nav-toggle:hover { background: var(--surface); }
  .nav-toggle[aria-expanded="true"] { background: var(--brand-tint); color: var(--brand); }
  .nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
  .nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .nav.is-open { background: var(--bg); }
  .nav.is-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgb(17 20 18 / .32); z-index: -1; animation: nav-fade .16s ease-out both; }
  .nav-panel { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; animation: nav-in .16s cubic-bezier(.2, .7, .3, 1) both; }
  .nav .nav-panel .wrap { display: block; height: auto; padding-top: var(--sp-1); padding-bottom: var(--sp-3); }
  .np-label { display: flex; align-items: center; min-height: 44px; font-size: var(--f-min); font-weight: 600; color: var(--ink-2); text-decoration: none; }
  a.np-label:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
  .np-list, .np-sub { list-style: none; margin: 0; padding: 0; }
  .np-list > li { border-top: 1px solid var(--line); }
  .np-item { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 56px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
  .np-item .ic { color: var(--ink-2); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .np-item:hover, .np-item:hover .ic { color: var(--brand); }
  .np-sub { margin: -4px 0 var(--sp-2); display: grid; }
  .np-sub a { display: flex; align-items: center; min-height: 44px; padding-left: var(--sp-2); border-left: 2px solid var(--line); font-size: var(--f-sm); color: var(--ink-2); text-decoration: none; }
  .np-sub a:hover { color: var(--ink); border-left-color: var(--line-ui); }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes nav-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-color-scheme: dark) { .nav.is-open::after { background: rgb(0 0 0 / .55); } }

/* 푸터: card-two-months/style.css 11절과 같은 값 */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: var(--sp-5) 0 var(--sp-4); font-size: var(--f-min); color: var(--ink-2); line-height: 1.6; }
.foot .grid { row-gap: var(--sp-3); }
.foot-h { font-size: var(--f-min); font-weight: 700; color: var(--ink); margin: 0 0 var(--sp-1); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot .logo { font-size: 18px; margin-bottom: var(--sp-1); }
.foot .copy { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .svc, .svc:hover { transition: none; transform: none; }
  .nav-panel, .nav.is-open::after { animation: none; }
  .nav-toggle { transition: none; }
}

.nav-service { display: none; font-size: var(--f-sm); color: var(--ink-2); padding-left: var(--sp-2); border-left: 1px solid var(--line); }
@media (min-width: 960px) { .nav-service { display: inline; } }


.btn-line { background: var(--surface); border-color: var(--line-ui); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
/* 읽을거리 */
.guides { padding: var(--sp-4) 0 var(--sp-6); }
.guide-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 0; }
.guide-list a { display: grid; gap: 4px; padding: var(--sp-2) 0; border-top: 1px solid var(--line); text-decoration: none; }
.guide-list li:last-child a { border-bottom: 1px solid var(--line); }
.guide-list b { font-size: 18px; letter-spacing: -0.02em; }
.guide-list span { font-size: var(--f-sm); color: var(--ink-2); }
.guide-list a:hover b { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 960px) {
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-5); }
  .guide-list li:nth-last-child(2) a { border-bottom: 1px solid var(--line); }
}

/* 읽을거리 */
.doc { padding: var(--sp-4) 0 var(--sp-6); }
.doc .wrap { max-width: 760px; }
.crumb { font-size: var(--f-min); color: var(--ink-2); margin-bottom: var(--sp-2); }
.doc h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.045em; }
.doc-lead { margin-top: var(--sp-2); font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.doc h2 { margin: var(--sp-5) 0 var(--sp-2); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.doc p, .doc li { font-size: 17px; line-height: 1.75; }
.doc p + p { margin-top: var(--sp-2); }
.doc ul, .doc ol { margin: var(--sp-2) 0 0; padding-left: 1.3em; display: grid; gap: var(--sp-1); }
.doc a:not(.btn) { color: var(--brand); }
.doc-note, .doc-src { font-size: var(--f-sm) !important; color: var(--ink-2); line-height: 1.6 !important; }
.doc-src { margin-top: var(--sp-3) !important; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.table-wrap { margin: var(--sp-3) 0 var(--sp-2); overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: var(--f-sm); }
.doc-table caption { text-align: left; font-size: var(--f-min); color: var(--ink-2); padding-bottom: var(--sp-1); }
.doc-table th, .doc-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { font-size: var(--f-min); color: var(--ink-2); border-bottom: 1.5px solid var(--line-ui); }
.doc-table tbody th { font-weight: 700; }
.doc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-table td.num { font-weight: 700; }
.doc-cta { margin-top: var(--sp-5); padding: var(--sp-3); background: var(--sea); border-radius: var(--r-md); display: grid; gap: var(--sp-2); justify-items: start; }
.doc-cta p { color: var(--chart-ink); font-weight: 700; }
.doc-more { margin-top: var(--sp-5); }
.doc-more h2 { margin-top: 0; font-size: 18px; }
.doc-more ul { list-style: none; padding: 0; gap: 0; }
.doc-more li a { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.doc-more li a:hover { color: var(--brand); }
a.nav-service { text-decoration: none; }
a.nav-service:hover { color: var(--ink); }

.lineup .lu-p, .lineup .lu-me { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.lens.is-open .lineup .lu-p, .lens.is-open .lineup .lu-me { transform: none; }
@media (prefers-reduced-motion: reduce) { .lineup .lu-p, .lineup .lu-me { transition: none; } }
.series { padding: 0 0 var(--sp-4); }
.series a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); background: var(--sea); color: var(--chart-ink); text-decoration: none; }
.series b { display: block; font-size: 20px; letter-spacing: -0.03em; }
.series span { font-size: var(--f-sm); color: var(--chart-ink-2); }
.series .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.series a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.doc-table th { white-space: nowrap; }
.doc-table.is-wide { min-width: 540px; }

/* 쿠팡 파트너스 상품 구역(2026-10-26 개편): 사진 + 이름 + 한 줄, 가격은 쓰지 않는다(바뀌므로) */
.shop .shop-head { display: flex; align-items: center; gap: 8px; }
.shop .shop-head h2, .shop .shop-head h3 { margin: 0; }
.shop-tag { flex: none; font-size: 14px; line-height: 1; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); }
.shop-lead { margin: 6px 0 0; color: var(--ink-2); font-size: var(--f-sm, 15px); }
.shop-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.shop-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, var(--bg, #fff)); color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.shop-item:hover { border-color: var(--ink-2); }
.shop-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.shop-img { width: 72px; height: 72px; border-radius: 8px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.shop-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-txt { display: grid; gap: 2px; min-width: 0; }
.shop-txt b { font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
.shop-txt span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.shop-go { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-item:hover .shop-go { stroke: var(--brand); }
.shop-note { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
@media (min-width: 720px) {
  .shop-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .shop-item { grid-template-columns: 88px minmax(0, 1fr) 20px; }
  .shop-img { width: 88px; height: 88px; }
}
.shop { padding-bottom: var(--sp-4, 32px); }

/* ───────── 말씨 지도 고유 부분 ─────────
   옛 언어지도 판: 옅은 땅 위에 남청 한 색의 진하기로 가능성을 칠하고, 고른 말을 그 말이 쓰이는 자리에 손글씨처럼 얹는다.
   글자는 --ink/--ink-2(바탕 대비 15+/7+), 지도 위 글자는 바탕색 테두리를 둘러 진한 칸에서도 읽힌다.
   가능성 칠은 --brand 의 불투명도(0~0.85)라 새 색을 만들지 않는다. */
:root {
  --sea: #e3ebee; --sea-2: #d3dfe4; --chart-ink: #1c2d38; --chart-ink-2: #3b4c55;
  --kland: #dfe4dd; --kedge: #f4f6f3;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", "Noto Serif CJK KR", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --sea: #15232a; --sea-2: #1b2c34; --chart-ink: #e7eef0; --chart-ink-2: #b7c5cb; --kland: #262d2a; --kedge: #111412; }
}

.btn-line { background: var(--surface); border-color: var(--line-ui); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.link-btn { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-2); font: 600 var(--f-sm)/1 var(--font); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-ui); cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.link-btn[disabled] { visibility: hidden; }

/* 판: 모바일은 지도 위, 문항 아래 / 넓은 화면은 지도 왼쪽(고정), 문항 오른쪽 */
.stage { max-width: 1168px; margin: 0 auto; padding: var(--sp-2) var(--gutter) var(--sp-4); display: grid; gap: var(--sp-2); }
.board { margin: 0; position: relative; }
.kmap { display: block; width: 100%; height: auto; max-height: 46vh; max-height: 46svh; margin: 0 auto; overflow: visible; }
.stage[data-step="intro"] .kmap { max-height: 40vh; max-height: 40svh; }
.stage[data-step="result"] .kmap { max-height: 60vh; max-height: 60svh; }
.board-cap { min-height: 1.5em; margin-top: 4px; text-align: center; font-size: var(--f-min); color: var(--ink-2); }
@media (min-width: 960px) {
  .stage { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sp-6); align-items: start; padding-top: var(--sp-5); }
  .board { position: sticky; top: calc(var(--nav-h) + var(--sp-3)); }
  .kmap, .stage[data-step] .kmap { max-height: calc(100vh - var(--nav-h) - 120px); }
  .deck { padding-top: var(--sp-4); }
}

.prov { fill: var(--kland); stroke: var(--kedge); stroke-width: 1.1; stroke-linejoin: round; }
.prov-ink { fill: var(--brand); stroke: none; fill-opacity: 0; transition: fill-opacity .45s ease; pointer-events: none; }
.stage[data-step="result"] .prov-ink.is-top { fill-opacity: .92 !important; }
.w-word { font: 700 15px/1 var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: -0.02em; }
.w-word.is-new { animation: drop .5s cubic-bezier(.2, .8, .2, 1) both; }
.stage[data-step="result"] .w-word.on-top { fill: var(--on-brand); stroke: var(--brand); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.r-label { font: 600 12px/1 var(--font); fill: var(--ink-2); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.stage[data-step="quiz"] .r-label, .stage[data-step="result"] .r-label { opacity: 0; }
.stage[data-step="result"] .r-label.is-top { fill: var(--on-brand); stroke: none; font-weight: 800; font-size: 14px; }

/* 처음 */
.intro-card h1 { font: 800 clamp(30px, 8vw, 52px)/1.12 var(--serif); letter-spacing: -0.04em; }
.intro-card .lead { margin-top: var(--sp-2); font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 26em; }
.btn-go { margin-top: var(--sp-3); min-width: 200px; min-height: 56px; font-size: 18px; }
.intro-card .hint { margin-top: 10px; font-size: var(--f-min); color: var(--ink-2); }
.friend { display: inline-block; margin-bottom: var(--sp-2); padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: var(--f-sm); font-weight: 700; }

/* 문항 */
.q-top { display: flex; align-items: center; gap: 12px; }
.q-count { flex: none; font: 700 var(--f-min)/1 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ticks { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.ticks li { height: 4px; border-radius: 2px; background: var(--line); }
.ticks li.done { background: var(--ink-2); }
.ticks li.now { background: var(--brand); }
.q-prompt { margin-top: var(--sp-2); font: 800 clamp(22px, 5.6vw, 30px)/1.3 var(--font); letter-spacing: -0.035em; }
.q-sub { margin-top: 6px; font-size: var(--f-sm); color: var(--ink-2); min-height: 0; }
.q-sub:empty { display: none; }
.opts { margin-top: var(--sp-2); display: grid; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; border: 1.5px solid var(--line-ui); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 700 17px/1.35 var(--font); letter-spacing: -0.02em; text-align: left; cursor: pointer; transition: border-color .12s, background-color .12s; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.opt small { font: 500 var(--f-min)/1.3 var(--font); color: var(--ink-2); }
.opt[aria-pressed="true"] small { color: inherit; opacity: .8; }
.opts.is-2 { grid-template-columns: 1fr 1fr; }
.q-foot { margin-top: var(--sp-2); display: flex; justify-content: space-between; }
.q-card.is-swap { animation: swap .28s ease both; }
@keyframes swap { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* 결과 */
.res-lead { font-size: var(--f-sm); color: var(--ink-2); font-weight: 600; }
.res-name { margin-top: 4px; font: 800 clamp(36px, 10vw, 64px)/1.08 var(--serif); letter-spacing: -0.045em; }
.res-line { margin-top: var(--sp-2); font-size: 17px; line-height: 1.6; max-width: 30em; }
.bars { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 6.4em minmax(0, 1fr) 3.4em; align-items: center; gap: 10px; font-size: var(--f-sm); }
.bar b { font-weight: 700; }
.bar i { display: block; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar i span { display: block; height: 100%; background: var(--brand); border-radius: 5px; transform-origin: left; animation: grow .7s cubic-bezier(.2, .7, .2, 1) both; }
.bar em { white-space: nowrap; font-style: normal; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.why { margin-top: var(--sp-4); }
.why h2, .check legend { font-size: var(--f-sm); font-weight: 700; color: var(--ink-2); padding: 0; }
.why-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.why-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list b { font: 800 20px/1.2 var(--serif); letter-spacing: -0.03em; }
.why-list span { font-size: var(--f-sm); color: var(--ink-2); line-height: 1.5; }
.check { margin: var(--sp-4) 0 0; padding: 0; border: 0; min-width: 0; }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-ui); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 var(--f-sm)/1 var(--font); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.check-note { margin-top: 8px; font-size: var(--f-sm); color: var(--ink-2); min-height: 1.5em; }
.share { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.share-note { flex-basis: 100%; font-size: var(--f-min); color: var(--ink-2); min-height: 1.4em; }
.after { padding-top: var(--sp-2); }

@media (prefers-reduced-motion: reduce) {
  .prov-ink { transition: none; }
  .w-word.is-new, .q-card.is-swap, .bar i span { animation: none; }
}
/* 읽을거리 안 작은 지도·인용 */
.doc-map { margin: var(--sp-3) 0; }
.doc-map svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.doc-map .prov { fill: var(--kland); stroke: var(--kedge); stroke-width: 1.1; }
.doc-map figcaption { margin-top: 6px; text-align: center; font-size: var(--f-min); color: var(--ink-2); }
.doc-quote { margin: var(--sp-2) 0; padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--brand); background: var(--surface); font: 700 19px/1.6 var(--serif); letter-spacing: -0.02em; }
