/* =========================================================
   공통 스타일 (site.css)
   기준 문서: design/DESIGN.md
   구성: 1 토큰 / 2 기본 / 3 레이아웃 / 4 헤더·메뉴 / 5 섹션 / 6 컴포넌트
        / 7 페이지별 / 8 관리자 / 9 움직임
   ========================================================= */

/* ---------- 1. 토큰 ---------- */
:root {
  /* 색: 브랜드 */
  --navy-950: #0f1d45;
  --navy-900: #162b66;
  --navy-800: #1b3277;
  --navy-700: #1f3a8a;
  --navy-600: #2c4ba3;
  --navy-300: #9fb0dc;
  --navy-100: #dfe6f5;
  --navy-50:  #eef2fa;
  /* 색: 중립 */
  --white:    #ffffff;
  --gray-25:  #f7f8fb;
  --gray-50:  #f0f2f6;
  --gray-100: #e4e8ef;
  --gray-200: #d2d8e2;
  --gray-400: #7d8699;
  --gray-500: #5f6779;
  --gray-700: #3f4757;
  --gray-900: #161b26;
  --on-dark: #ffffff;
  --on-dark-sub: #c8d2ec;
  --on-footer: #aebbe0;
  /* 색: 따뜻한 보조 중립 (콘텐츠 섹션 배경) */
  --ivory-50:  #faf8f4;
  --ivory-100: #f3efe8;
  --line-warm: #e8e3da;
  /* 색: 상태 */
  --success: #157347; --success-bg: #e8f5ee; --success-line: #9fd3b6;
  --warning: #7a4500; --warning-bg: #fff4e0; --warning-line: #f0c36d;
  --danger:  #b42318; --danger-bg:  #fdecea; --danger-line:  #f1a9a0;
  /* 의미 별칭 */
  --primary: var(--navy-700);
  --text: var(--gray-900);
  --text-sub: var(--gray-700);
  --text-muted: var(--gray-500);
  --line: var(--gray-100);
  --bg-soft: var(--ivory-50);   /* 교차 섹션 배경: 따뜻한 아이보리 */
  --bg-ui: var(--gray-25);      /* 표 머리, 관리자 배경: 옅은 회청 */
  --focus: var(--navy-700);

  /* 글꼴 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --fs-display: clamp(2.125rem, 1.2rem + 3.9vw, 4.25rem);
  --fs-h1:      clamp(1.75rem, 1.25rem + 2.1vw, 2.875rem);
  --fs-h2:      clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-quote:   clamp(1.375rem, 0.95rem + 1.8vw, 2.375rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-h4:      clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body:    clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --fs-sm:      1rem;        /* 보조 본문도 16px 아래로 내리지 않음 */
  --fs-xs:      0.875rem;    /* 배지·날짜·캡션 전용 */
  --fs-eyebrow: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --fs-stat:    clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --fs-phone:   clamp(1.375rem, 1.3rem + 0.3vw, 1.5rem);

  /* 간격 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 64px;
  --sp-11: 80px; --sp-12: 96px; --sp-13: 120px; --sp-14: 160px;
  --section-y: 72px;
  --section-head-gap: 32px;
  --gutter: 20px;
  --grid-gap: 16px;

  /* 폭 */
  --w-wide: 1440px;
  --w-container: 1280px;
  --w-narrow: 880px;

  /* 모서리·그림자 */
  --radius-0: 0;
  --radius-1: 4px;   /* 버튼, 입력창, 배지 */
  --radius-2: 6px;   /* 카드, 사진, 팝업 */
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15, 29, 69, .06);
  --shadow-2: 0 12px 32px -12px rgba(15, 29, 69, .18);
  --shadow-3: 0 24px 64px -16px rgba(15, 29, 69, .35);

  /* 구조 */
  --topbar-h: 0px;
  --header-h: 64px;
  --tabs-h: 52px;
  --callbar-h: 64px;
  --tap: 48px;

  /* 움직임 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .6s;
}
@media (min-width: 768px) {
  :root { --section-y: 100px; --section-head-gap: 40px; --gutter: 32px; --grid-gap: 20px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 140px; --section-head-gap: 56px; --gutter: 40px; --grid-gap: 24px;
          --topbar-h: 40px; --header-h: 88px; --tabs-h: 64px; --callbar-h: 0px; }
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
strong, b { font-weight: 700; }
:target { scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 16px); }
[id] { scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 16px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-dark { --focus: #ffffff; }
main:focus, [tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; stroke-width: 1.4; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 3. 레이아웃 ---------- */
.container { width: 100%; max-width: calc(var(--w-container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-700); color: var(--on-dark); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .24em; line-height: 1;
  text-transform: uppercase; color: var(--navy-700);
}
.eyebrow--line::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .section--navy .eyebrow { color: var(--on-dark-sub); }

.section-head { margin-bottom: var(--section-head-gap); display: grid; gap: 16px; }
.section-head--center { text-align: center; justify-items: center; }
.section-head--split { gap: 20px; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1fr auto; align-items: end; }
}
.section-title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.section-desc { font-size: var(--fs-lead); color: var(--text-sub); line-height: 1.7; max-width: 40em; }
.section--navy .section-desc { color: var(--on-dark-sub); }

.grid { display: grid; gap: var(--grid-gap); }
@media (min-width: 768px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 4. 헤더·띠·메뉴 ---------- */

/* 4-1 휴진 안내 띠 */
.alert-band { background: var(--warning-bg); color: var(--warning); border-bottom: 1px solid var(--warning-line); position: relative; z-index: 60; }
.alert-band[hidden] { display: none; }
.alert-band__inner { display: flex; align-items: center; gap: 10px; min-height: 52px; padding-block: 6px; }
.alert-band__label { font-weight: 800; white-space: nowrap; }
.alert-band__text { flex: 1; font-size: var(--fs-sm); line-height: 1.5; font-weight: 500; }
.alert-band__link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); }
.alert-band__close { width: var(--tap); height: var(--tap); display: grid; place-items: center; margin-right: -12px; color: var(--warning); }
@media (max-width: 767px) { .alert-band__label { display: none; } }

