/* ==========================================================================
   Nucellin Orthopedic Clinic — English site template
   디자인 시스템 + 레이아웃. 시안용 단일 스타일시트.
   레이아웃 문법: 워드프레스 기반 해외 클리닉 관례
   (전폭 섹션 스택 / 1200px 컨테이너 / 고정 헤더 / 오버레이 히어로 / 카드 그리드)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 디자인 토큰
   -------------------------------------------------------------------------- */
:root {
  /* 색 — 웜 베이지 단색 체계 + 액센트 1색.
     --beige가 지정 메인 컬러. 버튼과 링크는 같은 색상의 어두운 단계(--brand)를 써서
     흰 글씨 대비 4.5:1을 확보한다(지정색 원본은 대비 3:1 미만이라 텍스트 위에 못 씀). */
  --beige:        #9A938C;  /* 지정 메인 컬러 — 시그니처 면, 구분선, 아이콘 */
  --beige-light:  #B5AEA7;
  --brand:        #6B635B;  /* 베이지 다크 — 헤더 로고, 버튼, 링크 */
  --brand-deep:   #3E3833;  /* 히어로 오버레이, 푸터 */
  --brand-soft:   #877E74;  /* hover */
  --accent:       #A97C4E;  /* warm bronze — 액센트, 별점, 밑줄 */
  --accent-soft:  #E6DBCC;

  --ink:          #23201D;  /* 본문 */
  --ink-soft:     #56504A;  /* 부제, 캡션 */
  --muted:        #857E77;  /* 메타 정보 */

  --bg:           #FFFFFF;
  --bg-alt:       #F6F3EF;  /* warm off-white — 섹션 교차 */
  --bg-tint:      #EBE6E0;  /* 베이지 틴트 섹션 */
  --line:         #E2DDD7;
  --line-strong:  #CBC4BC;

  /* 타이포 — 영문 본문 17px, 행간 1.7 (해외 의료 사이트 관례) */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs:   0.75rem;   /* 12px — eyebrow, 메타 */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1.0625rem; /* 17px — 본문 */
  --fs-lg:   1.1875rem; /* 19px — 리드 문단 */
  --fs-xl:   1.5rem;    /* 24px — h3 */
  --fs-2xl:  2rem;      /* 32px — h2 */
  --fs-3xl:  2.75rem;   /* 44px — 페이지 h1 */
  --fs-4xl:  3.5rem;    /* 56px — 히어로 h1 */

  /* 스페이싱 — 4/8 배수 */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 5.5rem;   --sp-10: 7rem;

  --container: 1200px;
  --container-narrow: 760px;  /* 아티클 본문 — 영문 65~75자 행폭 */

  --radius:    4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(40, 34, 28, 0.06);
  --shadow:    0 2px 12px rgba(40, 34, 28, 0.08);
  --shadow-lg: 0 8px 32px rgba(40, 34, 28, 0.12);

  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. 리셋과 기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-soft); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. 레이아웃 유틸
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--brand-deep); color: #EFEAE4; }
.section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section--dark p { color: #CFC7BE; }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.lead { font-size: var(--fs-lg); color: var(--ink-soft); line-height: 1.65; }
.muted { color: var(--muted); font-size: var(--fs-sm); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: center; }

/* --------------------------------------------------------------------------
   4. 버튼
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-soft); color: #fff; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--accent { background: var(--accent); color: #23201D; }
.btn--accent:hover { background: #8E6640; color: #fff; }
.btn--lg { padding: 1.0625rem 2.25rem; font-size: var(--fs-base); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   5. 헤더 (유틸리티 바 + 고정 내비)
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--brand-deep); color: #C2BAB1;
  font-size: var(--fs-xs); letter-spacing: .02em;
}
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 38px; }
.utility-bar a { color: #E5DFD8; }
.utility-bar a:hover { color: #fff; }
.utility-list { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.utility-list li { margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: var(--header-h); }

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--brand); letter-spacing: -0.01em; }
.brand__tag { font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav__list { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; position: relative; }
.nav__link {
  display: block; padding: var(--sp-2) 0;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }

/* 드롭다운 (워드프레스 메가메뉴 관례를 경량화) */
.nav__sub {
  position: absolute; top: 100%; left: calc(var(--sp-4) * -1); min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--sp-3) 0; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.nav__list li:hover > .nav__sub, .nav__list li:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: var(--ink); }
