/* 치과찾기 — 디자인 시스템 (2026-09-17 개편)
 *
 * 원장 결정: 모두닥·굿닥 같은 생활 앱 느낌, 포인트는 민트.
 * 흰 바탕 + 넉넉한 여백 + 둥근 칸 + 굵은 섹션 제목 + 아이콘 메뉴.
 * 가져오지 않는 것: 랭킹·HOT·특가·최저가 표현 (순위를 매기지 않는 사이트이고 의료법 선에 걸린다).
 *
 * 민트는 밝아서 흰 글자를 얹으면 안 읽힌다(#14B8A6 위 흰 글자 대비 2.49).
 *   --mint   #14B8A6  아이콘·장식 전용. 글자에 쓰지 않는다
 *   --act    #0F766E  버튼 바탕·민트 글자. 흰 바탕 5.47 / 회색칸 5.08 / 연민트칸 4.93
 *   --ink-3  #667085  보조 글자. 흰 바탕 4.97 / 회색칸 4.62
 *
 * 한글은 시스템 글꼴(3만 페이지 성능 우선), 숫자만 웹폰트.
 */

:root {
  --bg:      #FFFFFF;
  --tile:    #F4F7F7;   /* 회색 칸 */
  --tile-2:  #EAF0F0;
  --mint-bg: #E8F6F4;   /* 연민트 칸 */
  --mint:    #14B8A6;
  --act:     #0F766E;
  --act-dk:  #0B5F58;
  --ink:     #111827;
  --ink-2:   #374151;
  --ink-3:   #667085;
  --rule:    #E4E9EC;
  --focus:   #0F766E;

  /* 옛 이름 호환 (렌더러 곳곳에서 쓴다) */
  --paper: var(--bg); --paper-2: var(--tile); --paper-3: var(--tile-2);
  --seal: var(--act); --seal-bg: var(--mint-bg); --act-bg: var(--mint-bg);

  /* 병원 정보는 캡처해 보내거나 인쇄하는 일이 잦다. OS 다크모드를 따르지 않고 라이트 고정 */
  color-scheme: light;

  --gutter: 4rem;
  --maxw: 60rem;
  --r: 14px;      /* 카드 */
  --r-s: 10px;    /* 작은 칸 */

  --kr: system-ui, -apple-system, "Pretendard", "Apple SD Gothic Neo",
        "Malgun Gothic", "맑은 고딕", sans-serif;
  --num: "Archivo Narrow", ui-monospace, "SF Mono", Consolas, monospace;
}

html { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--kr);
  font-size: 0.9375rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.num, .dist, .cnt, time { font-family: var(--num); font-variant-numeric: tabular-nums; }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--act); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- 머리 ---------- */

.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.4rem; flex: none;
  min-height: 2.75rem; padding: 0 0.125rem;
  font-weight: 800; letter-spacing: -0.03em; font-size: 1.125rem;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 1.75rem; height: 1.75rem; flex: none; display: block; }

/* 머리 검색창 — 검색으로 들어온 사람은 홈을 거치지 않는다. 어느 페이지에서든 찾게 */
.hs { position: relative; flex: 1 1 auto; max-width: 26rem; }
.hs input {
  width: 100%; height: 2.625rem; padding: 0 1rem 0 2.5rem;
  font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: var(--tile); border: 1.5px solid transparent; border-radius: 999px;
}
.hs input::placeholder { color: var(--ink-3); }
.hs input:focus { outline: none; background: var(--bg); border-color: var(--act); }
.hs > svg, .find > svg {
  position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
  width: 1.125rem; height: 1.125rem; color: var(--ink-3); pointer-events: none;
}

.top nav { margin-left: auto; display: flex; gap: 0.125rem; }
.top nav a {
  min-height: 2.75rem; display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0 0.625rem; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; border-radius: var(--r-s);
}
.top nav a:hover { background: var(--tile); color: var(--act); }

main { max-width: var(--maxw); margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }

footer { border-top: 1px solid var(--rule); margin-top: 3.5rem; background: var(--tile); }
footer > div {
  max-width: var(--maxw); margin: 0 auto; padding: 1.75rem 1.25rem 3rem;
  color: var(--ink-3); font-size: 0.8125rem; line-height: 1.7;
}
footer p { margin: 0 0 0.375rem; }
footer a { color: var(--ink-2); }

/* ---------- 제목 ---------- */

.bc {
  font-size: 0.8125rem; color: var(--ink-3);
  margin: 0 0 0.625rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
}
.bc a { min-height: 1.75rem; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-3); }
.bc a:hover { color: var(--act); }

h1 {
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.25rem);
  line-height: 1.25; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 0.375rem;
}
.loc { margin: 0 0 1.25rem; color: var(--ink-3); font-size: 0.9375rem; }