/* 4-2 상단 정보 띠 (PC만) */
.topbar { display: none; background: var(--navy-900); color: var(--on-dark-sub); font-size: 14px; position: relative; z-index: 55; }
@media (min-width: 1024px) { .topbar { display: block; } }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 24px; }
.topbar__info { display: flex; gap: 28px; align-items: center; min-width: 0; }
.topbar__info { flex: 1 1 auto; overflow: hidden; }
.topbar__info span { display: block; flex: none; white-space: nowrap; }
.topbar__info > span:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar__info .icon { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-right: 8px; color: var(--navy-300); }
.topbar__links { flex: none; display: flex; align-items: center; }
.topbar__links a { display: inline-flex; align-items: center; height: var(--topbar-h); padding-inline: 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #fff; }
.topbar__links a + a { border-left: 1px solid rgba(255,255,255,.2); }
.topbar__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 4-3 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); margin-bottom: calc(-1 * var(--header-h));
  color: #fff; --focus: #fff;
  background: linear-gradient(180deg, rgba(15,29,69,.45), rgba(15,29,69,0));
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-solid { background: #fff; color: var(--gray-900); box-shadow: var(--shadow-1), inset 0 -1px 0 var(--line); --focus: var(--navy-700); }
.site-header.is-static { margin-bottom: 0; }
.site-header__inner { display: flex; align-items: center; height: 100%; gap: 24px; }

/* 로고: 가로형 PNG (1400×297, 비율 4.71:1). 높이만 정하고 폭은 자동 */
.logo { display: inline-flex; align-items: center; min-height: var(--tap); margin-right: auto; flex: none; }
.logo__img { display: block; height: var(--logo-h, 28px); width: auto; }
@media (min-width: 1024px) { .logo { --logo-h: 36px; } }
/* 헤더: 사진 위(투명)에서는 흰색, 흰 배경이 되면 네이비 */
.logo__img--navy { display: none; }
.site-header.is-solid .logo__img--white { display: none; }
.site-header.is-solid .logo__img--navy { display: block; }
/* 진료과 보조 문구: 로고 보호 여백 밖, 세로 구분선 뒤 (병원 이름의 일부처럼 보이지 않게) */
.site-header .logo { margin-right: 0; }
.header-dept {
  display: inline-flex; align-items: center; margin-right: auto;
  margin-left: 6px; padding-left: 14px; height: 18px; /* 휴대폰: 헤더 간격 8px + 6px = 로고 보호 여백 14px */
  border-left: 1px solid rgba(255,255,255,.55);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transform: translateY(1px);
}
.site-header.is-solid .header-dept { border-left-color: var(--gray-200); color: var(--gray-700); }
@media (max-width: 1023px) { .site-header__inner { gap: 8px; } } /* 휴대폰·태블릿: 로고 · 통증클리닉 · 전화·메뉴 버튼이 375px 안에 들어가도록 */
@media (min-width: 1024px) { .header-dept { margin-left: 20px; padding-left: 20px; font-size: 15px; height: 20px; } }
@media (max-width: 374px) { .header-dept { display: none; } .site-header .logo { margin-right: auto; } }

.gnb { display: none; }
@media (min-width: 1024px) {
  .gnb { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .gnb ul { display: flex; gap: 8px; }
  .gnb a { position: relative; display: inline-flex; align-items: center; height: var(--header-h); padding-inline: 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
  .gnb a::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 26px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .25s var(--ease); }
  .gnb a[aria-current="page"]::after { transform: scaleX(1); }
  .site-header.is-solid .gnb a[aria-current="page"] { color: var(--navy-700); }
}
@media (min-width: 1024px) and (hover: hover) { .gnb a:hover::after { transform: scaleX(1); } }
/* 1024~1279px: 로고 + 진료과 문구와 가운데 메뉴가 겹치지 않도록 메뉴를 흐름 배치로 (전화번호 왼쪽) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .gnb { position: static; transform: none; }
  .gnb a { padding-inline: 14px; }
  .gnb a::after { left: 14px; right: 14px; }
}

.header-call { display: none; }
@media (min-width: 1024px) {
  .header-call { display: grid; justify-items: end; line-height: 1.1; }
  .header-call__label { font-size: 11px; font-weight: 600; letter-spacing: .2em; opacity: .85; }
  .header-call__num { font-size: var(--fs-phone); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; margin-top: 4px; }
  .site-header.is-solid .header-call__num { color: var(--navy-700); }
}
.header-actions { display: flex; align-items: center; gap: 4px; margin-right: -12px; }
.header-actions button, .header-actions a { width: var(--tap); height: var(--tap); display: grid; place-items: center; }
@media (min-width: 1024px) { .header-actions { display: none; } }

/* 4-4 모바일 메뉴 */
.mnav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15,29,69,.55); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.mnav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(100%, 400px); background: #fff; color: var(--gray-900);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s;
  box-shadow: var(--shadow-3);
}
.mnav.is-open { transform: none; visibility: visible; }
.mnav.is-open + .mnav-backdrop { opacity: 1; visibility: visible; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: 20px 8px; border-bottom: 1px solid var(--line); flex: none; }
.mnav__head .logo { --logo-h: 28px; }
.mnav__close { width: var(--tap); height: var(--tap); display: grid; place-items: center; }
.mnav__list { padding: 8px 0; }
.mnav__list a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-inline: 24px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mnav__list a.is-sub { min-height: 56px; padding-left: 40px; font-size: 17px; font-weight: 500; color: var(--text-sub); background: var(--bg-soft); }
.mnav__list a[aria-current="page"] { color: var(--navy-700); }
.mnav__list a .icon { color: var(--gray-400); }
.mnav__info { padding: 24px; display: grid; gap: 20px; margin-top: auto; background: var(--bg-soft); }
.mnav__info h2 { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
@media (min-width: 1024px) { .mnav, .mnav-backdrop { display: none; } }

/* 4-5 모바일 하단 고정 바 */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 2fr;
  padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff;
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px -12px rgba(15,29,69,.25);
}
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; font-weight: 700; font-size: 17px; }
.callbar__map { color: var(--navy-700); }
.callbar__call { background: var(--navy-700); color: #fff; --focus: #fff; }
.callbar__call .num { font-weight: 700; }
.callbar__call:active { background: var(--navy-900); }
body.menu-open .callbar { display: none; }
@media (min-width: 1024px) { .callbar { display: none; } }

/* 4-6 푸터 */
.site-footer { background: var(--navy-950); color: var(--on-footer); font-size: var(--fs-sm); padding: 56px 0 32px; }
@media (min-width: 1024px) { .site-footer { padding: 80px 0 40px; } }
.site-footer a { color: #fff; }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.1fr 1.6fr 1fr; gap: 48px; } }
.site-footer .logo { margin: 0; --logo-h: 34px; }
@media (min-width: 1024px) { .site-footer .logo { --logo-h: 40px; } }
/* 푸터 소개: 768~1023px, 1280px 이상에서 두 줄. 그 밖의 폭은 <br>를 숨겨 자연스럽게 감김 */
@media (max-width: 767px), (min-width: 1024px) and (max-width: 1279px) { .footer-intro br { display: none; } }
@media (min-width: 1280px) { .footer-top { grid-template-columns: max-content 1fr auto; } }
.footer-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-info { display: grid; gap: 6px; line-height: 1.6; }
.footer-info div { display: flex; column-gap: 16px; }
.footer-info dt { color: #fff; opacity: .7; flex: none; min-width: 6em; }
.footer-info dd { flex: 1; min-width: 0; }
.footer-info dt, .footer-info dd { display: inline; }
.footer-phone { display: inline-block; font-size: 26px; font-weight: 700; color: #fff; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 10px; }
.footer-links a:first-child { padding-left: 0; font-weight: 700; }
.footer-copy { font-size: var(--fs-xs); opacity: .9; }

/* ---------- 5. 큰 섹션 ---------- */

/* 5-1 사진 자리 */
.ph {
  position: relative; overflow: hidden; background-color: #7f8aa0;
  background-image:
    radial-gradient(120% 80% at 80% 10%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #c9c4bb 0%, #a29e9a 50%, #7b7e88 100%);
  color: rgba(255,255,255,.92);
}
.ph--warm { background-image: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.4), transparent 60%), linear-gradient(160deg, #ddd6cb 0%, #b6aea3 55%, #8b8783 100%); }
.ph--deep { background-image: radial-gradient(90% 70% at 75% 25%, rgba(255,236,214,.22), transparent 60%), linear-gradient(140deg, #56607a 0%, #353f5c 55%, #222a45 100%); }
.ph__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 8px; text-align: center;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; line-height: 1.4;
  padding: 12px 16px; border: 1px dashed rgba(255,255,255,.6); background: rgba(22,27,38,.42); border-radius: var(--radius-1);
  white-space: nowrap; pointer-events: none;
}
.ph__label small { font-weight: 500; opacity: .85; font-size: 12px; }
.ph__label--corner { left: auto; right: var(--gutter); top: calc(var(--header-h) + 12px); transform: none; }
@media (min-width: 1024px) { .ph__label--corner { top: calc(var(--topbar-h) + var(--header-h) + 24px); } }
@media (max-width: 767px) { .subvisual .ph__label--corner { padding: 6px 10px; font-size: 11px; } .subvisual .ph__label--corner small, .subvisual .ph__label--corner .icon { display: none; } }
.ph-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,24,42,.66) 0%, rgba(18,24,42,.3) 55%, rgba(18,24,42,.06) 100%), linear-gradient(0deg, rgba(18,24,42,.5) 0%, transparent 50%); pointer-events: none; }
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--icon, .ph--icon.ph--warm { background: linear-gradient(150deg, #eef2fb 0%, #dfe7f6 100%); color: var(--navy-700); display: grid; place-items: center; }
.ph--icon .icon { width: clamp(64px, 22%, 112px); height: auto; aspect-ratio: 1; stroke-width: 1.1; }
.ph--empty, .ph--empty.ph--warm { background: linear-gradient(150deg, #2f3f6f 0%, #1f2a4d 100%); display: grid; place-items: center; }
.ph__logo { width: 34%; max-width: 150px; opacity: .5; }
.ratio-3x4, .ratio-4x3, .ratio-16x9, .doctor__photo { border-radius: var(--radius-2); overflow: hidden; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* 5-2 첫 화면 */
.hero { position: relative; min-height: 600px; height: 100svh; max-height: 1000px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; --focus: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg .ph { position: absolute; inset: 0; }
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(64px, 10vh, 120px); width: 100%; }
.hero__eyebrow { color: #fff; opacity: .9; margin-bottom: 24px; }
.hero__title { font-size: var(--fs-display); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.hero__name { display: block; margin-bottom: 14px; font-size: clamp(18px, .42em, 28px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.hero__desc { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.7; color: rgba(255,255,255,.88); max-width: 34em; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { display: none; }
@media (min-width: 1024px) {
  .hero__scroll { display: flex; position: absolute; z-index: 2; right: 40px; bottom: 0; flex-direction: column; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .3em; writing-mode: vertical-rl; color: rgba(255,255,255,.8); }
  .hero__scroll::after { content: ""; width: 1px; height: 80px; background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,0)); }
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: none; } }

/* 5-2b 빠른 정보 (첫 화면 바로 아래: 진료시간·전화·위치·비급여) */
.quickinfo { background: #fff; border-bottom: 1px solid var(--line); }
.quickinfo__list { display: grid; grid-template-columns: 1fr 1fr; }
.quickinfo__list li { border-bottom: 1px solid var(--line); }
.quickinfo__list li:nth-child(odd) { border-right: 1px solid var(--line); }
.quickinfo__list li:nth-last-child(-n+2) { border-bottom: 0; }
.quickinfo a { display: grid; align-content: start; gap: 4px; height: 100%; min-height: 112px; padding: 20px 4px 20px 16px; }
.quickinfo__list li:nth-child(odd) a { padding-left: 0; }
.quickinfo__label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-700); }
.quickinfo__label .icon { width: 20px; height: 20px; }
.quickinfo strong { font-size: 17px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.quickinfo small { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.quickinfo a:active { background: var(--navy-50); }
@media (min-width: 1024px) {
  .quickinfo__list { grid-template-columns: repeat(4, 1fr); }
  .quickinfo__list li { border-bottom: 0; border-right: 1px solid var(--line); }
  .quickinfo__list li:first-child { border-left: 1px solid var(--line); }
  .quickinfo a, .quickinfo__list li:nth-child(odd) a { padding: 32px 28px; gap: 6px; }
  .quickinfo strong { font-size: 20px; }
}
@media (hover: hover) { .quickinfo a:hover { background: var(--bg-soft); } .quickinfo a:hover strong { color: var(--navy-700); } }

/* 5-3 강점 띠 */
.strengths { background: var(--navy-700); color: #fff; }
.strengths__list { display: grid; }
.strengths__item { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.16); }
.strengths__item:first-child { border-top: 0; }
.strengths__no { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--navy-300); }
.strengths__title { margin-top: 10px; font-size: var(--fs-h4); font-weight: 700; }
.strengths__desc { margin-top: 8px; font-size: var(--fs-sm); color: var(--on-dark-sub); line-height: 1.7; }
@media (min-width: 768px) {
  .strengths__list { grid-template-columns: repeat(2, 1fr); }
  .strengths__item { padding: 40px 32px; border-top: 0; border-left: 1px solid rgba(255,255,255,.16); }
  .strengths__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strengths__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}
@media (min-width: 1024px) {
  .strengths__list { grid-template-columns: repeat(4, 1fr); }
  .strengths__item { padding: 56px 36px; border-top: 0 !important; border-left: 1px solid rgba(255,255,255,.16) !important; }
  .strengths__item:first-child { border-left: 0 !important; padding-left: 0; }
  .strengths__item:nth-child(3) { padding-left: 36px; }
}

/* 5-4 통계 */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats__item { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 32px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__icon { width: 64px; height: 64px; border-radius: var(--radius-pill); background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-700); display: grid; place-items: center; }
.stats__value { display: flex; align-items: baseline; gap: 4px; color: var(--navy-700); }
.stats__num { font-size: var(--fs-stat); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats__unit { font-size: 18px; font-weight: 600; color: var(--text-sub); }
.stats__label { font-size: var(--fs-sm); color: var(--text-sub); font-weight: 500; }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); border: 0; }
  .stats__item { border: 0; border-left: 1px solid var(--line); padding: 16px 24px; gap: 16px; }
  .stats__item:first-child { border-left: 0; }
}
.stats-note { margin-top: 20px; text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }

/* 5-5 철학 */
.philosophy { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .philosophy { grid-template-columns: 1.25fr 1fr; gap: 96px; } }
.philosophy__quote { margin-top: 28px; font-size: var(--fs-quote); font-weight: 300; line-height: 1.55; letter-spacing: -0.02em; color: var(--gray-900); }
.philosophy__quote strong { font-weight: 700; color: var(--navy-700); }
.philosophy__points { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--gray-200); }
.philosophy__points li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.philosophy__points b { font-size: 13px; letter-spacing: .16em; color: var(--navy-700); padding-top: 3px; }
.philosophy__points span { color: var(--text-sub); }
.philosophy__points strong { display: block; color: var(--text); font-size: var(--fs-h4); margin-bottom: 4px; }

/* 5-5b 잎 장식 (로고 심볼, 아주 옅게) — 한 페이지에 1곳, 사이트 전체 2곳까지만 */
.has-leaf { position: relative; overflow: hidden; isolation: isolate; }
.has-leaf::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(280px, 38vw, 560px); aspect-ratio: 512 / 443;
  left: -6%; bottom: -12%;
  background: url("logo/symbol-navy.png") no-repeat center / contain;
  opacity: .045; transform: rotate(-8deg);
}
.has-leaf--right::before { left: auto; right: -8%; bottom: auto; top: -6%; transform: rotate(10deg); }
@media (max-width: 767px) { .has-leaf::before { width: 240px; opacity: .04; } }
@media print { .has-leaf::before { display: none; } }

/* 5-6 원장 사진·약력 목록 (메인 요약, 네이비 배경) */
.doctor__photo { position: relative; }
.doctor__photo .ph { position: absolute; inset: 0; }
.doctor__career { margin-top: 24px; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--on-dark-sub); }
.doctor__career li { position: relative; padding-left: 22px; line-height: 1.6; }
.doctor__career li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--navy-300); }


/* 메인 원장 소개 요약: 대표원장 1명 배치 */
.doc-feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 768px) { .doc-feature { grid-template-columns: 5fr 7fr; gap: 48px; } }
@media (min-width: 1024px) { .doc-feature { gap: 88px; } }
.doc-feature__role { margin-top: 28px; font-size: var(--fs-sm); font-weight: 600; color: var(--on-dark-sub); }
.doc-feature__name { margin-top: 4px; font-size: var(--fs-h1); font-weight: 700; letter-spacing: .04em; line-height: 1.2; color: #fff; }
.doc-feature__quote { margin: 28px 0 0; padding-left: 20px; border-left: 2px solid var(--navy-300); font-size: var(--fs-lead); font-weight: 300; line-height: 1.75; color: #fff; }
.doc-feature__career { margin-top: 36px; }
.doc-feature__career h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
.doc-feature__career .doctor__career { margin-top: 16px; }
@media (min-width: 1024px) { .doc-feature__career .doctor__career { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.doc-feature__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 5-7 서브 비주얼 */
.subvisual { position: relative; height: 240px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; --focus: #fff; }
@media (min-width: 768px) { .subvisual { height: 320px; } }
@media (min-width: 1024px) { .subvisual { height: calc(420px - var(--topbar-h)); } }
.subvisual .ph { position: absolute; inset: 0; }
.subvisual__content { position: relative; z-index: 2; width: 100%; padding-bottom: 32px; }
@media (min-width: 1024px) { .subvisual__content { padding-bottom: 56px; } }
.subvisual .eyebrow { color: rgba(255,255,255,.85); }
.subvisual__title { margin-top: 14px; font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; }
.breadcrumb { margin-top: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.85); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: var(--tap); min-width: var(--tap); }
/* 집 아이콘: 누르는 넓이는 48px 그대로, 보이는 자리는 제목 왼쪽에 맞춤 */
.breadcrumb li:first-child a { margin-inline: calc((var(--tap) - 18px) / -2); }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }
@media (max-width: 767px) { .breadcrumb { display: none; } }

/* 5-8 페이지 탭 */
.page-tabs { position: sticky; top: var(--header-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.page-tabs ul { display: flex; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); gap: 4px; }
.page-tabs ul::-webkit-scrollbar { display: none; }
.page-tabs a { position: relative; flex: none; display: flex; align-items: center; justify-content: center; height: var(--tabs-h); padding-inline: 16px; font-size: 16px; font-weight: 500; color: var(--text-sub); white-space: nowrap; }
.page-tabs a[aria-current] { color: var(--navy-700); font-weight: 700; }
.page-tabs a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--navy-700); }
@media (min-width: 1024px) {
  .page-tabs ul { justify-content: center; padding: 0; gap: 0; border-inline: 1px solid var(--line); width: fit-content; margin-inline: auto; }
  .page-tabs li + li { border-left: 1px solid var(--line); }
  .page-tabs a { width: 220px; font-size: 17px; font-weight: 600; }
  .page-tabs a[aria-current] { background: var(--navy-700); color: #fff; --focus: #fff; outline-offset: -5px; }
  .page-tabs a[aria-current]::after { display: none; }
}
@media (min-width: 1024px) and (hover: hover) { .page-tabs a:not([aria-current]):hover { color: var(--navy-700); background: var(--navy-50); } }

/* ---------- 6. 컴포넌트 ---------- */

/* 6-1 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 28px; border: 1px solid transparent; border-radius: var(--radius-1);
  font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:active { background: var(--navy-900); }
.btn--outline { background: #fff; color: var(--navy-700); border-color: var(--navy-700); }
.btn--outline:active { background: var(--navy-100); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); --focus: #fff; }
.btn--on-dark:active { background: rgba(255,255,255,.2); }
.btn--white { background: #fff; color: var(--navy-700); }
.btn--danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn--danger-solid { background: var(--danger); color: #fff; }
.btn--lg { min-height: 60px; font-size: 17px; padding-inline: 32px; }
.btn--sm { min-height: 48px; padding-inline: 18px; font-size: 15px; }
@media (min-width: 1024px) { .btn--sm { min-height: 44px; } }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--navy-800); }
  .btn--outline:hover { background: var(--navy-50); }
  .btn--on-dark:hover { background: rgba(255,255,255,.1); }
  .btn--white:hover { background: var(--navy-50); }
  .btn--danger:hover { background: var(--danger-bg); }
}
.btn:disabled, .btn[aria-disabled="true"] { background: var(--gray-50); color: var(--gray-500); border-color: var(--gray-200); cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 600; color: var(--navy-700); }
.link-arrow .icon { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.on-dark .link-arrow, .section--navy .link-arrow { color: #fff; }
@media (hover: hover) { .link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(4px); } }

/* 6-2 진료 카드 */
.treat-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2); transition: border-color .25s ease, box-shadow .25s ease, background-color .2s; }
@media (min-width: 1024px) { .treat-card { padding: 40px 36px; } .treat-grid .treat-card { padding: 32px 28px; } }
.treat-card__icon { width: 56px; height: 56px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); }
.treat-card__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; margin-top: 8px; }
.treat-card__desc { color: var(--text-sub); font-size: var(--fs-sm); line-height: 1.7; flex: 1; }
.treat-card .link-arrow { min-height: auto; margin-top: 8px; font-size: 15px; }
.treat-card:active { background: var(--navy-50); }
@media (hover: hover) { .treat-card:hover { border-color: var(--navy-700); box-shadow: var(--shadow-2); } }

/* 6-3 배지 */
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 10px; border: 1px solid transparent; border-radius: var(--radius-1); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; white-space: nowrap; vertical-align: middle; }
.badge .icon { width: 14px; height: 14px; stroke-width: 2; }
.badge--notice { background: var(--navy-700); color: #fff; }
.badge--closed { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.badge--info { background: #fff; color: var(--gray-700); border-color: var(--gray-200); }
.badge--today { background: #fff; color: var(--navy-700); border-color: var(--navy-700); }

/* 6-4 표 */
.table-wrap { width: 100%; }
.table { font-size: var(--fs-sm); border-top: 2px solid var(--navy-700); }
.table caption { text-align: left; }
.table th, .table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; line-height: 1.55; }
.table thead th { background: var(--bg-ui); font-weight: 700; color: var(--gray-900); height: 56px; padding-block: 12px; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table .table-group th { background: var(--navy-50); color: var(--navy-700); font-size: 15px; font-weight: 700; padding-block: 12px; }

/* 비급여 표: 모바일 카드 전환 */
@media (max-width: 767px) {
  .table--cards { border-top: 0; }
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards th, .table--cards td { display: block; width: 100%; }
  .table--cards tbody { margin-bottom: 28px; }
  .table--cards .table-group th { background: none; padding: 0 0 10px; border-bottom: 2px solid var(--navy-700); font-size: var(--fs-h4); }
  .table--cards tr:not(.table-group) { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-top: 0; padding: 18px 18px 16px; gap: 4px 12px; background: #fff; }
  .table--cards td { border: 0; padding: 0; }
  .table--cards td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
  .table--cards tr:not(.table-group) > * { border: 0; padding: 0; }
  .table--cards .fee-item { grid-column: 1 / -1; font-size: 17px; font-weight: 700; }
  .table--cards .fee-detail { grid-column: 1 / -1; color: var(--text-sub); margin-bottom: 10px; }
  .table--cards .fee-detail.is-empty { display: none; }
  .table--cards td.num { text-align: left; font-size: 17px; font-weight: 700; color: var(--navy-700); padding-top: 10px; border-top: 1px dashed var(--line); }
}

/* 6-5 진료시간 */
.hours { width: 100%; font-size: var(--fs-body); }
.hours th, .hours td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { width: 7.5em; font-weight: 600; white-space: nowrap; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--navy-50); }
.hours tr.is-today th { color: var(--navy-700); font-weight: 800; }
.hours tr.is-today th .badge { margin-left: 6px; }
.hours .is-closed { color: var(--warning); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; vertical-align: bottom; }
.hours caption { text-align: left; }
.hours-note { margin-top: 16px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--text-sub); }
.hours-note li { display: flex; gap: 8px; }
.hours-note .icon { width: 18px; height: 18px; color: var(--navy-700); margin-top: 3px; }
.hours--compact th, .hours--compact td { padding: 10px 0; font-size: var(--fs-sm); border-color: var(--gray-200); }

/* 6-6 안내 박스 */
.notice-box { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--radius-1); border-left: 4px solid var(--navy-700); background: var(--navy-50); color: var(--gray-900); font-size: var(--fs-sm); line-height: 1.65; }
.notice-box .icon { color: var(--navy-700); margin-top: 1px; }
.notice-box--warning { border-color: var(--warning-line); background: var(--warning-bg); }
.notice-box--warning .icon, .notice-box--warning strong { color: var(--warning); }
.notice-box--danger { border-color: var(--danger); background: var(--danger-bg); }
.notice-box--danger .icon { color: var(--danger); }
.notice-box--success { border-color: var(--success); background: var(--success-bg); }
.notice-box--success .icon { color: var(--success); }

/* 6-7 입력 */
.field { display: grid; gap: 8px; }
.field__label { font-weight: 700; font-size: 16px; }
.field__label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: #fff;
  border: 1px solid var(--gray-400); border-radius: var(--radius-1); font-size: 17px; line-height: 1.4;
}
.select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f4757' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 1px var(--navy-700), 0 0 0 4px rgba(31,58,138,.2); }
.input::placeholder, .textarea::placeholder { color: var(--gray-500); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--gray-50); color: var(--gray-500); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field__help { font-size: var(--fs-sm); color: var(--text-muted); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--danger); }
.field__error .icon { width: 18px; height: 18px; margin-top: 3px; }

