/* ─────────────────────────────────────────────────────────────
   진료비 지도 — 비급여 진료비 비교
   손으로 쓴 스타일시트. 프레임워크 없음.

   색 체계
     바탕   소프트 화이트 · 페일 슬레이트 (#f8fafc / #f1f5f9)
     카드   화이트 (#ffffff)
     본문   딥 슬레이트 네이비 (#0f172a / #334155)
     포인트 차분한 메디컬 틸 (#0f766e / #0d9488)
     판정   낮음=틸, 높음=앰버 (가격 비교 판정에만 사용)
   장시간 읽어도 눈이 피로하지 않도록 순수 검정·순수 흰색 대비를 피한다.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #f8fafc;
  --paper-2: #f1f5f9;
  --paper-3: #e2e8f0;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6ebf2;
  --line-2: #cbd5e1;
  --accent: #0f766e;
  --accent-2: #0d9488;
  --accent-ink: #0b5f59;
  --accent-soft: #effaf7;
  --accent-line: #cfe9e3;
  --warn: #b45309;
  --warn-soft: #fdf4e6;
  --radius: 16px;
  --max: 1120px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 34px -26px rgba(15, 23, 42, 0.4);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(1100px 380px at 50% -140px, #ffffff 0%, rgba(255, 255, 255, 0) 72%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -0.01em;
  word-break: keep-all;            /* 한국어는 단어 중간에서 줄바꿈하지 않는다 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: #cdeae4; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

/* ── 배너 ──────────────────────────────────────────────── */
.sample-bar {
  background: var(--warn);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}
.sample-bar .wrap {
  display: flex; gap: 10px; align-items: center;
  padding-top: 9px; padding-bottom: 9px;
}
.sample-bar strong { font-weight: 700; }
.sample-bar span { opacity: 0.92; }

/* ── 헤더 ──────────────────────────────────────────────── */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16.5px; letter-spacing: -0.035em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; position: relative;
}
.brand-mark::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px; border: 1px dashed var(--line-2); border-radius: 50%;
}
.brand small {
  font-weight: 500; font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; border-left: 1px solid var(--line);
  margin-left: 4px; padding-left: 10px;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav .nav-cta {
  border: 1px solid var(--accent); border-radius: 999px; padding: 7px 14px;
  font-weight: 600; color: var(--accent-ink);
}
.nav .nav-cta:hover { background: var(--accent); color: #fff; border-bottom-color: var(--accent); }

/* ── 히어로 (압축) ─────────────────────────────────────── */
.hero { padding: 30px 0 16px; }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: var(--muted); margin: 0 0 12px;
}
.eb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 3px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.005em;
}
.eb-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2);
}
.hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  max-width: 24em;
  margin-bottom: 10px;
}
.hero .lede {
  max-width: 62ch; font-size: clamp(14.5px, 1.6vw, 16px);
  color: var(--ink-2); line-height: 1.65; margin-bottom: 14px;
}
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0; font-size: 12.5px; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2);
  margin-right: 8px;
}
.hero-meta b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-meta a { color: var(--muted); text-decoration-color: var(--line-2); }
.hero-meta a::before {
  content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-2); margin-right: 8px; vertical-align: middle;
}
.hero-meta a:hover { color: var(--accent-ink); }

