/* 서울바른치과 본 페이지: 첫 화면(6-6-3) 아래 구역.
   첫 화면·머리글·버튼·빠른 메뉴는 ../n/kit.css 와 ../n/heroes.css 그대로다. 여기서는 그 아래 구역만 다룬다.
   구역의 짜임과 움직임은 시안 6(demos.css 의 .t-g) 그대로, 색만 새 로고 색으로:
   짙은 초록 #1C6B3A = 글자·선, 라임 #8BC34A = 작은 표시(지금 단계, 가는 선), 어두운 면 = 깊은 초록.
   이름이 겹치는 것(.site .hero .btn .quick .intro .lg .wm .icon .info .meta)은 여기서 새로 정하지 않는다. */
.pg {
  --soft: #56635a; --faint: #6b776f; --tint: #f6f5ef;
  --deep: #143422; --deep-2: #1e4a31; --on-deep: #ffffff; --on-deep-soft: #afc2b6; --deep-line: rgb(255 255 255 / .16);
  --hd: 64px; --col-gap: clamp(40px, 6vw, 88px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 899px) { .pg { --hd: 46px; } }
/* 메뉴·꼬리말·로고를 누르면 그 구역으로 바로 옮긴다 (11/30 사용자 요청. 부드러운 스크롤은 쓰지 않는다: 긴 페이지에서 중간 구역이 길게 흘러간다) */

/* 틀: 첫 화면과 같은 왼쪽 끝(가운데 1240px, 좁으면 --gut). 오른쪽은 빠른 메뉴 자리(124px)를 비운다 (첫 화면의 진료 안내 띠와 같은 규칙) */
.frame { margin-inline: max(var(--gut), calc((100% - 1240px) / 2)); }
@media (min-width: 900px) {
  .frame { margin-right: max(var(--gut), calc((100% - 1240px) / 2), 124px); }
  /* 첫 화면 글의 왼쪽 끝도 세로 스크롤 막대를 뺀 폭으로 맞춘다 (100vw 로 두면 막대 폭의 절반만큼 아래 구역과 어긋난다) */
  .pg .e--left .e__in { padding-inline: max(var(--gut), calc((100% - 1240px) / 2)); }
}

.sec, .proc, .foot, .fp { color: var(--ink); }
:is(.sec, .proc, .foot, .fp) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:is(.sec, .proc, .foot, .fp) :where(ul, ol) { list-style: none; }
.sec :where(img), .foot :where(img) { max-width: 100%; }
:is(.sec, .proc, .fp) :where(p, dd, li) { text-wrap: pretty; }
.sec { padding-block: clamp(72px, 9vw, 128px); background: #fff; scroll-margin-top: 0; }
.sec--tint { background: var(--tint); }
.sec h2, .proc h2 { font: 800 clamp(1.625rem, 2.9vw, 2.625rem)/1.3 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.sec h3 { font: 800 1.1875rem/1.4 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.03em; }
.sec > .frame > h2 { margin-bottom: clamp(28px, 4vw, 52px); }
.fine { margin-top: 14px; font-size: .8125rem; line-height: 1.7; color: var(--soft); }
.text-link { display: inline-block; font-weight: 700; color: var(--g); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.text-link:hover { text-decoration-color: var(--g); }
.notice-link { font-weight: 700; color: var(--g); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: .3em; white-space: nowrap; }      /* 진료시간 아래 '블로그 진료일정' (새 창) */
.notice-nw { white-space: nowrap; }      /* 휴대폰에서 '에'만 다음 줄로 떨어지지 않게 링크와 묶는다 */
.notice-link .ext { display: inline-block; margin-left: 3px; vertical-align: -1px; }
@media (hover: hover) { .notice-link:hover { text-decoration-color: currentColor; } }

/* 건너뛰기 링크: 탭 키를 처음 눌렀을 때만 보인다 */
.skip { position: absolute; z-index: 90; left: 12px; top: -80px; padding: 13px 18px; background: var(--g); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; outline: 2px solid #fff; outline-offset: -5px; }

/* ---------- 머리글: 첫 화면에서는 그대로(사진 위, 같이 올라간다). 첫 화면을 지나면 위에 붙는 흰 띠가 된다 ---------- */
.site.is-stuck { position: fixed; top: 0; background: #fff; box-shadow: 0 1px 0 var(--line); animation: hd-in .34s var(--ease-out) both; }
.site.is-stuck.is-leaving { animation: hd-out .2s ease-in both; }
@keyframes hd-in { from { transform: translateY(-100%); } }
@keyframes hd-out { to { transform: translateY(-100%); } }
.site.is-stuck .site__nav a { position: relative; }
.site.is-stuck .site__nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); }
@media (min-width: 900px) {
  .site.is-stuck .site__in { min-height: var(--hd); }
  .site.is-stuck .site__nav a { padding: 20px 0; }
}
@media (max-width: 899px) {
  /* 휴대폰: 붙는 띠는 메뉴 한 줄만 (로고와 전화는 첫 화면과 아래 빠른 메뉴에 있다) */
  .site.is-stuck .lg, .site.is-stuck .site__tel { display: none; }
  .site.is-stuck .site__in { padding-top: 0; }
  .site.is-stuck .site__nav { width: auto; flex: 1 0 100%; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }      /* 넘기는 메뉴가 화면 끝까지 간다 */
  .site.is-stuck .site__nav a { padding: 11px 0 11px; }
}

/* 12/5 원장님: 휴대폰 위 메뉴가 '비급여 안'에서 잘려 보인다 → 옆으로 넘길 수 있다는 표시로 오른쪽 끝을 흐리게 (site.js 가 끝까지 넘기면 is-end 로 걷는다) */
@media (max-width: 899px) {
  .site__nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgb(0 0 0 / 0) 100%); mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgb(0 0 0 / 0) 100%); }
  .site__nav.is-end { -webkit-mask-image: none; mask-image: none; }
}
/* 메뉴가 여덟 개(자주 묻는 질문 포함)라 좁은 PC 폭에서는 글자·간격을 줄이고 로고를 작게, 900~1099 는 머리글 전화 아이콘을 뺀다(오른쪽 빠른 메뉴에 전화가 있다).
   900~1920 폭에서 메뉴와 전화가 오른쪽 여백 안에 들어오는 것을 확인했다(11/30) */
@media (min-width: 900px) and (max-width: 1359px) {
  .pg .site__in { gap: 28px; }
  .pg .site__nav { gap: clamp(13px, 1.45vw, 22px); }
  .pg .site__nav a { font-size: .875rem; }
}
@media (min-width: 900px) and (max-width: 1279px) { .pg .site__tel span { display: none; } }
@media (min-width: 900px) and (max-width: 1179px) { .pg .site .lg svg { height: 22px; } }
@media (min-width: 900px) and (max-width: 1099px) { .pg .site__tel { display: none; } }

/* ---------- 진료 분야: 3D 무대(stage.js: build_site.py 가 ../v5/stage.js 에서 만든다)와 다섯 항목 ---------- */
.stage {
  --stage-ink: #eef5f0; --stage-scrim: rgb(8 30 19 / .5);
  --stage-tooth: #f7f4ec; --stage-gum: #b7d9c3; --stage-accent: #a9e3bd; --stage-metal: #eef2ee;
  --stage-tint: #f7f4ec; --stage-rim: #fff3e2; --stage-shell: #f2f4ef;      /* 치아는 물들이지 않는다(치아 색 그대로). 뒤쪽 조명은 따뜻한 흰색, 투명 장치의 테두리는 흰색 */
  display: grid; gap: 18px;
}
.stage__view { position: sticky; top: calc(var(--hd) + 8px); z-index: 3; aspect-ratio: 5 / 4; overflow: hidden; background: radial-gradient(110% 90% at 28% 8%, #245a3d 0%, #18422c 46%, #123222 100%); color: var(--stage-ink); }
.stage__view::before, .stage__view::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.stage__view::before { top: 0; height: 30%; background: linear-gradient(var(--stage-scrim), transparent); }
.stage__view::after { bottom: 0; height: 22%; background: linear-gradient(transparent, var(--stage-scrim)); }
.stage__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stage__view.is-drag .stage__cv { cursor: grabbing; }
.stage__cap { position: absolute; z-index: 2; left: 18px; right: 14px; top: 16px; min-height: 1.6em; font-size: .9375rem; font-weight: 800; line-height: 1.6; pointer-events: none; }
.stage__dots { position: absolute; z-index: 2; left: 18px; top: 46px; display: flex; gap: 6px; pointer-events: none; }
.stage__dots i { width: 18px; height: 3px; background: currentColor; opacity: .25; transition: opacity .3s, background-color .3s; }
.stage__dots i.on { opacity: 1; background: var(--stage-accent); }
.stage__hint { position: absolute; z-index: 2; right: 14px; bottom: 54px; font-size: .6875rem; font-weight: 700; color: var(--stage-ink); opacity: .72; pointer-events: none; transition: opacity .5s; }
.stage__view.was-drag .stage__hint { opacity: 0; }
.stage__ctl { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; font-size: .8125rem; font-weight: 700; }
.stage__play { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgb(255 255 255 / .5); font-size: .75rem; cursor: pointer; }
.stage__play:focus-visible, .stage__scrub:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.stage__scrub { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: none; color: inherit; cursor: ew-resize; }
.stage__scrub::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--stage-accent) var(--f, 0%), rgb(255 255 255 / .28) var(--f, 0%)); }
.stage__scrub::-moz-range-track { height: 3px; background: rgb(255 255 255 / .28); }
.stage__scrub::-moz-range-progress { height: 3px; background: var(--stage-accent); }
.stage__scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: #fff; }
.stage__scrub::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.stage.no3d .stage__view { display: none; }
.stage.no3d .stage__list p { display: block; }