/* 6-8 공지 목록 */
.board-tools { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .board-tools { flex-direction: row; align-items: center; justify-content: space-between; } }
.board-count { font-size: var(--fs-sm); color: var(--text-sub); }
.board-count strong { color: var(--navy-700); }
.search { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; }
@media (min-width: 768px) { .search { grid-template-columns: 120px 260px auto; } }
.search .btn { padding-inline: 18px; }
.board { border-top: 2px solid var(--navy-700); }
.board__head { display: none; }
.board__row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; min-height: 72px; border-bottom: 1px solid var(--line); }
.board__row.is-pinned { background: var(--bg-soft); padding-inline: 12px; }
.board__no { display: none; }
.board__title { display: flex; align-items: flex-start; gap: 8px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.board__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board__title a::after { content: ""; position: absolute; inset: 0; }
.board__row { position: relative; }
.board__date { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.board__row .badge { margin-top: 1px; }
@media (min-width: 768px) {
  .board__head { display: grid; grid-template-columns: 96px 1fr 140px; height: 56px; align-items: center; background: var(--bg-ui); font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); text-align: center; }
  .board__row { grid-template-columns: 96px 1fr 140px; align-items: center; gap: 0; padding: 0; }
  .board__row.is-pinned { padding: 0; }
  .board__no { display: flex; justify-content: center; font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
  .board__title { padding: 22px 20px; align-items: center; }
  .board__title a { -webkit-line-clamp: 1; }
  .board__date { text-align: center; font-size: var(--fs-sm); }
  .board__row .board__title .badge--notice { display: none; }
}
@media (hover: hover) { .board__row:hover .board__title a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; } }

.empty { display: grid; justify-items: center; gap: 16px; padding: 64px 20px; text-align: center; color: var(--text-sub); border-bottom: 1px solid var(--line); }
.empty .icon { width: 48px; height: 48px; color: var(--gray-400); stroke-width: 1.2; }

.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination ol { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-1); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-sub); }
.pagination a[aria-current="page"] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pagination span[aria-disabled] { color: var(--gray-400); background: var(--gray-25); }
@media (max-width: 479px) { .pagination li:first-child, .pagination li:last-child { display: none; } }
@media (hover: hover) { .pagination a:not([aria-current]):hover { border-color: var(--navy-700); color: var(--navy-700); } }