/* ── 필터 패널 ─────────────────────────────────────────── */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin: 0 0 14px;
  box-shadow: var(--shadow-sm);
}
.filters {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px 14px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label {
  font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}
.control {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-height: 44px;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.control:hover { border-color: var(--muted); }
.control:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.control:disabled { opacity: 0.45; cursor: not-allowed; }
input.control { background-image: none; padding-right: 12px; cursor: text; }
.panel-foot {
  margin: 10px 0 0;
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
.sec-title {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 8px;
}

/* ── 요약 지표 ─────────────────────────────────────────── */
.summary {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.stat {
  display: flex; flex-direction: column;
  padding: 15px 18px 14px; border-right: 1px solid var(--line);
  min-width: 0;
}
.stat:last-child { border-right: 0; }
.stat .s-label {
  display: block;
  font-size: 11.5px; color: var(--muted); font-weight: 600;
  letter-spacing: 0.015em; margin-bottom: 3px;
}
.stat .s-value {
  display: block; font-size: clamp(18px, 2.2vw, 21px); font-weight: 700;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.25;
}
.stat:first-child .s-value { color: var(--ink); }
.stat .s-value small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat .hint {
  display: block; font-size: 11px; color: var(--muted); font-weight: 500;
  margin-top: 3px; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── 적정 가격 기준선 체크 (상단 핵심) ─────────────────── */
.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
}
.block-head { margin-bottom: 12px; }
.block-head h3 { font-size: 15.5px; letter-spacing: -0.02em; }
.block-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.block-note {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--muted); line-height: 1.62;
}
.plain { margin: 0; font-size: 13.5px; color: var(--muted); }

.block--check {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 22px 34px;
  align-items: start;
  margin-bottom: 14px;
  padding: 22px 24px 20px;
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, #f2fbf8 0%, #ffffff 62%);
}
.check-left .block-head { margin-bottom: 14px; }
.check-left .block-head h3 { color: var(--ink); }
.quote-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.quote-input {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 11px;
  padding: 2px 4px 2px 13px;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.quote-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
.quote-input input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  padding: 9px 0; color: var(--ink); font-variant-numeric: tabular-nums;
}
.quote-input input::placeholder { font-weight: 500; color: #94a3b8; letter-spacing: 0; font-size: 15px; }
.quote-input .unit { font-size: 13px; color: var(--muted); }
.quote-clear {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--muted); padding: 7px 8px;
  border-radius: 7px;
}
.quote-clear:hover { color: var(--ink); background: var(--paper-2); }

.quote-result { font-size: 13.5px; color: var(--ink-2); min-height: 148px; }
.q-lead { margin: 0 0 10px; line-height: 1.6; }
.q-lead strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.q-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.q-presets button {
  font: inherit; font-size: 12px; padding: 6px 11px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2);
  transition: border-color 120ms var(--ease), color 120ms var(--ease), background 120ms var(--ease);
}
.q-presets button:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.q-caveat { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

.q-verdict-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 2px; }
.q-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.q-badge.down { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.q-badge.mid { background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.q-badge.up { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px #f3dfc2; }
.q-verdict {
  margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em;
}
.q-verdict.down { color: var(--accent-ink); }
.q-verdict.up { color: var(--warn); }
.q-verdict.mid { color: var(--ink); }

.q-gauge { margin: 14px 0 0; }
.q-track {
  position: relative; height: 10px; border-radius: 999px;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.q-zone {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: rgba(15, 118, 110, 0.14);
  border-radius: 999px 0 0 999px;
}
.q-zone--high { left: auto; right: 0; background: rgba(180, 83, 9, 0.12); border-radius: 0 999px 999px 0; }
.q-med, .q-avg {
  position: absolute; bottom: -5px; width: 2px; height: 20px; background: var(--ink);
  border-radius: 2px; transform: translateX(-1px);
}
.q-avg { background: var(--line-2); width: 1px; height: 16px; bottom: -3px; }
.q-dot {
  position: absolute; top: 50%; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1.5px var(--ink), 0 2px 6px rgba(15, 23, 42, 0.18);
}
.q-dot.down { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 2px 6px rgba(15, 118, 110, 0.22); }
.q-dot.up { background: var(--warn); box-shadow: 0 0 0 1.5px var(--warn), 0 2px 6px rgba(180, 83, 9, 0.2); }
.q-scale {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 10px; font-size: 11px; color: var(--muted);
}
.q-scale b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.q-legend {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  margin-top: 4px; font-size: 10.5px; color: var(--muted);
}
.q-legend span { display: inline-flex; align-items: center; gap: 5px; }
.q-legend i { display: inline-block; width: 10px; height: 2px; border-radius: 1px; }
.q-legend i.lg-med { background: var(--ink); height: 8px; width: 2px; }
.q-legend i.lg-avg { background: var(--line-2); height: 7px; width: 1px; }
.q-out { margin: 6px 0 0; font-size: 11px; color: var(--warn); }
.q-compare { margin: 12px 0 0; display: grid; gap: 5px; }
.q-compare > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--line);
}
.q-compare > div:last-child { border-bottom: 0; }
.q-compare dt { color: var(--muted); margin: 0; }
.q-compare dd {
  margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600;
  white-space: nowrap;
}
.q-delta { font-weight: 600; font-size: 11.5px; margin-left: 4px; }
.q-delta.up { color: var(--warn); }
.q-delta.down { color: var(--accent-ink); }
.q-delta.mid { color: var(--muted); }

/* ── 비교 블록 ─────────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

/* 지역 막대 (데스크톱 2단 그리드) */
.region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
}
.srow {
  display: grid;
  grid-template-columns: 52px minmax(30px, 1fr) auto 44px;
  align-items: center; gap: 9px;
  width: 100%; padding: 7px 8px;
  border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink-2);
  cursor: pointer; text-align: left;
  transition: background 100ms var(--ease);
}
.srow:hover { background: var(--paper-2); }
.srow.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.srow.on .sname { color: var(--accent-ink); font-weight: 700; }
.sname { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sbar { display: block; height: 7px; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.sbar i {
  display: block; height: 100%; border-radius: 4px;
  background: #a8c4be;
  transition: width 240ms var(--ease);
}
.srow.on .sbar i { background: var(--accent-2); }
.sval {
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 600;
  color: var(--ink); white-space: nowrap; font-size: 12.5px;
}
.sdelta {
  text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums;
  white-space: nowrap; letter-spacing: -0.02em;
}
.sdelta.up { color: var(--warn); }
.sdelta.down { color: var(--accent-ink); }
.sdelta.mid { color: var(--muted); }

.region-toggle {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin-top: 10px; padding: 9px 10px;
  border: 0; border-top: 1px dashed var(--line); background: transparent;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-ink);
  cursor: pointer; border-radius: 0 0 8px 8px;
}
.region-toggle:hover { background: var(--accent-soft); }
.region-toggle::after {
  content: ""; width: 0; height: 0; margin-top: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 160ms var(--ease);
}
.region-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* 종별 카드 */
.cl-list { display: grid; gap: 9px; }
.clcard {
  border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px 10px; background: var(--paper);
}
.cl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cl-name { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cl-name::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2); margin-right: 6px; vertical-align: 1px;
}
.clcard:nth-child(2) .cl-name::before { background: #a8c4be; }
.clcard:nth-child(3) .cl-name::before { background: var(--accent-2); }
.cl-price { font-size: 16.5px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.clbar { height: 5px; background: var(--paper-3); border-radius: 3px; margin: 8px 0 7px; overflow: hidden; }
.clbar i { display: block; height: 100%; background: #b9d2cc; border-radius: 3px; }
.cl-foot { display: flex; align-items: center; gap: 7px; }
.cl-note { font-size: 10.5px; color: var(--muted); }

/* 배지 (판정에만 사용) */
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; white-space: nowrap;
}
.badge.down { background: var(--accent-soft); color: var(--accent-ink); }
.badge.up { background: var(--warn-soft); color: var(--warn); }
.badge.mid { background: var(--paper-3); color: var(--ink-2); }
.badge-note { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; letter-spacing: 0; }

/* ── 항목 상세 + 가이드 연결 ───────────────────────────── */
.block--detail { margin-top: 0; }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 296px;
  gap: 26px; align-items: start;
}
.detail-main { min-width: 0; }
.detail-title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 4px;
}
.detail-title h3 { font-size: 17px; letter-spacing: -0.025em; }
.detail-title span { font-size: 11.5px; color: var(--muted); }
.kv { margin: 10px 0 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; font-size: 12.5px; }
.kv dt { color: var(--muted); font-size: 11.5px; }
.kv dd { margin: 0; color: var(--ink-2); }
.kv dd.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.02em; color: var(--muted); }
.detail-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; max-width: 72ch; }
.variants { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.variants summary {
  cursor: pointer; font-size: 12.5px; color: var(--accent-ink); font-weight: 600;
  list-style: none;
}
.variants summary::-webkit-details-marker { display: none; }
.variants summary::before { content: "＋ "; }
.variants[open] summary::before { content: "− "; }
.variants table { margin-top: 8px; }

.detail-guide {
  background: linear-gradient(180deg, #f2fbf8 0%, #ffffff 100%);
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  padding: 16px 16px 14px;
}
.detail-guide .kicker {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-ink); margin-bottom: 8px;
}
.guide-card {
  display: block; text-decoration: none; color: inherit;
  padding: 12px 13px; border-radius: 11px; background: #fff;
  border: 1px solid var(--line);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease), transform 140ms var(--ease);
}
.guide-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.guide-card .g-title {
  display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.45; color: var(--ink); margin-bottom: 4px;
}
.guide-card .g-desc { display: block; font-size: 12px; color: var(--muted); line-height: 1.55; }
.guide-card .g-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: 12px; font-weight: 600; color: var(--accent-ink);
}
.guide-alt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding: 9px 12px; border-radius: 10px;
  font-size: 12px; color: var(--ink-2); text-decoration: none;
  border: 1px dashed var(--line-2); background: transparent;
}
.guide-alt:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.guide-alt span { color: var(--muted); font-size: 11px; }