.stage__list { border-bottom: 1px solid var(--line); }
.stage__list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; padding: 15px 0 15px 18px; border-top: 1px solid var(--line); }
.stage__list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.stage__list li.on::before { transform: none; }
.stage__list h3 { color: var(--faint); transition: color .3s; }
.stage__list li.on h3 { color: var(--ink); }
.stage__list button { all: unset; cursor: pointer; }
.stage__list button::after { content: ""; position: absolute; inset: 0; }
.stage__list button:focus-visible { outline: 2px solid var(--g); outline-offset: 4px; }
.stage__list p { display: none; grid-column: 1 / -1; max-width: 30em; color: var(--soft); font-size: .9375rem; line-height: 1.7; }
.stage__list li.on p { display: block; }
.stage__more { position: relative; z-index: 1; font-size: .8125rem; color: var(--soft); text-decoration: underline; text-decoration-color: #c3ccc5; text-underline-offset: .4em; white-space: nowrap; transition: color .25s, text-decoration-color .25s; }
.stage__more:hover, .stage__list li.on .stage__more { color: var(--g); text-decoration-color: var(--g); }
@media (min-width: 900px) {
  .stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: center; }
  .stage.no3d { grid-template-columns: minmax(0, 1fr); }
  .stage__view { position: relative; top: auto; aspect-ratio: 4 / 3; }
  .stage__cap { left: 28px; top: 26px; font-size: 1.1875rem; }
  .stage__dots { left: 28px; top: 62px; }
  .stage__hint { right: 26px; top: 30px; bottom: auto; font-size: .75rem; }
  .stage__ctl { left: 26px; right: 26px; bottom: 22px; }
  .stage__list li { padding: 20px 0 20px 22px; }
  .stage__list h3 { font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); }
}

/* ---------- 진료 과정: 화면이 고정된 채 스크롤에 맞춰 치열이 가지런해진다 (site.js) ---------- */
.proc { position: relative; height: 320svh; background: var(--deep); color: var(--on-deep); scroll-margin-top: 0; }
.proc__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding: var(--hd) 0 76px; }
.proc__in { flex: 1; min-width: 0; display: grid; gap: 18px; }
.archbox { position: relative; }
.archbox svg { display: block; width: 100%; height: auto; max-height: 38svh; overflow: visible; }
.arch__band { fill: none; stroke: var(--deep-2); stroke-width: 60; stroke-linecap: round; }
.arch__guide { fill: none; stroke: #6f8f7d; stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.arch__t { fill: #f6f8f5; }
.arch__t2 { fill: #dbe5de; }
.arch__wire { fill: none; stroke: #c9d6cd; stroke-width: 1.7; stroke-linecap: round; }
.arch__brk { fill: #8fa69a; }
.arch__keep { fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; }
.pnum { position: absolute; left: 50%; top: 67%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none; white-space: nowrap; }
.pnum b { font-weight: 800; font-size: clamp(3.75rem, 9.5vw, 8.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.pnum span { font-weight: 800; font-size: clamp(.9375rem, 1.5vw, 1.3125rem); color: var(--lime); }
.pnum.flip b, .pnum.flip span { animation: pflip .55s var(--ease-out) both; }
.pnum.flip span { animation-delay: .08s; }
@keyframes pflip { from { opacity: 0; transform: translateY(.4em); } }
.proc__side { display: grid; gap: 14px; }
.proc__side h2 { font-size: 1.375rem; }
.pbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pbar i { position: relative; height: 3px; overflow: hidden; background: var(--deep-line); }
.pbar i::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(var(--f, 0)); }
.psteps { display: grid; gap: 4px; counter-reset: st; }
.step { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: baseline; color: var(--on-deep-soft); opacity: .62; transition: opacity .4s ease, color .35s var(--ease-out); counter-increment: st; }
.step::before { content: counter(st); font-weight: 800; font-variant-numeric: tabular-nums; }
.step button { all: unset; cursor: pointer; font: 800 1.0625rem/1.6 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.02em; color: inherit; transition: font-size .4s var(--ease-out); }
.step button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.step p { grid-column: 2; display: none; max-width: 26em; padding-bottom: 8px; font-size: .9375rem; line-height: 1.7; color: #dce7df; }
.step.on { color: #fff; opacity: 1; }
.step.on::before { color: var(--lime); }
.step.on button { font-size: 1.5rem; }
.step.on p { display: block; animation: pflip .5s var(--ease-out) .05s both; }
.proc__cue { position: absolute; left: 50%; bottom: 90px; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); font-size: .75rem; color: var(--on-deep-soft); transition: opacity .5s; }
.proc__cue i { position: relative; width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; }
.proc__cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: cue 1.7s ease-in-out infinite; }
@keyframes cue { 0% { transform: none; opacity: 1; } 70%, 100% { transform: translateY(12px); opacity: 0; } }
.proc.is-end .proc__cue { opacity: 0; }
@media (max-width: 899px) { .proc__cue { display: none; } }
@media (min-width: 900px) {
  .proc__pin { padding-bottom: 0; }
  .proc__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: center; }
  .archbox svg { max-height: 66svh; }
  .proc__side { gap: 26px; }
  .proc__side h2 { font-size: clamp(1.625rem, 2.9vw, 2.625rem); }
  .psteps { gap: 14px; }
  .step button { font-size: 1.25rem; }
  .step.on button { font-size: 2rem; }
  .step.on p { font-size: 1.0625rem; }
  .proc__cue { bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .proc { height: auto; }
  .proc__pin { position: static; height: auto; padding-block: 88px; }
  .step { opacity: 1; }
  .step p { display: block; }
  .pnum, .pbar, .proc__cue { display: none; }
}

/* ---------- 의료진 ---------- */
.doc__in { display: grid; gap: 36px; align-items: start; }
.doc__pic { max-width: 440px; overflow: hidden; background: #e9e7dd; }
.doc__pic img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.doc__pic--photo img { mix-blend-mode: normal; }   /* 배경이 있는 사진은 그대로 보여 준다 (흰 배경으로 딴 옛 사진만 바탕에 섞는다) */
.doc__role { font-weight: 800; color: var(--g); }
.doc__tag, .bdoc__tag, .cdoc__tag { margin-top: 10px; font-weight: 700; line-height: 1.6; color: var(--g); text-wrap: balance; }      /* 원장님 PDF 의 한 줄 소개 */
.doc__copy h2 { margin-top: 4px; }
.doc__say { margin-top: 24px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.9; }
.doc__say span { display: block; text-wrap: balance; }
.doc__cv { display: grid; gap: 26px; margin-top: 30px; }      /* 약력 두 묶음: 학력·수련 / 자격·경력 (build_site.py 의 CV) */
.doc__cv h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: .875rem; letter-spacing: 0; color: var(--g); }
.doc__cv li { padding: 11px 0 10px; border-bottom: 1px solid var(--line); font-size: .9688rem; line-height: 1.6; }
@media (min-width: 900px) { .doc__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); } .doc__pic { max-width: none; } }

/* ---------- 증서: 의료진 약력 아래, 흰 대지 칸에 증서를 늘어놓고 누르면 크게 (A·B·C·D안 공통, build_site.py 의 certs. 크게 보기는 아래 .lb) ---------- */
.cert { margin-top: clamp(48px, 6vw, 80px); }
.cert__h { padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: .875rem; letter-spacing: 0; color: var(--g); }
.cert__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; margin-top: 18px; }
.cert__open { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; transition: border-color .25s; }
.cert__open img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; transition: transform .5s var(--ease-out); }      /* 세로·가로 증서 모두 같은 정사각 칸 안에 */
.cert__open:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
@media (hover: hover) { .cert__open:hover { border-color: var(--g); } .cert__open:hover img { transform: scale(1.04); } }
.cert__list p { margin-top: 8px; font-size: .8125rem; font-weight: 700; line-height: 1.45; text-wrap: balance; }      /* 12/1 좁은 칸에서 '교수' 처럼 한 단어만 끝줄에 남지 않게 */      /* 원장님 PDF 의 설명 그대로 */
@media (max-width: 379px) { .cert__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }      /* 12/1 360px 대 휴대폰: 세 칸이면 설명이 '교수' 한 단어만 끝줄에 남아 두 칸으로 */
@media (min-width: 600px) { .cert__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; } }
@media (min-width: 1100px) { .cert__list { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 26px 16px; } }      /* 여덟 장 한 줄 (11/30 밤 블루 다이아몬드 증서 더함) */

