/* dental-map 공개 화면. 주황 포인트 + 잉크 네이비 + 차가운 회색 바탕, Pretendard 단일 서체, 작고 촘촘하게 */
:root {
  --o: #ff5a1f; --o-d: #e2460c; --o-50: #fff3ec; --o-100: #ffe4d6;
  --t0: #eceff3; --t1: #ffe4d6; --t2: #ffc6a8; --t3: #ff9e70; --t4: #ff7638; --t5: #e2460c;
  --ink: #1c2433; --ink2: #4a5468; --mute: #8a93a3; --line: #e5e8ee; --bg: #f4f6f9; --card: #fff;
  --ok: #10a37a; --warn: #c2410c; --star: #ffb21e;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --sh: 0 1px 2px rgba(28, 36, 51, .06), 0 4px 14px rgba(28, 36, 51, .05);
  --w: 1160px;
  --f: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f); font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--o-d); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.3; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--mute); }
.small { font-size: 12px; }
.pad { padding: 14px 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 버튼·태그 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; background: var(--card); transition: background .15s, border-color .15s; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn-primary { background: var(--o); color: #fff; }
.btn-primary:hover { background: var(--o-d); color: #fff; }
.btn-line { border-color: var(--line); }
.btn-line:hover { border-color: var(--ink2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink2); }
.btn-ghost:hover { background: var(--t0); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--mute); font-size: 12px; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--t0); color: var(--ink2); font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.tag-hosp { background: #e8eefc; color: #2a4fb5; }
.tag-ok { background: #e3f6ef; color: var(--ok); }
.tag-ad { background: var(--o-50); color: var(--o-d); }
.tag-warn { background: #fdecec; color: #b42318; }

/* 헤더 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 16px; letter-spacing: -0.03em; flex: none; }
.top-search { flex: 1; max-width: 360px; }
.top-search input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.top-search input:focus { background: #fff; border-color: var(--o); outline: none; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a { padding: 7px 10px; border-radius: var(--r-s); font-weight: 600; font-size: 13px; color: var(--ink2); }
.top-nav a:hover { background: var(--bg); color: var(--ink); }

/* 메인 히어로: 지도가 주인공 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding-top: 18px; padding-bottom: 8px; }
.hero-map { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 18px 18px 14px; position: relative; overflow: hidden; }
.hero-head h1 { font-size: 26px; line-height: 1.22; }
.hero-head p { margin-top: 6px; color: var(--ink2); font-size: 13px; }
.map-box { position: relative; margin-top: 8px; }
.map-trail { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; min-height: 28px; font-size: 13px; }
.map-trail button { border: 0; background: none; padding: 4px 6px; border-radius: 4px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.map-trail button:hover { background: var(--bg); }
.map-trail button[aria-current] { color: var(--o-d); }
.map-trail .sep { color: var(--mute); }
.kmap { display: block; width: 100%; height: auto; max-height: 560px; }
.kmap path { stroke: #fff; stroke-width: .8; stroke-linejoin: round; transition: fill .15s; cursor: pointer; vector-effect: non-scaling-stroke; }
.kmap .t0 { fill: var(--t0); } .kmap .t1 { fill: var(--t1); } .kmap .t2 { fill: var(--t2); } .kmap .t3 { fill: var(--t3); } .kmap .t4 { fill: var(--t4); } .kmap .t5 { fill: var(--t5); }
.kmap a:hover path, .kmap a:focus path { fill: var(--ink); }
.kmap a:focus { outline: none; }
.kmap a.on path { fill: var(--ink); }
.kmap-labels text { font-size: var(--lf, 11px); font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; }
.kmap[data-level='3'] .kmap-labels text { font-weight: 600; }
.map-legend { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--mute); position: absolute; left: 0; bottom: 4px; }
.map-legend i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }
.map-legend .t1 { background: var(--t1); } .map-legend .t2 { background: var(--t2); } .map-legend .t3 { background: var(--t3); } .map-legend .t4 { background: var(--t4); } .map-legend .t5 { background: var(--t5); }
.map-go { position: absolute; right: 0; bottom: 0; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 17px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; box-shadow: var(--sh); }
.map-go:hover { color: #fff; background: #000; }
.map-go[hidden] { display: none; }
.map-loading .kmap { opacity: .45; }

.hero-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.near, .sido-list, .side-box { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 14px; }
.near-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.near-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.near-list li { border-top: 1px solid var(--line); }
.near-list li:first-child { border-top: 0; }
.near-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 2px; }
.near-list .n-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-list .n-dist { color: var(--o-d); font-weight: 700; font-size: 12px; text-align: right; }
.near-list .n-sub { grid-column: 1 / -1; font-size: 12px; color: var(--mute); }
.near-hint { display: flex; gap: 10px; align-items: center; padding: 4px 0; color: var(--ink2); font-size: 13px; }
.near-hint img { flex: none; }
.sido-list ul, .kid-list ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.sido-list a, .kid-list a { display: flex; justify-content: space-between; gap: 6px; padding: 5px 4px; border-radius: 4px; font-size: 13px; }
.sido-list a:hover, .kid-list a:hover { background: var(--o-50); }
.sido-list span, .kid-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sido-list b, .kid-list b { font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* 광고 카테고리 가로 레일 */
.rail { margin-top: 22px; }
.rail-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.rail-note { font-size: 11px; color: var(--mute); }
.rail-list { list-style: none; margin: 0; padding: 2px 2px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.rail-list li { scroll-snap-align: start; }
.tile { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); }
.tile:hover { border-color: var(--o); color: var(--ink); }
.tile-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-line { font-size: 12px; color: var(--o-d); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-addr { font-size: 12px; color: var(--mute); }

/* 피드 2열 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.duo > section { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 14px; min-width: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sec-head a { font-size: 12px; color: var(--mute); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed a { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; }
.feed-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.feed-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-text { font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-meta { font-size: 12px; color: var(--mute); }

/* 별점 */
.stars { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.stars-bg { position: relative; color: #dfe3ea; letter-spacing: -1px; font-size: 12px; line-height: 1; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--star); white-space: nowrap; }
.stars-lg .stars-bg { font-size: 18px; }
.stars-num { font-size: 12px; font-weight: 600; }

/* FAQ */
.faq { margin: 28px auto 8px; }
.faq h2 { margin-bottom: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 6px; }
.faq summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--mute); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 14px 12px; color: var(--ink2); max-width: 75ch; }

/* 공통 페이지 */
.page { padding-top: 14px; padding-bottom: 24px; }
.narrow { max-width: 760px; }
.tiny { max-width: 400px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 0; font-size: 12px; color: var(--mute); }
.crumbs li + li::before { content: '›'; margin-right: 4px; }
.crumbs a:hover { color: var(--ink); }
.page-head { margin-bottom: 14px; }
.page-head .count { color: var(--o-d); }
.lead { margin-top: 6px; color: var(--ink2); max-width: 78ch; }
.updated { margin-top: 4px; font-size: 12px; color: var(--mute); }
.row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.area-main { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 14px; min-width: 0; }
.area-side { display: flex; flex-direction: column; gap: 12px; }
.side-box h2 { font-size: 14px; margin-bottom: 6px; }
.map-sub .kmap { max-height: 300px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sorts { display: flex; gap: 2px; }
.sorts a, .chips a { padding: 4px 9px; border-radius: 14px; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.sorts a[aria-current], .chips a[aria-current] { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.chips a { border: 1px solid var(--line); background: var(--card); }
.chips a b { font-weight: 600; color: var(--mute); margin-left: 2px; }
.chips a[aria-current] b { color: #fff; }

.clinics { list-style: none; margin: 0; padding: 0; }
.clinic { border-top: 1px solid var(--line); }
.clinic:first-child { border-top: 0; }
.clinic-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 4px; }
.clinic-link:hover { background: var(--o-50); color: var(--ink); }
.clinic-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clinic-name { font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.clinic-addr { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clinic-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.clinic-dr { font-size: 11px; color: var(--mute); }
.pager { display: flex; justify-content: center; gap: 4px; margin: 14px 0 4px; }
.pager a, .pager span { min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-s); font-size: 13px; border: 1px solid var(--line); background: var(--card); }
.pager span[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* 치과 상세 */
.c-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 16px; }
.c-title { min-width: 0; }
.c-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.c-addr { margin-top: 6px; color: var(--ink2); }
.c-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.c-score strong { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.c-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.c-owner { background: var(--o-50); border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.c-notice b { color: var(--o-d); margin-right: 4px; }
.c-intro { white-space: pre-line; color: var(--ink2); }
.c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-box { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 14px; min-width: 0; }
.c-box h2 { font-size: 14px; margin-bottom: 8px; }
.hours { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
.hours th { width: 34px; text-align: left; font-weight: 600; color: var(--ink2); padding: 4px 0; }
.hours td { padding: 4px 0; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: var(--o-d); font-weight: 700; }
.info { display: grid; grid-template-columns: 74px 1fr; gap: 7px 10px; margin: 0; font-size: 13px; }
.info dt { color: var(--mute); }
.info dd { margin: 0; min-width: 0; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; padding: 1px 7px; border-radius: 10px; background: var(--bg); font-size: 12px; }
.reviews, .rv-form-wrap, .near-by { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 14px; margin-top: 12px; }
.dist { display: grid; gap: 3px; max-width: 320px; margin: 4px 0 10px; }
.dist-row { display: grid; grid-template-columns: 30px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; }
.dist-bar { height: 6px; border-radius: 3px; background: var(--t0); overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: var(--star); }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv { border-top: 1px solid var(--line); padding: 11px 0; }
.rv-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-body { margin-top: 5px; white-space: pre-line; max-width: 78ch; }
.rv-photos { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rv-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-s); background: var(--bg); }
.rv-act { display: flex; gap: 10px; margin-top: 6px; }
.claim-cta { margin-top: 16px; text-align: center; font-size: 13px; color: var(--ink2); }
.claim-cta a { color: var(--o-d); font-weight: 600; }

/* 폼 */
form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink2); }
form input:not([type=radio]):not([type=checkbox]):not([type=file]), form select, form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; font-size: 14px; font-weight: 400; color: var(--ink); }
form input:focus, form select:focus, form textarea:focus { border-color: var(--o); outline: none; box-shadow: 0 0 0 3px var(--o-50); }
form textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.rv-form, .post-form, .cmt-form, .claim-form, .login-form, .owner-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate { border: 0; padding: 0; margin: 0; }
.rate legend { font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 4px; padding: 0; }
.rate-btns { display: flex; gap: 4px; }
.rate-btns label { position: relative; }
.rate-btns input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rate-btns span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 14px; font-weight: 700; color: var(--ink2); background: #fff; }
.rate-btns span::before { content: '★'; color: var(--star); font-size: 12px; margin-right: 2px; }
.rate-btns input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rate-btns input:focus-visible + span { outline: 2px solid var(--o); outline-offset: 2px; }
.photo-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.photo-pick label { flex-direction: row; color: var(--ink); }
.photo-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.photo-thumbs figure { margin: 0; position: relative; width: 60px; height: 60px; }
.photo-thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--r-s); }
.photo-thumbs button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 12px; line-height: 20px; cursor: pointer; padding: 0; }
.photo-thumbs .up { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); border-radius: var(--r-s); }
.form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.form-msg { font-size: 12px; color: var(--ink2); margin-right: auto; }
.form-msg.err { color: #b42318; }
.form-msg.ok { color: var(--ok); }
.inline-search { display: flex; gap: 6px; margin: 4px 0 12px; }
.inline-search input { flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.inline-search.big input { height: 42px; font-size: 15px; }
.inline-search.big .btn { height: 42px; }
.claim-pick { position: relative; }
.pick-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 2px 0 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--sh); max-height: 240px; overflow: auto; }
.pick-list li button { width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 400; }
.pick-list li button:hover, .pick-list li button:focus { background: var(--o-50); }
.pick-list small { display: block; color: var(--mute); font-size: 11px; }

/* 커뮤니티 */
.posts { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); }
.posts li { border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.posts a:hover { background: var(--o-50); color: var(--ink); }
.post-title { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-cc { color: var(--o-d); font-size: 12px; }
.post-sum { font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { font-size: 12px; color: var(--mute); }
.post { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 18px; }
.post h1 { font-size: 20px; }
.post-body { margin-top: 14px; white-space: pre-line; line-height: 1.75; max-width: 72ch; }
.comments { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 14px 18px; margin-top: 12px; }
.comments ul { list-style: none; margin: 6px 0 0; padding: 0; }
.cmt { border-top: 1px solid var(--line); padding: 11px 0; }
.cmt-top { display: flex; gap: 8px; align-items: baseline; }
.cmt p { margin-top: 4px; white-space: pre-line; line-height: 1.7; max-width: 72ch; }
.note { margin-top: 12px; }

/* 정책 본문 */
.prose { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 20px 22px; margin-top: 14px; }
.prose h2 { font-size: 15px; margin: 18px 0 6px; }
.prose p, .prose li { color: var(--ink2); max-width: 75ch; }
.prose ul { padding-left: 18px; margin: 6px 0; }

/* 광고·배너 */
.adslot { margin: 16px 0; min-height: 100px; position: relative; }
.adslot-label { position: absolute; top: -14px; left: 0; font-size: 10px; color: var(--mute); }
.banners { display: grid; gap: 10px; margin: 16px 0; }
.banner { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; background: var(--t0); }
.banner img { width: 100%; height: auto; aspect-ratio: 6 / 1; object-fit: cover; }
.area-side .banner img { aspect-ratio: auto; }
.banner-tag { position: absolute; right: 6px; top: 6px; font-size: 10px; background: rgba(28, 36, 51, .6); color: #fff; padding: 1px 5px; border-radius: 3px; }

/* 빈 화면 */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 12px; }
.empty strong { font-size: 15px; }
.empty p { color: var(--ink2); font-size: 13px; }
.empty .btn { margin-top: 6px; }

/* 위치 동의 카드 */
.consent { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(480px, calc(100% - 24px)); display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: var(--r-l); box-shadow: 0 10px 40px rgba(28, 36, 51, .18); padding: 14px; border: 1px solid var(--line); }
.consent[hidden] { display: none; }
.consent img { flex: none; }
.consent-body strong { font-size: 15px; }
.consent-body p { margin-top: 4px; font-size: 12px; color: var(--ink2); }
.consent-body p a { text-decoration: underline; }
.consent-act { display: flex; gap: 6px; margin-top: 10px; }

/* 토스트 */
.toast { position: fixed; z-index: 60; left: 50%; top: 70px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 13px; box-shadow: var(--sh); max-width: calc(100% - 32px); }

/* 푸터 */
.foot { margin-top: 32px; border-top: 1px solid var(--line); background: #fff; }
.foot-in { padding-top: 18px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink2); }
.foot-note, .foot-biz, .foot-copy { font-size: 11px; color: var(--mute); max-width: 90ch; }

/* 반응형 */
@media (max-width: 960px) {
  .hero, .area-grid { grid-template-columns: 1fr; }
  .area-side { position: static; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  h1 { font-size: 21px; }
  .top-in { gap: 8px; height: 52px; }
  .brand span { display: none; }
  .top-search { max-width: none; }
  .top-nav a { padding: 6px 7px; font-size: 12px; }
  .top-nav a[data-near-link] { display: none; }
  .hero { padding-top: 12px; }
  .hero-map { padding: 14px 12px 12px; border-radius: var(--r-m); }
  .hero-head h1 { font-size: 21px; }
  .kmap { max-height: 440px; }
  .c-head { flex-direction: column; }
  .c-score { align-items: flex-start; flex-direction: row; align-items: center; gap: 8px; }
  .c-score strong { font-size: 24px; }
  .c-grid, .row2 { grid-template-columns: 1fr; }
  .clinic-link { align-items: flex-start; }
  .rate-btns span { width: 34px; }
  .list-head { flex-direction: column; align-items: flex-start; }
  .sorts { overflow-x: auto; max-width: 100%; }
  .map-go { position: static; margin-top: 8px; width: 100%; justify-content: center; }
  .map-legend { position: static; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 용어 사전 */
.gl-head { margin-bottom: 10px; }
.gl-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.gl-cats a { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.gl-cats a b { font-weight: 600; font-size: 11px; color: var(--mute); }
.gl-cats a:hover { border-color: var(--t3); color: var(--o-d); }
.gl-cats a[aria-current] { background: var(--o); border-color: var(--o); color: #fff; }
.gl-cats a[aria-current] b { color: rgba(255, 255, 255, .8); }
.gl-index { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.gl-index nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.gl-index a, .gl-index-lab { min-width: 30px; height: 30px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-s); font-size: 13px; font-weight: 700; color: var(--ink2); }
.gl-index a:hover { background: var(--o-50); color: var(--o-d); }
.gl-index a[aria-current] { background: var(--o-100); color: var(--o-d); }
.gl-index a.all { padding: 0 9px; font-size: 12px; }
.gl-index-lab { font-size: 10px; color: var(--mute); letter-spacing: .04em; }
.gl-count { font-size: 12px; color: var(--mute); margin: 0 0 8px 2px; }
.gl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gl-card { display: flex; gap: 12px; height: 100%; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color .15s, box-shadow .15s; }
.gl-card:hover { border-color: var(--t2); box-shadow: var(--sh); color: var(--ink); }
.gl-ini { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--o-50); color: var(--o-d); font-size: 14px; font-weight: 800; }
.gl-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.gl-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.gl-name small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.gl-sum { font-size: 12.5px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-gl { background: var(--o-50); color: var(--o-d); }
.gl-link { color: var(--o-d); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.gl-link:hover { text-decoration-style: solid; }

.gl-art { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); padding: 20px 22px; }
.gl-art.in-dlg { box-shadow: none; padding: 0; border-radius: 0; }
.gl-art-head { margin-bottom: 8px; }
.gl-art-head h1 { font-size: 24px; }
.gl-en { margin-top: 2px; font-size: 13px; color: var(--mute); font-weight: 500; }
.gl-def { margin: 10px 0 4px; padding: 11px 14px; background: var(--bg); border-left: 3px solid var(--o); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 14px; font-weight: 700; line-height: 1.55; }
.gl-body h2 { font-size: 16px; margin: 18px 0 6px; }
.gl-body h3 { font-size: 14px; margin: 12px 0 4px; }
.gl-body p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; color: var(--ink2); }
.gl-body strong { color: var(--ink); }
.gl-body ul { margin: 0 0 8px; padding-left: 18px; color: var(--ink2); line-height: 1.75; }
.gl-table { overflow-x: auto; margin: 6px 0 12px; }
.gl-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gl-table th, .gl-table td { border: 1px solid var(--o-100); padding: 8px 10px; text-align: left; vertical-align: top; }
.gl-table th { background: var(--o-50); font-weight: 700; color: var(--ink); white-space: nowrap; }
.gl-table td { color: var(--ink2); }
.gl-faq { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.gl-faq h2, .gl-rel h2 { font-size: 15px; margin-bottom: 8px; }
.gl-faq dl { margin: 0; }
.gl-faq dt { font-weight: 700; font-size: 14px; }
.gl-faq dt::before { content: 'Q. '; color: var(--o-d); }
.gl-faq dd { margin: 3px 0 12px; font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.gl-rel { margin-top: 14px; }
.gl-rel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gl-rel a { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-s); }
.gl-rel a:hover { border-color: var(--t2); background: var(--o-50); color: var(--ink); }
.gl-rel b { font-size: 13.5px; }
.gl-rel span { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-meta { margin-top: 14px; line-height: 1.6; }
.gl-open { margin-top: 10px; }
.gl-back { margin-top: 12px; text-align: center; }
.gl-dialog { width: min(640px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--r-l); box-shadow: 0 20px 60px rgba(28, 36, 51, .25); color: var(--ink); }
.gl-dialog::backdrop { background: rgba(28, 36, 51, .45); }
.gl-dlg-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.gl-dlg-top strong { font-size: 18px; font-weight: 800; }
.gl-x { width: 32px; height: 32px; border: 0; border-radius: var(--r-s); background: transparent; font-size: 22px; line-height: 1; color: var(--ink2); cursor: pointer; }
.gl-x:hover { background: var(--t0); }
.gl-dlg-body { padding: 14px 18px 18px; }
.gl-dlg-body .gl-loading { padding: 30px 0; text-align: center; color: var(--mute); }
@media (max-width: 960px) { .gl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .gl-cats { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .gl-cats::-webkit-scrollbar { display: none; }
  .gl-index a, .gl-index-lab { min-width: 28px; height: 28px; font-size: 12.5px; }
  .gl-grid { grid-template-columns: 1fr; gap: 8px; }
  .gl-card { padding: 12px; }
  .gl-art { padding: 16px; }
  .gl-art-head h1 { font-size: 21px; }
  .gl-rel ul { grid-template-columns: 1fr; }
  .gl-dialog { max-height: 92vh; }
}