.related { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.related-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.03em; margin-bottom: 7px;
}

/* ── 전체 표 ───────────────────────────────────────────── */
.all-table table { font-size: 13.5px; }
.all-table .grp th {
  padding-top: 22px; font-size: 11px; letter-spacing: 0.05em;
  color: var(--accent-ink); border-bottom-color: var(--line-2);
}
.all-table tbody:first-child .grp th { padding-top: 6px; }
.all-table td, .all-table th { padding-top: 8px; padding-bottom: 8px; }
.all-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.all-table .range { color: var(--muted); font-size: 12.5px; }
.linkish {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; color: var(--ink); cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--line-2);
}
.linkish:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.table-note { font-size: 12.5px; color: var(--muted); max-width: 74ch; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; padding: 13px 0; font-size: 15px; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 11px; color: var(--muted); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.72; }

.more-link { margin: 22px 0 0; font-size: 14px; }

/* ── 안내 블록 ─────────────────────────────────────────── */
.note {
  display: grid; grid-template-columns: 92px 1fr; gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.note h3 { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.03em; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

.scope {
  margin: 18px 0 0; padding: 20px 22px;
  background: var(--paper-2); border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px; color: var(--ink-2);
}
.scope strong { color: var(--ink); }
.scope ul { columns: 2; column-gap: 32px; margin: 8px 0 0; }
.scope li { break-inside: avoid; }

/* ── 섹션 ──────────────────────────────────────────────── */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { font-size: clamp(20px, 2.6vw, 25px); margin-bottom: 6px; }
.section > .wrap > .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.card {
  display: block; padding: 20px 0 20px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
}
.card:nth-child(odd) { padding-right: 30px; }
.card:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.card .kicker { font-size: 11.5px; color: var(--accent-ink); font-weight: 600; margin-bottom: 5px; display: block; letter-spacing: 0.01em; }
.card h3 { font-size: 16.5px; margin-bottom: 5px; letter-spacing: -0.025em; line-height: 1.4; }
.card p { color: var(--ink-2); font-size: 13.5px; margin: 0; line-height: 1.65; }
.card:hover h3 { color: var(--accent-ink); }

.quick { display: flex; flex-wrap: wrap; gap: 7px; }
.quick button {
  font: inherit; font-size: 12.5px; padding: 7px 12px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink-2);
  transition: border-color 120ms var(--ease), color 120ms var(--ease), background 120ms var(--ease);
  white-space: nowrap;
}
.quick button:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.quick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 본문 페이지 ───────────────────────────────────────── */
.page { padding: 40px 0 60px; }
.page-head { max-width: 68ch; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(25px, 3.6vw, 34px); margin-bottom: 12px; }
.page-head .lede { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.prose { max-width: 68ch; font-size: 15.5px; color: var(--ink-2); }
.prose h2 {
  font-size: 20px; color: var(--ink); margin: 2.2em 0 0.6em;
  padding-top: 1.05em; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 16px; color: var(--ink); margin: 1.6em 0 0.5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; }
.prose blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--accent);
  color: var(--ink); font-size: 15px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.callout {
  background: var(--paper-2); border-radius: var(--radius);
  padding: 16px 18px; margin: 1.6em 0; font-size: 13.5px; color: var(--ink-2);
}
.callout .t { font-weight: 700; color: var(--ink); display: block; margin-bottom: 4px; font-size: 13px; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); font-size: 12.5px; border-bottom-color: var(--line-2); }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 32px; background: var(--card);
  font-size: 13.5px;
}
.toc .t { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 5px; letter-spacing: 0.04em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 2px; }

