/* 메디펙트 — 정밀한 클리닉: 흰 바탕, 민트 한 가지, 1px 선으로 나누고 그림자는 쓰지 않는다. 글자는 크게(본문 17px) 유지. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f5f8f7; --text: #16232b; --muted: #5e6b73; --line: #e1e8e6;
  --accent: #0e9f8e;          /* 아이콘·지도·장식 (흰 바탕 글자 대비 3.3:1 이라 글자에는 안 씀) */
  --accent-strong: #0a7a6d;   /* 글자·링크·버튼 (대비 5.2:1) */
  --accent-soft: #e7f6f3; --link: #0a7a6d;
  --btn-bg: #0a7a6d; --btn-text: #ffffff; --btn-hover: #08645a;
  --tile-off: #e9efed; --tile-off-hot: #d6e2de; --tile-on: #a8dfd5; --tile-hot: #0a7a6d;
  --grid: rgba(14, 159, 142, .07);
  --warn: #8a5a00; --warn-soft: #fff3d6;
  --radius: 8px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1518; --surface: #151d21; --surface-2: #1a2429; --text: #e6edef; --muted: #9ba9af; --line: #26343a;
    --accent: #3ccbb6; --accent-strong: #5fd9c6; --accent-soft: #15302c; --link: #5fd9c6;
    --btn-bg: #3ccbb6; --btn-text: #062420; --btn-hover: #5fd9c6;
    --tile-off: #1f2b30; --tile-off-hot: #2a3a40; --tile-on: #2c6e65; --tile-hot: #5fd9c6;
    --grid: rgba(60, 203, 182, .06);
    --warn: #f0c36b; --warn-soft: #3a2f17;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.75; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word; font-variant-numeric: tabular-nums;
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--btn-hover); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: inline-block; vertical-align: -0.2em; color: var(--accent); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius);
  border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-text); font-weight: 600; font-size: .95rem; line-height: 1.3;
  text-decoration: none; }
.btn:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn-sm { padding: 6px 13px; font-size: .88rem; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--muted); }
.btn-light { background: var(--btn-bg); color: var(--btn-text); }
.btn-light:hover { background: var(--btn-hover); color: var(--btn-text); }

/* 머리글 */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 8px 28px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.12rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font-size: .9rem;
  background: var(--btn-bg); color: var(--btn-text); }  /* 다크 모드에서도 글자 대비가 유지되게 버튼 색을 따른다 */
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
.top nav a:hover { color: var(--text); }
.sample { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 8px 16px; font-size: .9rem; }

/* 타이포그래피 */
h1 { font-size: 2.05rem; line-height: 1.35; letter-spacing: -0.02em; font-weight: 750; margin: 6px 0 14px; }
h2 { font-size: 1.4rem; line-height: 1.45; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 1.1rem; line-height: 1.45; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .88rem; margin: 0; }
.lead { font-size: 1.08rem; color: var(--text); max-width: 52em; }
.source, .note { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.more { margin: 16px 0 0; font-weight: 600; }

/* 페이지 머리 띠 */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 0 28px; }
.crumbs { font-size: .86rem; color: var(--muted); margin: 14px 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-head .source { margin: 14px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.page-body { padding-bottom: 24px; }
.page-body > section { margin-top: 56px; }
.sec-head { margin-bottom: 18px; }
.sec-head h2 { margin-bottom: 4px; }
.sec-head p { color: var(--muted); margin: 0; }

/* 숫자 요약: 칸을 1px 선으로 나눈 한 덩어리 */
.stat-grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; gap: 1px; background: var(--line); }
.stat-grid li { background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-grid span { color: var(--muted); font-size: .82rem; }
.stat-grid b { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.02em; }

/* 순위 카드 */
.rank-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 12px 0; }
.rank-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.rc-rank { width: 44px; height: 44px; border-radius: var(--radius); border: 1.5px solid var(--accent-strong); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; }
.rc-rank b { font-size: 1.3rem; line-height: 1; }
.rc-rank span { font-size: .72rem; font-weight: 700; margin: .35em 0 0 1px; }
.rank-card:first-of-type .rc-rank { background: var(--accent-strong); color: var(--btn-text); }
.rank-card h3 { font-size: 1.22rem; margin: 0; }
.rank-card h3 a { color: var(--text); text-decoration: none; }
.rank-card h3 a:hover { color: var(--accent-strong); }
.rc-meta { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
/* 치과명 왼쪽 대표 이미지(홈페이지 공유용 이미지) — 로고가 대부분 흰 바탕이라 어두운 화면에서도 흰 타일로 둔다 */
.rc-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.rc-head > div { min-width: 0; }
.rc-head .rc-meta { margin: 0; }
.rc-thumb { flex: none; width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; object-fit: cover; }
.rc-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); border-color: transparent;
  color: var(--accent-strong); font-size: 1.15rem; font-weight: 700; line-height: 1; }
