/* ============================================================
   범용 모형 사이트 — 메인·범용 서브페이지 공용 (index.php, sub/about·doctors·treatment·equipment·location·non_covered)
   색은 colors.css 토큰(--main-color, --sub-color, --light2, --point)만 사용 → 병원별 색 교체 시 자동 반영
   ============================================================ */
.sm { --sm-main: var(--main-color, #1f3a5f); --sm-sub: var(--sub-color, #2b7fc4); --sm-light: var(--light2, #f3f7fa);
      --sm-ink: var(--text-color, #1b2430); --sm-mute: var(--text-muted, #667085); --sm-line: var(--line-color, #e4e9ef); --sm-r: 18px;
      color: var(--sm-ink); font-family: Pretendard, "Apple SD Gothic Neo", sans-serif; word-break: keep-all; }
.sm *, .sm *::before, .sm *::after { box-sizing: border-box; }
.sm img { max-width: 100%; display: block; }
.sm a { color: inherit; }
.sm-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sm-sec { padding: 104px 0; }
.sm-sec--tint { background: var(--sm-light); }
.sm-sec--tight { padding: 64px 0; }
.sm-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sm-sub); margin: 0 0 12px; }
.sm-h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }
.sm-lead { font-size: 17px; line-height: 1.75; color: var(--sm-mute); margin: 0; max-width: 680px; }
.sm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sm-head .sm-h2 { margin-bottom: 0; }   /* 제목 아래 여백 때문에 '자세히 보기'가 제목 글줄보다 아래로 처지던 것 */
.sm-head .sm-more { margin-bottom: 6px; }
.sm-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--sm-main); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s, background .2s; }
.sm-btn:hover { transform: translateY(-2px); }
.sm-btn--main { background: var(--sm-main); color: var(--text-inverse, #fff) !important; }
.sm-btn--line { border-color: currentColor; color: var(--sm-main); background: var(--surface-color, #fff); }
.sm-btn--ghost { border-color: rgba(255,255,255,.6); color: var(--text-inverse, #fff) !important; }
.sm-muted { color: var(--sm-mute); }
.sm-grid { display: grid; gap: 24px; }
.sm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 빈 자리 안내 */
.sm-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; min-height: 160px; background: repeating-linear-gradient(135deg, #eef2f6 0 12px, #f6f8fa 12px 24px); color: var(--text-muted, #8a96a6); text-align: center; padding: 16px; }
.sm-ph .material-symbols-outlined { font-size: 32px; }
.sm-ph b { font-size: 14px; color: var(--text-muted, #5c6878); }
.sm-ph small { font-size: 12px; }
.sm-empty { border: 1.5px dashed var(--line-color, #c9d3de); border-radius: var(--sm-r); padding: 40px 24px; text-align: center; background: var(--surface-color, #fff); }
.sm-empty p { margin: 0 0 6px; font-weight: 700; color: var(--text-muted, #4a5565); }
.sm-empty small { color: var(--text-muted, #8a96a6); }

/* 메인 히어로 */
.sm-hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; color: var(--text-inverse, #fff); overflow: hidden; background: var(--sm-main); }
.sm-hero__bg { position: absolute; inset: 0; }
.sm-hero__bg img, .sm-hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.sm-hero__bg .swiper, .sm-hero__bg .swiper-wrapper, .sm-hero__bg .swiper-slide { height: 100%; }
.sm-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55)); pointer-events: none; z-index: 2; }
.sm-hero__noimg { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 85% 10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--sm-main), var(--sm-sub)); }
.sm-hero__noimg small { position: absolute; right: 24px; top: 110px; font-size: 12px; opacity: .7; }
.sm-hero__copy { position: relative; z-index: 3; padding: 0 0 96px; }
.sm-hero__copy h1 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; margin: 0 0 18px; max-width: 900px; }
.sm-hero__copy p { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.7; opacity: .92; margin: 0 0 32px; max-width: 640px; }
.sm-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* 빠른 정보 띠 */
.sm-quick { position: relative; z-index: 4; margin-top: -48px; }
.sm-quick__box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface-color, #fff); border-radius: var(--sm-r); box-shadow: 0 18px 50px rgba(16, 32, 56, .12); overflow: hidden; }
.sm-quick__box > div { padding: 26px 28px; border-left: 1px solid var(--sm-line); }
.sm-quick__box > div:first-child { border-left: 0; }
.sm-quick__box h3 { font-size: 13px; font-weight: 700; color: var(--sm-sub); margin: 0 0 8px; letter-spacing: .06em; }
.sm-quick__box strong { display: block; font-size: 22px; font-weight: 800; color: var(--sm-main); }
.sm-quick__box p { margin: 4px 0 0; font-size: 14px; color: var(--sm-mute); line-height: 1.6; }

/* 진료 카드 */
.sm-tcard { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; padding: 28px; border-radius: var(--sm-r); background: var(--surface-color, #fff); border: 1px solid var(--sm-line); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.sm-tcard:hover { border-color: var(--sm-sub); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 32, 56, .08); }
.sm-tcard__no { font-size: 13px; font-weight: 700; color: var(--sm-sub); }
.sm-tcard h3 { font-size: 22px; font-weight: 800; margin: 14px 0 8px; }
.sm-tcard p { font-size: 14px; color: var(--sm-mute); margin: 0; line-height: 1.6; }
.sm-tcard .material-symbols-outlined { position: absolute; right: 24px; bottom: 24px; color: var(--sm-main); }
.sm-tcard--img { padding: 0; overflow: hidden; justify-content: flex-start; }
.sm-tcard__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--section-bg, #F5F6FA); }
.sm-tcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.sm-tcard--img:hover .sm-tcard__img img { transform: scale(1.04); }
.sm-tcard__body { position: relative; flex: 1; padding: 22px 24px 52px; }
.sm-tcard--img h3 { margin-top: 8px; }
.sm-tintro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sm-tintro--text { grid-template-columns: minmax(0, 1fr); }
.sm-tintro__img { margin: 0; border-radius: var(--sm-r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--section-bg, #F5F6FA); }
.sm-tintro__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-tintro__txt p { color: var(--sm-mute); line-height: 1.8; margin: 14px 0 0; }

/* 의료진 */
.sm-doc { background: var(--surface-color, #fff); border-radius: var(--sm-r); overflow: hidden; border: 1px solid var(--sm-line); }
.sm-doc__img { aspect-ratio: 4 / 5; background: var(--sm-light); }
.sm-doc__img img, .sm-doc__img .sm-ph { width: 100%; height: 100%; object-fit: cover; }
.sm-doc__body { padding: 22px 24px 26px; }
.sm-doc__body small { color: var(--sm-sub); font-weight: 700; font-size: 13px; }
.sm-doc__body h3 { font-size: 22px; font-weight: 800; margin: 4px 0 10px; }
.sm-doc__body ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.75; color: var(--sm-mute); }
.sm-doc-row { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--sm-line); }
.sm-doc-row:first-child { border-top: 0; padding-top: 0; }
.sm-doc-row__img { border-radius: var(--sm-r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sm-light); }
.sm-doc-row__img img, .sm-doc-row__img .sm-ph { width: 100%; height: 100%; object-fit: cover; }
.sm-doc-row h2 { font-size: 30px; font-weight: 800; margin: 6px 0 12px; }
.sm-doc-row .sm-slogan { font-size: 18px; color: var(--sm-main); font-weight: 700; margin: 0 0 22px; }
.sm-doc-row h3 { font-size: 15px; font-weight: 800; margin: 26px 0 10px; color: var(--sm-main); }
.sm-doc-row .sm-career { font-size: 15px; line-height: 1.8; color: var(--text-color, #3d4756); }
.sm-doc-row .sm-career p, .sm-doc-row .sm-career div { margin: 0; }

/* 장비 */
.sm-eq { background: var(--surface-color, #fff); border-radius: var(--sm-r); overflow: hidden; border: 1px solid var(--sm-line); display: flex; flex-direction: column; }
.sm-eq__img { aspect-ratio: 4 / 3; background: var(--sm-light); }
.sm-eq__img img, .sm-eq__img .sm-ph { width: 100%; height: 100%; object-fit: cover; }
.sm-eq__body { padding: 22px 24px 26px; }
.sm-eq__body small { color: var(--sm-sub); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.sm-eq__body h3 { font-size: 20px; font-weight: 800; margin: 6px 0 8px; }
.sm-eq__body p { font-size: 14px; line-height: 1.7; color: var(--sm-mute); margin: 0; }

/* 전후사진 */
.sm-ba { background: var(--surface-color, #fff); border-radius: var(--sm-r); overflow: hidden; border: 1px solid var(--sm-line); text-decoration: none; display: block; }
.sm-ba__img { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--sm-line); }
.sm-ba__img > div { position: relative; aspect-ratio: 1; background: var(--sm-light); }
.sm-ba__img img, .sm-ba__img .sm-ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.sm-ba__img span { position: absolute; left: 8px; top: 8px; z-index: 1; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); color: var(--text-inverse, #fff); padding: 3px 8px; border-radius: 99px; }
.sm-ba__body { padding: 18px 20px; }
.sm-ba__body h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.sm-ba__body p { font-size: 13px; color: var(--sm-mute); margin: 0; }

/* 리뷰 */
.sm-review { background: var(--surface-color, #fff); border-radius: var(--sm-r); padding: 26px; border: 1px solid var(--sm-line); }
.sm-review__stars { color: var(--point, #f5a623); letter-spacing: 2px; font-size: 15px; }
.sm-review p { font-size: 15px; line-height: 1.75; margin: 12px 0 16px; color: var(--text-color, #3d4756); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.sm-review small { color: var(--sm-mute); font-size: 13px; }

/* 칼럼 */
.sm-col { display: block; text-decoration: none; }
.sm-col__img { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--sm-light); margin-bottom: 16px; }
.sm-col__img img, .sm-col__img .sm-ph { width: 100%; height: 100%; object-fit: cover; }
.sm-col h3 { font-size: 18px; font-weight: 800; line-height: 1.45; margin: 0 0 8px; }
.sm-col p { font-size: 14px; color: var(--sm-mute); line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 시설 */
.sm-space { border-radius: var(--sm-r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sm-light); position: relative; }
.sm-space img, .sm-space .sm-ph { width: 100%; height: 100%; object-fit: cover; }
.sm-space figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }

/* 오시는 길 */
.sm-loc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.sm-loc > .sm-map { height: auto; align-self: stretch; }   /* 지도 높이 = 오른쪽 정보 높이(최소 --sm-map-h) */
.sm-loc__info h3 { font-size: 15px; font-weight: 800; color: var(--sm-main); margin: 28px 0 10px; }
.sm-loc__info h3:first-child { margin-top: 0; }
.sm-loc__info address { font-style: normal; font-size: 17px; line-height: 1.7; }
.sm-loc__tel { font-size: 30px; font-weight: 800; color: var(--sm-main); text-decoration: none; }
.sm-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.sm-hours th, .sm-hours td { padding: 12px 0; border-bottom: 1px solid var(--sm-line); text-align: left; }
.sm-hours th { width: 40%; font-weight: 700; color: var(--text-color, #3d4756); }

/* CTA 띠 */
.sm-cta { background: var(--sm-main); color: var(--text-inverse, #fff); border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sm-cta h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin: 0 0 8px; }
.sm-cta p { margin: 0; opacity: .85; }
.sm-cta .sm-hero__cta { margin: 0; }

/* 서브 공통 */
.sm-subhero { background: linear-gradient(135deg, var(--sm-main), var(--sm-sub)); color: var(--text-inverse, #fff); padding: 150px 0 64px; }
.sm-subhero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin: 14px 0 10px; letter-spacing: -.02em; }
.sm-subhero p { font-size: 17px; opacity: .9; margin: 0; max-width: 680px; line-height: 1.7; }
.sm-crumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; opacity: .85; }
.sm-crumb a { text-decoration: none; }
.sm-tabs { border-bottom: 1px solid var(--sm-line); background: var(--surface-color, #fff); position: relative; z-index: 2; }
.sm-tabs .sm-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sm-tabs a { flex: 0 0 auto; padding: 18px 18px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--sm-mute); border-bottom: 3px solid transparent; }
.sm-tabs a.is-on { color: var(--sm-main); border-bottom-color: var(--sm-main); }
.sm-prose { font-size: 17px; line-height: 1.9; color: var(--text-color, #3d4756); max-width: 820px; }
.sm-prose p { margin: 0 0 1em; }
.sm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sm-split__img { border-radius: var(--sm-r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sm-light); }
.sm-split__img img, .sm-split__img .sm-ph { width: 100%; height: 100%; object-fit: cover; }
.sm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.sm-facts div { background: var(--sm-light); border-radius: 14px; padding: 20px; }
.sm-facts b { display: block; font-size: 26px; font-weight: 800; color: var(--sm-main); }
.sm-facts span { font-size: 13px; color: var(--sm-mute); }
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-chips a, .sm-chips span { padding: 9px 16px; border-radius: 99px; background: var(--surface-color, #fff); border: 1px solid var(--sm-line); font-size: 14px; font-weight: 700; text-decoration: none; }
.sm-chips a.is-on { background: var(--sm-main); border-color: var(--sm-main); color: var(--text-inverse, #fff); }
.sm-faq details { border-bottom: 1px solid var(--sm-line); padding: 20px 0; }
.sm-faq summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sm-faq summary::after { content: "+"; font-size: 22px; color: var(--sm-sub); }
.sm-faq details[open] summary::after { content: "−"; }
.sm-faq details > div { margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--text-color, #3d4756); }
.sm-nc { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface-color, #fff); }
.sm-nc th, .sm-nc td { padding: 14px 16px; border-bottom: 1px solid var(--sm-line); text-align: left; vertical-align: top; }
.sm-nc thead th { background: var(--sm-main); color: var(--text-inverse, #fff); font-weight: 700; }
.sm-nc td.sm-nc__price { font-weight: 800; color: var(--sm-main); white-space: nowrap; }
.sm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sm-notice { margin-top: 24px; font-size: 13px; line-height: 1.7; color: var(--sm-mute); }

/* 반응형 */
@media (max-width: 1100px) {
  .sm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-doc-row { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 860px) {
  .sm-sec { padding: 72px 0; }
  .sm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-loc, .sm-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sm-quick__box { grid-template-columns: minmax(0, 1fr); }
  .sm-quick__box > div { border-left: 0; border-top: 1px solid var(--sm-line); }
  .sm-quick__box > div:first-child { border-top: 0; }
  .sm-doc-row { grid-template-columns: minmax(0, 1fr); }
  .sm-doc-row__img { max-width: 360px; }
  .sm-cta { padding: 40px 28px; }
}
@media (max-width: 560px) {
  .sm-wrap { padding: 0 18px; }
  .sm-sec { padding: 60px 0; }
  .sm-grid--2, .sm-grid--3, .sm-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .sm-grid--4.sm-grid--keep2, .sm-grid--3.sm-grid--keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sm-hero { min-height: 78vh; }
  .sm-hero__copy { padding-bottom: 76px; }
  .sm-facts { grid-template-columns: minmax(0, 1fr); }
  .sm-subhero { padding: 120px 0 44px; }
  .sm-tcard { min-height: 150px; padding: 22px; }
  .sm-tcard--img { padding: 0; }
  .sm-tcard__body { padding: 16px 16px 44px; }
  .sm-tcard--img h3 { font-size: 17px; }
  .sm-tcard--img .material-symbols-outlined { right: 16px; bottom: 14px; }
  .sm-tintro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sm-btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .sm-loc__tel { font-size: 26px; }
}