.nav__sub a:hover { background: var(--bg-alt); color: var(--brand); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .5rem .75rem; cursor: pointer; font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   6. 히어로 (오버레이형 — 워드프레스 클리닉 테마 관례)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  background: var(--brand-deep);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(48,42,37,.92) 0%, rgba(48,42,37,.76) 45%, rgba(48,42,37,.42) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: var(--sp-9) 0; max-width: 680px; }
.hero__eyebrow { color: var(--accent); }
.hero h1 { color: #fff; font-size: var(--fs-4xl); margin-bottom: var(--sp-5); }
.hero__sub { font-size: var(--fs-lg); color: #D2CAC1; margin-bottom: var(--sp-6); }
.hero .btn-row { margin-bottom: var(--sp-6); }
.hero__note { font-size: var(--fs-sm); color: #B0A79E; }

/* 페이지 히어로 (하위 페이지 — 낮은 높이) */
.page-hero { position: relative; overflow: hidden; background: var(--brand-deep); color: #fff; padding: var(--sp-8) 0 var(--sp-7); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(48,42,37,.94) 0%, rgba(48,42,37,.82) 50%, rgba(48,42,37,.55) 100%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-hero p { color: #D2CAC1; max-width: 680px; margin: 0; }
.breadcrumb { font-size: var(--fs-xs); color: #A79E95; margin-bottom: var(--sp-4); }
.breadcrumb a { color: #D2CAC1; }
.breadcrumb span { margin: 0 var(--sp-2); opacity: .6; }

/* --------------------------------------------------------------------------
   7. 밸류 프롭 3분할 (Palm Beach Regen 모델)
   -------------------------------------------------------------------------- */
.valueprops { position: relative; z-index: 3; margin-top: -70px; }
.valueprops__inner {
  background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.valueprop { padding: var(--sp-6); border-right: 1px solid var(--line); }
.valueprop:last-child { border-right: 0; }
.valueprop__icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: var(--sp-4); }
.valueprop h3 { font-size: 1.1875rem; margin-bottom: var(--sp-2); }
.valueprop p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------------------
   8. 신뢰 바
   -------------------------------------------------------------------------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); padding: var(--sp-5) 0; }
.trustbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-5); }
.trust-item { display: flex; align-items: center; gap: var(--sp-3); }
.trust-item__num { font-family: var(--font-display); font-size: 1.75rem; color: var(--brand); line-height: 1; }
.trust-item__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: .12em; font-size: 1rem; }

/* --------------------------------------------------------------------------
   9. 카드
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-2px); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.1875rem; margin-bottom: var(--sp-2); }
.card__body p { font-size: var(--fs-sm); color: var(--ink-soft); flex: 1; }
.card__link { font-size: var(--fs-sm); font-weight: 600; color: var(--brand); margin-top: var(--sp-3); }
.card__link::after { content: " →"; }

/* 링크 리스트형 카드 (Conditions 허브) */
.linkcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.linkcard h3 { font-size: 1.0625rem; margin-bottom: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.linkcard ul { list-style: none; margin: 0; padding: 0; }
.linkcard li { margin: 0; }
.linkcard li a { display: block; padding: var(--sp-2) 0; font-size: var(--fs-sm); color: var(--ink); border-bottom: 1px solid var(--bg-alt); }
.linkcard li a:hover { color: var(--brand); padding-left: var(--sp-2); transition: padding .14s ease; }

/* --------------------------------------------------------------------------
   10. 이미지 플레이스홀더 (시안용 — 실사 확보 전)
   -------------------------------------------------------------------------- */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(107,99,91,.06) 0 12px, rgba(107,99,91,.11) 12px 24px),
    var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: var(--sp-4);
}
.ph--hero { background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 16px, rgba(255,255,255,.06) 16px 32px),
    #4A443D; height: 100%; color: rgba(255,255,255,.35); }