/* 6-9 공지 상세 */
.article__head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article__title { margin-top: 14px; font-size: var(--fs-h2); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.article__meta { margin-top: 16px; display: flex; gap: 20px; font-size: var(--fs-sm); color: var(--text-muted); }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .icon { width: 16px; height: 16px; }
.article__body { padding: 40px 0 56px; font-size: 17px; line-height: 1.85; border-bottom: 1px solid var(--line); }
.article__body p + p, .article__body p + ul, .article__body ul + p, .article__body figure, .article__body .notice-box { margin-top: 1.1em; }
.article__body ul { padding-left: 1.2em; list-style: disc; }
.article__body figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-muted); }
.closure-dates { margin-bottom: 1.4em; padding: 16px 20px; background: var(--bg-ui); border-left: 3px solid var(--navy-700); }
.notice-box + .closure-dates { margin-top: 1.1em; }
.hours-special { margin: 24px 0 8px; font-size: var(--fs-body, 17px); font-weight: 700; }
.hours-special + .closure-dates { margin-bottom: 0; }
.closure-dates div { display: flex; flex-wrap: wrap; gap: 0 12px; }
.closure-dates dt { font-weight: 700; }
.closure-dates dd { margin: 0; overflow-wrap: anywhere; }
.privacy-policy h2 { margin-top: 2.2em; font-size: 20px; font-weight: 700; line-height: 1.4; }
.privacy-policy h2 + :is(p, table), .privacy-policy :is(p, table) + :is(p, table) { margin-top: .8em; }
.privacy-policy table { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 2px solid var(--navy-700); font-size: 16px; line-height: 1.6; }
.privacy-policy :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.privacy-policy thead th { background: var(--bg-ui); font-weight: 700; }
.privacy-policy tbody th { font-weight: 600; }
.privacy-policy table a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); padding-block: 10px; margin-block: -10px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) { .privacy-policy :is(th, td) { padding-inline: 6px; } }
.article-wrap { border-top: 2px solid var(--navy-700); padding-top: 28px; }
.article-nav { border-bottom: 1px solid var(--line); }
.article-nav a, .article-nav div { display: grid; grid-template-columns: 88px 1fr; align-items: center; min-height: 64px; padding: 12px 4px; border-top: 1px solid var(--line); gap: 12px; }
.article-nav a:first-child, .article-nav div:first-child { border-top: 0; }
.article-nav b { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.article-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav div span { color: var(--text-muted); }
@media (hover: hover) { .article-nav a:hover span { color: var(--navy-700); text-decoration: underline; } }
.article-actions { margin-top: 40px; display: flex; justify-content: center; }

/* 6-10 팝업 */
.popup { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-2); overflow: hidden; box-shadow: var(--shadow-3); color: var(--text); }
.popup[open] { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.popup::backdrop { background: rgba(15,29,69,.55); }
.popup__body { flex: 1 1 auto; min-height: 0; padding: 32px 28px 28px; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.popup__body .badge { margin-bottom: 14px; }
.popup__title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
.popup__text { margin-top: 14px; color: var(--text-sub); line-height: 1.7; }
.popup__text strong { color: var(--text); }
.popup__foot { flex: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.popup__foot button { min-height: 56px; font-weight: 600; font-size: 16px; }
.popup__foot button:last-child { background: var(--navy-700); color: #fff; --focus: #fff; outline-offset: -5px; }

/* 6-11 아이콘 목록 (교통·연락처) */
.info-list { display: grid; gap: 0; border-top: 1px solid var(--gray-900); }
.info-list > li { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .info-list > li { grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0; } }
.info-list__label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: var(--fs-h4); }
.info-list__label .ic { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; flex: none; }
.info-list__body { color: var(--text-sub); display: grid; gap: 6px; padding-top: 6px; }
.info-list__body strong { color: var(--text); }
.line-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 8px; margin-right: 6px; font-size: 14px; font-weight: 700; color: #fff; background: var(--gray-700); border-radius: var(--radius-1); }

/* ---------- 7. 페이지별 ---------- */

/* 메인: 공지 + 진료시간 */
.home-split { display: grid; gap: 56px; }
@media (min-width: 1024px) { .home-split { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
.mini-board { border-top: 2px solid var(--navy-700); }
.mini-board li { position: relative; border-bottom: 1px solid var(--line); }
.mini-board a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 68px; padding: 14px 4px; }
.mini-board__title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.mini-board__title > .badge { flex: none; }
.mini-board__title > span:not(.badge) { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
@media (max-width: 767px) { .mini-board a { grid-template-columns: minmax(0, 1fr); gap: 4px; } .mini-board__title { align-items: flex-start; } }
@media (min-width: 768px) { .mini-board__title > span:not(.badge) { -webkit-line-clamp: 1; } }
.mini-board time { font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .mini-board a:hover .mini-board__title > span:not(.badge) { color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; } }
.call-card { margin-top: 28px; padding: 28px; border-radius: var(--radius-2); background: var(--navy-700); color: #fff; display: grid; gap: 6px; --focus: #fff; }
.call-card__label { font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--on-dark-sub); }
.call-card__num { font-size: clamp(28px, 2.4vw + 18px, 36px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.call-card__desc { color: var(--on-dark-sub); font-size: var(--fs-sm); }

/* 메인/오시는길: 지도 */
.map-ph { position: relative; aspect-ratio: 4 / 3; background-color: #e9edf3; overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.9) 0 2px, transparent 2px), linear-gradient(0deg, rgba(255,255,255,.9) 0 2px, transparent 2px),
    linear-gradient(28deg, transparent 47%, #fff 47% 53%, transparent 53%), linear-gradient(-62deg, transparent 48%, #f6dfa8 48% 52%, transparent 52%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  border: 1px solid var(--line); border-radius: var(--radius-2);
}
@media (min-width: 1024px) { .map-ph { aspect-ratio: 16 / 7; } .map-ph--home { aspect-ratio: 4 / 3; } }
.map-ph__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 6px; }
.map-ph__pin .icon { width: 44px; height: 44px; color: var(--navy-700); fill: #fff; stroke-width: 1.8; }
.map-ph__pin b { background: var(--navy-700); color: #fff; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.map-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
@media (min-width: 768px) { .map-actions { grid-template-columns: repeat(3, 1fr); } }
.home-loc { display: grid; gap: 40px; }
@media (min-width: 1024px) { .home-loc { grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; } }
.loc-addr { font-size: var(--fs-h3); font-weight: 700; line-height: 1.45; letter-spacing: -0.015em; }

/* 병원소개: 원장 소개 (사진 1장 → 인사말 → 서명 → 진료 분야 → 약력 → 학회) */
.director { display: grid; gap: 40px; }
.director__photo { width: 100%; max-width: 480px; }
@media (min-width: 1024px) {
  .director { grid-template-columns: 420px 1fr; gap: 96px; align-items: start; }
}
/* 긴 글을 읽는 동안 사진이 옆에 머묾. 잎 장식(.has-leaf)의 overflow:hidden은 sticky를 깨뜨리므로 clip을 지원할 때만 적용 */
@supports (overflow: clip) {
  .has-leaf { overflow: clip; }
  @media (min-width: 1024px) { .director__photo { position: sticky; top: calc(var(--header-h) + var(--tabs-h) + 32px); } }
}
.director__body { max-width: 680px; }
.director__body .section-title { margin-top: 16px; }
.director__fields { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.director__fields-label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-sub); }
.director__fields ul { display: flex; flex-wrap: wrap; gap: 8px; }
.director__fields li { font-size: var(--fs-sm); font-weight: 600; padding: 6px 14px; border: 1px solid var(--navy-100); background: var(--navy-50); color: var(--navy-700); border-radius: var(--radius-1); }
.director__part { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.director__h { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.01em; }
.director__h span[lang="en"] { font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--navy-700); }
.director__cols { margin-top: 20px; display: grid; gap: 24px; }
@media (min-width: 768px) { .director__cols { grid-template-columns: 1fr 1fr; gap: 40px; } }
.director__cols h4 { font-size: 17px; font-weight: 700; color: var(--navy-700); }
.director__cols .director__list { margin-top: 12px; }
.director__part > .director__list { margin-top: 20px; }
.director__list { display: grid; gap: 8px; font-size: 17px; color: var(--text-sub); }
.director__list li { position: relative; padding-left: 20px; line-height: 1.65; }
.director__list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 2px; background: var(--navy-300); }
.greeting__lead { font-size: var(--fs-quote); font-weight: 300; line-height: 1.5; letter-spacing: -0.02em; margin-top: 32px; }
.greeting__lead strong { font-weight: 700; color: var(--navy-700); }
.greeting__body { margin-top: 32px; display: grid; gap: 1.1em; color: var(--text-sub); font-size: 17px; line-height: 1.85; }
.greeting__sign { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.greeting__sign span { color: var(--text-muted); font-size: var(--fs-sm); }
.greeting__sign b { font-size: 22px; letter-spacing: .1em; }

.tour { display: grid; gap: 28px var(--grid-gap); }
@media (min-width: 768px) { .tour { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tour { grid-template-columns: repeat(3, 1fr); } .tour figure:first-child { grid-column: span 2; grid-row: span 2; } .tour figure:first-child .ph { aspect-ratio: auto; height: calc(100% - 44px); min-height: 400px; } }
.tour figcaption { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
.tour figcaption small { font-size: 13px; letter-spacing: .16em; color: var(--navy-700); font-weight: 600; }

/* 진료안내 */
.quick-nav { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; } /* 12칸: 휴대폰 3×4, 태블릿 4×3, PC 6×2 */
@media (min-width: 768px) { .quick-nav { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .quick-nav { grid-template-columns: repeat(6, 1fr); } }
.quick-nav li { display: grid; }
.quick-nav a { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 20px 8px; min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; font-size: 16px; background: #fff; line-height: 1.35; }
@media (max-width: 767px) { .quick-nav a { padding-inline: 4px; } } /* 휴대폰 3칸: '상처 치료'가 한 줄에 들어가도록 (좁으면 <wbr>에서 줄바꿈) */
.quick-nav a .icon { width: 32px; height: 32px; color: var(--navy-700); stroke-width: 1.4; }
.quick-nav a:active { background: var(--navy-50); }
@media (hover: hover) { .quick-nav a:hover { background: var(--navy-50); color: var(--navy-700); } }

.treat { display: grid; gap: 32px; padding-block: 56px; border-top: 1px solid var(--line); }
.treat:first-of-type { border-top: 0; }
@media (min-width: 1024px) { .treat { grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 88px; align-items: center; } .treat:nth-of-type(even) .treat__media { order: 2; } }
.treat__no { font-size: 13px; letter-spacing: .2em; color: var(--navy-700); font-weight: 600; }
.treat__title { margin-top: 12px; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.treat__desc { margin-top: 16px; color: var(--text-sub); font-size: 17px; line-height: 1.8; }
.treat__sub { margin-top: 28px; font-size: var(--fs-h4); font-weight: 700; }
.check-list { margin-top: 12px; display: grid; gap: 8px; }
@media (min-width: 768px) { .check-list--2 { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.check-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.check-list .icon { width: 20px; height: 20px; color: var(--navy-700); margin-top: 3px; stroke-width: 2; }
.steps { margin-top: 12px; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); line-height: 1.6; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 14px; font-weight: 700; color: var(--navy-700); padding-top: 2px; }
/* 종류 목록(주사·수액): 이름 굵게 + 한 줄 설명 */
.kind-list { margin-top: 12px; border-top: 1px solid var(--line); }
.kind-list > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.kind-list dt { font-weight: 700; }
.kind-list dd { margin: 0; color: var(--text-sub); }
@media (min-width: 768px) { .kind-list > div { grid-template-columns: 8.5em 1fr; gap: 16px; } }
.treat__fee { margin-top: 28px; border-radius: var(--radius-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.treat__fee b { font-size: 17px; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.treat__fee .link-arrow { margin-left: auto; min-height: 44px; }

.firstvisit { display: grid; gap: var(--grid-gap); }
@media (min-width: 768px) { .firstvisit { grid-template-columns: repeat(3, 1fr); } }
.firstvisit li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2); padding: 28px; display: grid; gap: 10px; align-content: start; }
.firstvisit .icon { width: 32px; height: 32px; color: var(--navy-700); stroke-width: 1.4; }
.firstvisit h3 { font-size: var(--fs-h4); font-weight: 700; }
.firstvisit p { color: var(--text-sub); font-size: var(--fs-sm); }

/* 비급여 */
.fee-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.fee-meta__date { font-size: var(--fs-sm); color: var(--text-sub); }
.fee-meta__date b { color: var(--text); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius-1); border: 1px solid var(--gray-200); font-size: 15px; font-weight: 600; color: var(--text-sub); background: #fff; }
.chips a[aria-current] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
@media (hover: hover) { .chips a:not([aria-current]):hover { border-color: var(--navy-700); color: var(--navy-700); } }
@media (min-width: 768px) {
  .table--fees th:nth-child(1), .table--fees td:nth-child(1) { width: 34%; }
  .table--fees .fee-item { font-weight: 600; }
  .table--fees td.fee-detail { color: var(--text-sub); }
}
/* 메뉴 안 진료시간: 오늘 배지가 시간을 밀지 않게 요일 아래로 */
.hours--compact th { width: 42%; padding-right: 12px; white-space: normal; }
.hours--compact th .badge { white-space: nowrap; }
.hours--compact td { white-space: normal; }

.fee-foot { margin-top: 32px; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--text-sub); }
.fee-foot li { display: flex; gap: 8px; }
.fee-foot li::before { content: "·"; font-weight: 700; color: var(--navy-700); }

/* 오시는 길 */
.loc-top { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; border-radius: var(--radius-2); overflow: hidden; }
@media (min-width: 768px) { .loc-top { grid-template-columns: repeat(3, 1fr); } }
.loc-top > div { background: #fff; padding: 28px; display: grid; gap: 8px; align-content: start; }
.loc-top h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text-muted); }
.loc-top h3 .icon { width: 20px; height: 20px; color: var(--navy-700); }
.loc-top p { font-size: var(--fs-h4); font-weight: 700; line-height: 1.5; }
.loc-top small { font-size: var(--fs-sm); color: var(--text-sub); }
.loc-hours { display: grid; gap: 40px; }
@media (min-width: 1024px) { .loc-hours { grid-template-columns: 1fr 1.4fr; gap: 80px; } }

/* 공통 토스트 */
.toast { position: fixed; left: 50%; top: 20px; z-index: 200; transform: translate(-50%, -150%); display: flex; align-items: center; gap: 10px; padding: 16px 24px; background: var(--success-bg); color: var(--success); border: 1px solid var(--success-line); font-weight: 700; font-size: 17px; box-shadow: var(--shadow-2); transition: transform .3s var(--ease), visibility .3s; max-width: calc(100% - 32px); visibility: hidden; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- 8. 관리자 ---------- */
.admin { --fs-body: 1.125rem; font-size: 18px; background: var(--bg-ui); min-height: 100vh; padding-bottom: 0; }
.admin .btn { min-height: 56px; font-size: 18px; padding-inline: 28px; }
.admin .btn--sm { min-height: 48px; font-size: 16px; padding-inline: 16px; }
.admin .input, .admin .select, .admin .textarea { min-height: 56px; font-size: 18px; }
.admin .field__label { font-size: 18px; }
.admin .field__help, .admin .field__error { font-size: 16px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login__card { width: min(480px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2); border-top: 4px solid var(--navy-700); padding: 40px 28px; display: grid; gap: 24px; }
@media (min-width: 768px) { .login__card { padding: 56px 48px; } }
.login__card .logo { margin: 0; --logo-h: 34px; justify-self: start; }
.login__title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.login__desc { color: var(--text-sub); margin-top: 6px; font-size: 17px; }
.pw { position: relative; }
.pw .input { padding-right: 120px; }
.pw__toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 16px; font-weight: 600; color: var(--navy-700); }
.login__help { font-size: 16px; color: var(--text-muted); text-align: center; }

.admin-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.admin-top__inner { display: flex; align-items: center; gap: 12px; min-height: 72px; padding-inline: 16px; }
@media (min-width: 1024px) { .admin-top__inner { padding-inline: 32px; } }
.admin-top .logo { margin-right: 0; --logo-h: 28px; }
@media (min-width: 1024px) { .admin-top .logo { --logo-h: 32px; } }
.admin-top__tag { font-size: 14px; font-weight: 700; color: var(--navy-700); border: 1px solid var(--navy-700); padding: 2px 8px; margin-left: 4px; }
.admin-top__actions { display: flex; gap: 8px; }
.admin-top__actions .btn { min-height: 48px; padding-inline: 14px; font-size: 16px; }
@media (max-width: 767px) { .admin-top__actions .btn span { display: none; } .admin-top__tag { display: none; } }

.admin-layout { display: grid; }
@media (min-width: 1024px) { .admin-layout { grid-template-columns: 280px 1fr; min-height: calc(100vh - 73px); } }
.admin-tabs { background: #fff; border-bottom: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 1024px) { .admin-tabs { display: flex; flex-direction: column; gap: 4px; border-bottom: 0; border-right: 1px solid var(--line); padding: 24px 16px; } }
.admin-tab { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-1); background: #fff; font-size: 17px; font-weight: 700; text-align: left; line-height: 1.3; color: var(--gray-700); }
@media (min-width: 1024px) { .admin-tab { border: 0; font-size: 18px; padding-inline: 16px; } }
.admin-tab .icon { color: var(--navy-700); }
.admin-tab[aria-selected="true"] { background: var(--navy-700); color: #fff; border-color: var(--navy-700); --focus: var(--navy-900); }
.admin-tab[aria-selected="true"] .icon { color: #fff; }
@media (hover: hover) { .admin-tab[aria-selected="false"]:hover { background: var(--navy-50); color: var(--navy-700); } }

.admin-main { padding: 24px 16px 0; min-width: 0; }
@media (min-width: 1024px) { .admin-main { padding: 40px 48px 0; } }
.admin-panel { max-width: 960px; }
.admin-panel[hidden] { display: none; }
.admin-h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.admin-lead { margin-top: 8px; color: var(--text-sub); font-size: 18px; }
.admin-card { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2); padding: 24px 20px; display: grid; gap: 24px; }
@media (min-width: 768px) { .admin-card { padding: 32px; } }
.admin-card__title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.admin-card__title .num-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 768px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.admin-list { border-top: 2px solid var(--navy-700); }
.admin-list li { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .admin-list li { grid-template-columns: 1fr auto; align-items: center; } }
.admin-list__title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-list__meta { font-size: 16px; color: var(--text-muted); margin-top: 4px; }
.admin-list__actions { display: flex; gap: 8px; }

.check { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; font-weight: 600; cursor: pointer; }
.check input { width: 28px; height: 28px; accent-color: var(--navy-700); flex: none; margin: 0; }

.switch { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--gray-400); border-radius: var(--radius-1); background: #fff; cursor: pointer; font-weight: 700; width: 100%; text-align: left; }
.switch__track { position: relative; width: 64px; height: 36px; border-radius: var(--radius-pill); background: var(--gray-400); flex: none; transition: background .2s; }
.switch__track::after { content: ""; position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch[aria-checked="true"] .switch__track { background: var(--navy-700); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(28px); }
.switch__state { margin-left: auto; font-size: 16px; padding: 4px 12px; border: 1px solid var(--gray-400); color: var(--gray-700); white-space: nowrap; }
.switch[aria-checked="true"] .switch__state { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }

.hours-edit { display: grid; gap: 0; border-top: 2px solid var(--navy-700); }
.hours-edit > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 768px) { .hours-edit > div { grid-template-columns: 100px 1fr 1fr auto; gap: 16px; } }
.hours-edit .day { font-weight: 800; font-size: 19px; }
.hours-edit .t { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.hours-edit .t span { font-size: 16px; color: var(--text-sub); min-width: 3em; }
.hours-edit .is-off .input { background: var(--gray-50); color: var(--gray-500); }
.hours-edit .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
@media (min-width: 768px) { .hours-edit .two { display: contents; } }

.preview { border: 1px dashed var(--gray-400); border-radius: var(--radius-1); padding: 16px; background: var(--bg-ui); }
.preview__label { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.preview .alert-band { border: 1px solid var(--warning-line); }
.preview .alert-band__inner { padding-inline: 14px; }

.fee-edit { border-top: 2px solid var(--navy-700); }
.fee-edit__row { display: grid; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fee-edit__row .field__label { font-size: 15px; color: var(--text-sub); }
.fee-edit__row .input { min-height: 52px; font-size: 17px; }
@media (min-width: 1024px) {
  .fee-edit__head, .fee-edit__row { grid-template-columns: 1.5fr 1.6fr 1.6fr .85fr .85fr auto; gap: 10px; align-items: end; }
  .fee-edit__head { display: grid; padding: 12px 0; background: var(--gray-25); font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
  .fee-edit__head span { padding-inline: 8px; }
  .fee-edit__row { padding: 10px 0; align-items: center; }
  .fee-edit__row .field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 1023px) {
  .fee-edit__head { display: none; }
  .fee-edit__row { grid-template-columns: 1fr 1fr; }
  .fee-edit__row .field:nth-child(-n+3) { grid-column: 1 / -1; }
  .fee-edit__row .btn { grid-column: 1 / -1; }
}
.fee-edit__row .input.num { text-align: right; }

.savebar { position: sticky; bottom: 0; z-index: 10; margin: 32px -16px 0; padding: 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15,29,69,.3); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media (min-width: 1024px) { .savebar { margin-inline: -48px; padding: 16px 48px; } }
.admin-card .savebar { margin: 0 -20px -24px; padding-inline: 20px; }
@media (min-width: 768px) { .admin-card .savebar { margin: 0 -32px -32px; padding-inline: 32px; } }
.field__spacer { display: none; }
@media (min-width: 768px) { .field__spacer { display: block; } }
.savebar__info { font-size: 16px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.savebar .btn { min-width: 200px; }
@media (max-width: 767px) { .savebar .btn { width: 100%; } }

.confirm { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-2); box-shadow: var(--shadow-3); }
.confirm::backdrop { background: rgba(15,29,69,.55); }
.confirm__body { padding: 32px 28px; display: grid; gap: 12px; }
.confirm__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; }
.confirm__title { font-size: 22px; font-weight: 700; }
.confirm__text { color: var(--text-sub); font-size: 18px; }
.confirm__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 28px 28px; }

/* 8-2 관리자 첫 화면: 자주 하는 일 큰 버튼 */
.qs { padding: 24px 16px 8px; background: #fff; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .qs { padding: 40px 32px 32px; } }
.qs__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.qs__draft { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: var(--warning-bg); border: 1px solid var(--warning-line); border-radius: var(--radius-1); color: var(--warning); font-weight: 700; }
.qs__draft .icon { flex: none; }
.qs__draft .btn { margin-left: auto; }
.qs__grid { margin-top: 20px; display: grid; gap: 12px; }
@media (min-width: 1024px) { .qs__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; } }
.qs__btn { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 96px; padding: 18px 18px; background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-2); text-align: left; color: var(--gray-900); }
.qs__btn > .icon:last-child { margin-left: auto; color: var(--gray-400); }
.qs__icon { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; }
.qs__text { display: grid; gap: 4px; }
.qs__text b { font-size: 20px; line-height: 1.35; }
.qs__text small { font-size: 16px; line-height: 1.5; color: var(--text-sub); }
.qs__btn--main { background: var(--navy-700); border-color: var(--navy-700); color: #fff; --focus: var(--navy-900); }
.qs__btn--main .qs__icon { background: rgba(255,255,255,.14); color: #fff; }
.qs__btn--main .qs__text small { color: var(--on-dark-sub); }
.qs__btn--main > .icon:last-child { color: #fff; }
.qs__btn:active { transform: translateY(1px); }
@media (hover: hover) { .qs__btn:not(.qs__btn--main):hover { border-color: var(--navy-700); } .qs__btn--main:hover { background: var(--navy-800); } }
.qs__more { margin: 16px 0 8px; font-size: 16px; color: var(--text-muted); }

/* 8-3 휴진 안내 자동 작성 마법사 */
.wz { max-width: 760px; margin: 0 auto; padding: 20px 16px 0; font-size: 18px; }
@media (min-width: 1024px) { .wz { padding-top: 40px; } }
.wz__head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz__title { font-size: 22px; font-weight: 700; color: var(--navy-700); }
.wz-progress { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wz-progress span { height: 8px; border-radius: var(--radius-pill); background: var(--gray-100); }
.wz-progress span.is-done { background: var(--navy-700); }
.wz-progress__text { margin-top: 10px; font-size: 18px; font-weight: 600; color: var(--text-sub); }
.wz-progress__text b { font-size: 22px; color: var(--navy-700); }
.wz-step { padding: 28px 0 32px; display: grid; gap: 20px; align-content: start; }
.wz-q { font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
@media (min-width: 768px) { .wz-q { font-size: 30px; } }
.wz-help { margin-top: -8px; font-size: 18px; color: var(--text-sub); line-height: 1.6; }
.wz-field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-label { font-size: 20px; font-weight: 700; padding: 0; }
.wz-label--sm { font-size: 18px; }
.wz .input.wz-input, .wz .textarea.wz-input { min-height: 64px; font-size: 20px; padding: 14px 16px; border-width: 2px; }
.wz .textarea.wz-input { min-height: 180px; line-height: 1.7; }
.wz .textarea.wz-title { min-height: 96px; resize: none; font-weight: 600; }
.wz-date { display: grid; gap: 10px; }
@media (min-width: 480px) { .wz-date { grid-template-columns: 1fr auto; align-items: center; } }
.wz-dow { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--navy-50); color: var(--navy-700); font-size: 20px; font-weight: 800; justify-self: start; }
.wz-dow:empty { display: none; }

.choices { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
@media (min-width: 360px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 18px; background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-2); cursor: pointer; }
.choices--2 .choice { min-height: 72px; padding: 14px; gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; }
.choice__text { display: grid; gap: 2px; flex: 1; }
.choice__text b { font-size: 20px; line-height: 1.35; }
.choices--2 .choice__text b { font-size: 18px; }
.choice__text small { font-size: 16px; color: var(--text-sub); line-height: 1.45; }
.choice__check { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 2px solid var(--gray-400); display: grid; place-items: center; color: transparent; }
.choice__check .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.choices--2 .choice { padding-right: 40px; }
.choices--2 .choice__check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; }
.choices--2 .choice__check .icon { width: 16px; height: 16px; }
.choice.is-checked { border-color: var(--navy-700); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy-700); }
.choice.is-checked .choice__check { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--navy-700); outline-offset: 3px; }
@media (hover: hover) { .choice:hover { border-color: var(--navy-700); } }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__btn { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 64px; padding: 10px; border: 2px solid var(--gray-200); border-radius: var(--radius-2); background: #fff; font-size: 20px; font-weight: 700; }
.seg__btn small { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.seg__btn--wide { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
@media (min-width: 768px) { .seg--time { grid-template-columns: repeat(4, 1fr); } }
.seg__btn[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.seg__btn[aria-pressed="true"] small { color: var(--on-dark-sub); }
@media (hover: hover) { .seg__btn[aria-pressed="false"]:hover { border-color: var(--navy-700); } }

.wz-err { font-size: 18px; padding: 12px 14px; background: var(--danger-bg); border-left: 4px solid var(--danger); border-radius: var(--radius-1); }
.wz-warn { display: flex; gap: 10px; padding: 14px 16px; background: var(--warning-bg); border: 1px solid var(--warning-line); border-radius: var(--radius-1); color: var(--warning); font-weight: 600; line-height: 1.6; }
.wz-warn .icon { flex: none; margin-top: 2px; }
.wz-sample { font-size: 18px; color: var(--navy-700); font-weight: 600; }
.wz-sample:empty { display: none; }

.check--box { display: flex; align-items: flex-start; gap: 14px; min-height: 64px; padding: 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-2); background: #fff; }
.check--box input { margin-top: 2px; }
.check--box span { display: grid; gap: 4px; }
.check--box b { font-size: 19px; }
.check--box small { font-size: 16px; color: var(--text-sub); font-weight: 500; line-height: 1.5; }
.check--box:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); }
.wz-targets { gap: 10px; }

.wz-preview { border: 1px dashed var(--gray-400); border-radius: var(--radius-2); background: var(--bg-ui); padding: 16px; }
.pv-phone { max-width: 390px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2); overflow: hidden; box-shadow: var(--shadow-2); }
.pv-phone .alert-band__inner { padding-inline: 14px; }
.pv-phone .alert-band__text { font-size: 15px; }
.pv-notice { padding: 20px 16px 24px; }
.pv-notice__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.pv-notice__title { margin-top: 10px; font-size: 19px; font-weight: 700; line-height: 1.45; }
.pv-notice__body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; white-space: pre-line; color: var(--text-sub); }
.pv-none { padding: 24px 16px; text-align: center; color: var(--text-muted); }

.wz-nav { position: sticky; bottom: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15,29,69,.3); }
.wz-nav .btn { min-height: 60px; font-size: 19px; padding-inline: 12px; }
.wz-nav .is-publish { background: var(--success); }
/* 마법사·첫 화면의 작은 버튼(그만두기, 되돌리기, 이어서 쓰기)도 56px 이상 */
.wz .btn.btn--sm, .qs .btn.btn--sm { min-height: 56px; font-size: 17px; }
@media (hover: hover) { .wz-nav .is-publish:hover { background: #105c38; } }
@media (min-width: 768px) { .wz-nav { margin: 0; padding-inline: 0; } }

.wz-done { justify-items: center; text-align: center; padding-top: 48px; }
.wz-done__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; }
.wz-done__icon .icon { width: 52px; height: 52px; stroke-width: 1.6; }
.wz-done__list { display: grid; gap: 10px; text-align: left; font-size: 18px; line-height: 1.6; width: 100%; }
.wz-done__list li { display: flex; gap: 10px; padding: 14px 16px; background: var(--success-bg); border-radius: var(--radius-1); color: var(--gray-900); }
.wz-done__list li::before { content: "✓"; color: var(--success); font-weight: 800; }
.wz-done__actions { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
@media (min-width: 768px) { .wz-done__actions { grid-template-columns: 1fr 1fr; } }

/* ---------- 9. 움직임 ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .hero__bg .ph, .subvisual .ph { animation: none; }
}

/* 사진 배너: 메뉴 글씨가 잘 보이도록 위쪽을 어둡게 */
.hero__bg .ph-overlay::before, .subvisual .ph-overlay::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; z-index: 1; background: linear-gradient(180deg, rgba(18,24,42,.82) 0%, rgba(18,24,42,.55) 45%, transparent 100%); pointer-events: none; }

/* 메인 첫 화면: 밝은 베이지 로비 사진 (파란 덮개 없음) */
.hero--light { color: var(--gray-900); --focus: var(--navy-700); background: var(--ivory-100); }
.hero--light .ph--deep { background: var(--ivory-100); }
.hero--light .hero__bg .ph-overlay::before { display: none; }
.hero--light .hero__bg .ph-overlay::after { background: linear-gradient(90deg, rgba(250,248,244,.94) 0%, rgba(250,248,244,.8) 32%, rgba(250,248,244,.18) 62%, rgba(250,248,244,0) 100%); }
.hero--light .hero__eyebrow { color: var(--navy-700); opacity: 1; }
.hero--light .hero__name { color: var(--navy-700); }
.hero--light .hero__desc { color: var(--gray-700); }
.hero--light .btn--white { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.hero--light .btn--on-dark { background: rgba(255,255,255,.7); color: var(--navy-700); border-color: var(--navy-700); --focus: var(--navy-700); }
@media (hover: hover) { .hero--light .btn--white:hover { background: var(--navy-800); } .hero--light .btn--on-dark:hover { background: #fff; } }
.hero--light .hero__scroll { color: var(--navy-700); }
.hero--light .hero__scroll::after { background: linear-gradient(var(--navy-700), rgba(31,58,138,0)); }
@media (max-width: 767px) { .hero--light .hero__bg .ph-overlay::after { background: linear-gradient(0deg, rgba(250,248,244,.97) 0%, rgba(250,248,244,.94) 52%, rgba(250,248,244,.1) 78%, rgba(250,248,244,0) 100%); } }
.hero--light { height: calc(100svh - 130px); } /* 휴진 띠·아래 전화 바에 버튼이 가리지 않게 */
@media (min-width: 1024px) { .hero--light { height: calc(100svh - 100px); } .hero--light .hero__content { padding-bottom: 56px; } }
@media (max-width: 767px) { .hero--light .hero__content { padding-bottom: 40px; } .hero--light .hero__eyebrow { display: none; } } /* 휴대폰: 영문 이름이 사진 간판과 겹쳐 숨김 */
/* 아주 작은 휴대폰(359px 이하): 병원 이름이 간판과 겹치지 않고, 아래 전화 바가 한 줄로 나오게 */
@media (max-width: 359px) { .hero--light .hero__content { padding-bottom: 24px; } .hero--light .hero__desc { margin-top: 14px; } .hero--light .hero__actions { margin-top: 22px; } .callbar a { gap: 5px; font-size: 15px; white-space: nowrap; } }
/* CDO 검토 반영: 대비 미달 글자 숨김, 사진이 바뀌어도 글씨가 읽히게 */
.hero--light .hero__scroll { display: none; }
@media (min-width: 768px) and (max-width: 1023px) { .hero--light .hero__bg .ph-overlay::after { background: linear-gradient(90deg, rgba(250,248,244,.94) 0%, rgba(250,248,244,.86) 48%, rgba(250,248,244,.25) 82%, rgba(250,248,244,0) 100%); } }
@media (min-width: 1024px) { .hero--light .hero__bg .ph-overlay::after { background: linear-gradient(90deg, rgba(250,248,244,.94) 0%, rgba(250,248,244,.84) 40%, rgba(250,248,244,.18) 66%, rgba(250,248,244,0) 100%); } }
/* 위 띠: 1024~1279px에서 글씨가 꺾이지 않게 주소를 숨김 */
.topbar__links a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .topbar__info > span:last-child { display: none; } }

/* 4-6 PC 빠른 메뉴(오른쪽 고정 세로 바). 본문 여백 안에만 놓는다: 1024~1439px은 여백 40px에 맞춘 38px, 1440px 이상은 64px + 전화번호. 휴대폰은 .callbar */
.sidebar-quick { display: none; }
@media (min-width: 1024px) {
  .sidebar-quick { display: grid; position: fixed; right: 0; top: calc(50% + 24px); transform: translateY(-50%); z-index: 40; width: 38px; background: #fff; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; overflow: hidden; box-shadow: var(--shadow-2); }
  .sidebar-quick a { display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 72px; padding: 10px 1px; color: var(--navy-700); text-align: center; --focus: var(--navy-700); }
  .sidebar-quick a + a { border-top: 1px solid var(--line); }
  .sidebar-quick a:focus-visible { outline-offset: -4px; }
  .sidebar-quick .icon { width: 20px; height: 20px; }
  .sidebar-quick .sidebar-quick__call { background: var(--navy-700); color: #fff; --focus: #fff; }
  .sidebar-quick__label { font-size: 12px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; max-width: 2.9em; word-break: keep-all; }
  .sidebar-quick__num { display: none; }
}
@media (min-width: 1440px) {
  .sidebar-quick { width: 64px; }
  .sidebar-quick a { min-height: 80px; padding: 12px 2px; }
  .sidebar-quick .icon { width: 24px; height: 24px; }
  .sidebar-quick__label { font-size: 13px; max-width: none; white-space: nowrap; }
  .sidebar-quick__num { display: block; font-size: 12px; letter-spacing: -.02em; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .sidebar-quick .sidebar-quick__call { min-height: 112px; }
}
@media (min-width: 1024px) and (hover: hover) { .sidebar-quick a:hover { background: var(--navy-50); } .sidebar-quick .sidebar-quick__call:hover { background: var(--navy-900); } }
@media print { .sidebar-quick { display: none; } }
.stats__label { word-break: keep-all; text-wrap: balance; }
.stats__item { align-content: start; }

/* 휴대폰·태블릿: 글 속 전화번호도 손가락으로 누르기 쉽게 */
@media (max-width: 1023px) {
  main p > a[href^="tel:"]:not([class*="btn"]) { padding-block: 12px; }
  .fee-foot a[href^="tel:"] { padding-block: 12px; margin-block: -12px; }
}