.meta-line {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 12px; color: var(--muted); margin-bottom: 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}

/* ── 푸터 ──────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line); background: var(--paper-2);
  padding: 40px 0 36px; margin-top: 20px;
}
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
.foot-brand { max-width: 34ch; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 9px; letter-spacing: 0.04em; }
.foot-col a { display: block; font-size: 13px; color: var(--ink-2); text-decoration: none; margin-bottom: 6px; }
.foot-col a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal {
  border-top: 1px solid var(--line-2); padding-top: 16px;
  font-size: 11px; color: var(--muted); line-height: 1.75;
}
.foot-legal p { margin: 0 0 6px; }

/* ── 반응형 ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .block--check { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 18px 24px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
}

@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .block--check { grid-template-columns: 1fr; gap: 16px; }
  .quote-result { min-height: 0; }
  .summary { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-guide { order: -1; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .scope ul { columns: 1; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; line-height: 1.65; }
  .wrap { padding: 0 18px; }
  .site-head .wrap { min-height: 54px; }
  .hero { padding: 22px 0 12px; }
  .hero h1 { font-size: 25px; max-width: none; margin-bottom: 8px; }
  .hero .lede { font-size: 13.5px; line-height: 1.55; margin-bottom: 8px; }
  .hero-meta { font-size: 11.5px; gap: 4px 10px; }
  .hero-meta span.opt { display: none; }
  .eyebrow { margin-bottom: 9px; font-size: 11px; }
  .sec-title { display: none; }
  .panel { padding: 14px; margin-bottom: 10px; }
  .filters { grid-template-columns: 1fr; gap: 10px; }
  .control { min-height: 42px; font-size: 14.5px; }
  .quick { gap: 5px; }
  .quick button { font-size: 12px; padding: 6px 9px; }
  .panel-foot { font-size: 11.5px; }
  .summary { margin-bottom: 10px; }
  .stat { padding: 12px 14px; }
  .stat .s-value { font-size: 18px; }
  .stat .hint { font-size: 10.5px; white-space: normal; }
  .block { padding: 16px 15px 14px; border-radius: 14px; }
  .block--check { padding: 16px 15px 14px; margin-bottom: 10px; }
  .quote-input input { font-size: 18px; }
  .q-scale { font-size: 10.5px; gap: 6px; }
  .q-legend { font-size: 10px; gap: 3px 12px; }
  .compare-grid { gap: 10px; margin-bottom: 10px; }
  .region-list { grid-template-columns: 1fr; gap: 1px; }
  .srow { grid-template-columns: 48px minmax(0, 1fr) 90px 44px; gap: 8px; font-size: 13px; }
  .cl-list { grid-template-columns: 1fr; }
  .detail-guide { padding: 14px; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(odd) { padding-right: 0; }
  .card:nth-child(even) { padding-left: 0; border-left: 0; }
  .note { grid-template-columns: 1fr; gap: 4px; }
  .kv { grid-template-columns: 84px minmax(0, 1fr); }
  .brand small { display: none; }
  .foot-links { gap: 32px; }
  .section { padding: 36px 0; }
  .page { padding: 28px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