/* 병원 사실 두 줄 (병원 둘러보기 위. 원장님 PDF 의 '병원' 묶음 그대로: 협력병원, 네트워크 블루 다이아몬드 등급) */
.hfacts { display: grid; gap: 6px; margin: 0 0 clamp(22px, 3vw, 34px); padding: 14px 0 0; border-top: 1px solid var(--line); }
.hfacts li { position: relative; padding-left: 18px; font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.hfacts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 2px; background: var(--lime); }
.hfacts--deep { border-top-color: var(--deep-line); }
.hfacts--deep li { color: #e3ebe5; }

/* ---------- 병원 둘러보기: 크기가 다른 칸에 사진을 모아 보여 주고 누르면 크게 본다 (A·B·D안 공통, build_site.py 의 gallery).
   넓은 화면은 한 줄에서 한 장이 높이를 정하고(비율) 옆 칸이 그 높이를 채운다 ---------- */
.bgal__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(22px, 3vw, 40px); }
.bgal__top p { font-size: .9375rem; color: var(--soft); }
.bgal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; }
.bgal__it { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.bgal__open { all: unset; box-sizing: border-box; position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar, 3 / 4); background: #e9e7dd; cursor: zoom-in; }
.bgal__open img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.bgal__open:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
@media (hover: hover) { .bgal__open:hover img { transform: scale(1.035); } }
.bgal__it figcaption { padding-top: 9px; font-size: .875rem; font-weight: 700; line-height: 1.4; }
.bgal__it--desk, .bgal__it--wait, .bgal__it--steam { grid-column: span 2; }
.bgal__it--desk, .bgal__it--wait { --ar: 3 / 2; }
.bgal__it--steam { --ar: 4 / 3; }
.bgal__it--ct, .bgal__it--plasma { --ar: 1 / 1; }
@media (min-width: 900px) {
  .bgal__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px 16px; }
  .bgal__it--desk { grid-column: 1 / 9; }
  .bgal__it--private { grid-column: 9 / 13; }
  .bgal__it--room { grid-column: 1 / 5; }
  .bgal__it--wait { grid-column: 5 / 13; }
  .bgal__it--ct { grid-column: 1 / 5; }
  .bgal__it--plasma { grid-column: 5 / 8; }
  .bgal__it--steam { grid-column: 8 / 13; }
  .bgal__it--private .bgal__open, .bgal__it--room .bgal__open, .bgal__it--plasma .bgal__open, .bgal__it--steam .bgal__open { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
}

/* 여덟 장(진단실 포함, A·D안). 넓은 화면: 접수대+개별 진료실 / 진료실+대기실+진단실 / 플라즈마+3D CT+고압증기 (줄마다 한 장이 높이를 정한다: 접수대, 대기실, 3D CT).
   휴대폰: 두 장씩 같은 비율로 짝(개별 진료실+진료실 3:4, 진단실+플라즈마 3:4, 3D CT+고압증기 1:1) */
.bgal__grid--8 .bgal__it--consult, .bgal__grid--8 .bgal__it--plasma { --ar: 3 / 4; }
.bgal__grid--8 .bgal__it--ct, .bgal__grid--8 .bgal__it--steam { grid-column: auto; --ar: 1 / 1; }
.bgal__grid--8 .bgal__it--steam img { object-position: 80% 50%; }      /* 정사각으로 자를 때 오른쪽 조작판이 남게 */
@media (min-width: 900px) {
  .bgal__grid--8 .bgal__it--room { grid-column: 1 / 4; }
  .bgal__grid--8 .bgal__it--wait { grid-column: 4 / 10; }
  .bgal__grid--8 .bgal__it--consult { grid-column: 10 / 13; }
  .bgal__grid--8 .bgal__it--plasma { grid-column: 1 / 4; }
  .bgal__grid--8 .bgal__it--ct { grid-column: 4 / 8; }
  .bgal__grid--8 .bgal__it--steam { grid-column: 8 / 13; }
  .bgal__grid--8 .bgal__it--consult .bgal__open { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
  .bgal__grid--8 .bgal__it--steam img { object-position: 50% 50%; }
}

/* 크게 보기 (dialog) */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 20 14 / .96); color: #fff; overflow: hidden; }
.lb::backdrop { background: transparent; }
html:has(.lb[open]) { overflow: hidden; }
.lb__in { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 16px 92px; }
.lb__fig { display: grid; justify-items: center; gap: 14px; margin: 0; min-width: 0; }
.lb__fig img { display: block; max-width: min(100%, 1500px); max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); width: auto; height: auto; }
.lb__fig figcaption { display: flex; align-items: baseline; gap: 14px; font-weight: 800; }
.lb__fig figcaption span { font-weight: 400; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--on-deep-soft); }
.lb__btn, .lb__close { all: unset; box-sizing: border-box; position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(255 255 255 / .32); color: #fff; cursor: pointer; transition: background-color .25s, border-color .25s; }
.lb__btn { top: 50%; transform: translateY(-50%); }
.lb__prev { left: 20px; }
.lb__prev svg { transform: scaleX(-1); }
.lb__next { right: 20px; }
.lb__close { top: 16px; right: 16px; border-color: transparent; }
@media (hover: hover) { .lb__btn:hover, .lb__close:hover { background: rgb(255 255 255 / .1); border-color: #fff; } }
.lb__btn:focus-visible, .lb__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 899px) {
  .lb__btn { top: auto; bottom: 22px; transform: none; }
  .lb__prev { left: calc(50% - 62px); }
  .lb__next { right: calc(50% - 62px); }
  .lb__fig img { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
}

/* ---------- 비급여 안내: 병원에 붙이는 표처럼 흰 종이 한 장에 세 묶음 (A·C·D안 공통, build_site.py 의 fee_sheet. 물음표 단추는 아래 .tip) ---------- */
.cfee__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.cfee__top p { max-width: 26em; color: var(--soft); }
.cfee__sheet { position: relative; padding: clamp(24px, 4vw, 56px) clamp(20px, 4.4vw, 64px) clamp(24px, 3.6vw, 48px); background: #fff; border: 1px solid var(--line); }
.cfee__date { margin-bottom: 14px; font-size: .8125rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--soft); }
.cfee__grp + .cfee__grp { margin-top: clamp(36px, 4.4vw, 52px); }
.cfee__grp h3 { margin-bottom: 6px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 1.125rem; }
.cfee__items > div { display: grid; grid-template-columns: auto minmax(18px, 1fr) auto; grid-template-areas: "n l p"; align-items: baseline; column-gap: 10px; padding: 10px 0 9px; break-inside: avoid; }
.cfee__items > div::before { content: ""; grid-area: l; align-self: end; margin-bottom: .5em; border-bottom: 1px dotted #aab4ac; }
.cfee__items dt { grid-area: n; font-weight: 700; line-height: 1.5; }
.cfee__p { grid-area: p; font-size: .875rem; white-space: nowrap; color: var(--soft); }
.cfee__p b { margin-right: 1px; font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.cfee__sheet .fine { margin-top: clamp(26px, 3vw, 36px); padding-top: 16px; border-top: 1px solid var(--line); }
/* ---------- 비급여 안내 창 (12/4 원장님: 본문 표 대신 머리글·꼬리말의 '비급여 안내'를 누르면 겹쳐 뜨는 창. 모든 페이지 공통, build_site.py 의 fee_dialog, 움직임 site.js)
   PC 는 가운데 흰 창(머리는 고정, 표만 스크롤), 휴대폰은 화면을 꽉 채우고 닫기 단추를 초록으로 또렷하게 ---------- */
.fdlg { width: min(880px, calc(100% - 48px)); max-width: none; max-height: min(calc(100svh - 64px), 920px); margin: auto; padding: 0; border: 0; background: #fff; color: var(--ink); box-shadow: 0 24px 70px rgb(10 30 18 / .32); overflow: hidden; }
.fdlg[open] { display: flex; flex-direction: column; animation: fdlg-in .32s var(--ease-out); }
.fdlg:focus { outline: none; }
.fdlg::backdrop { background: rgb(12 24 16 / .58); }
html:has(.fdlg[open]) { overflow: hidden; }
@keyframes fdlg-in { from { opacity: 0; transform: translateY(14px); } }
.fdlg__hd { position: relative; flex: none; padding: clamp(22px, 2.6vw, 30px) 132px 18px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.fdlg__hd h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.3; }
.fdlg__hd p { margin-top: 6px; font-size: .875rem; line-height: 1.6; color: var(--soft); }
.fdlg__date { display: inline-block; margin-left: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fdlg__x { all: unset; box-sizing: border-box; position: absolute; top: clamp(16px, 2.2vw, 24px); right: clamp(14px, 2.4vw, 28px); display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 18px; border: 1px solid #c9d0ca; border-radius: 22px; background: #fff; font-size: .9375rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.fdlg__x:hover { border-color: var(--ink); }
.fdlg__x:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.fdlg__body.cfee__sheet { flex: 1 1 auto; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; padding: clamp(22px, 3vw, 36px) clamp(20px, 4vw, 48px) clamp(26px, 3vw, 40px); border: 0; }
.fdlg__body:focus-visible { outline: 2px solid var(--g); outline-offset: -2px; }
@media (max-width: 599px) {
  .fdlg { width: 100%; height: 100%; height: 100dvh; max-height: none; margin: 0; box-shadow: none; }
  .fdlg[open] { animation-name: fdlg-up; }
  .fdlg__hd { padding: 18px 112px 14px 20px; }
  .fdlg__x { top: 14px; right: 14px; border-color: var(--g); background: var(--g); color: #fff; }
  .fdlg__body.cfee__sheet { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}
@keyframes fdlg-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fdlg[open] { animation: none; } }
@media (min-width: 760px) {
  .cfee__items { columns: 2; column-gap: clamp(40px, 5vw, 72px); }
  .cfee__date { position: absolute; top: clamp(24px, 4vw, 56px); right: clamp(20px, 4.4vw, 64px); margin: 0; line-height: 25px; }
}

/* ---------- 진료비 표 (B안 비급여 탭 속 표가 쓴다) ---------- */
.fees__t { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.fees__t th, .fees__t td { padding: 0; text-align: left; font-weight: 400; }
.fees__t thead th { padding: 15px 0 14px; border-bottom: 1px solid var(--ink); font-weight: 800; letter-spacing: -.02em; }
.fees__t thead th:last-child { width: 1%; font-size: .8125rem; font-weight: 400; letter-spacing: 0; text-align: right; white-space: nowrap; color: var(--soft); }
.fees__t tbody th, .fees__t td { padding: 14px 0 13px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.fees__t tbody th { padding-right: 20px; font-weight: 700; }
.fees__t td { text-align: right; white-space: nowrap; font-size: .875rem; color: var(--soft); }
.fees__t td b { margin-right: 1px; font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.fees__t--docs tbody th, .fees__t--docs td { padding: 10px 0 9px; }
.fees__t--docs tbody th { font-size: .9375rem; font-weight: 400; }
.fees__t--docs td b { font-size: 1rem; }

/* ---------- 자주 묻는 질문, 원장이 쓴 글 ---------- */
.faq__in { display: grid; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; font-weight: 800; font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--soft), var(--soft)) 50% / 100% 1.5px no-repeat, linear-gradient(var(--soft), var(--soft)) 50% / 1.5px 100% no-repeat; }
.faq details[open] summary::after { background: linear-gradient(var(--soft), var(--soft)) 50% / 100% 1.5px no-repeat; }
.faq details p { padding: 0 40px 22px 0; max-width: 36em; color: var(--soft); }
.posts li a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 700; transition: color .3s; }
.posts li a:hover { color: var(--g); }
.posts .text-link { margin-top: 22px; }
.posts h3 { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }      /* 원장이 쓴 글: 이제 분야별 페이지에만 */
@media (min-width: 900px) { .faq__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--col-gap); align-items: start; } .faq__in > h2 { margin-bottom: 0; } .faq summary { font-size: 1.125rem; } }

/* ---------- 요일 일곱 칸 진료시간표 (A·C·D안 공통, build_site.py 의 week_table. 오늘 요일은 site.js) ---------- */
.cweek { width: 100%; margin-top: clamp(22px, 3vw, 34px); border-collapse: collapse; table-layout: fixed; text-align: center; }
.cweek th { position: relative; padding: 24px 0 11px; border-bottom: 2px solid var(--ink); font-weight: 800; font-size: .9375rem; }      /* 위 24px 는 '오늘' 자리 */
.cweek td { padding: 16px 2px 15px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.cweek :is(th, td) + :is(th, td) { border-left: 1px solid var(--line); }
.cweek td b { display: block; font-weight: 800; font-size: clamp(.8125rem, 1.15vw, 1rem); letter-spacing: -.02em; line-height: 1.3; }
.cweek__to { display: block; width: 1px; height: 12px; margin: 6px auto; overflow: hidden; background: var(--faint); font-size: 0; }
.cweek .off { color: var(--faint); }
.cweek td.off { padding-top: 26px; font-weight: 700; font-size: .875rem; }
.cweek .is-today { background: rgb(28 107 58 / .07); color: var(--g); }      /* 오늘 요일은 머리 칸부터 시간 칸까지 옅은 초록 기둥 + 초록 글자 (12/2 사용자 "살짝만 강조") */
.cweek th.is-today { color: var(--g); border-bottom-color: var(--g); }      /* 머리 선은 굵기는 그대로, 그 칸만 초록 */
.cweek th.is-today::before { content: "오늘"; position: absolute; left: 0; right: 0; top: 6px; font-size: .75rem; font-weight: 800; line-height: 1.2; color: var(--g); }
.cweek td.is-today .cweek__to { background: currentColor; opacity: .5; }
.cweek__notes { margin-top: 14px; font-size: .875rem; line-height: 1.8; color: var(--soft); }
.cweek__notes li::before { content: "· "; }
.visit__top + .cweek { margin-top: 0; }      /* A안: 제목·큰 전화번호 줄 바로 아래 */

/* ---------- 진료시간, 오시는 길 ---------- */
.visit__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.bigtel { font-weight: 800; font-size: clamp(1.625rem, 3.2vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--g); }
.way { margin-top: clamp(64px, 8vw, 112px); scroll-margin-top: calc(var(--hd) + 36px); }
.bvis__way, .cvis__way { scroll-margin-top: calc(var(--hd) + 36px); }      /* 12/4: B·C·D안도 '오시는 길'(머리글·빠른 메뉴)로 내려가면 제목이 머리글에 가리지 않게 */
.way h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.way__in { display: grid; gap: 24px; }
.way iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--tint); }
.ways > div { display: grid; grid-template-columns: 5em 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ways > div:first-child { border-top: 2px solid var(--ink); }
.ways dt { font-weight: 800; }
.ways dd { color: var(--soft); }
.ways dd.maps { display: flex; flex-wrap: wrap; gap: 14px 24px; }
@media (min-width: 900px) {
  .way__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: start; }
  .way iframe { aspect-ratio: 16 / 10; }
}

/* ---------- 꼬리말 ---------- */
.foot { background: var(--deep); color: var(--on-deep-soft); font-size: .9063rem; padding-block: clamp(52px, 6vw, 80px) 104px; }
.foot a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.foot__brand { padding-bottom: 32px; border-bottom: 1px solid var(--deep-line); }
.foot__brand a { display: inline-block; }
.foot__logo { display: block; height: 30px; width: auto; }
.foot__logo path { fill: #fff; }
.foot__logo path[fill="#8BC34A"] { fill: var(--lime); }
.foot__in { display: grid; gap: 26px; padding-block: 30px; }
.foot__info { display: grid; gap: 4px; }
.foot__info > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.foot__info dd { color: #fff; font-variant-numeric: tabular-nums; }
.foot__links { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 26px; font-weight: 700; color: #fff; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: .35em; }
.foot__navs { display: grid; gap: 12px; align-content: start; }
.foot__links--sub { font-weight: 400; color: #dbe6de; }
.foot__notice { padding-top: 22px; border-top: 1px solid var(--deep-line); color: #fff; font-weight: 700; font-size: .875rem; }
@media (min-width: 900px) { .foot { padding-bottom: 60px; } .foot__logo { height: 34px; } .foot__in { grid-template-columns: minmax(0, 1fr) auto; gap: 26px var(--col-gap); } .foot__links { justify-content: flex-end; } }

/* ---------- 진료 분야별 페이지 (fields/*.html): 사진 없이 글로 읽는 페이지. 왼쪽 좁은 칸에 다섯 분야, 오른쪽에 글 한 단 ---------- */
.pg--sub { background: #fff; }
.pg--sub .site { box-shadow: 0 1px 0 var(--line); }
.pg--sub .site__nav a { position: relative; }
.pg--sub .site__nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); }
.fp { padding-top: 89px; }      /* 머리글 높이 (머리글은 kit.css 대로 위에 떠 있다) */
.fp__grid { display: grid; gap: 64px; }
.fp__top { padding-block: clamp(40px, 6vw, 84px) clamp(72px, 9vw, 128px); }
.fp__nav h2 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 400 .8125rem/1.6 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: 0; color: var(--soft); }
.fp__nav a { position: relative; display: block; padding: 13px 0 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; line-height: 1.5; color: var(--faint); transition: color .25s; }
.fp__nav a:hover { color: var(--g); }
.fp__nav a[aria-current] { color: var(--ink); font-weight: 800; }
.fp__nav a[aria-current]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); }
.fp__body { min-width: 0; max-width: 720px; }
.fp__body .eyebrow a:hover { text-decoration: underline; text-underline-offset: .35em; }
.fp__body h1 { margin-top: 18px; font: 800 clamp(1.875rem, 3.55vw, 3.25rem)/1.3 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.035em; }
.fp__lead { margin-top: 22px; font-size: clamp(1.125rem, 1.65vw, 1.375rem); line-height: 1.75; letter-spacing: -.015em; }
.fp__sec { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.fp__body header + .fp__sec { margin-top: clamp(40px, 5vw, 60px); border-top: 2px solid var(--ink); }
.fp__sec h2 { margin-bottom: 18px; font: 800 clamp(1.25rem, 1.9vw, 1.5rem)/1.4 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.fp__sec > p { font-size: 1.0625rem; line-height: 1.85; color: #2c3a32; }
.fp__sec > * + * { margin-top: 14px; }
.fp__sec > h2 + * { margin-top: 0; }
.fp__list { display: grid; gap: 9px; font-size: 1.0625rem; line-height: 1.75; color: #2c3a32; }
.fp__list li { position: relative; padding-left: 22px; }
.fp__list li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 2px; background: var(--lime); }
.fp__list b { font-weight: 800; color: var(--ink); }
.fp__sec > .fp__list + p, .fp__sec > .fp__steps + p { margin-top: 20px; }
.fp__sec > .fp__label { margin-top: 26px; font-size: .875rem; font-weight: 800; line-height: 1.6; color: var(--g); }
.fp__sec > .fp__label + * { margin-top: 10px; }
.fp__steps { counter-reset: n; border-top: 1px solid var(--line); }
.fp__steps li { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); padding: 16px 0 15px; border-bottom: 1px solid var(--line); counter-increment: n; }
.fp__steps li::before { content: counter(n); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--g); }
.fp__steps b { font-weight: 800; }
.fp__steps p { grid-column: 2; margin-top: 3px; line-height: 1.8; color: var(--soft); }
.fp__sec > .fp__steps:last-child li:last-child { padding-bottom: 0; border-bottom: 0; }      /* 다음 구역의 윗선과 겹쳐 두 줄로 보이지 않게 */
.fp__sec.faq .faq__list { border-bottom: 0; }
.fp__sec.faq details:last-child:not([open]) summary { padding-bottom: 0; }
.fp .nb { white-space: nowrap; }
.fp__sec.faq summary { font-size: 1.0625rem; }
.fp__sec.faq details p { font-size: 1rem; line-height: 1.8; }
.fp__sec.posts ul { border-top: 2px solid var(--ink); }
/* 상담 안내: 분야별 페이지마다 같은 내용 */
.consult { padding-block: clamp(64px, 8vw, 108px); }
.consult__in { min-width: 0; max-width: 720px; }
.consult h2 { font-size: clamp(1.5rem, 2.5vw, 2.125rem); }
.consult__steps { margin-top: clamp(24px, 3vw, 36px); border-top: 2px solid var(--ink); counter-reset: n; }
.consult__steps li { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); padding: 16px 0 15px; border-bottom: 1px solid var(--line); counter-increment: n; }
.consult__steps li::before { content: counter(n); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--g); }
.consult__steps b { font-weight: 800; }
.consult__steps p { grid-column: 2; margin-top: 3px; font-size: .9688rem; line-height: 1.75; color: var(--soft); }
.consult__steps + p { margin-top: 26px; }
.consult__in > p:not(.fine) { max-width: 40em; line-height: 1.85; }
.consult__in > p + p { margin-top: 8px; }
.consult .btns { margin-top: 30px; }
.consult .btn--sub { border-color: rgb(28 107 58 / .4); color: var(--g); }      /* 첫 화면의 버튼과 같은 모양 */
.consult .fine { margin-top: 26px; }
@media (max-width: 899px) {
  /* 12/1 휴대폰: 다른 분야로 가는 목록을 맨 아래 대신 제목 위 가로 탭으로 (옆으로 밀어 넘김, 지금 분야는 아래 연두 줄) */
  .fp__nav { order: 0; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); overflow-x: auto; scrollbar-width: none; }
  .fp__nav::-webkit-scrollbar { display: none; }
  .fp__nav h2 { display: none; }
  .fp__nav ul { display: flex; gap: 22px; width: max-content; min-width: 100%; border-bottom: 1px solid var(--line); }
  .fp__nav a { padding: 12px 0 11px; border-bottom: 0; white-space: nowrap; font-size: .9375rem; }
  .fp__nav a[aria-current]::before { top: auto; right: 0; bottom: -1px; width: auto; height: 3px; }
  .fp__grid { gap: 36px; }
  .fp__top { padding-top: 14px; }      /* 탭이 머리글 바로 아래에 붙게 */
  .consult .btns { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .fp__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--col-gap); align-items: start; }
  .fp__nav { position: sticky; top: calc(var(--hd) + 44px); margin-top: 8px; }
  .consult__in { grid-column: 2; }
  .consult__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .consult__steps li { display: block; padding: 22px 24px 24px 0; border-bottom: 0; }
  .consult__steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
  .consult__steps li::before { display: block; margin-bottom: 8px; }
}

/* ---------- 개인정보처리방침 (privacy.html: 분야별 페이지와 같은 글 한 단) 과 꼬리말 연결 ---------- */
.pv .fp__body { margin-inline: auto; }
.pv .fp__lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.pv .fp__sec h2 { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }
.pv .fp__list a, .pv .fp__sec p a { color: var(--g); text-decoration: underline; text-underline-offset: .3em; }
.foot__priv { margin-top: 10px; font-size: .8125rem; }
.foot__priv a { font-weight: 800; color: #fff; }
.foot__priv a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* ---------- 비급여 표의 물음표 단추 (A·B·C안 공통. build_site.py 의 fee_name). 덧붙이는 말을 줄 안에 늘어놓지 않고 말풍선으로 보인다.
   넓은 화면: 마우스를 대거나 탭 키로 오면 열린다. 휴대폰: 누르면 열리고 다시 누르거나 바깥을 누르면 닫힌다 (site.js). Esc 로 닫는다 ---------- */
.tip { position: relative; display: inline-block; margin-left: 5px; vertical-align: -3px; line-height: 0; white-space: nowrap; }
.tip__btn { all: unset; box-sizing: border-box; position: relative; display: block; width: 17px; height: 17px; border-radius: 50%; color: var(--faint); cursor: help; transition: color .2s; }
.tip__btn::before { content: ""; position: absolute; inset: -12px; }      /* 손가락으로 누르는 자리는 41px (12/1 33px → 41px, 보이는 크기는 그대로) */
.tip__i { display: block; width: 100%; height: 100%; overflow: visible; }
.tip__o { fill: none; stroke: currentColor; stroke-width: 1.3; transition: fill .2s, stroke .2s; }
.tip__i path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tip__d { fill: currentColor; }
.tip__btn:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.tip__box { position: absolute; z-index: 20; left: -15px; top: calc(100% + 10px); width: max-content; max-width: min(17.5rem, calc(100vw - 40px)); padding: 10px 13px 11px; background: var(--ink); color: #fff;
  font: 400 .8125rem/1.6 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: 0; text-align: left; white-space: normal; word-break: keep-all;
  opacity: 0; visibility: hidden; transform: translate(var(--dx, 0px), -4px); transition: opacity .18s, transform .18s, visibility 0s .18s; pointer-events: none; }
.tip__box::before { content: ""; position: absolute; left: calc(18.5px - var(--dx, 0px)); top: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.tip.is-open .tip__box, .tip__btn:focus-visible + .tip__box { opacity: 1; visibility: visible; transform: translate(var(--dx, 0px), 0); transition: opacity .18s, transform .18s; }
.tip.is-open .tip__btn, .tip__btn:focus-visible { color: #fff; }
.tip.is-open .tip__o, .tip__btn:focus-visible .tip__o { fill: var(--g); stroke: var(--g); }
@media (hover: hover) {
  .tip:hover .tip__box { opacity: 1; visibility: visible; transform: translate(var(--dx, 0px), 0); transition: opacity .18s, transform .18s; }
  .tip:hover .tip__btn { color: #fff; }
  .tip:hover .tip__o { fill: var(--g); stroke: var(--g); }
}
.tip.is-hush .tip__box { opacity: 0; visibility: hidden; }      /* Esc 로 닫은 뒤: 마우스를 떼거나 초점이 떠날 때까지 */

/* ---------- 사진 자리 (12/1): 원장님 사진이 오기 전의 빈 칸. 네 귀퉁이 재단 표시 + 들어갈 사진 이름 (build_site.py 의 slot). 사진이 오면 같은 비율의 img 로 바꾼다 ---------- */
.slot { --m: var(--slot-mark, var(--g)); --ml: 22px; --mw: 1.5px; --mo: 14px;
  position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; width: 100%; padding: 24px; text-align: center;
  color: var(--slot-ink, var(--soft)); outline: 1px solid var(--slot-line, var(--line)); outline-offset: -1px;
  background:
    linear-gradient(var(--m), var(--m)) left var(--mo) top var(--mo) / var(--ml) var(--mw) no-repeat,
    linear-gradient(var(--m), var(--m)) left var(--mo) top var(--mo) / var(--mw) var(--ml) no-repeat,
    linear-gradient(var(--m), var(--m)) right var(--mo) top var(--mo) / var(--ml) var(--mw) no-repeat,
    linear-gradient(var(--m), var(--m)) right var(--mo) top var(--mo) / var(--mw) var(--ml) no-repeat,
    linear-gradient(var(--m), var(--m)) left var(--mo) bottom var(--mo) / var(--ml) var(--mw) no-repeat,
    linear-gradient(var(--m), var(--m)) left var(--mo) bottom var(--mo) / var(--mw) var(--ml) no-repeat,
    linear-gradient(var(--m), var(--m)) right var(--mo) bottom var(--mo) / var(--ml) var(--mw) no-repeat,
    linear-gradient(var(--m), var(--m)) right var(--mo) bottom var(--mo) / var(--mw) var(--ml) no-repeat,
    var(--slot-bg, rgb(28 107 58 / .05)); }
.slot__k { font-size: .75rem; font-weight: 700; line-height: 1.4; color: var(--m); }
.slot__n { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--slot-ink-strong, var(--ink)); }
.slot__s { font-size: .8125rem; line-height: 1.5; }

/* ---------- 치열 도식 (arch.py): 진료 과정 단계 그림과 분야별 페이지 머리 그림. .art 에 .is-in 이 붙으면 앞 자리(--a)에서 이 자리(--b)로 옮긴다 (site.js) ---------- */
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art .ar-t { fill: var(--art-tooth, #fff); stroke: var(--art-line, var(--g)); stroke-width: 2.4; }
.art .ar-t2 { fill: var(--art-tooth2, #e2eae4); }
.art .ar-brk { fill: var(--art-brk, var(--g)); }
.art .ar-wire { fill: none; stroke: var(--art-brk, var(--g)); stroke-width: 2; stroke-linecap: round; }
.art .ar-plan { fill: none; stroke: var(--art-hi, var(--lime)); stroke-width: 3.2; stroke-dasharray: .009 .011; stroke-linecap: round; }      /* 정밀검사 뒤 세운 목표 치열 */
.art .ar-keep { fill: none; stroke: var(--art-hi, var(--lime)); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }      /* 고정식 유지장치 */
.art .ar-shell { fill: none; stroke: var(--lime); stroke-opacity: .34; stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; }
.art .ar-low { fill: none; stroke: var(--art-line, var(--g)); stroke-width: 3; stroke-dasharray: .5 7; stroke-linecap: round; }
.art .ar-arw { fill: none; stroke: var(--art-line, var(--g)); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art .ar-bud { fill: none; stroke: var(--art-line, var(--g)); stroke-width: 2.2; stroke-dasharray: 3 5; }
.art .ar-g { transform: var(--b); }
.art .ar-out { opacity: 0; }
.js .art:not(.is-in) .ar-g { transform: var(--a); }
.js .art:not(.is-in) .ar-in { opacity: 0; }
.js .art:not(.is-in) .ar-out { opacity: 1; }
.js .art:not(.is-in) .ar-keep { stroke-dashoffset: 1; }
.js .art { --ad: .45s; }
.js .art .ar-out { transition: opacity .5s var(--ad); }
.js .art .ar-g { transition: transform 1.6s var(--ease-out) calc(var(--ad) + .3s), opacity .6s calc(var(--ad) + 1.2s); }
.js .art .ar-in:not(.ar-g) { transition: opacity .7s calc(var(--ad) + .5s), stroke-dashoffset 1.4s var(--ease-out) calc(var(--ad) + 1s); }
.js .art .ar-g.ar-out { transition: opacity .5s var(--ad); }
.js .art .ar-g.ar-in { transition: transform 1.6s var(--ease-out) calc(var(--ad) + .3s), opacity .8s calc(var(--ad) + .3s); }
@media (prefers-reduced-motion: reduce) { .js .art :is(.ar-g, .ar-in, .ar-out, .ar-keep) { transition: none !important; } }

/* ---------- 진료 과정 (12/1, A·B·C·D안 공통, build_site.process): 다섯 단계. 단계마다 사진 자리와 짧은 글이 가운데 줄을 사이에 두고 좌우로 번갈아.
   가운데 줄은 스크롤만큼 차고(--p), 줄이 지난 단계의 마름모가 켜진다. 휴대폰은 줄이 왼쪽에, 글 다음에 사진 (site.js) ---------- */
.flow { --fl-bg: var(--deep); --fl-ink: var(--on-deep); --fl-soft: var(--on-deep-soft); --fl-line: var(--deep-line); --fl-hi: var(--lime);
  --slot-bg: rgb(255 255 255 / .045); --slot-mark: var(--lime); --slot-line: var(--deep-line); --slot-ink: var(--on-deep-soft); --slot-ink-strong: #fff;
  --art-tooth: var(--deep); --art-tooth2: rgb(255 255 255 / .1); --art-line: rgb(255 255 255 / .82); --art-brk: var(--lime); --art-hi: var(--lime);
  position: relative; padding-block: clamp(88px, 11vw, 156px); background: var(--fl-bg); color: var(--fl-ink); scroll-margin-top: var(--hd); }
.flow--tint, .flow--plain { --fl-bg: var(--tint); --fl-ink: var(--ink); --fl-soft: var(--soft); --fl-line: var(--line); --fl-hi: var(--g);
  --slot-bg: rgb(28 107 58 / .05); --slot-mark: var(--g); --slot-line: var(--line); --slot-ink: var(--soft); --slot-ink-strong: var(--ink);
  --art-tooth: #fff; --art-tooth2: #e2eae4; --art-line: var(--g); --art-brk: var(--g); --art-hi: #6fae34; }
.flow--plain { --fl-bg: #fff; }
.flow :where(h2, h3, p, ol, li) { margin: 0; padding: 0; }
.flow ol { list-style: none; }
.flow :where(p, li) { text-wrap: pretty; }
.flow__head { display: grid; gap: 14px; }
.flow__head h2 { font: 800 clamp(1.625rem, 2.9vw, 2.625rem)/1.3 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.035em; }
.flow__head p { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.7; color: var(--fl-soft); }
.flow__track { --sx: 13px; position: relative; margin-top: clamp(48px, 7vw, 104px); }
.flow__list { position: relative; display: grid; gap: clamp(48px, 8vw, 112px); }      /* 12/1 단계 사이를 줄임 (휴대폰 48px) */
/* 줄 끝을 따라 내려가는 점 (스크롤 위치) */
.flow__dot { display: none; }
.js .flow__dot { display: block; position: absolute; z-index: 2; left: var(--sx); top: calc(var(--p, 0) * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--fl-hi); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fl-hi) 24%, transparent); pointer-events: none; }
.flow__list::before, .flow__list::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--sx); width: 1px; background: var(--fl-line); }
.flow__list::after { width: 2px; margin-left: -.5px; background: var(--fl-hi); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.js .flow__list::after { transform: scaleY(var(--p, 0)); }
/* 12/1 원장님 요청: 휴대폰은 사진(가로형) → '01 이름' → 글 → 블로그 순, 치열 그림 없음 */
.fl-step { position: relative; display: grid; grid-template-columns: 27px minmax(0, 1fr); column-gap: 16px; row-gap: 18px; }
.fl-node { position: relative; z-index: 1; grid-column: 1; grid-row: 1; justify-self: center; width: 11px; height: 11px; margin-top: 2px; background: var(--fl-bg); border: 1.5px solid var(--fl-line); transform: rotate(45deg); transition: background-color .45s, border-color .45s, transform .45s var(--ease-out); }
.fl-step.is-lit .fl-node { background: var(--fl-hi); border-color: var(--fl-hi); transform: rotate(45deg) scale(1.18); }
.fl-media { grid-column: 2; grid-row: 1; min-width: 0; }
.fl-text { grid-column: 2; grid-row: 2; min-width: 0; }
.fl-h { display: flex; align-items: baseline; gap: 12px; font: 800 clamp(1.25rem, 2vw, 1.75rem)/1.35 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.03em; }
.fl-num { flex: none; font-size: 1.15em; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--fl-hi); }      /* 번호와 이름을 한 줄로 */
.fl-art { width: min(232px, 66%); margin-top: 22px; }
.fl-text > p { max-width: 30em; margin-top: 12px; font-size: 1rem; line-height: 1.85; color: var(--fl-soft); }
/* 단계마다 원장님 블로그 글 (12/1) */
.fl-more { display: grid; gap: 3px; max-width: 30em; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--fl-line); }
.fl-more__k { font-size: .8125rem; font-weight: 700; color: var(--fl-hi); }
.fl-more__t { font-weight: 800; line-height: 1.55; color: var(--fl-ink); }
.fl-more .ext { display: inline-block; margin-left: 6px; vertical-align: -1px; color: var(--fl-hi); }
@media (hover: hover) { .fl-more:hover .fl-more__t { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; } }
.flow__end { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(18px, 2vw, 24px); border-top: 1px solid var(--fl-line); }      /* 12/2 버튼을 빼고 안내 한 줄만 */
.flow__end .fine { color: var(--fl-soft); }
.flow--deep .btn--main { background: var(--lime); color: var(--deep); }
.flow--deep .btn--main:hover { background: #9fd35f; }
.flow--deep .btns .btn--sub { border-color: rgb(255 255 255 / .4); background: transparent; color: #fff; }
.flow--deep .btns .btn--sub:hover { border-color: #fff; }
@media (min-width: 900px) {
  .flow__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; }
  .flow__track { --sx: 50%; }
  .fl-step { grid-template-columns: minmax(0, 1fr) clamp(72px, 8vw, 120px) minmax(0, 1fr); row-gap: 0; align-items: center; }
  .fl-node { grid-column: 2; align-self: center; margin-top: 0; width: 13px; height: 13px; }
  .fl-media { grid-column: 1; grid-row: 1; width: 100%; max-width: 440px; justify-self: end; }      /* 사진은 가운데 줄 쪽으로 붙여 작게 */
  .fl-text { grid-column: 3; grid-row: 1; max-width: 30rem; }
  .fl-step:nth-child(even) .fl-media { grid-column: 3; justify-self: start; }
  .fl-step:nth-child(even) .fl-text { grid-column: 1; justify-self: end; width: 100%; }
}
/* 나타나기: 사진 자리는 가운데 줄 쪽에서 열리고, 글은 아래에서 올라온다 */
@media (prefers-reduced-motion: no-preference) {
  .js .fl-media { transition: clip-path 1.25s var(--ease-out); }
  .js .fl-step:not(.is-in) .fl-media { clip-path: inset(0 100% 0 0); }
  .js .fl-text > * { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
  .js .fl-text > :nth-child(2) { transition-delay: .08s; } .js .fl-text > :nth-child(3) { transition-delay: .16s; } .js .fl-text > :nth-child(4) { transition-delay: .24s; } .js .fl-text > :nth-child(5) { transition-delay: .32s; }
  .js .fl-step:not(.is-in) .fl-text > * { opacity: 0; transform: translateY(22px); }
  @media (min-width: 900px) { .js .fl-step:nth-child(odd):not(.is-in) .fl-media { clip-path: inset(0 0 0 100%); } }
}

/* ---------- 분야별 페이지 (12/1): 머리는 제목·소개 글과 그 아래 16:9 사진(12/2 원장님: 치열 그림 대신 사진), 본문은 짧은 장. 사진이 있는 장은 PC 에서 사진이 왼쪽·오른쪽을 번갈아, 휴대폰은 글 다음에 화면 폭 사진 (build_site.py 의 chapters) ---------- */
.fp__body--ch { max-width: none; }
.fp__body > .fp__sec { max-width: 720px; }
.fp__head { display: grid; gap: 28px; }
.fp__head .fp__lead { max-width: 30em; }
.fp__ph { margin: 12px calc(var(--gut) * -1) 0; }      /* 휴대폰: 화면 폭 */
.fp__ph img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e9ece6; }
@media (min-width: 900px) { .fp__ph { margin-inline: 0; } }
.chs { display: grid; gap: clamp(56px, 7vw, 96px); margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 60px); border-top: 2px solid var(--ink); }
.ch__n { display: flex; align-items: center; gap: 12px; font: 800 .9375rem/1 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-variant-numeric: tabular-nums; color: var(--g); }
.ch__n::after { content: ""; width: 32px; height: 2px; background: var(--lime); }
.ch h2 { margin-top: 14px; font: 800 clamp(1.375rem, 2.2vw, 1.75rem)/1.4 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.ch__text > p:not(.ch__n) { max-width: 34em; margin-top: 14px; font-size: 1.0625rem; line-height: 1.85; color: #2c3a32; }
.ch:not(.ch--ph) .ch__text > p:not(.ch__n) { max-width: 44em; }
.ch:not(.ch--ph) .ch__more { max-width: calc(44 * 1.0625rem); }      /* 블로그 글 위 가는 줄도 글 폭에 맞춘다 */
/* 12/4 사용자: 넓은 칸에서는 말의 마디에 맞춰 줄을 바꾼다 (site_content 글 속 \n → build_site.lines 의 <br class="brk">).
   칸이 좁으면(좁은 PC·태블릿·휴대폰) 억지로 끊으면 한두 낱말만 남는 줄이 생기므로 그냥 흘려 쓴다 */
.brk { display: none; }      /* (.lb 는 크게 보기 창 이름이라 쓰지 않는다) */
.ch:not(.ch--ph), .fp__hd { container-type: inline-size; }
@container (min-width: 680px) {      /* 12/4 전체 문구: 가장 긴 마디 617px (sb/r57/brk.mjs 로 잼). 글꼴이 늦게 올 때를 생각해 여유를 둔다 */
  .brk { display: inline; }
  .fp__head .fp__lead { max-width: none; }
}      /* 12/4 사용자: 사진 없는 장은 옆이 비어 있으니 글을 넓게 (34em 이면 두 줄로 충분한 글이 세 줄로 내려갔다. 1280 이상에서 대부분 두 줄) */
.ch__more { display: grid; gap: 3px; max-width: 34em; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.ch__k { font-size: .8125rem; font-weight: 700; color: var(--g); }
.ch__t { display: block; font-weight: 800; line-height: 1.55; }
.ch__t .ext { display: inline-block; margin-left: 6px; vertical-align: -1px; color: var(--g); }
@media (hover: hover) { .ch__more:hover .ch__t { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; } }
.ch__more + .ch__more { margin-top: 12px; padding-top: 12px; }      /* 한 장에 글이 둘이면 (12/2 인비절라인 03): 가는 줄로만 나눈 목록처럼 */
.ch--ph { display: grid; gap: 26px; }
.ch__media { margin-inline: calc(var(--gut) * -1); }      /* 휴대폰: 화면 폭 */
.ch__media .slot { outline: 0; }
@media (min-width: 900px) {
  .ch--ph { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 56px); align-items: center; }
  .ch__media { margin-inline: 0; }
  .ch__media .slot { outline: 1px solid var(--line); }
  .ch--l .ch__media { order: -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .ch__media { transition: clip-path 1.2s var(--ease-out); }
  .js .ch:not(.is-in) .ch__media { clip-path: inset(0 100% 0 0); }
  .js .ch__text > * { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
  .js .ch__text > :nth-child(2) { transition-delay: .08s; } .js .ch__text > :nth-child(3) { transition-delay: .16s; } .js .ch__text > :nth-child(4) { transition-delay: .24s; }
  .js .ch:not(.is-in) .ch__text > * { opacity: 0; transform: translateY(22px); }
  @media (min-width: 900px) { .js .ch--l:not(.is-in) .ch__media { clip-path: inset(0 0 0 100%); } }
}

/* ---------- 네이버 지도 (12/1, A·B·C·D안 공통, build_site.nmap, 움직임은 site.js): 화면 가까이 오면 불러오고, 못 불러오면 안내와 '네이버 지도에서 보기' ---------- */
.nmap { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.nmap__map { position: absolute !important; inset: 0; width: 100%; height: 100%; }      /* 네이버 지도가 칸에 position: relative 를 직접 넣어 높이가 0 이 되는 것을 막는다 */
.nmap__fb { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; font-size: .9375rem; color: var(--soft); }
.nmap__fb a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid rgb(28 107 58 / .4); background: #fff; font-weight: 700; color: var(--g); }
.js .nmap:not(.is-fail) .nmap__fb { visibility: hidden; }
.nmap.is-fail .nmap__map { display: none; }
.nmap__pin { position: relative; transform: translate(-50%, calc(-100% - 12px)); padding: 7px 12px 8px; background: var(--g); box-shadow: 0 6px 18px rgb(0 0 0 / .2); font: 800 13px/1.2 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #fff; white-space: nowrap; }
.nmap__pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--g); transform: translateX(-50%) rotate(45deg); }

/* 지도 버튼 앞 공식 앱 아이콘 (12/1, build_site.map_icon). 네이버·카카오는 앱 아이콘처럼 모서리를 둥글게, 구글은 핀 모양 그대로 */
.mapico { flex: none; width: 22px; height: 22px; border-radius: 6px; }
.mapico--google { border-radius: 0; }
.mapbtn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.maplink { display: inline-flex; align-items: center; gap: 8px; }

/* 12/1 휴대폰 누르는 자리: 머리글 전화 아이콘(숫자 없이 19px)도 손가락 자리는 41px */
@media (max-width: 559px) { .pg .site__tel { position: relative; } .pg .site__tel::after { content: ""; position: absolute; inset: -11px; } }

/* ---------- 확인할 것 표시 (주소 뒤에 ?todo=1 을 붙였을 때만 보인다) ---------- */
.todo-on .todo { outline: 1px dashed #c2671b; outline-offset: 4px; }
.todo-on .proc .todo, .todo-on .foot .todo, .todo-on .stage__view .todo { outline-color: #ffb469; }
.todo-on .todo.todo--hit { outline-style: solid; outline-width: 2px; }
.todo-panel { position: fixed; z-index: 70; left: 16px; bottom: 16px; width: min(330px, calc(100vw - 32px)); max-height: min(62vh, 520px); display: grid; grid-template-rows: auto 1fr; background: #fffdf8; border: 1px solid #c2671b; color: #3a2a1b; font-size: .8125rem; line-height: 1.55; }
.todo-panel > button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; font-weight: 800; cursor: pointer; }
.todo-panel > button:focus-visible, .todo-panel li button:focus-visible { outline: 2px solid #c2671b; outline-offset: -2px; }
.todo-panel ol { margin: 0; padding: 0 0 6px; list-style: none; overflow: auto; border-top: 1px solid #ecd9c4; counter-reset: td; }
.todo-panel li button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1.6em 1fr; width: 100%; padding: 6px 12px; cursor: pointer; counter-increment: td; }
.todo-panel li button::before { content: counter(td); color: #c2671b; font-weight: 800; font-variant-numeric: tabular-nums; }
.todo-panel li button:hover { background: #f8eedf; }
.todo-panel.is-shut ol { display: none; }
@media (max-width: 899px) { .todo-panel { bottom: 72px; max-height: 44vh; } }

/* ---------- 넓고 높은 PC 화면: 본 페이지의 구역을 한 화면 높이 이상으로 맞추고 내용을 가운데에 둔다 (구역이 화면에 꽉 차게 들어온다).
   한 화면보다 긴 구역(비급여 표, 진료시간과 오시는 길)은 내용만큼 길어진다. 진료별 페이지(.hero 가 없다)에는 적용하지 않는다.
   (첫 화면에서 휠 한 칸에 넘기던 것은 11/30 뺐다. 스크롤은 처음부터 끝까지 평소대로) ---------- */
@media (min-width: 1100px) and (min-height: 700px) and (hover: hover) and (pointer: fine) {
  .hero ~ .sec { display: grid; align-content: center; min-height: 100vh; padding-block: clamp(84px, 11vh, 128px); }
  .hero ~ .sec > .frame { min-width: 0; }
}

/* 12/2 원장님이 보낸 사진: 진료 과정(16:9)과 분야별 페이지 장(3:2) */
.fl-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e9ece6; }
.ch__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #e9ece6; }
.ch__cap { margin-top: 10px; font-size: .875rem; line-height: 1.6; color: var(--soft); }      /* 원장님이 적어 보낸 사진 설명 (인비절라인 03) */
@media (max-width: 899px) { .ch__cap { padding-inline: var(--gut); } }
.ch__cert { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: clamp(16px, 3vw, 24px); background: var(--tint); }
.ch__cert img { width: auto; height: 100%; aspect-ratio: auto; object-fit: contain; background: none; box-shadow: 0 10px 24px rgb(20 40 28 / .14); }
/* 분야별 페이지 아래: 한 줄과 버튼만 (12/2) */
.consult--end { padding-block: clamp(48px, 6vw, 80px); }
.consult--end .consult__in > p { font-size: 1.0625rem; }
.consult--end .btns { margin-top: 22px; }
/* 꼬리말의 네트워크 홈페이지 링크 (12/2 원장님: 작게, 새 창) */
.foot__priv { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; }
.foot__priv a { display: inline-flex; align-items: center; min-height: 40px; }
.foot__priv a.foot__net { font-weight: 400; color: #dbe6de; }
.foot__net .ext { margin-left: 5px; }
@media (max-width: 899px) { .ch__media img, .ch__cert { border-radius: 0; } }
/* 12/2 휴대폰: 장 순서를 원장님 원고대로 번호·제목 → 사진 → 글 → 블로그 (PC 는 사진과 글이 나란히) */
@media (max-width: 899px) {
  .ch--ph { gap: 0; }
  .ch--ph .ch__text { display: contents; }
  .ch--ph .ch__n { order: 1; }
  .ch--ph h2 { order: 2; }
  .ch--ph .ch__media { order: 3; margin-top: 20px; }
  .ch--ph .ch__text > p:not(.ch__n) { order: 4; margin-top: 20px; }
  .ch--ph .ch__more { order: 5; }
}
.fl-more__t, .ch__t { text-wrap: balance; }
/* 12/2 PC 꼬리말: 주소가 네 줄로 쪼개지지 않게 병원 정보 칸을 넉넉히 (메뉴 링크는 오른쪽에서 두 줄로 접힌다) */
@media (min-width: 900px) { .foot__in { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } .foot__info dd { text-wrap: balance; } }

/* ---------- 12/2 원장님: PC 오른쪽 가운데에 세로로 뜬 빠른 메뉴. 동그란 아이콘 + 아래 글자, 네이버 예약을 맨 위에 가장 눈에 띄게(초록 칸·큰 원),
   전화는 PC 에서 눌러도 걸리지 않으니 누르면 왼쪽에 번호(.q-pop, site.js). 폭 76px + 오른쪽 16px 은 1024px 이상 화면 여백(96px) 안에 들어간다.
   휴대폰(~899px)은 n/kit.css 의 아래 고정 버튼 그대로 ---------- */
@media (min-width: 900px) {
  .quick--r2 { top: 50%; right: 16px; bottom: auto; width: 76px; padding-bottom: 6px; overflow: visible; transform: translateY(-50%); border-radius: 38px; box-shadow: 0 10px 30px rgb(20 40 28 / .16), 0 0 0 1px rgb(20 40 28 / .06); }
  .quick--r2 a { gap: 6px; padding: 9px 2px 7px; font-size: .75rem; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; color: #16202b; }
  .quick--r2 a + a { border-top: 0; }
  .quick--r2 a .icon, .quick--r2 a.q-talk .icon, .quick--r2 a.q-kakao .icon, .quick--r2 a.q-blog .icon, .quick--r2 a.q-naver .icon {
    box-sizing: border-box; width: 42px; height: 42px; margin: 0; padding: 11px; border-radius: 50%; background: #eef3ef; color: var(--g); transition: transform .25s var(--ease-out), background-color .25s, color .25s; }
  .quick--r2 a.q-naver { gap: 8px; margin-bottom: 4px; padding: 16px 2px 13px; border-radius: 38px 38px 0 0; background: #03C75A; color: #fff; font-size: .8125rem; font-weight: 800; }
  .quick--r2 a.q-naver .icon { width: 50px; height: 50px; padding: 12px; background: #fff; color: #03C75A; box-shadow: 0 4px 12px rgb(0 60 25 / .22); }
  .quick--r2 a.q-talk .icon { padding: 8px; }      /* 톡톡 공식 아이콘은 말풍선 모양 그대로 (동그랗게 자르면 네이버 예약의 N 과 헷갈린다) */
  .quick--r2 a.q-kakao { background: none; }
  .quick--r2 a.q-kakao .icon { padding: 10px; background: #FEE500; color: #000; }
  .quick--r2 a.q-blog .icon { padding: 8px; }
  .quick--r2 a.q-tel[aria-expanded="true"] .icon { background: var(--g); color: #fff; }
  .quick--r2 a:focus-visible { outline: 2px solid var(--g); outline-offset: -3px; }
  .quick--r2 a.q-naver:focus-visible { outline-color: #fff; outline-offset: -5px; }
  @media (hover: hover) { .quick--r2 a:hover .icon { transform: translateY(-2px); } }
  .q-pop:not([hidden]) { position: absolute; top: var(--pop-y, 50%); right: calc(100% + 14px); display: grid; gap: 3px; padding: 13px 20px 14px; border-radius: 14px; background: #fff;
    box-shadow: 0 10px 30px rgb(20 40 28 / .18), 0 0 0 1px rgb(20 40 28 / .06); white-space: nowrap; transform: translateY(-50%); animation: q-pop .25s var(--ease-out); }
  .q-pop::after { content: ""; position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; background: #fff; transform: translateY(-50%) rotate(45deg); box-shadow: 1px -1px 0 rgb(20 40 28 / .06); }
  .q-pop small { font-size: .8125rem; font-weight: 700; color: var(--soft); }
  .q-pop b { font: 800 1.375rem/1.3 "NSNeo", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--g); user-select: all; }
}
@keyframes q-pop { from { opacity: 0; translate: 8px 0; } }
@media (prefers-reduced-motion: reduce) { .q-pop { animation: none !important; } }
