/* 밝은빛성모안과 홈페이지
   - 휴대폰 화면 먼저, 큰 글씨(17~18px), 병원 색(#266E96) 하나
   - 넓은 화면: 760px(본문), 1120px(첫 화면) */

:root {
  --brand: #266e96;
  --brand-strong: #1b5677;
  --brand-soft: #e4eff6;
  --brand-tint: #e5f1f9; /* 11-06 원장님 '하늘색 톤'(`분석/19` C안): 연회색 → 또렷한 하늘색 */
  --ink: #16222b;
  --ink-2: #43525e;
  --ink-3: #5f6e78;
  --line: #d3e4ef;
  --bg: #ffffff;
  --bg-2: #eaf4fb;
  --ok: #1f6e4c;
  --ok-soft: #e3f1ea;
  --alert: #a3332a;
  --alert-soft: #fbecea;
  --kakao: #fee500;
  --kakao-ink: #191600;
  --todo: #fff1a8;
  --hl: #ffe27a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 34, 43, 0.05), 0 10px 30px rgba(22, 34, 43, 0.07);
  --shadow-soft: 0 1px 2px rgba(22, 34, 43, 0.04), 0 6px 18px rgba(38, 110, 150, 0.08); /* 하늘색 바탕 위 흰 카드 */
  --header-h: 64px;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  color-scheme: light;
}

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty; /* 끝말만 혼자 남는 줄 줄이기 (빌드도 마지막 두 어절을 묶음) */
  padding-bottom: 76px; /* 휴대폰 아래 버튼 줄 */
}
.nowrap { white-space: nowrap; }
html.menu-open body { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(28px, 6.5vw, 40px); font-weight: 800; }
h2 { font-size: clamp(23px, 4.8vw, 30px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }
table { border-collapse: collapse; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.small { font-size: 15px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }
.icon { flex: none; }

@media (min-width: 768px) {
  body { font-size: 18px; }
  .container { padding: 0 32px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  :root { --header-h: 72px; }
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 18px;
  border-radius: 12px; border: 1.5px solid transparent;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { min-height: 42px; padding: 8px 14px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-strong); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { background: #f4dc00; color: var(--kakao-ink); }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.actions .btn { padding-left: 10px; padding-right: 10px; white-space: normal; text-align: center; }
.actions .btn-primary, .actions .btn:last-child { grid-column: 1 / -1; }
@media (max-width: 374px) {
  .actions { grid-template-columns: 1fr; } /* 폭 360 휴대폰: '카카오톡 상담'이 두 줄로 갈리지 않게 한 줄에 하나씩 */
}
@media (min-width: 600px) {
  .actions { display: flex; flex-wrap: wrap; }
  .actions .btn { padding-left: 18px; padding-right: 18px; white-space: nowrap; }
}

.more { display: inline-flex; align-items: center; gap: 6px; padding-block: 7px; margin-block: -7px; font-weight: 700; text-decoration: none; } /* 누르는 칸만 위아래로 넓힘 */
.more::after { content: "→"; transition: transform 0.15s; }
.more:hover::after { transform: translateX(3px); }

/* ── 휴진 띠 ── */
.notice-bar { background: var(--alert); color: #fff; font-size: 16px; }
.notice-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 9px; padding-bottom: 9px; }
.notice-inner a { color: #fff; font-weight: 700; margin-left: auto; white-space: nowrap; }
.notice-preview { font-style: normal; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

/* ── 머리 ── */
/* backdrop-filter를 쓰면 휴대폰 메뉴(position: fixed)가 머리 안에 갇혀서 쓰지 않음 */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
/* 휴대폰 위쪽 상태 표시줄 자리 (보통 사이트에서는 높이 0) */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: #fff; }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); flex: none; }
.brand img { width: 40px; height: auto; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-strong); }
.nav-desktop { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; }
.header-book { display: none; }
.menu { position: static; }
.menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  font-weight: 700; color: var(--brand-strong); cursor: pointer; background: #fff;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--brand); }
.menu-panel {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 39;
  background: #fff; overflow-y: auto; padding: 20px 20px 110px; border-top: 1px solid var(--line);
}
.menu-list { list-style: none; display: grid; gap: 2px; margin-bottom: 20px; }
.menu-list > li > a { display: block; padding: 12px 4px; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-list a[aria-current="page"] { color: var(--brand); }
.menu-group { padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.menu-title { font-size: 15px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.menu-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.menu-grid a { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); color: var(--ink); font-weight: 600; text-decoration: none; font-size: 17px; }
.menu-grid a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }

@media (min-width: 600px) {
  .header-book { display: inline-flex; }
}
@media (min-width: 960px) {
  .brand img { width: 44px; }
  .brand-name { font-size: 19px; }
  .header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
}
@media (min-width: 1180px) {
  .nav-desktop { display: block; }
  .nav-desktop > ul { list-style: none; display: flex; align-items: center; gap: 2px; }
  .nav-desktop a, .nav-group > summary {
    display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none;
    font-size: 16.5px; font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap;
  }
  .nav-group > summary::-webkit-details-marker { display: none; }
  .nav-group > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
  .nav-desktop a:hover, .nav-group > summary:hover { background: var(--bg-2); color: var(--brand-strong); }
  .nav-desktop a[aria-current="page"], .nav-group.is-active > summary { color: var(--brand); }
  .nav-group { position: relative; }
  .nav-sub { position: absolute; top: calc(100% + 8px); left: -8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 240px; display: grid; }
  .nav-sub a { padding: 10px 12px; }
  .menu { display: none; }
}

/* ── 첫 화면 위쪽 ──
   휴대폰·태블릿: 원장 진료 사진을 맨 위에 화면 끝까지(아래 모서리만 둥글게) → 글 → 빠른 안내 4칸, 바탕은 하늘색
   (11-06 원장님, `분석/19` C안. 벤치마크 12곳 중 11곳이 첫 화면 맨 위를 큰 사진으로 씀)
   PC: 글·사진 나란히, 그 아래 빠른 안내 */
.hero { background: linear-gradient(180deg, #e2f0f9 0, #e8f3fb 320px, #f6fafd 100%); padding: 0 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "text" "quick"; gap: 22px; }
.hero-text { grid-area: text; display: grid; gap: 18px; align-content: start; min-width: 0; }
.hero-quick { grid-area: quick; min-width: 0; }
.hero-photo { grid-area: photo; margin-inline: -20px; }
.hero h1 { display: grid; gap: 10px; font-size: inherit; font-weight: inherit; }
.hero-eyebrow { font-size: 16px; font-weight: 700; color: var(--brand); }
.hero-title { font-size: clamp(30px, 7.6vw, 48px); font-weight: 800; line-height: 1.28; letter-spacing: -0.025em; color: var(--ink); }
.hero-title em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero-note { font-size: 15px; color: var(--ink-3); }
.hero-photo picture { border-radius: 0 0 28px 28px; overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 35%; }
@media (min-width: 600px) { .hero-photo img { aspect-ratio: 16 / 9; } }
@media (min-width: 768px) { .hero-photo { margin-inline: -32px; } }
@media (min-width: 960px) {
  .hero { padding: 48px 0 40px; background: linear-gradient(180deg, #d5e8f5 0%, #e8f3fb 55%, #f6fafd 100%); }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); grid-template-areas: "text photo" "quick quick"; column-gap: 48px; row-gap: 36px; align-items: center; }
  .hero-photo { margin-inline: 0; }
  .hero-photo picture { border-radius: var(--radius); box-shadow: var(--shadow); }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .hero-lead { font-size: 19px; }
}

/* 첫 화면 빠른 안내 4칸 (오늘 진료·오시는 길·전화·예약) */
.quick { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "today today" "way way" "phone book"; gap: 10px; }
.quick-today { grid-area: today; }
.quick-way { grid-area: way; }
.quick-phone { grid-area: phone; }
.quick-book { grid-area: book; }
.quick-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: center; height: 100%;
  padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft);
  color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.quick-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.quick-icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.quick-label { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 800; line-height: 1.35; }
.quick-text { font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.quick-num { font-size: 18px; font-weight: 800; color: var(--brand-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.quick-card .today-dot { width: 9px; height: 9px; }
.quick-card.is-open { background: var(--ok-soft); border-color: #bcdccb; }
.quick-card.is-open .quick-icon { background: #fff; color: var(--ok); }
.quick-card.is-open .quick-text { color: var(--ok); font-weight: 600; }
.quick-card.is-open .today-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 110, 76, 0.15); }
.quick-card.is-later .today-dot, .quick-card.is-break .today-dot { background: var(--brand); }
.quick-card.is-closed .quick-text { color: var(--alert); font-weight: 600; }
.quick-card.is-closed .today-dot { background: var(--alert); }
.quick-card.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-card.is-primary:hover { background: var(--brand-strong); color: #fff; }
.quick-card.is-primary .quick-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.quick-card.is-primary .quick-text { color: rgba(255, 255, 255, 0.9); }
/* 좁은 휴대폰: 반 칸짜리(전화·예약)는 아이콘을 위로 올려 번호가 잘리지 않게 */
@media (max-width: 599px) {
  .quick-phone .quick-card, .quick-book .quick-card { grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 2px; }
  .quick-phone .quick-icon, .quick-book .quick-icon { grid-row: auto; width: 34px; height: 34px; padding: 7px; margin-bottom: 6px; }
}
@media (min-width: 960px) {
  .quick { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; grid-template-areas: "today way phone book"; gap: 12px; }
  .quick-card { grid-template-columns: 44px minmax(0, 1fr); padding: 16px 18px; box-shadow: 0 1px 2px rgba(22, 34, 43, 0.04), 0 8px 24px rgba(22, 34, 43, 0.05); }
  .quick-icon { width: 44px; height: 44px; padding: 10px; }
}

/* 오늘 진료 */
.today {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.5;
}
.today-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.today.is-open { color: var(--ok); border-color: #bcdccb; background: var(--ok-soft); }
.today.is-open .today-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 110, 76, 0.15); }
.today.is-later .today-dot, .today.is-break .today-dot { background: var(--brand); }
.today.is-closed { color: var(--alert); border-color: #efc7c2; background: var(--alert-soft); }
.today.is-closed .today-dot { background: var(--alert); }

/* ── 구역 ── */
.section { padding: 48px 0; }
.section-alt { background: linear-gradient(180deg, #e8f3fb 0%, #f1f8fc 100%); } /* 하늘색 띠 (11-06) */
.section-head { display: grid; gap: 8px; margin-bottom: 24px; }
.section-lead { color: var(--ink-2); max-width: 40em; }
.section-more { margin-top: 20px; }
@media (min-width: 960px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
}

/* 고민별 카드 */
.concerns { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
.concern {
  position: relative; display: grid; gap: 4px; height: 100%;
  padding: 16px 44px 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft);
  color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.concern:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.concern-label { font-size: 15px; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.concern-text { font-size: 18px; font-weight: 700; line-height: 1.45; }
.concern-sub { font-size: 15px; color: var(--ink-3); }
.concern-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--brand); }
.badge { font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--bg-2); border-radius: 999px; padding: 1px 8px; }
@media (min-width: 600px) { .concerns { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .concerns { grid-template-columns: repeat(4, 1fr); } .concern { padding: 18px 40px 18px 18px; } }

/* 원장 출연 영상 (썸네일 그림 대신 글자 카드: 외부 그림·모델 사진 없이) */
.media { display: grid; gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.media h3 { font-size: 18px; }
.videos { list-style: none; display: grid; gap: 10px; }
.video {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; height: 100%;
  padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.video:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.video-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 78% 22%, rgba(116, 181, 219, 0.45) 0%, transparent 52%), linear-gradient(135deg, #10202b 0%, var(--brand-strong) 100%);
}
.video-play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #d4271d; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.video-play .icon { width: 16px; height: 16px; margin-left: 3px; }
.video-ch { display: none; position: absolute; left: 12px; top: 9px; font-size: 13px; font-weight: 700; opacity: 0.92; white-space: nowrap; }
.video-len { position: absolute; right: 6px; bottom: 6px; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); font-size: 11.5px; font-weight: 700; line-height: 1.6; }
.video-body { display: grid; gap: 2px; min-width: 0; }
.video-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.video-sub { font-size: 14px; color: var(--ink-3); }
@media (min-width: 600px) {
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos.is-one { grid-template-columns: minmax(0, 400px); }
  .video { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; }
  .video-play { width: 52px; height: 52px; }
  .video-play .icon { width: 22px; height: 22px; }
  .video-ch { display: block; }
  .video-len { right: 10px; bottom: 10px; font-size: 13px; }
  .video-body { padding: 0 4px 4px; }
}

/* 원장 소개
   휴대폰(폭 600 미만): 사진 → 이름·이력 차례로. 폭 600부터 사진 옆에 이름·이력 (폴더블 펼친 화면·태블릿에서
   사진 오른쪽이 비어 보여서, 11-06 원장님) */
.doctor-grid { display: grid; gap: 24px; }
.doctor-photo picture { border-radius: var(--radius); overflow: hidden; max-width: 260px; }
@media (min-width: 600px) { .doctor-photo picture { max-width: none; } }
.doctor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.doctor-body { display: grid; gap: 14px; align-content: start; }
.doctor-role { font-weight: 700; color: var(--ink-2); }
.cv { display: grid; gap: 14px; }
.cv > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.cv dt { font-size: 15px; font-weight: 800; color: var(--brand); line-height: 1.7; }
.cv dd { margin: 0; }
.careers { list-style: none; display: grid; gap: 6px; }
.careers li { position: relative; padding-left: 16px; color: var(--ink-2); }
.careers li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
/* 논문·학회 발표 (접힌 목록) */
details.fold.papers-fold { margin-top: 0; }
.papers-fold h3 { font-size: 16px; color: var(--ink); margin-top: 4px; }
.papers { list-style: none; counter-reset: paper; display: grid; gap: 12px; }
.papers li { counter-increment: paper; position: relative; padding-left: 30px; display: grid; gap: 2px; }
.papers li::before { content: counter(paper); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-strong); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.paper-title { color: var(--ink); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.paper-src { font-size: 14px; color: var(--ink-3); line-height: 1.5; overflow-wrap: anywhere; }
.paper-src a { color: var(--brand-strong); font-weight: 700; }
.numbers { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.numbers li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; display: grid; gap: 2px; text-align: center; }
.numbers strong { white-space: nowrap; font-size: clamp(19px, 5vw, 24px); color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.numbers span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
/* 숫자 네 개 (원장 소개 페이지): 두 줄로, 넓은 PC에서만 한 줄 */
.numbers.is-four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .numbers.is-four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) {
  .doctor-grid { grid-template-columns: minmax(180px, 34%) minmax(0, 1fr); gap: 24px; align-items: start; }
  .doctor-photo { position: sticky; top: 96px; } /* 글이 길어서, 내려 읽는 동안 사진이 따라옴 */
}
@media (min-width: 600px) and (max-width: 767px) {
  /* 사진 옆 좁은 칸(폭 600에서 약 340px)에 숫자 세 칸이 들어가게 */
  .doctor-grid .numbers li { padding: 12px 6px; }
  .doctor-grid .numbers strong { font-size: 20px; }
}
@media (min-width: 768px) { .doctor-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1024px) { .doctor-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; } }
/* 원장 소개 페이지 맨 위 (사진 + 이름 + 숫자) */
.doctor-hero { padding-top: 20px; }
.doctor-hero .breadcrumb { margin-bottom: 18px; }
.doctor-hero .doctor-body { gap: 12px; }
.doctor-hero h1 { font-size: clamp(30px, 7vw, 42px); }
@media (min-width: 960px) { .doctor-hero { padding-top: 28px; } }

/* 진료 원칙 */
.principles { list-style: none; counter-reset: p; display: grid; gap: 12px; }
.principles li { counter-increment: p; position: relative; padding: 18px 18px 18px 64px; border-radius: 14px; background: var(--brand-tint); }
.principles li::before { content: counter(p); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 16px; }
.principles h3 { margin-bottom: 4px; }
.principles p { color: var(--ink-2); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
/* 사진과 함께 (휴대폰: 사진 위, PC: 왼쪽 사진 + 오른쪽 원칙 4개) */
.principles-wrap { display: grid; gap: 16px; }
.principles-photo picture { border-radius: 14px; overflow: hidden; }
.principles-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) {
  .principles-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
  .principles-wrap .principles { grid-template-columns: 1fr; }
  .principles-photo picture { height: 100%; }
  .principles-photo img { height: 100%; aspect-ratio: auto; object-position: 35% 50%; } /* 칸이 세로로 길어서 원장님과 현미경 쪽만 보이게 (오른쪽 손·기구는 잘림) */
}

/* 검사 장비 (첫 화면): 같은 틀의 사진 카드. 휴대폰 2칸, 넓은 화면 4칸. 누르면 검사 장비 페이지의 그 카드로 */
.equipment { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .equipment { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.equip { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); }
.equip:hover { border-color: var(--brand); }
.equip-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.equip-kind { padding: 12px 14px 0; font-size: 17px; font-weight: 800; line-height: 1.4; }
.equip-name { padding: 2px 14px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); line-height: 1.45; }

/* 검사 장비 페이지: 맨 위 검사실 사진, 장비 카드 4장(휴대폰 1칸, 넓은 화면 2칸), 진료별 검사 */
.eq-hero { margin-top: 20px; }
.eq-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.eq-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eq-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.eq-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eq-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.article .eq-body p + p { margin-top: 0; }
.article .eq-card h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.eq-model { margin-top: -6px; font-size: 15px; font-weight: 700; color: var(--brand-strong); letter-spacing: 0.01em; }
.eq-what { font-size: 18px; font-weight: 700; line-height: 1.55; }
.eq-more { font-size: 16.5px; color: var(--ink-2); line-height: 1.7; }
.eq-how { position: relative; padding-left: 26px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.eq-how::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.eq-care { padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.article .eq-body .eq-care { margin-top: auto; } /* 나란한 두 카드의 '관련 진료' 줄을 카드 맨 아래에 맞춤 */
.eq-care-label { margin-right: 4px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.eq-care a { padding: 5px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-strong); font-size: 15px; font-weight: 700; text-decoration: none; }
.eq-care a:hover { background: var(--brand-soft); }
/* 진료별 검사: 휴대폰은 진료 이름 아래 검사, 넓은 화면은 두 칸 */
.care-tests { list-style: none; display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.care-tests li { display: grid; gap: 2px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.care-tests a { font-weight: 800; color: var(--brand-strong); text-decoration: none; }
.care-tests small { display: block; margin-top: 2px; font-size: 15.5px; color: var(--ink-3); line-height: 1.55; }
@media (min-width: 720px) { .care-tests li { grid-template-columns: 9em minmax(0, 1fr); gap: 16px; } }

/* 원장 칼럼 */
.columns { list-style: none; display: grid; gap: 10px; }
.columns a { position: relative; display: grid; gap: 2px; padding: 16px 44px 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); }
.columns a:hover { border-color: var(--brand); }
.columns time { font-size: 14px; color: var(--ink-3); }
.column-title { font-weight: 700; line-height: 1.5; }
.column-icon { position: absolute; right: 16px; top: 18px; color: var(--ink-3); }
@media (min-width: 900px) { .section .columns { grid-template-columns: repeat(3, 1fr); } }

/* 진료시간·오시는 길 */
.visit-grid { display: grid; gap: 28px; }
.visit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; align-content: start; }
.hours { width: 100%; font-size: 17px; }
.hours th, .hours td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 700; white-space: nowrap; width: 38%; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-closed td { color: var(--alert); font-weight: 700; }
.hours tr.is-today th::after { content: "오늘"; margin-left: 8px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.hours-note { display: block; font-size: 15px; color: var(--ink-3); }
/* 좁은 화면: '오늘'을 요일 아래로 내려 시간이 두 줄로 갈리지 않게 (수·일·공휴일 줄이 오늘이면 요일 칸이 넓어짐) */
@media (max-width: 389px) { .hours tr.is-today th::after { display: block; width: max-content; margin: 4px 0 0; } }
.closures { border-radius: 12px; background: var(--alert-soft); padding: 12px 14px; }
.closures-title { font-size: 15px; font-weight: 700; color: var(--alert); margin-bottom: 4px; }
.closures ul { list-style: none; display: grid; gap: 2px; color: var(--alert); font-size: 16px; }
/* 진료일정 달력 (site.js가 그림) */
.cal { display: grid; gap: 10px; }
.cal:empty { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-title { font-size: 18px; font-weight: 700; }
.cal-title strong { color: var(--brand-strong); font-weight: 800; }
.cal-nav { flex: none; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--brand-strong); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:hover:not([disabled]) { border-color: var(--brand); }
.cal-nav[disabled] { opacity: 0.35; cursor: default; }
.cal-table { width: 100%; table-layout: fixed; text-align: center; font-variant-numeric: tabular-nums; }
.cal-table th { padding: 4px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.cal-table th.is-sun { color: var(--alert); }
.cal-table th.is-sat { color: var(--brand); }
.cal-table td { height: 52px; padding: 4px 0 2px; vertical-align: top; border-top: 1px solid var(--line); }
.cal-d { display: block; width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; font-size: 16px; font-weight: 600; line-height: 30px; }
.cal-n { display: block; overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.cal-table td.is-off .cal-d, .cal-table td.is-off .cal-n { color: var(--alert); }
.cal-table td.is-notice { background: var(--alert-soft); }
.cal-table td.is-half .cal-n { color: var(--brand); }
.cal-table td.is-past { color: #b3bec6; }
.cal-table td.is-today .cal-d { background: var(--brand); color: #fff; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-3); }
.cal-legend li { display: flex; align-items: center; gap: 6px; }
.cal-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--alert); }
.cal-legend .lg-half::before { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.cal-legend .lg-today::before { border-radius: 50%; background: var(--brand); }
.cal-notes { list-style: none; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--alert-soft); color: var(--alert); font-size: 15.5px; }
.cal-foot { font-size: 14px; color: var(--ink-3); }
/* 첫 화면 작은 창 안 달력: 작게 */
.cal-mini { gap: 4px; margin-top: 4px; }
.cal-mini .cal-title { font-size: 15.5px; }
.cal-mini .cal-table th { padding: 2px 0 4px; font-size: 12.5px; }
.cal-mini .cal-table td { height: 34px; padding: 2px 0 1px; }
.cal-mini .cal-d { width: 22px; height: 22px; font-size: 13.5px; line-height: 22px; }
.cal-mini .cal-n { font-size: 10px; }
.cal-mini .cal-legend, .cal-mini .cal-notes, .cal-mini .cal-foot { display: none; }

.address { display: grid; gap: 12px; margin: 0; }
.address > div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.address dt { font-weight: 700; color: var(--ink-3); font-size: 16px; }
.address dd { margin: 0; color: var(--ink-2); }
.visit-photo picture { border-radius: 12px; overflow: hidden; }
.visit-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.visit-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; } }
.location-cal { margin-top: 16px; } /* 오시는 길 페이지: 달력을 칸 안에 */

/* ── 진료 안내 페이지 맨 위: 진료 띠 + 같은 분야 탭 ──
   휴대폰·태블릿: 실제 사진을 남색으로 덮은 띠(높이 132px)에 위치 표시 + 진료 이름 (11-06 원장님, `분석/19` C안.
   그전에는 결론 상자가 첫 화면에 보이게 사진 없는 얇은 띠였음, 지금도 결론 상자는 첫 화면 안)
   PC: 높이 200px 띠에 진료 이름, 오른쪽에 실제 사진 (글씨는 그림이 아니라 글자로) */
.band { position: relative; overflow: hidden; background: linear-gradient(105deg, #123247 0%, var(--brand-strong) 55%, var(--brand) 100%); color: #fff; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18, 50, 71, 0.94) 0%, rgba(27, 86, 119, 0.8) 50%, rgba(38, 110, 150, 0.3) 100%); }
.band-inner { position: relative; z-index: 1; display: grid; align-content: end; gap: 2px; min-height: 132px; padding-top: 14px; padding-bottom: 14px; }
.band .breadcrumb ol { color: rgba(255, 255, 255, 0.75); font-size: 14.5px; }
.band .breadcrumb a { color: rgba(255, 255, 255, 0.88); }
.band .breadcrumb a:hover { color: #fff; }
.band .breadcrumb li[aria-current] { color: #fff; font-weight: 700; }
.band-title { font-size: 25px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.band-sub { display: none; }
.band-photo { position: absolute; inset: 0; }
.band-photo picture { display: block; height: 100%; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.tabs { background: #fff; border-bottom: 1px solid var(--line); }
.tabs-list {
  position: relative; list-style: none; display: flex; gap: 6px; max-width: 1120px; margin: 0 auto; padding: 10px 40px 10px 20px;
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.tabs-list::-webkit-scrollbar { display: none; }
.tabs-list li { flex: none; }
.tabs-list a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.tabs-list a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.tabs-list a[aria-current="page"] { background: var(--brand); color: #fff; }
@media (min-width: 768px) { .tabs-list { padding-left: 32px; } }
@media (min-width: 960px) {
  .band::after { display: none; }
  .band-inner { min-height: 200px; align-content: center; gap: 6px; padding-top: 28px; padding-bottom: 28px; }
  .band .breadcrumb li[aria-current] { font-weight: 600; }
  .band-title { display: block; max-width: 52%; font-size: 36px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
  .band-sub { display: block; max-width: 52%; font-size: 18px; color: rgba(255, 255, 255, 0.86); }
  .band-photo { display: block; position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: min(46vw, 680px); }
  .band-photo picture { height: 100%; }
  .band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
  .tabs-list { gap: 0; padding: 0 32px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .tabs-list li { flex: 1 1 0; }
  .tabs-list a { padding: 16px 6px 13px; border-radius: 0; border-bottom: 3px solid transparent; background: none; font-size: 17px; text-align: center; }
  .tabs-list a:hover { background: var(--brand-tint); }
  .tabs-list a[aria-current="page"] { background: none; color: var(--brand-strong); border-bottom-color: var(--brand); }
}

/* ── 진료 안내 페이지 ── */
.article { padding: 20px 0 56px; }
.article h1 { margin: 10px 0 16px; font-size: clamp(28px, 6.4vw, 40px); line-height: 1.3; }
.article h2 { margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(23px, 4.8vw, 29px); }
.article h3 { margin: 28px 0 8px; }
.article p + p { margin-top: 14px; }
.article .prose > p, .article .prose > ul, .article .prose > ol, .article .prose > dl { margin-top: 14px; }
.article .prose p, .article .prose li, .article .prose dd { font-size: 17.5px; }
@media (min-width: 768px) {
  .article .prose p, .article .prose li, .article .prose dd { font-size: 19px; line-height: 1.85; }
}

/* ── 강조: 긴 글을 읽기 쉽게 (형광펜·밑줄·큰 글씨 문장) ── */
mark.hl { background: linear-gradient(transparent 55%, var(--hl) 55%); color: inherit; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ul { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.lead-xl { font-size: clamp(21px, 5.4vw, 26px); font-weight: 750; line-height: 1.5; letter-spacing: -0.015em; color: var(--ink); }
.article .prose p.lead-md, .lead-md { font-size: clamp(19px, 4.8vw, 22px); font-weight: 700; line-height: 1.55; color: var(--ink); }

/* 한눈에 보기: 결론 먼저 */
.key { margin-top: 16px; border-radius: var(--radius); background: var(--brand-tint); padding: 18px; display: grid; gap: 14px; }
.key-list { list-style: none; display: grid; gap: 10px; counter-reset: k; }
.key-list li { counter-increment: k; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; background: #fff; border-radius: 12px; padding: 14px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.key-list li::before { content: counter(k); width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.key-list small { display: block; margin-top: 3px; font-size: 15.5px; font-weight: 500; color: var(--ink-3); }
.key-foot { font-size: 17.5px; color: var(--ink); line-height: 1.7; }
@media (min-width: 720px) {
  .key { padding: 22px; }
  .key-list { grid-template-columns: repeat(3, 1fr); }
  .key-foot { font-size: 19px; }
}

/* 숫자 둘 나란히 (같은 시력, 다른 불편) */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.versus > div { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; display: grid; gap: 2px; align-content: start; }
.versus b { font-size: 34px; font-weight: 800; color: var(--brand-strong); line-height: 1.2; font-variant-numeric: tabular-nums; }
.versus span { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.versus-cap { font-size: 14.5px !important; color: var(--ink-3); text-align: center; margin-top: 8px !important; }

/* 렌즈 고르기 세 가지 */
.choose { display: grid; gap: 10px; margin-top: 16px; }
.choose > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; background: #fff; }
.choose b { font-size: 18.5px; color: var(--brand-strong); }
.article .prose .choose p { font-size: 16.5px; color: var(--ink-2); line-height: 1.7; margin: 0; }
@media (min-width: 720px) { .choose { grid-template-columns: repeat(3, 1fr); } }
.choose + .choose { margin-top: 10px; } /* 두 줄로 나눠 놓을 때 (렌즈 종류 / 함께 정하는 것) */

@media (min-width: 720px) {
  .choose.two { grid-template-columns: repeat(2, 1fr); }
  .key-list.four, .flow.four { grid-template-columns: repeat(2, 1fr); }
}
.versus.text b { font-size: clamp(21px, 5.4vw, 27px); }

/* 그림 (시소 등) */
.diagram { margin: 18px 0 0; padding: 16px; border-radius: 14px; background: var(--brand-tint); display: grid; gap: 8px; justify-items: center; }
.diagram svg { width: 100%; max-width: 360px; height: auto; }
.diagram figcaption { text-align: center; margin: 0; color: var(--ink-2); font-size: 15.5px; }
.diagram.wide svg { max-width: 520px; }
/* 휴대폰: 본문 속 설명 그림은 화면 끝까지 넓혀 그림 속 글씨를 키움 (폭 390에서 글씨 약 1.15배) */
@media (max-width: 599px) { .prose > .diagram { margin-inline: -20px; padding: 14px 8px; border-radius: 0; } }

/* 원장 가족 이야기 */
.story { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); }
.story-label { display: block; font-size: 14px; font-weight: 800; color: var(--brand); margin-bottom: 4px; letter-spacing: 0.02em; }
.story .more { display: flex; width: fit-content; margin-top: 8px; } /* 원장 칼럼 링크는 글 아래 따로 한 줄 */

/* 수술 순서 (진짜 순서라 번호를 씀) */
.flow { list-style: none; counter-reset: f; display: grid; gap: 10px; margin-top: 16px; }
.flow li { counter-increment: f; position: relative; padding: 14px 16px 14px 60px; border-radius: 14px; background: var(--bg-2); display: grid; gap: 2px; }
.flow li::before { content: counter(f); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.flow strong { font-size: 18px; }
.article .prose .flow span { font-size: 16.5px; color: var(--ink-2); line-height: 1.65; }
@media (min-width: 720px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li { padding: 56px 16px 16px; align-content: start; }
}

/* 숫자 하나 크게 */
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; padding: 14px 18px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-tint); }
.stat b { font-size: 30px; font-weight: 800; color: var(--brand-strong); line-height: 1.2; }
.stat > span { font-size: 17px; color: var(--ink-2); }

/* 자세히 보기 (접어 둔 설명. 페이지 글에는 남아 있어 검색로봇도 읽음) */
details.fold { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.fold > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "자세히 보기 +"; flex: none; font-size: 14.5px; font-weight: 700; color: var(--brand); }
details.fold[open] > summary::after { content: "접기 −"; }
details.fold > div { padding: 0 16px 16px; display: grid; gap: 10px; }
.article .prose details.fold p { font-size: 17px; color: var(--ink-2); margin: 0; }
details.fold.mini { margin-top: 6px; border: 0; background: none; }
details.fold.mini > summary { padding: 4px 0; font-weight: 600; color: var(--brand-strong); justify-content: flex-start; }
details.fold.mini > summary::after { content: "+"; }
details.fold.mini[open] > summary::after { content: "−"; }
details.fold.mini > div { padding: 2px 0 4px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; color: var(--ink-3); }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.summary { background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; padding: 18px 20px; font-size: 18px; color: var(--ink); }
.summary p + p { margin-top: 10px; }
.toc { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.toc-title { font-size: 15px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.toc a:hover { background: var(--brand-soft); color: var(--brand-strong); }

.check { list-style: none; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 30px; }
.check li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.check strong { display: block; }

.compare { display: grid; gap: 12px; margin-top: 20px; }
.compare-card { border-radius: 14px; padding: 18px 20px; border: 1.5px solid var(--line); }
.compare-card h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.compare-card h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.compare-card.is-wait { background: var(--ok-soft); border-color: #bcdccb; }
.compare-card.is-wait h3 { color: var(--ok); }
.compare-card.is-wait h3::before { background: var(--ok); }
.compare-card.is-now { background: var(--brand-tint); border-color: #bcd5e5; }
.compare-card.is-now h3 { color: var(--brand-strong); }
.compare-card.is-now h3::before { background: var(--brand); }
.compare-card ul { list-style: none; display: grid; gap: 8px; }
.compare-card li { position: relative; padding-left: 18px; }
.compare-card li::before { content: "·"; position: absolute; left: 4px; font-weight: 800; }
.compare-card .compare-foot { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }

.pull { margin: 24px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--brand); font-size: 19px; font-weight: 700; color: var(--brand-strong); line-height: 1.6; }
.tests { display: grid; gap: 14px; margin: 16px 0 0; }
.tests > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tests dt { font-weight: 800; margin-bottom: 4px; }
.tests dd { margin: 0; color: var(--ink-2); }
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
figure { margin: 0; }
figure picture { border-radius: 12px; overflow: hidden; }
figcaption { font-size: 15px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
.figure-row img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.figure-wide { margin-top: 20px; }
.figure-one { max-width: 300px; margin: 20px auto 0; }
.figure-one img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.figure-one figcaption { text-align: center; }
.note { margin-top: 16px; background: var(--bg-2); border-radius: 12px; padding: 14px 16px; }
.callout-alert { margin-top: 18px; background: var(--alert-soft); border-radius: 12px; padding: 16px 18px; color: #6f221c; }
.callout-alert strong { display: block; color: var(--alert); margin-bottom: 2px; }

.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq > summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); }
.faq[open] > summary::after { content: "−"; }
.faq > div { padding: 0 18px 18px; color: var(--ink-2); }

.related { margin-top: 8px; }
.cta { margin-top: 52px; background: var(--brand-tint); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 14px; }
.cta h2 { margin: 0; padding-top: 0; border-top: 0; }
.cta p { color: var(--ink-2); }
.refs { margin-top: 40px; font-size: 14px; color: var(--ink-3); }
.refs h2 { font-size: 15px; margin: 0 0 6px; padding-top: 0; border-top: 0; color: var(--ink-3); }
.refs ol { padding-left: 20px; display: grid; gap: 4px; }

/* 표 (비급여 진료비·개인정보 보유 기간). 좁은 휴대폰에서는 표만 옆으로 밀어 봄 */
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.data-table { width: 100%; font-size: 16px; line-height: 1.55; }
.data-table caption { text-align: left; padding: 12px 14px 0; font-weight: 700; color: var(--ink); }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--bg-2); font-size: 14.5px; color: var(--ink-3); white-space: nowrap; }
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table td { color: var(--ink-2); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
@media (min-width: 768px) { .data-table { font-size: 17px; } }

/* 비급여 진료비 (11-06): PC는 고지 지침 별표 2 양식의 표, 휴대폰은 줄마다 카드. 맨 위 항목 이름 검색칸 (site.js) */
.fee-search { margin-top: 28px; display: grid; gap: 8px; }
.fee-search label { font-weight: 700; color: var(--ink); }
.fee-search input { width: 100%; max-width: 440px; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.fee-search input:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.fee-count { font-size: 14px; color: var(--ink-3); min-height: 1.2em; }
.fee-none { margin-top: 8px; }
.fee-desc { color: var(--ink-2); }
.fee-table { font-size: 15px; }
.fee-table th, .fee-table td { padding: 10px 10px; }
.fee-table th:first-child, .fee-table td:first-child { padding-left: 14px; }
.fee-table thead th { white-space: normal; font-size: 13.5px; line-height: 1.35; }
.fee-table th.fee-name { min-width: 200px; }
.fee-table th.fee-note, .fee-table td.fee-note { min-width: 176px; }
.fee-table .fee-title { display: block; font-weight: 700; color: var(--ink); }
.fee-table .fee-code { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fee-table th.fee-cost, .fee-table th.fee-min, .fee-table th.fee-max, .fee-table td.fee-cost, .fee-table td.fee-min, .fee-table td.fee-max { text-align: right; }
.fee-table td.fee-cost, .fee-table td.fee-min, .fee-table td.fee-max { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.fee-table th.fee-material, .fee-table th.fee-drug, .fee-table td.fee-material, .fee-table td.fee-drug { text-align: center; }
.fee-table td.fee-cat, .fee-table td.fee-unit { font-size: 14px; color: var(--ink-3); }
.fee-table td.fee-changed { white-space: nowrap; font-size: 13.5px; color: var(--ink-3); }
.fee-table mark.todo { display: inline-block; margin-top: 4px; font-size: 13.5px; font-weight: 400; line-height: 1.5; }
@media (max-width: 767px) {
  .fee-wrap { border: 0; border-radius: 0; background: none; overflow: visible; margin-top: 8px; }
  .fee-table, .fee-table tbody { display: block; }
  .fee-table thead { display: none; } /* 카드마다 칸 이름(data-label)을 앞에 붙여서 머리줄은 숨김 */
  .fee-table tr { display: block; margin-top: 10px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
  .fee-table th, .fee-table td, .fee-table tr:last-child th, .fee-table tr:last-child td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 4px 0; border: 0; font-size: 15.5px; text-align: right; }
  .fee-table td::before { content: attr(data-label); flex: none; font-size: 14px; color: var(--ink-3); text-align: left; }
  .fee-table td.is-empty { display: none; }
  .fee-table td.fee-cat, .fee-table tr:last-child td.fee-cat { display: block; padding: 0 0 2px; font-size: 13.5px; color: var(--brand); text-align: left; }
  .fee-table td.fee-cat::before { content: none; }
  .fee-table th.fee-name, .fee-table tr:last-child th.fee-name { display: block; min-width: 0; padding: 0 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 17px; text-align: left; }
  .fee-table td.fee-note, .fee-table tr:last-child td.fee-note { display: block; text-align: left; color: var(--ink-2); } /* 위 tr:last-child td 규칙보다 앞서게 */
  .fee-table td.fee-note::before { display: block; }
  .fee-table td.fee-cost, .fee-table td.fee-min, .fee-table td.fee-max { font-size: 16.5px; font-weight: 700; }
  .fee-table td.fee-unit, .fee-table td.fee-changed { font-size: 15px; }
  .fee-table tr td.is-empty, .fee-table tr:last-child td.is-empty { display: none; }
}
/* 점 목록 (개인정보처리방침 등) */
.dots { list-style: none; display: grid; gap: 6px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* 원장님 확인 표시 (공개 전에 모두 없앰) */
mark.todo { background: var(--todo); color: #4a3b00; padding: 3px 8px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.todo b { font-size: 13px; background: #5c4a00; color: #fff; border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.todo-block { margin-top: 16px; }

.stub { display: grid; gap: 18px; padding-top: 24px; }
.photo-missing { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--bg-2); border-radius: 12px; color: var(--ink-3); font-size: 15px; }

/* ── 꼬리 ── */
.site-footer { background: #10202b; color: #c9d6df; font-size: 15px; padding: 40px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-info { display: grid; gap: 4px; }
.footer-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #8fa3b1; font-size: 14px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }

/* ── 휴대폰 아래 버튼 줄 ── */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(22, 34, 43, 0.06);
}
.action-bar a {
  display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 10px;
  color: var(--brand-strong); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.2;
}
.action-bar a.is-primary { background: var(--brand); color: #fff; }
.action-bar a.is-kakao { background: var(--kakao); color: var(--kakao-ink); }
@media (min-width: 960px) { .action-bar { display: none; } }

/* ── PC 오른쪽 버튼 (화면 폭 1280 이상: 본문 옆 빈 자리에만) ── */
.rail { display: none; }
@media (min-width: 1280px) {
  .rail { position: fixed; z-index: 44; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; width: 64px; }
  .rail a {
    position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 2px 9px;
    border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 18px rgba(22, 34, 43, 0.1);
    color: var(--brand-strong); font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s;
  }
  .rail a:hover { border-color: var(--brand); color: var(--brand-strong); }
  .rail .icon { width: 22px; height: 22px; }
  .rail a.rail-book { background: var(--brand); border-color: var(--brand); color: #fff; }
  .rail a.rail-book:hover { background: var(--brand-strong); color: #fff; }
  .rail a.rail-kakao { background: var(--kakao); border-color: #f0d800; color: var(--kakao-ink); }
  .rail a.rail-top { margin-top: 4px; background: var(--bg-2); box-shadow: none; color: var(--ink-2); }
  /* 전화: PC에서는 번호를 옆에 띄워 보여 줌 */
  .rail-tel::after {
    content: attr(data-num); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 16px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.15s;
  }
  .rail-tel:hover::after, .rail-tel:focus-visible::after { opacity: 1; }
}

/* ── 첫 화면 휴진 작은 창 ── */
.notice-pop {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 84px; max-height: calc(100vh - 160px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--alert); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(22, 34, 43, 0.18); padding: 16px 18px 12px; display: grid; gap: 6px;
}
.pop-title { font-weight: 800; color: var(--alert); }
.pop-text { font-size: 17px; }
/* 작은 창 안 달력: 휴대폰은 접어 두고(눌러서 펼침), PC는 펼쳐 둠 (site.js) */
.pop-cal > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 15.5px; font-weight: 700; color: var(--brand-strong); cursor: pointer; }
.pop-cal > summary::-webkit-details-marker { display: none; }
.pop-cal > summary::after { content: "+"; font-weight: 800; }
.pop-cal[open] > summary::after { content: "−"; }
.pop-cal .cal-head { display: none; }
.pop-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 4px; }
.pop-actions button { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pop-actions button:hover { background: var(--bg-2); }
@media (min-width: 960px) { .notice-pop { left: auto; right: 24px; bottom: 24px; width: 360px; max-height: calc(100vh - 48px); } }
@media (min-width: 1280px) { .notice-pop { right: 92px; } }