.summary { margin: 12px 0 14px; }
.tags, .checks { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 600; padding: 3px 9px; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.ck { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 600; padding: 3px 8px 3px 9px; line-height: 1.5;
  border-radius: 6px; border: 1px solid transparent; }
.ck .st { margin-left: 1px; }
.ck.yes { background: var(--accent-soft); color: var(--accent-strong); }
.ck.yes .ic { color: var(--accent-strong); }
.ck.no { background: var(--surface-2); color: var(--muted); }
.ck.no .ic { color: var(--muted); }
.ck.unknown { background: var(--surface); color: var(--muted); border: 1px dashed var(--line); }
.ck.unknown .ic { color: var(--muted); }
.page-head .checks { margin: 16px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; margin: 0;
  padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .93rem; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: .82rem; }
.facts dd { margin: 0; }
.badge { font-size: .75rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-strong); border-radius: 4px;
  padding: 2px 7px; vertical-align: middle; }

/* 표 */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-size: .84rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { white-space: nowrap; }
table.data td a { font-weight: 600; text-decoration: none; }
table.data td a:hover { text-decoration: underline; }

/* 자주 묻는 질문 */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 8px 0; }
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-strong); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
details[open] summary::after { content: "−"; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 0; color: var(--text); }

/* 링크 목록 · 칩 */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); padding: 11px 4px; font-size: .95rem; }
.link-list li a { text-decoration: none; font-weight: 600; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pill-list a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 600; }
.pill-list a:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.pill-list span { color: var(--muted); font-size: .8rem; font-weight: 500; }

/* 홈: 첫 화면 — 이 사이트에서 하나뿐인 장식은 '진료 차트' 같은 옅은 모눈 */
.hero { padding: 52px 0 56px; border-bottom: 1px solid var(--line);
  background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.3; margin: 10px 0 14px; }
.search { position: relative; display: flex; gap: 6px; margin: 22px 0 14px; background: var(--surface); border-radius: var(--radius);
  padding: 5px; border: 1px solid color-mix(in srgb, var(--text) 22%, var(--line)); }
.search:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 9px 12px; color: var(--text); background: transparent; }
.search input::placeholder { color: var(--muted); }
.search button { font: inherit; font-weight: 700; border: 0; border-radius: 6px; padding: 9px 22px; background: var(--btn-bg); color: var(--btn-text); cursor: pointer; }
.search button:hover { background: var(--btn-hover); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 4px; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(22, 35, 43, .12); }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 6px; color: var(--text);
  text-decoration: none; font-weight: 600; }