/* 섹션 제목은 굵고 크게 (예전: 작은 회색 대문자 → 눈에 안 들어왔다) */
main h2 {
  font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.025em;
  color: var(--ink); margin: 2.5rem 0 0.875rem;
}
main h2:first-child { margin-top: 0.5rem; }

/* 직답 문단 - 답변엔진이 통째로 추출한다. 주어·수치·기준일을 문장 안에 모두 담는다 */
.lead {
  font-size: 1rem; line-height: 1.65; color: var(--ink-2);
  margin: 0 0 1.25rem; padding: 0.875rem 1rem;
  background: var(--mint-bg); border-radius: var(--r);
}

/* ---------- 기록 표 ---------- */

.rec { width: 100%; border-collapse: collapse; margin: 0 0 0.5rem; }
.rec thead th { color: var(--ink-2); font-weight: 700; font-size: 0.8125rem; width: auto; }
.rec td.num { font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec td.num small { color: var(--ink-3); font-weight: 400; }
.rec th, .rec td { text-align: left; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rec th { width: 7.5rem; font-weight: 500; color: var(--ink-3); font-size: 0.875rem; white-space: nowrap; }
.rec td { color: var(--ink); }
.rec td a[href^="tel:"] { color: var(--act); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 치과 목록 카드 ---------- */

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.list > li {
  position: relative;
  display: grid; grid-template-columns: var(--gutter) 1fr; gap: 0 0.875rem;
  padding: 1rem 1rem 1rem 0.5rem;
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.list > li:hover, .list > li:focus-within {
  border-color: var(--mint); box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

/* 왼쪽 거터 - 수치(전문의 수·거리)가 세로로 정렬되어 훑기 쉽다 */
.g {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 1.25rem; font-weight: 700; line-height: 1.2;
  color: var(--ink-3); text-align: center; padding-top: 0.15rem;
}
.g small { display: block; font-family: var(--kr); font-size: 0.6875rem; font-weight: 500; margin-top: 0.15rem; }
.g.on { color: var(--act); }

.nm { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; }
/* 카드 전체를 탭 영역으로 (링크 높이 22px 문제) */
.nm::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.m { color: var(--ink-3); font-size: 0.8125rem; margin-top: 0.15rem; }
.m a { position: relative; z-index: 1; }

/* 전문 과목 / 고를 단서 / 전화 (예전 11칸 한 글자 격자는 일반인이 못 읽었다) */
.sp { font-size: 0.875rem; font-weight: 600; color: var(--act); margin-top: 0.2rem; line-height: 1.45; }
.tg { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.tg i {
  font-style: normal; font-size: 0.75rem; font-weight: 600; line-height: 1;
  padding: 0.3125rem 0.5rem; border-radius: 6px;
  background: var(--tile); color: var(--ink-2);
}
.list .tel {
  position: relative; z-index: 1;   /* 카드 전체 링크 위로 */
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-top: 0.5rem; padding: 0.25rem 0.625rem;
  font-size: 0.875rem; font-weight: 700; color: var(--act); white-space: nowrap;
  font-variant-numeric: tabular-nums; text-decoration: none;
  background: var(--mint-bg); border-radius: 999px;
}
.list .tel::before { content: "☎"; font-size: 0.75rem; }
.list .tel:hover { background: var(--act); color: #fff; }

/* ---------- 링크 묶음 (칩) ---------- */

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.links a {
  display: inline-flex; align-items: center; min-height: 2.375rem;
  padding: 0 0.875rem; border-radius: 999px;
  background: var(--tile); font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
}
.links a:hover { background: var(--mint-bg); color: var(--act); }
.links li:not(:has(a)) {
  display: inline-flex; align-items: center; min-height: 2.375rem;
  padding: 0 0.75rem; color: var(--ink-3); font-size: 0.875rem;
}

/* ---------- 알림 ---------- */

.note {
  background: var(--tile); padding: 0.875rem 1rem; border-radius: var(--r);
  font-size: 0.875rem; color: var(--ink-2); margin: 0 0 1.25rem;
}
.note strong { color: var(--ink); }

/* ---------- 지도 ---------- */

.map {
  height: 17.5rem; border-radius: var(--r); overflow: hidden;
  background: var(--tile); margin: 0 0 0.75rem;
}
iframe.map { width: 100%; border: 0; display: block; }   /* 구글 지도로 바꿀 때 */

/* ---------- 가이드 본문 ---------- */

.prose p { margin: 0 0 1rem; color: var(--ink-2); }
.prose ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ink-2); }
.prose li { margin-bottom: 0.3rem; }
.faq { margin: 0; }
.faq dt { font-weight: 700; margin-top: 1.1rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--ink-2); }

/* ---------- 검색 결과 ---------- */

.find { position: relative; }
.qr {
  list-style: none; margin: 0.375rem 0 0; padding: 0.25rem; position: absolute;
  left: 0; right: 0; z-index: 40; background: var(--bg);
  border: 1px solid var(--rule); border-radius: var(--r);
  max-height: 20rem; overflow-y: auto; box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
}
.qr:empty { display: none; }
.qr a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.6875rem 0.875rem; text-decoration: none; font-size: 0.9375rem; border-radius: var(--r-s);
}
.qr a:hover, .qr a:focus { background: var(--mint-bg); color: var(--act); outline: none; }
.qr a em { font-style: normal; color: var(--ink-3); font-size: 0.8125rem; }
.qr .n { color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 홈 ----------
   예전에 홈에 링크 216개를 알약으로 깔아 7,590px 회색 밭이 됐다. 크롤 깊이는 그 링크가
   만든 것이라 목록은 <details> 안에 남긴다(접혀 있어도 크롤러는 읽는다). */

.hero { margin: 0.5rem 0 2rem; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.625rem); margin-bottom: 0.5rem; }
.hero h1 em { font-style: normal; color: var(--act); }
.hero .sub { margin: 0 0 1.25rem; color: var(--ink-3); font-size: 1rem; }
.find.big input {
  width: 100%; height: 3.5rem; padding: 0 1.25rem 0 3rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--bg); border: 2px solid var(--act); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.10);
}
.find.big input:focus { outline: none; box-shadow: 0 0 0 4px var(--mint-bg); }
.find.big input::placeholder { color: var(--ink-3); }
.find.big > svg { left: 1.125rem; width: 1.25rem; height: 1.25rem; color: var(--act); }

.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin-top: 0.875rem; }
.quick > span { font-size: 0.8125rem; color: var(--ink-3); margin-right: 0.25rem; }
.quick a {
  display: inline-flex; align-items: center; min-height: 2.125rem; padding: 0 0.75rem;
  border-radius: 999px; background: var(--mint-bg); color: var(--act);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.quick a:hover { background: var(--act); color: #fff; }

/* 아이콘 메뉴 — 4칸 */
.ig { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem 0.5rem;
      grid-template-columns: repeat(4, 1fr); }
.ig a {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--ink); font-size: 0.875rem; font-weight: 600; text-align: center;
}
.ig .ic {
  width: 100%; max-width: 5.5rem; aspect-ratio: 1; border-radius: 22px;
  background: var(--tile); display: grid; place-items: center; transition: background .15s;
}
.ig .ic svg { width: 58%; height: 58%; }
.ig a:hover .ic { background: var(--mint-bg); }
.ig a:hover { color: var(--act); }

/* 2칸 기능 카드 */
.fc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem;
      grid-template-columns: repeat(2, 1fr); }