.ph--portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.ph--wide { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.ph--square { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }

/* --------------------------------------------------------------------------
   10-b. 실사 이미지 (기존 사이트 수집분 — 2026-07-31 삽입)
   -------------------------------------------------------------------------- */
img { max-width: 100%; height: auto; }

.media { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--hero { position: absolute; inset: 0; }
/* 원장 사진은 밝은 배경 컷이라 흰 바탕에서 경계가 사라진다 — 틴트 배경을 깐다 */
.media--portrait { aspect-ratio: 4 / 5; height: auto; border-radius: var(--radius-lg); background: var(--bg-tint); }
.media--square { background: var(--bg-tint); object-position: 50% 12%; }
.byline__avatar.media { object-fit: cover; object-position: 50% 12%; background: var(--bg-tint); }
.media--wide { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-lg); }
.media--square { aspect-ratio: 1 / 1; height: auto; border-radius: var(--radius-lg); }
.card__media.media, .article-card__media.media { height: auto; }
.card__media--product { object-fit: contain; background: var(--bg-alt); padding: var(--sp-4); }

/* 지도 임베드 (구글맵 iframe) */
/* .split은 align-items:center라 지도가 가운데로 뜬다 — 지도는 본문 첫 줄에 맞춰 위 정렬 */
.map-embed { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: var(--bg-tint); align-self: start; }

/* 오시는 길 블록 */
.directions { list-style: none; margin: 0; padding: 0; }
.directions li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.directions li:first-child { padding-top: 0; }
.directions li:last-child { border-bottom: 0; }
.directions h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); }
.directions p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

/* 본문 삽입 도판 */
figure.figure { margin: var(--sp-6) 0; }
figure.figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
figure.figure.figure--product img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--bg-alt); padding: var(--sp-5); }
figure.figure figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-3); }

/* 원내 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   11. 스텝 프로세스 (How It Works — Wockhardt 4단계 경량화)
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.75rem; color: var(--accent); line-height: 1;
}
.step::after { content: ""; position: absolute; top: 12px; left: 46px; right: -12px; height: 1px; background: var(--line-strong); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.section--dark .step::after { background: rgba(255,255,255,.2); }
.section--dark .step p { color: #C0B8AF; }

/* --------------------------------------------------------------------------
   12. 원장 소개 블록 / 저자 바이라인
   -------------------------------------------------------------------------- */
.doctor__creds { list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.doctor__creds li { position: relative; padding-left: 1.5rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.doctor__creds li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--accent); }

.byline { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-6); }
.byline__avatar { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 52px; }
.byline__name { font-weight: 700; font-size: var(--fs-sm); }
.byline__meta { font-size: var(--fs-xs); color: var(--muted); }

/* 의학적 검토 표기 (클리블랜드 클리닉 관례) */
.medreview {
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  padding: var(--sp-4) var(--sp-5); font-size: var(--fs-sm); color: var(--ink-soft);
  margin-bottom: var(--sp-6); border-radius: 0 var(--radius) var(--radius) 0;
}
.medreview strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   13. 후기
   -------------------------------------------------------------------------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); }
.review__stars { color: var(--accent); margin-bottom: var(--sp-3); letter-spacing: .1em; }
.review__text { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
.review__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.review__source { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   14. FAQ 아코디언
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-5) var(--sp-6) var(--sp-5) 0;
  font-family: var(--font-display); font-size: 1.125rem; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--accent); font-weight: 300; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 var(--sp-6) var(--sp-5) 0; color: var(--ink-soft); font-size: var(--fs-base); }

/* --------------------------------------------------------------------------
   15. 아티클 (Clinical Insight)
   -------------------------------------------------------------------------- */
.article-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--sp-8); align-items: start; }
.topic-tree { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
.topic-tree h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-4); }
.topic-tree ul { list-style: none; padding: 0; margin: 0 0 var(--sp-6); }
.topic-tree li { margin: 0; }
.topic-tree a { display: block; padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: var(--ink-soft); border-left: 2px solid var(--line); }
.topic-tree a:hover { color: var(--brand); border-left-color: var(--accent); }
.topic-tree a[aria-current="true"] { color: var(--brand); font-weight: 600; border-left-color: var(--accent); }

.article-card { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-5); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.article-card:first-child { padding-top: 0; }
.article-card__media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.article-card__tag { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.article-card h3 { font-size: 1.25rem; margin: var(--sp-2) 0; }
.article-card p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--sp-2); }

/* 아티클 본문 */
.prose { font-size: var(--fs-base); }
.prose h2 { font-size: 1.625rem; margin-top: var(--sp-7); }
.prose h3 { font-size: 1.25rem; margin-top: var(--sp-6); }
.prose > p:first-of-type { font-size: var(--fs-lg); color: var(--ink-soft); }
.callout { background: var(--bg-tint); border-radius: var(--radius-lg); padding: var(--sp-5); margin: var(--sp-6) 0; }
.callout h4 { margin-bottom: var(--sp-2); }
.callout p:last-child { margin-bottom: 0; }