.search-results a:hover, .search-results a:focus { background: var(--surface-2); }
.search-results a { min-width: 0; }
.search-results span { color: var(--muted); font-weight: 400; font-size: .86rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 55%; flex: none; }  /* 지역·종류가 길어도 한 줄 */
.search-results .none { padding: 9px 12px; color: var(--muted); }
.quick { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quick a { display: inline-block; padding: 5px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.quick a:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-stats li { padding: 18px 20px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.02em; }
.hero-stats span { color: var(--muted); font-size: .84rem; line-height: 1.45; }

/* 홈: 지역 선택 (지도 + 패널) */
.region-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.map-card, .region-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile-map { width: 100%; height: auto; max-width: 400px; display: block; margin: 0 auto; }
.tile path, .tile circle { fill: var(--tile-off); stroke: var(--surface); stroke-width: 1.2; stroke-linejoin: round; transition: fill .12s; }
.tile circle { stroke-width: .8; }
.tile { cursor: pointer; }
.tile:focus { outline: none; }
.tile.off:hover path, .tile.off.active path, .tile.off:focus path,
.tile.off:hover circle, .tile.off.active circle, .tile.off:focus circle { fill: var(--tile-off-hot); }
.tile.on path, .tile.on circle { fill: var(--tile-on); }
.tile.on:hover path, .tile.on:focus path, .tile.on.active path { fill: var(--tile-hot); }
.tile-map text { text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.lbl { fill: var(--muted); }
.lbl.nm { font-size: 13px; font-weight: 700; }
.lbl.ct { font-size: 11px; font-weight: 600; }
.lbl.on { fill: var(--accent-strong); }
.lbl.active { fill: var(--text); }
.tile-map .isl { font-size: 9px; font-weight: 600; fill: var(--muted); }
.connector { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 6 3 1.5 3; pointer-events: none; }  /* 일점쇄선: 섬을 옮겨 그렸다는 표시 */
.map-source { color: var(--muted); font-size: .76rem; line-height: 1.55; margin: 10px 0 0; }
.map-source a { color: var(--muted); }
.map-legend { display: flex; align-items: center; justify-content: center; gap: 6px 8px; margin: 14px 0 0; color: var(--muted); font-size: .84rem; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.lg.on { background: var(--tile-on); }
.lg.off { background: var(--tile-off); border: 1px solid var(--line); }
.region-panel { position: sticky; top: 80px; min-height: 280px; }
.rp-kicker { color: var(--accent-strong); font-weight: 700; font-size: .85rem; margin: 0 0 4px; }
.rp h3 { font-size: 1.5rem; margin: 0 0 10px; }
.mini { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini div { flex: 1 1 0; min-width: 0; padding: 8px 12px; }
.mini div + div { border-left: 1px solid var(--line); }
.mini dt { color: var(--muted); font-size: .78rem; }
.mini dd { margin: 0; font-weight: 700; }
.rp .btn { margin-top: 18px; }
.rp-sub { color: var(--muted); font-size: .85rem; font-weight: 700; margin: 16px 0 8px; }
.rp-sub small { font-weight: 500; }
.rp .gu-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.rp .gu-grid a { padding: 10px 12px; }
.rp .gu-grid b { font-size: 1rem; }

/* 비급여 비용 카드 */
.price-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-cards li { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.price-cards .pc-name { font-weight: 700; font-size: .95rem; }
.price-cards .pc-name small { color: var(--muted); font-weight: 500; font-size: .8rem; margin-left: 2px; }
.price-cards b { font-size: 1.4rem; line-height: 1.3; color: var(--text); letter-spacing: -0.02em; }
.price-cards .pc-basis { color: var(--muted); font-size: .78rem; }
.rp .price-cards { grid-template-columns: 1fr 1fr; }
.rp .price-cards li { padding: 10px 12px; }
.rp .price-cards b { font-size: 1.12rem; }
.prices .more-prices { margin-top: 12px; }
.prices .more-prices .scroll { margin-top: 10px; }

/* 시·군·구 카드 */
.gu-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.gu-grid a, .gu-grid div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.gu-grid a:hover { border-color: var(--accent-strong); color: var(--text); }
.gu-grid a:hover b { color: var(--accent-strong); }
.gu-grid b { font-size: 1.08rem; }
.gu-grid span { color: var(--muted); font-size: .86rem; }

/* 홈: 진료별 · 순위 기준 · 신청 */
.topic-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tab-row { display: flex; gap: 14px; align-items: baseline; margin-bottom: 10px; }
.tab-row > span { flex: 0 0 34px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.tab-row > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tab-row button { font: inherit; font-size: .92rem; font-weight: 600; padding: 5px 12px 5px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.5; }
.tab-row button:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.tab-row button[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.tab-row button[aria-pressed="true"] .ic { color: var(--btn-text); }
.tp { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tp h3 { font-size: 1.2rem; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.tp p { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.tp details { padding: 8px 14px; margin: 6px 0; }
.tp summary span { margin: 0 auto 0 8px; color: var(--muted); font-weight: 500; font-size: .86rem; }
.tp details[open] summary { margin-bottom: 10px; }
.axis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.axis { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.axis b { font-size: 1.05rem; }
.axis span { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.cta h2 { margin-bottom: 6px; }
.cta p { color: var(--muted); margin: 0; max-width: 44em; }

/* 역 페이지 반경 버튼 */
.radius { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.radius button { font: inherit; font-size: .92rem; font-weight: 600; padding: 6px 13px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; }
.radius button span { color: var(--muted); font-size: .82rem; font-weight: 500; }
.radius button[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.radius button[aria-pressed="true"] span { color: inherit; }

/* 바닥글 */
footer { margin-top: 72px; background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.foot { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; }
.foot > div { max-width: 36em; }
.foot .brand { color: var(--text); margin-bottom: 10px; }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--accent-strong); }

/* 정정 요청·정보 확인 신청 양식(관리자 접수함으로 감) */
.mf-form { position: relative; margin: 18px 0 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.mf-form label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--muted); }
.mf-form input:not([type=checkbox]), .mf-form textarea { font: inherit; font-size: .95rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; min-width: 0; }
.mf-form textarea { resize: vertical; line-height: 1.5; }
.mf-form input:focus, .mf-form textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.mf-wide { grid-column: 1 / -1; }
.mf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mf-form .mf-agree { flex-direction: row; align-items: flex-start; gap: 8px; margin: 12px 0; color: var(--text); font-size: .88rem; }
.mf-agree input { margin-top: 3px; accent-color: var(--accent-strong); }
.mf-status { margin: 10px 0 0; min-height: 1.4em; font-size: .9rem; }
.mf-status.ok { color: var(--accent-strong); }
.mf-status.err { color: var(--warn); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile path, .tile circle { transition: none; }
}
/* 태블릿 */
@media (max-width: 900px) {
  .hero-grid, .region-layout { grid-template-columns: 1fr; }
  .region-panel { position: static; min-height: 0; }
}
/* 휴대폰 */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .mf-grid { grid-template-columns: 1fr; }
  .mf-form { padding: 14px; }
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
  .top nav { order: 3; width: 100%; margin-left: 0; gap: 2px 16px; }
  .top .btn-cta { margin-left: auto; }
  h1 { font-size: 1.55rem; }
  .hero { padding: 34px 0 38px; }
  .hero h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  .page-body > section { margin-top: 44px; }
  .hero-stats b { font-size: 1.3rem; }
  .search button { padding: 9px 16px; }
  .rank-card { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .rc-rank { width: auto; height: auto; justify-content: flex-start; padding: 3px 10px; justify-self: start; }
  .rc-rank b { font-size: 1.05rem; }
  .map-card, .region-panel { padding: 16px; }
  .tile-map { max-width: 340px; }
  .lbl.nm { font-size: 16px; }  /* 지도가 작아지는 만큼 글자를 키운다 */
  .lbl.ct { font-size: 13px; }
  .cta { padding: 20px; }
  /* 글이 긴 표(stack)는 줄마다 쌓고, 칸 이름을 값 위에 작게 단다 */
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; }
  table.data.stack tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.data.stack tbody tr:last-child { border-bottom: 0; }
  table.data.stack td, table.data.stack td:first-child { padding: 0; border: 0; white-space: normal; }
  table.data.stack td:first-child { font-weight: 600; color: var(--text); }
  table.data.stack td + td::before { content: attr(data-label); display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
  /* 기본 정보(infolist)·비용(pricelist) 표는 촘촘한 목록으로: 머리줄은 화면에서만 숨기고 줄마다 grid */
  table.data.infolist thead, table.data.pricelist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.infolist, table.data.infolist tbody, table.data.pricelist, table.data.pricelist tbody { display: block; }
  table.data.infolist tr, table.data.pricelist tr { display: grid; gap: 2px 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  table.data.infolist tbody tr:last-child, table.data.pricelist tbody tr:last-child { border-bottom: 0; }
  table.data.infolist td, table.data.pricelist td { padding: 0; border: 0; white-space: normal; }
  /* 기본 정보: 왼쪽 항목 | 오른쪽 값, 출처는 값 아래 작게 */
  table.data.infolist tr { grid-template-columns: 6.5rem 1fr; }
  table.data.infolist td:first-child { grid-row: span 2; color: var(--muted); }
  table.data.infolist td:nth-child(3) { grid-column: 2; color: var(--muted); font-size: .8rem; }
  /* 비용: 항목 이름 | 평균가, 그 아래 최저 ~ 최고·근거를 작게 */
  table.data.pricelist tr { grid-template-columns: 1fr auto; }
  table.data.pricelist td:nth-child(2) { text-align: right; white-space: nowrap; }
  table.data.pricelist td:nth-child(n+3) { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; }
  table.data.pricelist td:nth-child(n+3)::before { content: attr(data-label); margin-right: 8px; font-size: .8rem; }
}