.fc a {
  display: flex; flex-direction: column; gap: 0.25rem; height: 100%;
  padding: 1rem 1rem 1.125rem; border-radius: var(--r);
  background: var(--tile); text-decoration: none; color: var(--ink);
}
.fc a:hover { background: var(--mint-bg); }
.fc svg { width: 2.25rem; height: 2.25rem; margin-bottom: 0.375rem; }
.fc b { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.fc span { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }

/* 지역 칩 */
.chipset { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chipset a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem;
  border-radius: 999px; border: 1px solid var(--rule); background: var(--bg);
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.chipset a:hover { border-color: var(--act); color: var(--act); }

details.more { border-top: 1px solid var(--rule); margin: 0; }
details.more:first-of-type { margin-top: 2.5rem; }
details.more > summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-size: 0.9375rem; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 0.5rem;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "＋"; color: var(--act); font-size: 0.875rem; }
details.more[open] > summary::before { content: "－"; }
details.more > summary:hover { color: var(--act); }
details.more > summary .n { color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
details.more > *:last-child { margin-bottom: 1.5rem; }
details.more h2 { display: none; }
.fine { margin-top: 2rem; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- 병원 액션 ----------
   전화번호가 tel: 링크도 아니었고 전화·길찾기가 스크롤 아래 있었다. 첫 화면으로 */

.acts { display: flex; gap: 0.5rem; margin: 0 0 1.75rem; flex-wrap: wrap; }
.go {
  flex: 1 1 11rem; display: flex; flex-direction: column; justify-content: center;
  min-height: 3.625rem; padding: 0.5rem 1.125rem; text-decoration: none;
  border-radius: var(--r); background: var(--tile);
}
.go span { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
.go em { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; }
.go:hover { background: var(--mint-bg); }
.go:hover span { color: var(--act); }
.go.call { background: var(--act); }
.go.call span { color: #fff; }
.go.call em { color: #D5F0EC; }
.go.call:hover { background: var(--act-dk); }
.go.call:hover span { color: #fff; }

/* 전문의·진료과목 칩 (한 줄씩 쓰면 표가 10행이 됐다) */
.chips { display: flex; flex-wrap: wrap; gap: 0.3125rem; }
.chips b {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.625rem; font-weight: 500; font-size: 0.8125rem;
  border-radius: 999px; background: var(--mint-bg); color: var(--ink);
}
.chips b i { font-style: normal; color: var(--act); font-weight: 800; font-variant-numeric: tabular-nums; }
.chips.plain b { color: var(--ink-2); background: var(--tile); }

/* ---------- 반응형 ---------- */

@media (max-width: 40rem) {
  .ig { grid-template-columns: repeat(4, 1fr); gap: 0.875rem 0.375rem; }
  .ig a { font-size: 0.8125rem; }
  .ig .ic { border-radius: 18px; }
}

@media (max-width: 30rem) {
  :root { --gutter: 3rem; }
  main { padding: 1.25rem 1rem 3rem; }
  /* 폰: 1줄 로고+검색, 2줄 메뉴. 머리가 두 줄이라 따라다니지 않게 한다(화면을 너무 먹는다) */
  .top { position: static; }
  .top-in { padding: 0.5rem 1rem 0.25rem; flex-wrap: wrap; gap: 0.5rem; }
  .brand { font-size: 1rem; }
  .brand .mark { width: 1.5rem; height: 1.5rem; }
  .hs { max-width: none; }
  .top nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .top nav a { min-height: 2.25rem; padding: 0 0.25rem; font-size: 0.8125rem; }
  .rec th { width: 5.75rem; font-size: 0.8125rem; }
  .g { font-size: 1.0625rem; }
  .list > li { padding: 0.875rem 0.875rem 0.875rem 0.25rem; gap: 0 0.5rem; }
  .fc a { padding: 0.875rem; }
  .fc svg { width: 2rem; height: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 폰: 바로가기 칩이 3줄로 늘어졌다 → 앱처럼 옆으로 넘기는 한 줄 */
@media (max-width: 40rem) {
  .quick { flex-wrap: nowrap; overflow-x: auto; margin-right: -1rem; padding-right: 1rem;
           scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .quick::-webkit-scrollbar { display: none; }
  .quick > span, .quick a { flex: none; }
}
/* PC: 아이콘 8개가 넓은 4칸에 흩어져 휑했다 → 한 줄 8칸, 카드 3칸 */
@media (min-width: 48rem) {
  .ig { grid-template-columns: repeat(8, 1fr); }
  .fc { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 5일차: 동네 시술 페이지 숫자 요약·비교표 ---------- */
.stat { list-style: none; margin: 0 0 0.625rem; padding: 0; display: grid; gap: 0.5rem;
        grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.stat li { background: var(--tile); border-radius: var(--r); padding: 0.875rem 1rem; }
.stat b { display: block; font-family: var(--num); font-size: 1.625rem; line-height: 1.1; color: var(--act); }
.stat b small { font-size: 0.875rem; color: var(--ink-3); font-weight: 400; margin-left: 0.125rem; }
.stat span { font-size: 0.8125rem; color: var(--ink-2); }
.cmpw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 0.5rem;
        border: 1px solid var(--rule); border-radius: var(--r); }
.cmp { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.875rem; }
.cmp th, .cmp td { padding: 0.625rem 0.75rem; text-align: left; border-bottom: 1px solid var(--rule);
                   white-space: nowrap; vertical-align: top; }
.cmp thead th { background: var(--tile); font-size: 0.8125rem; color: var(--ink-2); font-weight: 700; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
/* 폰에서 옆으로 밀어도 치과 이름은 보이게 */
.cmp th[scope="row"], .cmp thead th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1;
                                                  min-width: 8rem; max-width: 10rem; white-space: normal; }
.cmp th[scope="row"] { font-size: 0.8125rem; line-height: 1.35; box-shadow: 1px 0 0 var(--rule); }
.cmp thead th:first-child { background: var(--tile); }
/* 7일차: 폰에서 이름 칸 아래쪽을 누르면 안 넘어갔다(칸 128x44px, 링크 91x17px). 링크가 칸 전체를 채우게 */
.cmp th[scope="row"] { padding: 0; }
.cmp th[scope="row"] a { display: block; padding: 0.625rem 0.75rem; min-height: 2.75rem;
                         font-weight: 700; text-decoration: none; }
.cmp td.num { font-variant-numeric: tabular-nums; }
.howto { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ink-2); font-size: 0.9375rem; }
.howto li { margin-bottom: 0.4rem; }

/* ---------- 6일차: 치과 상세 — 주소 복사·오늘 요일 ---------- */
.copy { font: inherit; font-size: 0.75rem; font-weight: 700; color: var(--act); cursor: pointer;
        background: var(--mint-bg); border: 0; border-radius: 999px; padding: 0.2rem 0.6rem; margin-left: 0.25rem;
        vertical-align: 0.1em; }
.copy:hover { background: var(--act); color: #fff; }

/* ---------- 홈 지도: 인구순 + 마우스 올려 고르기 ---------- */
.kmapw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.kmap { width: 100%; height: auto; max-height: 34rem; display: block; }
.kmap path { fill: var(--tile-2); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round;
             transition: fill .12s; cursor: pointer; }
.kmap a:hover path, .kmap a.on path, .kmap a:focus path { fill: var(--mint); }
.kmap a:focus { outline: none; }
.kmap a:focus-visible path { stroke: var(--act); stroke-width: 2; }
.kinfo { margin: 0 0 0.75rem; padding: 0.875rem 1rem; background: var(--mint-bg); border-radius: var(--r); min-height: 4.25rem; }
.kinfo b { display: block; font-size: 1.125rem; font-weight: 800; color: var(--act); }
.kinfo span { font-size: 0.875rem; color: var(--ink-2); }
.kpop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 0.5rem; }
.kpop a { display: flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0 0.625rem;
          border-radius: var(--r-s); text-decoration: none; color: var(--ink); }
.kpop a:hover, .kpop a.on, .kpop a:focus-visible { background: var(--mint-bg); color: var(--act); }
.kpop .r { width: 1.25rem; text-align: right; font-family: var(--num); font-size: 0.8125rem; color: var(--ink-3); }
.kpop b { font-weight: 700; font-size: 0.9375rem; }
.kpop .n { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {
  .kmapw { grid-template-columns: 1fr; gap: 0.75rem; }
  .kmap { max-height: 26rem; margin: 0 auto; }
  .kinfo { display: none; }                 /* 폰은 마우스가 없다. 누르면 바로 이동 */
}

/* 인구가 많을수록 진하게 (r1 가장 많음). 글자가 없는 도형이라 대비 기준은 해당 없음 */
.kmap a.p1 path { fill: #9FDCD3; } .kmap a.p2 path { fill: #BDE7E1; }
.kmap a.p3 path { fill: #D5EFEB; } .kmap a.p4 path { fill: #E6F5F2; }
.kmap a:hover path, .kmap a.on path, .kmap a:focus path { fill: var(--mint); }

/* ---------- 네이버 플레이스 보기 (원장 요청: 이름 아래 가장 크게, 한 줄 꽉) ----------
   네이버 초록 #03C75A 는 흰 글자 대비 2.25 로 미달. #02A04A 는 3.43 → 큰 굵은 글자 기준(3.0) 통과 */
.naver {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 4rem; margin: 0.25rem 0 0.625rem; padding: 0.75rem 1rem;
  background: #02A04A; color: #fff; border-radius: var(--r); text-decoration: none;
  font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.02em;
}
.naver:hover { background: #028A40; color: #fff; }
.naver::after { content: "↗"; font-size: 1rem; margin-left: 0.5rem; opacity: .9; }

/* ---------- 목록 정렬 막대 (순서는 이용자가 고른다) ---------- */
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin: 0 0 0.75rem; }
.sortbar button { font: inherit; font-size: 0.875rem; padding: 0.375rem 0.75rem; min-height: 2.25rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; cursor: pointer; }
.sortbar button:hover { border-color: var(--act); color: var(--act); }
.sortbar button.on { background: var(--mint-bg); border-color: var(--act); color: var(--act); font-weight: 700; }
.sortbar label { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem;
  color: var(--ink-2); min-height: 2.25rem; cursor: pointer; }
.sortbar input { width: 1rem; height: 1rem; accent-color: var(--act); }
.sortbar .cnt { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- 가이드 출처·각주 ---------- */
.cite { font-size: 0.6875rem; line-height: 0; }
.cite a { color: var(--act); text-decoration: none; padding: 0 0.1rem; }
.src { margin: 0 0 0.75rem; padding-left: 1.25rem; color: var(--ink-2); font-size: 0.875rem; }
.src li { margin: 0 0 0.375rem; }
.src a { color: var(--act); }

/* ---------- 치과위키: 목차·번호·표 ---------- */
.toc { background: var(--tile); border-radius: var(--r); padding: 0.875rem 1rem; margin: 0 0 1.5rem; }
.toc b { display: block; font-size: 0.875rem; color: var(--ink-2); margin-bottom: 0.375rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0.125rem 0; }
.toc li.d2 { padding-left: 1rem; }
.toc a { font-size: 0.875rem; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--act); text-decoration: underline; }
main h2 .no, main h3 .no { color: var(--ink-3); font-weight: 700; margin-right: 0.3rem; }
main h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; margin: 1.75rem 0 0.625rem; }
.tw { overflow-x: auto; margin: 0 0 1rem; }
.wk { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.wk th, .wk td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--rule); }
.wk thead th { background: var(--tile); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.wk td.num { white-space: nowrap; }

/* =====================================================================
   2026-09-18 v2 — 민트 글래스 · 벤토 · 작은 라운드 사각형 (원장 요청)
   - 모서리: 카드 6px, 작은 칸 4px, 큰 타일 8px. 알약(999px)은 없앤다
   - 유리: 반투명 흰 면 + 흐림. 흐림(backdrop-filter)은 머리·홈·타일에만 쓴다
     (목록 카드 수백 개에 흐림을 걸면 폰이 버벅인다 → 목록은 반투명만)
   - 모션: Material 3 곡선. 표준 (0.2,0,0,1) / 들어올 때 감속 (0.05,0.7,0.1,1)
     짧게 150ms, 보통 300ms, 길게 450ms. 누르면 살짝 눌림(iOS 느낌)
   - 터치 칸 최소 48px(Material 기준)
   ===================================================================== */
:root {
  --r: 6px; --r-s: 4px; --r-l: 8px;
  --line: var(--rule);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-2: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-line: rgba(15, 118, 110, 0.12);
  --sh-1: 0 1px 2px rgba(16, 52, 48, 0.05), 0 4px 14px rgba(16, 52, 48, 0.05);
  --sh-2: 0 2px 4px rgba(16, 52, 48, 0.06), 0 14px 34px rgba(16, 52, 48, 0.10);
  --e-std: cubic-bezier(0.2, 0, 0, 1);
  --e-dec: cubic-bezier(0.05, 0.7, 0.1, 1);
  --e-acc: cubic-bezier(0.3, 0, 0.8, 0.15);
  --d-s: 150ms; --d-m: 300ms; --d-l: 450ms;
}

body {
  background:
    radial-gradient(56rem 38rem at 8% -8%, #CDEEE6 0, rgba(205, 238, 230, 0) 62%),
    radial-gradient(46rem 34rem at 108% 6%, #DDF1FA 0, rgba(221, 241, 250, 0) 58%),
    radial-gradient(44rem 30rem at 50% 112%, #D9F2EC 0, rgba(217, 242, 236, 0) 60%),
    #F4FAF8;
  background-attachment: fixed;
}

/* 유리 면 공통 */
.top, .bt, .b-glass, footer {
  -webkit-backdrop-filter: saturate(1.7) blur(18px);
  backdrop-filter: saturate(1.7) blur(18px);
}
.top { background: rgba(255, 255, 255, 0.62); border-bottom: 1px solid var(--glass-edge);
       box-shadow: 0 1px 0 var(--glass-line); view-transition-name: top; }
.top nav a, .bc a { border-radius: var(--r-s); transition: background var(--d-s) var(--e-std), color var(--d-s) var(--e-std); }
.top nav a:hover { background: rgba(15, 118, 110, 0.08); }
.hs input { border-radius: var(--r); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-line);
            transition: border-color var(--d-s) var(--e-std), box-shadow var(--d-s) var(--e-std), background var(--d-s) var(--e-std); }
.hs input:focus { background: #fff; box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16); }
.qr { border-radius: var(--r); background: rgba(255, 255, 255, 0.94); border-color: var(--glass-line);
      -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--sh-2); }
.qr a { border-radius: var(--r-s); }

footer { background: rgba(255, 255, 255, 0.5); border-top: 1px solid var(--glass-edge); }

/* 카드·칸: 반투명 흰 면 + 얇은 민트 선 + 옅은 그림자 */
.list > li, .lead, .note, .toc, .stat li, .go, .kinfo, .cmpw, .map, .fc a, details.more {
  background: var(--glass-2); border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--sh-1);
}
.lead { background: rgba(232, 246, 244, 0.85); }
.list > li { transition: transform var(--d-m) var(--e-std), box-shadow var(--d-m) var(--e-std), border-color var(--d-s) var(--e-std); }
.list > li:hover, .list > li:focus-within { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: rgba(20, 184, 166, 0.5); }
.nm::after { border-radius: var(--r); }
.go { transition: transform var(--d-s) var(--e-std), box-shadow var(--d-m) var(--e-std), background var(--d-s) var(--e-std); }
.go.call { background: var(--act); border-color: var(--act); }
.go:hover { box-shadow: var(--sh-2); }
.naver { border-radius: var(--r); }

/* 알약 → 작은 라운드 사각형 */
.tg i, .chips b, .list .tel, .copy, .sortbar button, .quick a, .chipset a { border-radius: var(--r-s); }

/* 링크 묶음: 알약 줄 → 사각 타일 격자(한 칸 48px, 오른쪽 화살표) */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.5rem; }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  min-height: 3rem; padding: 0.5rem 0.75rem 0.5rem 0.875rem; border-radius: var(--r);
  background: var(--glass-2); border: 1px solid var(--glass-line); box-shadow: var(--sh-1);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.35;
  transition: transform var(--d-s) var(--e-std), box-shadow var(--d-m) var(--e-std), border-color var(--d-s) var(--e-std), background var(--d-s) var(--e-std);
}
.links a::after { content: ""; flex: none; width: 0.4375rem; height: 0.4375rem; margin-right: 0.125rem;
                  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
                  transform: rotate(45deg); opacity: 0.35; transition: opacity var(--d-s) var(--e-std), transform var(--d-s) var(--e-std); }
.links a:hover { background: #fff; color: var(--act); border-color: rgba(20, 184, 166, 0.45); box-shadow: var(--sh-2); }
.links a:hover::after { opacity: 0.8; transform: translateX(2px) rotate(45deg); }
.links li:not(:has(a)) { min-height: 3rem; padding: 0.5rem 0.875rem; border-radius: var(--r);
                         background: rgba(255, 255, 255, 0.45); border: 1px dashed var(--glass-line); }

/* 누르면 살짝 눌림 */
.links a:active, .bt:active, .dl a:active, .go:active, .fc a:active, .ig a:active .ic, .list > li:active { transform: scale(0.98); }

/* 접는 묶음 */
details.more { margin: 0 0 0.5rem; padding: 0 1rem; }
details.more:first-of-type { margin-top: 2rem; }
details.more > summary { min-height: 3rem; }
details.more[open] { padding-bottom: 1rem; }

/* 문서 표·목차 */
.toc { background: rgba(255, 255, 255, 0.7); }
.wk thead th, .cmp thead th { background: rgba(232, 246, 244, 0.9); }
.tw { border-radius: var(--r); }

/* ---------- 홈 벤토 ---------- */
.bento { display: grid; gap: 0.75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0.25rem 0 0.75rem; }
.b-hero { grid-column: 1 / -1; position: relative; min-height: 25rem; border-radius: var(--r-l); overflow: hidden;
          display: flex; align-items: flex-end; padding: 1.25rem; isolation: isolate; box-shadow: var(--sh-2); }
.b-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
                animation: kb 18s var(--e-std) both; }
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.b-glass { position: relative; max-width: 36rem; width: 100%; padding: 1.5rem 1.5rem 1.25rem;
           background: rgba(255, 255, 255, 0.58); border: 1px solid var(--glass-edge); border-radius: var(--r-l);
           box-shadow: 0 10px 40px rgba(16, 52, 48, 0.16); }
.b-glass h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.625rem); margin: 0 0 0.375rem; }
.b-glass h1 em { font-style: normal; color: var(--act); }
.b-glass .sub { margin: 0 0 1rem; color: var(--ink-2); font-size: 0.9375rem; }
.b-glass .find.big input { border-radius: var(--r); border: 1px solid rgba(15, 118, 110, 0.35); background: rgba(255, 255, 255, 0.9);
                           box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12); height: 3.25rem; }
.b-glass .find.big input:focus { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2); border-color: var(--act); }
.b-glass .quick a { background: rgba(255, 255, 255, 0.75); border: 1px solid var(--glass-line); min-height: 2.25rem; }
.b-cap { position: absolute; right: 0.75rem; top: 0.625rem; font-size: 0.6875rem; color: rgba(17, 24, 39, 0.6);
         background: rgba(255, 255, 255, 0.6); padding: 0.125rem 0.375rem; border-radius: var(--r-s); }

.b-stat { display: flex; flex-direction: column; justify-content: center; gap: 0.125rem; padding: 1rem 1.125rem;
          background: var(--glass-2); border: 1px solid var(--glass-line); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.b-stat b { font-family: var(--num); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.05; color: var(--act);
            font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.b-stat b small { font-family: var(--kr); font-size: 0.875rem; font-weight: 700; margin-left: 0.125rem; }
.b-stat span { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.45; }

.bt { position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
      background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r-l); box-shadow: var(--sh-1);
      transition: transform var(--d-m) var(--e-std), box-shadow var(--d-m) var(--e-std); min-height: 7.5rem; }
.bt:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); }
.bt .ph { aspect-ratio: 16 / 10; overflow: hidden; background: #E3F4F0; }
.bt .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--d-l) var(--e-std); }
.bt:hover .ph img { transform: scale(1.05); }
.bt .tx { padding: 0.75rem 0.875rem 0.875rem; display: flex; flex-direction: column; gap: 0.125rem; }
.bt b { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.bt:hover b { color: var(--act); }
.bt span { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }
.bt.w2 { grid-column: span 2; }
.bt.w2 .ph { aspect-ratio: 16 / 7; }
.bt.ic { justify-content: space-between; padding: 0.875rem; }
.bt.ic svg { width: 2.25rem; height: 2.25rem; }
.bt.ic .tx { padding: 0.5rem 0 0; }

.home h2 { margin-top: 2.25rem; }
.ig .ic { border-radius: var(--r-l); background: var(--glass-2); border: 1px solid var(--glass-line); box-shadow: var(--sh-1);
          transition: transform var(--d-m) var(--e-std), box-shadow var(--d-m) var(--e-std), background var(--d-s) var(--e-std); }
.ig a:hover .ic { background: #fff; transform: translateY(-2px); box-shadow: var(--sh-2); }
.kmapw { background: var(--glass-2); border: 1px solid var(--glass-line); border-radius: var(--r-l); padding: 1rem; box-shadow: var(--sh-1); }
.kpop a { border-radius: var(--r-s); }

@media (max-width: 48rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .b-hero { min-height: 30rem; padding: 0.75rem; }
  .b-glass { padding: 1.125rem 1rem 1rem; }
  .bt.w2 .ph { aspect-ratio: 16 / 9; }
}

/* ---------- 칼럼·위키 목록: Material 두 줄 목록 카드 ---------- */
.dsec { margin: 0 0 1.5rem; }
.dhead { display: flex; align-items: center; gap: 0.875rem; margin: 2rem 0 0.75rem; }
.dhead img { width: 4.5rem; height: 3.375rem; object-fit: cover; border-radius: var(--r); flex: none;
             border: 1px solid var(--glass-edge); box-shadow: var(--sh-1); }
.dhead h2 { margin: 0; }
.dhead p { margin: 0; font-size: 0.8125rem; color: var(--ink-3); }
.dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.dl a { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; min-height: 5.5rem; padding: 0.875rem 1rem;
        text-decoration: none; color: var(--ink); background: var(--glass-2); border: 1px solid var(--glass-line);
        border-radius: var(--r); box-shadow: var(--sh-1);
        transition: transform var(--d-m) var(--e-std), box-shadow var(--d-m) var(--e-std), border-color var(--d-s) var(--e-std); }
.dl a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: rgba(20, 184, 166, 0.45); color: var(--ink); }
.dl b { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.dl a:hover b { color: var(--act); }
.dl span { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.5;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dtop { position: relative; border-radius: var(--r-l); overflow: hidden; margin: 0 0 1.25rem; box-shadow: var(--sh-1); }
.dtop img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; display: block; }

/* 문서 첫 그림 */
.cover { margin: 0.25rem 0 1.25rem; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); border: 1px solid var(--glass-edge); }
.cover img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; display: block; }
@media (max-width: 40rem) { .cover img, .dtop img { aspect-ratio: 16 / 8; } }

/* ---------- 모션: 스크롤하면 부드럽게 나타남 (JS 가 .rv 를 붙인다. JS 없으면 그냥 보인다) ---------- */
.rv { opacity: 0; transform: translateY(14px); }
.rv.in { opacity: 1; transform: none;
         transition: opacity var(--d-l) var(--e-dec), transform var(--d-l) var(--e-dec); transition-delay: var(--dl, 0ms); }

/* 페이지 사이 넘김(지원 브라우저만). 머리는 제자리, 본문은 살짝 떠오른다 */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: var(--d-s) var(--e-acc) both vt-out; }
::view-transition-new(root) { animation: var(--d-m) var(--e-dec) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .b-hero > img { animation: none; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* v2 보정: img 의 height 속성이 aspect-ratio 를 이긴다 → height:auto. 첫 그림은 낮게 */
.cover img, .dtop img { height: auto; aspect-ratio: 16 / 5; }
.dhead h2 a { text-decoration: none; }
.dhead h2 a:hover { color: var(--act); }
@media (max-width: 40rem) {
  .cover img, .dtop img { aspect-ratio: 16 / 7; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links a { font-size: 0.875rem; padding: 0.5rem 0.625rem 0.5rem 0.75rem; }
  .dl { grid-template-columns: 1fr; }
}

/* 치과 상세 정보 표도 유리 카드로 */
.rec { border-collapse: separate; border-spacing: 0; background: var(--glass-2); border: 1px solid var(--glass-line);
       border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.rec th { padding-left: 1rem; }
.rec td { padding-right: 1rem; }
.rec tr:last-child th, .rec tr:last-child td { border-bottom: 0; }

/* 데이터 리포트: 가격 지도 */
.pmapw { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: end;
         background: var(--glass-2); border: 1px solid var(--glass-line); border-radius: var(--r-l); padding: 1rem; box-shadow: var(--sh-1); margin: 0 0 1rem; }
.pmap { width: 100%; height: auto; max-height: 32rem; display: block; }
.pmap path { stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; transition: opacity var(--d-s) var(--e-std); }
.pmap a:hover path, .pmap a:focus-visible path { opacity: 0.8; stroke: var(--act); stroke-width: 2; }
.plg { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; font-size: 0.8125rem; color: var(--ink-2); }
.plg i { display: inline-block; width: 1.5rem; height: 0.875rem; border-radius: var(--r-s); margin-right: 0.5rem; vertical-align: -0.1rem; border: 1px solid var(--glass-line); }
.wk td small { color: var(--ink-3); font-size: 0.75rem; }
@media (max-width: 40rem) { .pmapw { grid-template-columns: 1fr; } }
/* 진료시간: 오늘 줄 + 지금 진료 여부 (2026-09-19) */
.hours tr.today th, .hours tr.today td { color: var(--act); font-weight: 700; background: var(--mint-bg); }
.now { margin: 0 0 0.75rem; padding: 0.625rem 0.875rem; border-radius: var(--r); background: var(--mint-bg);
       border: 1px solid var(--glass-line); color: var(--act-dk); font-size: 0.875rem; font-weight: 600; }