/* 관련 페이지 내부링크 블록 (증상 x 치료 매트릭스) */
.crosslinks { background: var(--bg-alt); border-radius: var(--radius-lg); padding: var(--sp-6); }
.crosslinks h3 { font-size: 1.125rem; }
.crosslinks ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2) var(--sp-5); }
.crosslinks li { margin: 0; }
.crosslinks a { font-size: var(--fs-sm); display: block; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }

/* 목차 */
.toc { background: var(--bg-alt); border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.toc h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-3); }
.toc ol { margin: 0; padding-left: 1.25em; }
.toc li { font-size: var(--fs-sm); margin-bottom: var(--sp-1); }

/* --------------------------------------------------------------------------
   16. CTA 밴드
   -------------------------------------------------------------------------- */
.cta-band { background: var(--brand); color: #fff; padding: var(--sp-8) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-band p { color: #C8C0B7; margin: 0; }

/* --------------------------------------------------------------------------
   17. 폼
   -------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem var(--sp-3); font-family: inherit; font-size: var(--fs-sm);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(107,99,91,.18); }
.field textarea { min-height: 110px; resize: vertical; }
.field--file input { padding: .625rem; background: var(--bg-alt); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* --------------------------------------------------------------------------
   18. 푸터
   -------------------------------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: #B3ABA2; padding: var(--sp-8) 0 var(--sp-5); font-size: var(--fs-sm); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer a { color: #D0C9C1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-7); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: var(--sp-2); }
.footer-hours { list-style: none; padding: 0; margin: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-2); }
.footer-hours span:last-child { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding-top: var(--sp-5); font-size: var(--fs-xs); color: #948C84; }
.lang-switch { display: inline-flex; gap: var(--sp-2); align-items: center; }
.lang-switch a { padding: .25rem .625rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); font-size: var(--fs-xs); }
.lang-switch a[aria-current="true"] { background: rgba(255,255,255,.12); color: #fff; }

/* --------------------------------------------------------------------------
   19. 상시 WhatsApp 버튼
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 200;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: #25D366; color: #0B2E1C; font-weight: 700; font-size: var(--fs-sm);
  padding: .875rem 1.25rem; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.wa-float:hover { background: #1FBE59; color: #0B2E1C; }
.wa-float svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   20. 반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --fs-4xl: 2.75rem; --fs-3xl: 2.25rem; --fs-2xl: 1.75rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-6); }
  .step::after { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .topic-tree { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__list { display: none; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 768px) {
  :root { --fs-4xl: 2.25rem; --fs-3xl: 1.875rem; --sp-9: 3.5rem; --sp-10: 4rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .valueprops { margin-top: var(--sp-6); }
  .valueprops__inner { grid-template-columns: 1fr; }
  .valueprop { border-right: 0; border-bottom: 1px solid var(--line); }
  .valueprop:last-child { border-bottom: 0; }
  .hero { min-height: 520px; }
  .steps { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .crosslinks ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .trustbar__inner { justify-content: flex-start; }
  .utility-list li:not(:last-child) { display: none; }
  .wa-float { right: var(--sp-4); bottom: var(--sp-4); }
}

/* 인쇄, 접근성 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* 구글 리뷰 배지 — 2026-08-31 */
.gbadge { display: inline-flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.15rem .55rem .8rem; box-shadow: 0 1px 4px rgba(35,32,29,.06); }
.gbadge__g { width: 26px; height: 26px; flex: none; }
.gbadge__stars { color: #FBBC04; letter-spacing: .08em; font-size: .95rem; line-height: 1; }
.gbadge__rating { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1; }
.gbadge__meta { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.gbadge__link { font-size: var(--fs-xs); color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.gbadge__link:hover { color: var(--accent); }
.gbadge-wrap { display: flex; justify-content: center; margin: 0 0 var(--sp-6); }

/* 모바일 내비 드로어 — 2026-08-31 */
@media (max-width: 900px) {
  .site-header { position: relative; }
  .nav.nav--open .nav__list {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(35,32,29,.08); padding: var(--sp-4) var(--sp-5) var(--sp-5);
    max-height: calc(100vh - 120px); overflow-y: auto; z-index: 60;
  }
  .nav--open .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav--open .nav__list > li:last-child { border-bottom: 0; }
  .nav--open .nav__link { display: block; padding: .8rem 0; font-size: var(--fs-base); }
  .nav--open .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 .75rem .75rem; min-width: 0; display: block;
  }
  .nav--open .nav__sub a { padding: .35rem 0; display: block; color: var(--ink-soft); }
}
