/* 서울365추나관한의원 — 단일 스타일시트(빌드 틀: 수월한의원에서 복사, 2026-11-23).
   색: 기획안 지정 — 메인 청록 #c49a3c(아이콘·강조선), 버튼 #503f31(흰 글자), 글자 #2b2623, 보조 바탕 민트(기획안 #f5f2f0을 흰색과 1.12:1 이상 되게 한 단계 짙게 — site-build 9).
   글꼴: Pretendard 하나 (fonts.css). 명조·손글씨 금지.
   섹션 배경: 빌드가 white → ivory → white … 로 번갈아 넣고 FAQ는 sand. 카드는 섹션과 반대 톤.
   레이아웃 흔들림 금지: 이미지·빈 자리는 aspect-ratio/width·height로 자리 고정, 버튼은 min-width 고정. */

:root {
  /* 색: dyderm.com 그대로(사용자 지정 2026-12-01) — 짙은 갈색 #2F2A28 · 베이지 #EDE6DE · 연회색 #F4F3F1 · 버튼 #76614A · 금색 #C5A059. 초록은 로고에만 */
  --deep-950: #1a1716;   /* 푸터 */
  --deep-900: #2f2a28;   /* 상단 띠 */
  --deep-800: #76614a;   /* 기본 짙은 바탕·버튼 — 군포 --primary-dark */
  --deep-700: #4a4441;
  --deep-500: #6a5642;   /* 밝은 바탕 위 강조 글자 (흰색·민트 틴트 위 4.5:1 이상) */
  --accent-300: #ede6de;   /* 짙은 바탕 위 밝은 강조 */
  --accent-400: #cfbc99;  /* 짙은 바탕 위 강조 글자·버튼 — 메인 청록 밝힌 값 */
  --accent-500: #c5a059;  /* 메인 카멜(군포 --accent) — 아이콘·강조선(글자에는 쓰지 않음) */
  --white: #ffffff;
  --ivory: #f4f3f1;       /* 크림 틴트 — 군포 --bg-warm. 흰 섹션과 1.12:1 이상(규칙 9 · design-lint 5, 2026-11-24 — 군포 --bg #fbf8f2는 1.06:1이라 못 씀) */
  --sand: #ede6de;        /* FAQ·강조 섹션 — 크림 한 단계 짙게 */
  --ink: #2f2a28;         /* 본문 글자 — 군포 --text */
  --muted: #5c5550;       /* 보조 글자 */
  --on-dark: #f8f4ef;
  --on-dark-muted: #dcd3c8;
  --line: #e3dcd3;
  --slot: rgba(120, 100, 80, .12);

  --wrap: 1080px;         /* 글 칸 폭(좌우 여백 제외) — 넓은 화면 모습은 예전(1120px - 20px×2)과 같다 */
  --gutter: clamp(48px, 5vw, 64px); /* 좌우 여백: 화면이 좁아질수록 글이 가장자리에 붙지 않게 폭에 비례 (responsive-gutter.md, 사용자 지정 2026-10-14) */
  --radius-sm: 8px;      /* 표·작은 상자·드롭다운 */
  --radius: 14px;        /* 카드·사진·FAQ — 업종 방향 8 / 14 / 20 세 단계 (design 검수 R-17, 2026-10-14) */
  --radius-lg: 20px;     /* 큰 판(프로필·주소 카드·캐러셀) */
  --header-h: 72px;
  --quick-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Pretendard", "Pretendard Fallback", "Pretendard Fallback Noto", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 고정 헤더 아래로 앵커 이동 — html scroll-padding-top을 쓰면 메뉴 label을 누를 때 체크박스 포커스로 페이지가 굴러가서(규칙 14) 대상 쪽 scroll-margin으로 둔다 */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: var(--quick-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-500); text-underline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 버튼은 빼고 — 전역 a:hover가 버튼 글자색을 덮어 남색 버튼·사진 위 버튼에서 글자가 사라졌다 (2026-10-21) */
a:where(:not(:is(.btn, .sc-btn, .sc-hero__btn, .sc-l3__btn, .sc-gc__btn, .sc-car__btn, .sc-qb__t, .sc-qc__t, .header-book))):hover { color: var(--deep-800); }
/* 키보드 포커스 테두리: 밝은 바탕(흰·아이보리·샌드)에서는 짙은 청록(흰색 대비 6.3:1), 짙은 바탕(히어로·머리·문의 띠·푸터·하단 퀵바)에서는 연한 민트(8:1 이상).
   예전 #b8893f는 흰색 대비 2.65:1로 WCAG 1.4.11(3:1) 미달 — design-lint 11 오류 8건 (2026-10-14) */
:focus-visible { outline: 3px solid var(--deep-500); outline-offset: 2px; }
.hero :focus-visible, .page-head :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-300); }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; } /* 끝 한두 글자만 다음 줄로 떨어지지 않게 */
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
address { font-style: normal; }
.ico { flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--deep-800); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }
.skip:hover, .skip:focus { color: #fff; }
/* 어두운 바탕 위 본문 링크 — 기본 링크색은 짙은 바탕에서 대비가 낮아 연한 금색으로, hover는 흰색 */
:is(.page-head, .hero, .band) a:where(:not(:is(.btn, .sc-btn, .sc-hero__btn, .sc-l3__btn, .sc-gc__btn, .sc-car__btn, .sc-qb__t, .sc-qc__t, .header-book))) { color: var(--accent-300); }
:is(.page-head, .hero, .band) a:where(:not(:is(.btn, .sc-btn, .sc-hero__btn, .sc-l3__btn, .sc-gc__btn, .sc-car__btn, .sc-qb__t, .sc-qc__t, .header-book))):hover { color: #fff; }

/* ── 버튼 ───────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; min-width: 168px; padding: 0 22px;
  border: 1px solid var(--deep-800); border-radius: 999px;
  background: var(--deep-800); color: #fff;
  font: 600 16px/1.2 var(--font); text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--deep-700); color: #fff; }
.btn-line { background: transparent; color: var(--deep-800); }
.btn-line:hover { background: var(--deep-800); color: #fff; }
.btn-gold { background: var(--accent-400); border-color: var(--accent-400); color: var(--deep-950); }
.btn-gold:hover { background: var(--accent-300); border-color: var(--accent-300); color: var(--deep-950); }
.btn-ghost { background: transparent; border-color: rgba(244, 245, 250, .55); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(244, 245, 250, .1); color: #fff; border-color: var(--on-dark); }

/* ── 헤더 ───────────────────────────────────────── */

/* ── 메인 히어로 ─────────────────────────────────── */
/* 사무실 사진 전체 배경 + Ken Burns(7초, 1 → 1.08) + 겹쳐 넘김. 사진은 absolute라 넘어갈 때 높이가 바뀌지 않는다.
   오버레이: 글자 쪽 92% 갈색 — 밝은 천장 위에서도 리드 글자(#cfd3df) 대비 4.5:1 이상 */
.hero { position: relative; overflow: hidden; background: var(--deep-800); color: var(--on-dark); isolation: isolate; min-height: 620px; display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; transform-origin: 50% 50%; will-change: opacity, transform; }
.hero-n2 .hero-slide, .hero-n3 .hero-slide { animation: hero-kb var(--hero-total) linear infinite; }
.hero:not(.hero-n2):not(.hero-n3) .hero-slide { animation: hero-solo 30s ease-in-out infinite alternate; } /* 사진 한 장: 천천히 확대만 */
@keyframes hero-solo { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-slide + .hero-slide { opacity: 0; } /* 애니메이션 전·JS 없음·움직임 줄이기: 첫 장만 */
/* 한 장 7초 + 겹침 1.5초. 0%=나타나기 시작, 1.5초에 다 보임, 8.5초까지 보이며 확대, 10초에 사라짐.
   첫 장은 -1.5초(이미 다 보인 상태)부터, k번째 장은 k×7-1.5초 뒤에 시작 — 시작 전에는 0% 키프레임(투명)이라 처음 열 때 다른 장이 비치지 않는다 */
@keyframes hero-kb {
  0% { opacity: 0; transform: scale(1); }
  7.14% { opacity: 1; }
  40.48% { opacity: 1; }
  47.62% { opacity: 0; transform: scale(1.08); }
  47.7% { transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.hero-n2 .hero-slide { animation-name: hero-kb2; }
@keyframes hero-kb2 {
  0% { opacity: 0; transform: scale(1); }
  10.71% { opacity: 1; }
  60.71% { opacity: 1; }
  71.43% { opacity: 0; transform: scale(1.08); }
  71.5% { transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.hero-n2 .hero-slide, .hero-n3 .hero-slide { animation-fill-mode: backwards; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 24, 18, .86) 0%, rgba(31, 24, 18, .74) 45%, rgba(31, 24, 18, .30) 100%),
    linear-gradient(0deg, rgba(31, 24, 18, .50) 0%, rgba(31, 24, 18, 0) 45%);
}
.hero-in { display: block; width: 100%; }
.hero-text { padding: 96px 0 104px; max-width: 660px; min-width: 0; }
.hero .eyebrow { color: var(--accent-400); font-weight: 600; font-size: 16px; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; color: #fff; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero .lead { color: var(--on-dark-muted); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips li { margin: 0; color: var(--accent-300); font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
/* 가운뎃점을 항목 앞에 — 줄이 바뀌어도 점이 줄 끝·줄 머리에 혼자 남지 않는다 */
.chips li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-500); flex: none; }
/* 진료 분야 바로가기 — eyebrow(슬로건)와 H1 사이 한 줄(writing-style 1-1, 사용자 지정 2026-10-12). 링크 글자는 메뉴 이름.
   한 줄 유지: 데스크톱은 글 칸(660px)을 넘어 내용 길이만큼 펼치고, 767px 이하는 줄 안에서만 옆으로 민다(오른쪽 끝 흐림, 페이지 가로 스크롤 없음).
   링크 높이는 모든 폭에서 44px 이상(누르기 쉬운 크기) */
.hero-practice { margin: 0 0 16px; }
.hero-practice ul { display: flex; flex-wrap: nowrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-practice li { margin: 0; flex: none; }
:is(.hero, .sc-h2) .hero-practice a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(219, 202, 181, .55); border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .16); font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.3; white-space: nowrap; transition: background-color .2s, border-color .2s; }
:is(.hero, .sc-h2) .hero-practice a:hover, :is(.hero, .sc-h2) .hero-practice a:focus-visible { background: rgba(219, 202, 181, .22); border-color: var(--accent-300); color: #fff; }
@media (min-width: 768px) { .hero-practice { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); } }
@media (max-width: 767.98px) {
  .hero-practice { margin-inline: calc(-1 * var(--gutter)); }
  .hero-practice ul { overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); gap: 6px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .hero-practice ul::-webkit-scrollbar { display: none; }
  :is(.hero, .sc-h2) .hero-practice a { padding: 0 13px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none !important; transform: none !important; }
  .hero-slide + .hero-slide { display: none; }
}

/* ── 하위 페이지 머리 ─────────────────────────────── */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--deep-800); color: var(--on-dark); padding: 40px 0 64px; }
/* 사진 머리(히어로) — 페이지 사진을 머리 전체 배경으로 깐다(사용자 지정 2026-10-08). 메인 히어로와 같은 방식.
   사진은 absolute라 머리 높이는 글자와 min-height가 정한다(사진 로딩 전후 흔들림 없음). 글자 쪽(왼쪽)을 짙게 덮어 대비 4.5:1 이상. */
.page-head.has-bg { min-height: 440px; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 64px; }
.page-head.has-bg > .wrap { width: 100%; }
.page-head-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--deep-900); }
.page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.page-head-photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(31, 24, 18, .86) 0%, rgba(31, 24, 18, .76) 60%, rgba(31, 24, 18, .36) 100%), /* 글 칸 오른쪽 끝(58%)까지 .76 이상 — lead 대비 4.5:1은 design-lint가 잰다 */
  linear-gradient(0deg, rgba(31, 24, 18, .5) 0%, rgba(31, 24, 18, 0) 45%); }
.page-head.has-bg .page-head-text { max-width: 640px; }
@media (max-width: 899px) {
  .page-head.has-bg { min-height: 360px; }
  .page-head-photo::after { background: linear-gradient(180deg, rgba(31, 24, 18, .76) 0%, rgba(31, 24, 18, .84) 100%); }
}
.page-head-in { display: grid; gap: 40px; align-items: center; }
.page-head.has-media .page-head-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.page-head .eyebrow { color: var(--accent-400); font-weight: 600; margin: 24px 0 12px; font-size: 15px; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; margin-top: 24px; }
.page-head .eyebrow + h1 { margin-top: 0; }
/* 정보성 글 작성자·수정일 (구조화 데이터 Article과 같은 값) */
.page-head .byline { color: var(--on-dark-muted); font-size: 14px; margin: 16px 0 0; }
.page-head .byline a { color: var(--accent-300); }
.page-head .lead { color: var(--on-dark-muted); font-size: 18px; margin: 18px 0 0; max-width: 40em; text-wrap: pretty; }
.page-head-media img, .page-head-media .img-slot { border-radius: var(--radius); width: 100%; object-fit: cover; }
.page-head .img-slot { background: rgba(244, 245, 250, .08); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: rgba(212, 200, 186, .6); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ── 섹션 ─────────────────────────────────────────── */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.bg-white { background: var(--white); }
.bg-ivory { background: var(--ivory); }
.bg-sand { background: var(--sand); }
.sec h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); color: var(--deep-800); margin-bottom: 24px; }
.sec h3 { font-size: 1.2rem; color: var(--deep-800); margin-bottom: 12px; }
.prose { max-width: 42em; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
/* grid 칸 안의 표(min-width 480px)가 칸을 밀어 페이지가 가로로 스크롤되지 않게 */
.split > *, .subs > *, .sub > *, .profile > *, .card-body, .page-head-in > * { min-width: 0; }
/* 판결문 같은 문서 이미지가 있는 섹션은 위에서 맞추고 이미지가 따라 내려오게 */
.split:has(.doc-zoom) { align-items: start; }
.split-media:has(.doc-zoom) { position: sticky; top: calc(var(--header-h) + 24px); }
.split-media img, .split-media .img-slot { width: 100%; border-radius: var(--radius); object-fit: cover; }
/* 약도 같은 안내 그림 — 원래 비율 그대로, 너무 길어지지 않게 폭 제한(주차 약도 1080×1331) */
.split-whole { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.split-whole .split-media img { height: auto; aspect-ratio: 1080 / 1331; object-fit: contain; } /* 약도 원본 비율 — 불러오기 전에도 자리를 잡는다 */
@media (max-width: 899px) { .split-whole .split-media { max-width: 420px; } }
/* 아래 R-14(#parking 제목·글 좌우 2칸)는 약도 split이 대신하므로 끈다 — 제목은 위 가운데, 글은 왼쪽 칸, 약도는 오른쪽 */
#parking > .wrap:has(> .split-whole) { display: block; }
.subs { display: grid; gap: 40px; margin-top: 40px; }
.sub { max-width: 42em; }
.sub.sub-media { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.sub .card-media img, .sub .card-media .img-slot { border-radius: var(--radius); width: 100%; object-fit: cover; }
.img-slot { width: 100%; background: var(--slot); border-radius: var(--radius); }

/* 카드 — 섹션과 반대 톤 */
.card-grid, .doctor-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid li, .doctor-grid li { margin: 0; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.bg-white .card { background: var(--ivory); }
.bg-ivory .card, .bg-sand .card { background: var(--white); }
.card .card-media img, .card .card-media .img-slot { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 0; }
.card .card-icon { aspect-ratio: 3/2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--slot); color: var(--deep-500); }
.card .card-icon svg { width: 56px; height: 56px; }
.card .card-icon span { font-size: 15px; font-weight: 600; color: var(--deep-500); }
.card .card-body { padding: 24px; }
.card .card-body p:last-child { margin-bottom: 0; }
.card-title { font-size: 1.2rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; color: var(--deep-800); margin: 0 0 12px; }
.link-card .card-title a { color: var(--deep-800); text-decoration: none; }
.link-card .card-title a::after { content: ""; position: absolute; inset: 0; } /* 카드 전체를 누를 수 있게 */
.link-card:hover { border-color: var(--deep-500); transform: translateY(-2px); }
.link-card:hover h3 a { color: var(--deep-500); }
/* 카드 개수별 격자 — 마지막 줄에 카드 하나만 남지 않게 (분야 7장: 1280px 이상 4+3, 그 아래 2열에서 마지막 카드 전체 폭 / 절차 4장: 1024px 이상 4열) */
.card-grid.n-7, .card-grid.n-4, .card-grid.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* n-2: 3칸 격자에 2장만 차지 않게 */
.card-grid.n-7 > li:last-child { grid-column: 1 / -1; flex-direction: row; }
.card-grid.n-7 > li:last-child .card-media { flex: 0 0 calc(50% - 10px); }
.card-grid.n-7 > li:last-child .card-body { align-self: center; }
@media (min-width: 1024px) { .card-grid.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
  .card-grid.n-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid.n-7 > li:last-child { grid-column: auto; flex-direction: column; }
  .card-grid.n-7 > li:last-child .card-media { flex: none; }
  .card-grid.n-7 > li:last-child .card-body { align-self: auto; }
}

/* 절차 */
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; display: grid; gap: 14px; max-width: 52em; }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 18px 20px 18px 72px; border-radius: var(--radius-sm); min-height: 64px; }
.bg-white .steps li { background: var(--ivory); }
.bg-ivory .steps li, .bg-sand .steps li { background: var(--white); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--deep-800); color: var(--accent-300); font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step-name { display: block; color: var(--deep-800); margin-bottom: 2px; }

/* 표 */
.bg-white { --sec-bg: var(--white); } .bg-ivory { --sec-bg: var(--ivory); } .bg-sand { --sec-bg: var(--sand); }
.table-box { position: relative; margin: 24px 0; max-width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; max-width: 100%; }
/* 표가 칸보다 넓을 때 오른쪽 끝 넘침 표시 (site.js가 .more를 붙인다 — 끝까지 밀면 사라짐) */
.table-box::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--sec-bg, #fff)); opacity: 0; transition: opacity .2s var(--ease); }
.table-box.more::after { opacity: 1; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 16px; background: #fff; }
caption { text-align: left; font-weight: 700; color: var(--deep-800); padding-bottom: 10px; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--deep-800); color: #fff; border-color: var(--deep-800); }
tbody th { background: rgba(92, 74, 60, .08); color: var(--deep-800); font-weight: 600; }

/* 근거 법령 */
.law { margin: 24px 0; padding: 16px 20px; border-left: 1px solid var(--accent-500); background: rgba(255, 255, 255, .55); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; color: var(--muted); max-width: 52em; }
.bg-white .law { background: var(--ivory); }
.law p { margin: 0; }
.law p + p { margin-top: 8px; }
.law cite { font-style: normal; font-weight: 700; color: var(--deep-800); }

/* 이 페이지 목차 */
.toc-band { padding: 36px 0; }
.toc-title { font-weight: 700; color: var(--deep-800); margin-bottom: 12px; }
.toc { columns: 2; column-gap: 40px; margin: 0; padding-left: 1.3em; }
.toc li { break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--deep-500); text-decoration: underline; }

/* FAQ */

/* 갤러리 */
.gallery { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery li { margin: 0; }
.gallery img, .gallery .img-slot { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); }

/* 상담 시간·주소 칸 */
.hours { max-width: 420px; min-width: 0; margin: 8px 0 0; }
@media (min-width: 900px) { .hours { max-width: 560px; } } /* "08:40~16:00 (점심시간 없음)"이 한 줄에 들어가게 */
.hours td { font-variant-numeric: tabular-nums; }
.address-card { margin-top: 8px; padding: 28px; border-radius: var(--radius-lg); max-width: 52em; }
.bg-white .address-card { background: var(--ivory); }
.bg-ivory .address-card, .bg-sand .address-card { background: #fff; }
.address-table { min-width: 0; table-layout: fixed; margin: 0; } /* 사이트 공통 표 모양(테두리·머리칸 색) 그대로, 폭만 화면에 맞춘다 */
.address-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 표 이름은 읽기 도구용 — 섹션 제목이 이미 보인다 */
.address-table .col-k { width: 96px; }
.address-table td { overflow-wrap: anywhere; }
.nw { white-space: nowrap; } /* 버스 노선 "140-1~140-7"이 하이픈에서 끊기지 않게 — 쉼표 뒤에서만 줄바꿈 */

/* ── 문의 띠 · 푸터 ──────────────────────────────── */
.band { background: var(--deep-800); color: var(--on-dark); padding: 56px 0; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.band h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 8px; }
.band p { color: var(--on-dark-muted); margin: 0; }
.band-hours { font-size: 15px; margin-top: 6px !important; font-variant-numeric: tabular-nums; }
.band-actions { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.band-actions li { margin: 0; }
.band .btn { min-width: 220px; font-variant-numeric: tabular-nums; }

.site-footer { background: var(--deep-950); color: var(--on-dark-muted); padding: 48px 0 40px; font-size: 14px; line-height: 1.8; }
.footer-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-logo-box { display: inline-block; padding: 10px 14px; background: #fff; border-radius: var(--radius-sm); }
.footer-logo img { display: block; width: auto; height: 40px; flex: none; } /* 업체 로고 PNG 비율 그대로 — 높이만 정한다 */
.footer-logo span { font-weight: 500; color: var(--accent-400); font-size: 14px; padding-left: 12px; border-left: 1px solid rgba(244, 245, 250, .25); line-height: 1; }
.footer-nap { display: flex; flex-wrap: wrap; gap: 2px 0; }
.footer-nap span:not(:last-of-type)::after { content: "|"; margin: 0 10px; color: rgba(212, 200, 186, .35); }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-links ul, .footer-ext { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-links a, .footer-ext a { display: inline-block; padding: 6px 0; } /* 터치 높이 36px 이상·세로 간격 (design-lint 8, 2026-10-14) */
.footer-links li { white-space: nowrap; } /* 메뉴 이름 하나가 중간에서 꺾이지 않게 */
.footer-ext { margin-top: 8px; }
.footer-links li, .footer-ext li { margin: 0; }
.copy { margin: 20px 0 0; font-size: 14px; color: rgba(212, 200, 186, .75); }

/* ── 퀵메뉴: 넓은 화면은 오른쪽 세로, 좁은 화면은 하단 고정 바 ── */
.quick { position: fixed; z-index: 60; }
.quick ul { list-style: none; margin: 0; padding: 0; }
.quick li { margin: 0; }
.quick a { display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; }
@media (min-width: 1360px) {
  .quick { right: 16px; top: 50%; transform: translateY(-50%); }
  .quick ul { display: grid; gap: 8px; }
  .quick a { flex-direction: column; gap: 4px; width: 84px; height: 80px; border-radius: 14px; font-size: 14px; color: #fff; background: var(--deep-800); box-shadow: 0 6px 18px rgba(45, 36, 30, .18); transition: background .2s var(--ease); }
  .quick a:hover { background: var(--deep-700); color: #fff; }
  /* 첫 버튼이 짙은 히어로·머리 띠에 묻히지 않게 금색 테두리 */
  .quick li:first-child a { box-shadow: inset 0 0 0 1.5px var(--accent-400), 0 6px 18px rgba(45, 36, 30, .18); }
  /* 칸마다 색을 다르게 하지 않는다 — 한 가지 배경, 전화(첫 칸)만 테두리로 강조 */
  .quick .ico { width: 24px; height: 24px; }
}
@media (max-width: 1359.98px) {
  :root { --quick-h: 0px; } /* 아래 여백은 퀵바 QB2의 body.sc-qb-space--qb2가 잡는다 */
  .quick { left: 0; right: 0; bottom: 0; background: var(--deep-800); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(45, 36, 30, .2); }
  .quick ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } /* 칸 수대로 같은 폭 */
  .quick li + li a { border-left: 1px solid rgba(244, 245, 250, .12); }
  .quick a { flex-direction: column; gap: 3px; height: 62px; color: var(--on-dark); font-size: 14px; letter-spacing: -0.02em; }
  .quick a:focus-visible { outline-color: var(--accent-300); outline-offset: -4px; } /* 짙은 바 안쪽에 그린다 */
  .quick .ico { color: var(--accent-400); }
}

/* ── 반응형 ──────────────────────────────────────── */
/* 900~1119px: 메뉴 7칸 + 전화 버튼이 한 줄에 들어가게 줄인다. 전화 버튼은 줄어들지 않고(flex:none) 작은 안내 글자는 1120px 이상에서만 (2026-10-12 화면 검수 — 1000~1024px 잘림·1081~1104px 가로 스크롤) */
/* 1120~1199px: 작은 안내 글자가 붙은 전화 버튼까지 한 줄에 — 메뉴 간격만 조금 줄인다 */
/* 900~1079px: 메뉴 6칸 + 전화 버튼이 한 줄에 들어가게 로고·메뉴 간격을 줄인다 (2026-10-12 상한 1059px — 1000~1024px 전화 버튼 잘림 / 2026-10-14 좌우 여백이 늘어 1079px까지 — 스크롤바 17px 빼고 여유 24px 이상, responsive-gutter.md 4장) */
/* 900~959px: 한 단계 더 줄인다 */
@media (max-width: 899.98px) {
  :root { --header-h: 60px; --gutter: clamp(26px, 7.2vw, 40px); } /* 360px 26px · 390px 28px · 556px 이상 40px (responsive-gutter.md 1장) */
  body { font-size: 16px; }

  /* 히어로: 화면 폭 전체가 글자라 오버레이를 고르게 짙게 */
  .hero { min-height: 560px; }
  .hero-text { padding: 56px 0 64px; }
  .hero .lead { font-size: 16px; }
  .hero-shade { background: linear-gradient(180deg, rgba(31, 24, 18, .76) 0%, rgba(31, 24, 18, .84) 100%); }
  .hero .cta-row .btn { flex: 1 1 100%; }
  @media (min-width: 600px) { .hero .cta-row .btn { flex: 0 0 auto; } } /* 태블릿에서는 버튼을 글자 폭대로 */

  .page-head { padding: 28px 0 44px; }
  .page-head.has-media .page-head-in { grid-template-columns: 1fr; gap: 28px; }
  .page-head .lead { font-size: 16px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-media:has(.doc-zoom) { position: static; }
  .sub.sub-media { grid-template-columns: 1fr; gap: 20px; }
  .toc { columns: 1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 변호사 카드: 1열 가로형 (사진 왼쪽) */
  .doctor-card { flex-direction: row; }
  .doctor-card .doctor-photo, .doctor-card .img-slot { width: 132px; flex: none; }
  .doctor-meta { align-self: center; padding: 14px 16px; }
  .profile { grid-template-columns: 1fr; gap: 0; }
  .profile-photo { max-width: 300px; width: 72%; margin-inline: auto; } /* 폭을 묶은 사진은 가운데 — 왼쪽에 붙으면 오른쪽만 비어 보인다 (responsive-gutter.md 3장) */
  .profile-panel { margin: -40px 0 0; padding: 60px 20px 28px; }
  .profile-cols { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .address-media { max-width: 420px; margin-inline: auto; } /* 720px 미만 한 칸일 때 지도는 가운데 */
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile-photo { max-width: 320px; }
  .band { padding: 44px 0; }
  .band-actions, .band-actions li, .band .btn { width: 100%; }
  .address-card { padding: 20px; }
  .address-table .col-k { width: 84px; } /* "긴급상담" 네 글자가 360px에서 한 줄 (design-lint 4) */
  .address-table th { padding: 12px 10px; }
  .address-table td { padding: 12px 10px; }
  .footer-nap { flex-direction: column; }
  .footer-nap span::after { display: none; }
}
@media (max-width: 420px) {
  .btn { min-width: 0; width: 100%; }
  .doctor-card .doctor-photo, .doctor-card .img-slot { width: 104px; }
  .gallery { grid-template-columns: 1fr; }
  /* 링크 카드 가로형: 1:1 썸네일 + 오른쪽 제목·설명 (빈 이미지 자리가 세로로 길게 이어지지 않게) */
  .card-grid, .card-grid.n-7, .card-grid.n-4, .card-grid.n-2 { grid-template-columns: 1fr; gap: 12px; } /* n-2도 1열 — 2열이면 카드 130px에 글자가 세로로 떨어진다 (2026-10-14 검수) */
  .card-grid > .link-card, .card-grid.n-7 > li:last-child { grid-column: auto; flex-direction: row; align-items: stretch; }
  .card-grid > .link-card .card-media, .card-grid.n-7 > li:last-child .card-media { flex: 0 0 96px; align-self: flex-start; margin: 14px 0 14px 14px; }
  .card-grid > .link-card .card-media img, .card-grid > .link-card .card-media .img-slot { border-radius: 8px; }
  .card-grid > .link-card .card-media img, .card-grid > .link-card .card-media .img-slot { width: 96px; height: 96px; aspect-ratio: 1/1; }
  .card-grid > .link-card .card-icon { width: 96px; height: 96px; aspect-ratio: 1/1; border-radius: 8px; }
  .card-grid > .link-card .card-icon svg { width: 40px; height: 40px; }
  .card-grid > .link-card .card-icon span { display: none; }
  .card-grid > .link-card .card-body { padding: 14px 16px; align-self: center; }
  .card-grid > .link-card .card-title { font-size: 1.05rem; margin-bottom: 4px; }
  .card-grid > .link-card .card-body p { font-size: 15px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* 문의 띠 제목 — 페이지마다 같은 H2가 되풀이되지 않게 p로 */
.band-title { margin: 0 0 8px !important; color: #fff !important; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.35; letter-spacing: -0.02em; }
.band-title strong { font-weight: 700; }

/* ── 캐러셀 (사진 여러 장) — rules/image-carousel.md ──
   CSS scroll-snap만으로 밀어 넘긴다(JS 없음에도 동작). 슬라이드 3:2 고정 → 넘겨도 높이가 바뀌지 않는다.
   데스크톱은 옆 사진이 살짝 보이게(88%). 버튼·"n / N" 표시는 사진 위에 떠 있어 자리를 차지하지 않는다(JS가 붙인 .js일 때만 보임). */
.carousel { position: relative; margin-top: 32px; max-width: 100%; }
.carousel-track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; padding-bottom: 6px; border-radius: var(--radius-lg); }
.carousel-track:focus-visible { outline: 3px solid var(--deep-500); outline-offset: 3px; }
.carousel-slide { flex: 0 0 88%; aspect-ratio: 3 / 2; scroll-snap-align: center; border-radius: var(--radius-lg); overflow: hidden; background: var(--deep-900); }
.carousel-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.carousel-slide img.is-portrait { object-fit: contain; }
.carousel-btn { display: none; position: absolute; top: calc(50% - 3px); transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--deep-800); cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(45, 36, 30, .22); transition: background .2s var(--ease), opacity .2s var(--ease); }
.carousel-btn:hover { background: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.prev .ico { transform: scaleX(-1); }
.carousel-btn.next { right: 12px; }
.carousel-count { display: none; position: absolute; right: 14px; bottom: 20px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(45, 36, 30, .78); color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.carousel.js .carousel-btn { display: inline-flex; }
.carousel.js .carousel-count { display: block; }
.single-photo img, .single-photo .img-slot { width: 100%; border-radius: var(--radius); margin-top: 32px; }
@media (max-width: 899.98px) {
  .carousel-slide { flex-basis: 100%; }
  .carousel-track { gap: 10px; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-btn.prev { left: 8px; } .carousel-btn.next { right: 8px; }
  .carousel-count { right: 10px; bottom: 16px; }
}

/* 스크롤 등장 애니메이션 (site.js가 첫 화면 아래 요소에만 .rv를 붙인다, 사용자 지정 2026-10-08)
   2026-11-25 사용자 지정 "https://dyderm.com/ 여기처럼, 모든 컴포넌트 동일" — dyderm animation.css의 reveal-up 값 그대로:
   아래 50px에서 올라오며 나타남, 1s ease-out. 요소 종류별 모양(2026-11-03)은 없앴다. 같이 나타나는 요소의 차례 지연은 site.js */
.rv { opacity: 0; transform: translateY(70px); transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(.22, .8, .3, 1); }
/* 2026-11-27 사용자 지정 "너무 일정 — dyderm.com 스크롤 애니메이션 여러 개 따라해" — dyderm reveal-up/left/right/zoom-in/bg를 모양별로(site.js가 고른다)
   rv--l·rv--r: 사진·글이 좌우로 나란한 줄의 왼쪽 칸은 왼쪽에서, 오른쪽 칸은 오른쪽에서 / rv--z: 사진은 살짝 크게 시작해 제자리로(1.5s) / rv--f: 깔린 배경 사진은 투명도만 */
.rv.rv--l { transform: translateX(-80px); }
.rv.rv--r { transform: translateX(80px); }
.rv.rv--z { transform: scale(1.08); transition: opacity 1.5s ease-out, transform 1.6s cubic-bezier(.22, .8, .3, 1); }
.rv.rv--f { transform: none; transition: opacity 1.4s ease-in-out; } /* 2026-11-25 "더 잘 보이게" — 50px·1s → 70px·1.2s, 시작은 화면 아래 20% 선(site.js) */
.sc-faq__item.rv { transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(.22, .8, .3, 1), background-color .3s, box-shadow .3s; } /* sc.css의 FAQ transition(배경·그림자)이 등장 transition을 덮지 않게 둘 다 */
.rv.in, .rv.rv--l.in, .rv.rv--r.in, .rv.rv--z.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ── 원장 카드·프로필 ── */
.doctor-grid { grid-template-columns: minmax(0, 520px); }
@media (min-width: 900px) { .wrap:has(> .doctor-grid):not(:has(> .prose)) > .doctor-grid { grid-template-columns: minmax(0, 1fr); } } /* 소개 문장 없이 카드 1장만 있는 섹션은 카드를 넓혀 오른쪽이 비지 않게 */
.doctor-card { flex-direction: row; }
.doctor-card .doctor-photo, .doctor-card .img-slot { width: 200px; flex: none; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; border-radius: 0; }
.doctor-meta { padding: 24px; align-self: center; }
.doctor-meta ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; }
.doctor-name { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin: 0; color: var(--deep-800); }
.doctor-name small { font-size: .78em; font-weight: 600; color: var(--deep-500); margin-left: 4px; }
.doctor-meta a { text-decoration: none; }
.doctor-meta a::after { content: ""; position: absolute; inset: 0; }
.doctor-card:has(a):hover { border-color: var(--deep-500); }
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; margin-top: 32px; align-items: start; }
.profile-photo { position: relative; z-index: 1; }
.profile-photo img, .profile-photo .img-slot { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 10%; border-radius: var(--radius); }
.profile-panel { margin: 64px 0 0 -40px; padding: 40px 44px 44px 84px; border-radius: var(--radius); }
.bg-white .profile-panel { background: var(--ivory); }
.bg-ivory .profile-panel, .bg-sand .profile-panel { background: #fff; }
.profile-firm { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--deep-500); }
.profile-name { font-size: 1.7rem; font-weight: 700; color: var(--deep-800); margin: 0; }
.profile-name span { font-size: .62em; font-weight: 600; color: var(--muted); margin-left: 10px; }
.profile-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 24px; }
.profile-label { font-weight: 700; color: var(--deep-800); margin: 0 0 10px; }
.profile-col ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.profile-col li + li { margin-top: 6px; }
.profile-col strong { color: var(--deep-800); }

/* ── 주요 정보 띠 (메인) — 숫자 폭 고정 ── */
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts li { margin: 0; padding: 22px 20px; border-radius: var(--radius-sm); border-top: 2px solid var(--accent-500); }
.bg-white .facts li { background: var(--ivory); }
.bg-ivory .facts li, .bg-sand .facts li { background: #fff; }
.facts strong { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--deep-800); font-variant-numeric: tabular-nums; line-height: 1.25; }
.facts span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ── 오시는 길: 표 왼쪽 · 카카오맵 이미지지도 오른쪽 (rules/location-map.md) ── */
/* 지도 그림 크기(598×718)대로 자리를 미리 잡아, 늦게 받아져도 아래가 밀리지 않는다. 지도 글자가 잘리지 않게 자르지 않고 줄이기만 한다 */
.address-map { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ivory); }
.address-map img { display: block; width: 100%; height: auto; aspect-ratio: 598 / 718; object-fit: contain; }
@media (min-width: 900px) { .address-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; } }
.hours-box { max-width: 640px; }
.hours { min-width: 420px; }
.address-layout { display: grid; gap: 20px; align-items: start; }
.sec .address-layout .address-card { max-width: none; padding: 0; background: none; }
.address-layout .address-card .cta-row { margin-top: 20px; }
.hours th[scope=col]:first-child { width: 30%; }
.hours th[scope=col]:last-child { width: 22%; white-space: nowrap; }

/* 카드 1장 섹션 — 가로형 (사진 왼쪽, 글 오른쪽) */
.card-grid.n-1 { grid-template-columns: minmax(0, 760px); }
@media (min-width: 600px) {
  .card-grid.n-1 > .card { flex-direction: row; }
  .card-grid.n-1 > .card .card-media { flex: 0 0 46%; }
  .card-grid.n-1 > .card .card-media img, .card-grid.n-1 > .card .card-media .img-slot { height: 100%; }
  .card-grid.n-1 > .card .card-body { align-self: center; }
}

/* ── 모바일 — 위 원장 카드·프로필·주요 정보·진료시간 규칙보다 뒤에 둬야 덮어쓴다 ── */
@media (max-width: 899.98px) {
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-card .doctor-photo, .doctor-card .img-slot { width: 132px; }
  .doctor-meta { padding: 14px 16px; }
  .doctor-meta ul { font-size: 14px; }
  .profile { grid-template-columns: 1fr; gap: 0; }
  .profile-photo { max-width: 300px; width: 72%; margin-inline: auto; }
  .profile-panel { margin: -40px 0 0; padding: 60px 20px 28px; }
  .profile-cols { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .facts li { padding: 16px 14px; }
  .hours { min-width: 0; }
  .hours th, .hours td { padding: 10px 8px; }
  .hours tbody th { white-space: nowrap; } /* "평일(월~금)"이 ~ 뒤에서 꺾이지 않게 — 줄바꿈은 시간·비고 칸이 받는다 (table-no-wrap.md) */
  .hours th[scope=col]:first-child { width: auto; }
}
@media (max-width: 420px) {
  .doctor-card .doctor-photo, .doctor-card .img-slot { width: 104px; }
}

/* ── 2026-10-12 화면 검수 반영 ── */
/* 머리·히어로 운영·감수 표시 */
.hero .byline { color: var(--on-dark-muted); font-size: 14px; margin: 18px 0 0; }
.hero .byline a { color: var(--accent-300); }
/* 목록 뒤 주의 문장(※) */
.note { font-size: 15px; color: var(--muted); margin: 16px 0 0; }
.prose .note, .split-text .note { max-width: 42em; }
/* 표 이름 — 가로로 미는 칸 밖 */
.table-caption { font-weight: 700; color: var(--deep-800); margin: 0 0 10px; text-wrap: balance; }
/* 2칸 표(구분·기준): 화면 폭에 맞춰 고정 배치, 머리칸 96px(모바일 88px), 긴 글자는 줄바꿈 — 가로 스크롤 없음 */
table.t2 { min-width: 0; table-layout: fixed; }
table.t2 .col-k { width: 96px; }
table.t2 td { overflow-wrap: normal; } /* 칸 낱말을 중간에서 끊지 않는다 — 넘치면 .table-wrap 안에서 가로로 민다(table-no-wrap.md, design-lint 4) */
@media (min-width: 600px) { table.t2 .col-k { width: 168px; } }
table.t2 tbody th { overflow-wrap: normal; } /* 머리칸 낱말(사고일부터 등)은 중간에서 끊지 않는다 */
@media (max-width: 599.98px) { table.t2 .col-k { width: 96px; } table.t2 th, table.t2 td { padding: 10px 10px; } table.t2 tbody th { padding: 10px 8px; font-size: 15px; } }
/* 절차도: 600px 미만은 그림 대신 같은 내용의 단계 목록(글자 16px), 출처 줄은 그림 밖 */
.flow { margin: 0; }
.flow img { width: 100%; border-radius: var(--radius); }
.flow figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.flow-steps { display: none; }
.flow-steps .steps { margin-top: 0; }
@media (max-width: 599.98px) { .flow-img { display: none; } .flow-steps { display: block; } .flow:not(:has(.flow-steps)) { display: none; } } /* 작은 화면용 단계 목록이 없는 절차도는 폰에서 글자가 10px 안팎이라 숨기고, 같은 내용의 표에 맡긴다 */
@media (min-width: 600px) and (max-width: 899.98px) { .flow { max-width: 480px; margin-inline: auto; } }
.split.split-top { align-items: start; }
/* H3 두 개를 2칸 카드로 (입원 진료 대상) */
.subs.subs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.subs.subs-cols > .sub { max-width: none; padding: 28px; border-radius: var(--radius); }
.bg-white .subs.subs-cols > .sub { background: var(--ivory); }
.bg-ivory .subs.subs-cols > .sub, .bg-sand .subs.subs-cols > .sub { background: #fff; }
.subs.subs-cols > .sub p:last-child { margin-bottom: 0; }
@media (max-width: 767.98px) { .subs.subs-cols { grid-template-columns: 1fr; gap: 14px; } .subs.subs-cols > .sub { padding: 22px 20px; } }
/* 사진 한 장 섹션 — 제목 위·사진 아래 */
.stack-photo { margin-top: 32px; }
.stack-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); } /* 사진 1장 섹션도 캐러셀과 같은 폭·비율 — 옆이 비지 않게 */
/* 카드 1장: 1280px 이상에서도 오른쪽이 비지 않게 전체 폭 사진+글 2칸 */
.card-grid.n-1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  .card-grid.n-1 > .card .card-media { flex: 0 0 50%; }
  .card-grid.n-1 > .card .card-body { padding: 32px 36px; }
}
/* 카드 3장: 600~899px은 2+1로 남지 않게 1열 가로형 */
@media (min-width: 600px) and (max-width: 899.98px) {
  .card-grid.n-3 { grid-template-columns: 1fr; gap: 14px; }
  .card-grid.n-3 > .card { flex-direction: row; }
  .card-grid.n-3 > .card .card-media { flex: 0 0 38%; }
  .card-grid.n-3 > .card .card-media img { height: 100%; }
  .card-grid.n-3 > .card .card-body { align-self: center; }
}

/* ── 2026-10-12 재검수 반영 ── */
/* 2칸 표 머리칸: 600px 이상 184px("…받을 때"의 "때"가 혼자 다음 줄로 떨어지지 않게) */
@media (min-width: 600px) { table.t2 .col-k { width: 184px; } }
/* 머리칸이 두 줄이 될 때("검토 결과에 이의가 있을 때") 마지막 낱말 하나만 다음 줄로 가지 않게 줄 길이를 고르게 */
table.t2 tbody th { word-break: keep-all; text-wrap: balance; }
/* 절차도: 그림 안 가장 작은 글자가 24px/960px라 520px 이상이어야 13px 이상으로 보인다.
   600~1199px은 글·그림을 위아래로 쌓고 그림은 520px 가운데, 1200px 이상은 그림 칸을 520px로 고정 */
@media (min-width: 600px) and (max-width: 899.98px) { .flow { max-width: 520px; } }
@media (min-width: 900px) and (max-width: 1199.98px) {
  .split:has(> .split-media .flow) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split-media .flow { max-width: 520px; margin-inline: auto; }
}
@media (min-width: 1200px) { .split:has(> .split-media .flow) { grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; } }
/* 카드 1장(메인 교통사고): 1024px 이상은 사진 칸 40%·높이 제한 — 글 칸 아래가 크게 비지 않게 */
@media (min-width: 1024px) {
  .card-grid.n-1 > .card .card-media { flex: 0 0 40%; max-height: 280px; overflow: hidden; }
  .card-grid.n-1 > .card .card-media img { height: 100%; max-height: 280px; }
}
/* 대표원장 카드 + 소개 문단: 1024px 이상 두 칸(카드 520px 왼쪽, 문단 오른쪽) — 카드 옆이 비지 않게 */
@media (min-width: 1024px) {
  .wrap:has(> .doctor-grid):has(> .prose) { display: grid; grid-template-columns: 520px minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .wrap:has(> .doctor-grid):has(> .prose) > h2 { grid-column: 1 / -1; }
  .wrap:has(> .doctor-grid):has(> .prose) > .prose { grid-column: 2; grid-row: 2; }
  .wrap:has(> .doctor-grid):has(> .prose) > .doctor-grid { grid-column: 1; grid-row: 2; margin-top: 0; }
}
/* 링크 카드 안의 하위 링크(메인 교통사고 카드: 자동차보험 진료 안내·입원실) — 카드 전체 링크 덮개(::after) 위로 올려 따로 누를 수 있게 */
.link-card .card-body .cta-row { position: relative; z-index: 1; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.link-card .card-body .cta-row .btn { min-width: 0; width: auto; flex: 0 0 auto; min-height: 44px; padding: 8px 16px; font-size: 15px; }

/* ── 오시는 길 #directions: 위 줄(문단+외관 사진)과 아래 줄(주소 표+카카오 지도)의 열을 맞춘다 (2026-10-12 화면 검수) ── */
#directions .split + .address-layout { margin-top: 40px; }
@media (min-width: 900px) { #directions .address-layout { gap: 28px; } } /* 위 줄(.split) 간격과 같게 — 열 끝을 맞춘다 */
@media (min-width: 900px) { #directions .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; } }
@media (min-width: 600px) and (max-width: 899.98px) { #directions .split-media { max-width: 520px; margin-inline: auto; } } /* 한 칸으로 접힌 외관 사진은 가운데 (responsive-gutter.md 3장) */
@media (min-width: 720px) and (max-width: 899.98px) {
  .address-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; } /* 태블릿: 표와 지도 2칸 — 지도 오른쪽이 비지 않게. 720 미만은 표가 좁아 한 칸으로 쌓는다 */
  .address-media { max-width: none; }
}

/* 하위 페이지 H1의 상호(쉼표 뒤)는 좁은 화면에서 늘 다음 줄 — 대체 글꼴과 Pretendard의 줄 수가 같아지게(layout-stability, 2026-10-12) */
@media (max-width: 420px) { .page-head h1 .h1-name { display: block; } }

/* ── 1199px 이하(태블릿·좁은 데스크톱·모바일): 글 칸 최대 폭(42em·52em·660px·640px·420px 등)을 풀어 글·표·카드가 좌우 여백(--gutter)만 남기고 끝까지 오게 한다.
   1200px 이상은 읽기 좋은 줄 길이(한 줄 40~45자)를 위해 그대로 둔다 (responsive-gutter.md 2장, 사용자 지정 2026-10-14) ── */
@media (max-width: 1199.98px) {
  /* 글이 사진 오른쪽(옅은 막)까지 오므로 막을 고르게 짙게 — 글자 대비 4.5:1 */
  .hero-shade { background: linear-gradient(180deg, rgba(31, 24, 18, .76) 0%, rgba(31, 24, 18, .84) 100%); }
  .page-head-photo::after { background: linear-gradient(180deg, rgba(31, 24, 18, .76) 0%, rgba(31, 24, 18, .84) 100%); }
  .hero-text, .page-head.has-bg .page-head-text, .page-head .lead,
  .prose, .prose > *, .sub, .sub:not(.sub-media) .card-body > *, .note, .prose .note, .split-text .note,
  .steps, .law, .faq, .address-card, .hours-box { max-width: none; }
  .hours { max-width: none; width: 100%; }
}
/* 900~1023px: 대표원장 카드가 520px에 묶여 왼쪽에 붙지 않게 컨테이너를 채운다(1024px 이상은 소개 문단과 2칸, 899px 이하는 이미 1칸) */
@media (min-width: 900px) and (max-width: 1023.98px) { .doctor-grid { grid-template-columns: minmax(0, 1fr); } }

/* 샌드(FAQ·강조) 바탕 위 본문 링크 — 강조 갈색(#6c5541)은 샌드 대비 4.35:1이라 본문 글자색 + 밑줄로 (12:1) */
.bg-sand a:not(.btn) { color: var(--ink); text-decoration: underline; }


/* 진료 분야 카드 10장(n-10): 마지막 줄에 1장만 남지 않게 — 600~1023px 2열, 1024px 이상 4열 + 마지막 두 장 가로형 2칸씩 (design 검수 R-12, 2026-10-14) */
@media (min-width: 600px) { .card-grid.n-10 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .card-grid.n-10 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid.n-10 > li:nth-last-child(-n+2) { grid-column: span 2; }
}
/* 가로형(사진·아이콘 왼쪽 + 글 오른쪽)은 글 칸이 넉넉한 1280px 이상에서만. 아이콘 칸은 비율 대신 글 높이를 따른다 — 1024~1240px 글자 잘림 (design 재검수, 2026-10-14) */
@media (min-width: 1280px) {
  .card-grid.n-10 > li:nth-last-child(-n+2) { flex-direction: row; }
  .card-grid.n-10 > li:nth-last-child(-n+2) .card-media { flex: 0 0 40%; min-width: 0; }
  .card-grid.n-10 > li:nth-last-child(-n+2) .card-icon { aspect-ratio: auto; min-height: 100%; }
  .card-grid.n-10 > li:nth-last-child(-n+2) .card-body { align-self: center; min-width: 0; }
}
/* 360px에서 주요 정보 큰 글자("토요일 14:00")가 두 줄로 꺾이지 않게 */
@media (max-width: 400px) { .facts strong { font-size: 1.3rem; } } /* "토요일 14:00"이 360px 칸 안에서 한 줄 — nowrap 대신 글자를 줄인다 */

/* 한약 진열 사진(세로)은 3:2 카드에서 진열대가 보이게 위쪽을 잡는다 (design 검수 R-10) */
.card-media img[src*="display-1"] { object-position: 50% 20%; }

.hero-practice ul { overscroll-behavior-x: contain; } /* Safari·Mac: 옆으로 미는 줄이 페이지 뒤로 넘기기로 이어지지 않게 (R-29) */

/* 이미지 없는 텍스트 카드(분야·관련 페이지) — 제목 옆 화살표. 카드 전체 누름 영역(.card-title a::after)은 건드리지 않는다 (design 검수 R-11, 2026-10-14) */
.link-card:not(:has(.card-media)) .card-title { display: flex; align-items: center; gap: 8px; }
.link-card:not(:has(.card-media)) .card-title::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid var(--deep-500); border-right: 2px solid var(--deep-500); transform: rotate(45deg); transition: transform .2s var(--ease); }
.link-card:not(:has(.card-media)):hover .card-title::after { transform: translateX(3px) rotate(45deg); }

/* 1) 히어로 진료 분야 바로가기 — 모든 폭에서 글 칸 안, 넘치면 옆으로 밀고 오른쪽 끝을 흐린다 (design 검수 R-06) */
@media (min-width: 768px) {
  .hero-practice { width: max-content; max-width: calc(min(100vw, var(--wrap) + 2 * var(--gutter)) - 2 * var(--gutter)); } /* 글 칸보다 넓게, 본문 폭까지 — 데스크톱에서 다섯 칸이 다 보이게 */
  .hero-practice ul { padding-inline-end: 28px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .hero-practice ul::-webkit-scrollbar { display: none; }
}
/* 3) 세로 사진 — 화면보다 커지거나 원본보다 늘어나지 않게. 비율(3:4)로 자리를 미리 잡아 불러온 뒤 높이가 바뀌지 않게 (design 검수 R-12, layout-stability) */
.split-media img.is-portrait, .stack-photo img.is-portrait { aspect-ratio: 3 / 4; object-fit: cover; margin-inline: auto; }
@media (max-width: 899.98px) { .split-media img.is-portrait, .stack-photo img.is-portrait { width: 100%; max-width: 420px; height: auto; } }
@media (min-width: 900px) { .split-media img.is-portrait, .stack-photo img.is-portrait { width: min(100%, 360px); height: auto; } } /* 3:4 유지, 높이 480px 안쪽 — 짧은 글 칸 옆에서도 덜 길게 (design 재검수) */
.stack-photo.after { margin-top: 28px; }
/* ※ 주의 문장 항목은 글머리표 없이 */
li.note-li { list-style: none; margin-left: -1.2em; color: var(--muted); }
/* 5) 진료 분야 카드 11장 — 마지막 줄이 1장·빈 칸으로 남지 않게 (design 검수 R-12) */
@media (min-width: 600px) and (max-width: 1023.98px) { .card-grid.n-11 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-grid.n-11 > li:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .card-grid.n-11 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card-grid.n-11 > li:last-child { grid-column: span 2; } }
/* 6) 줄이 "·"로 시작하지 않게 — 히어로 리드·인사말은 낱말 안에서 끊지 않는다(body의 overflow-wrap:anywhere 대신). 넘칠 만큼 긴 낱말이 없는 글 칸 (design 검수 R-25) */
.hero .lead, #greeting p, .page-head .lead { overflow-wrap: break-word; }
/* 표 뒤에 오는 사진은 표와 같은 왼쪽 축에 (design 재검수 R-14) */
.stack-photo.after img.is-portrait { margin-inline: 0; }
/* 캐러셀 세로 사진은 3:2 칸을 채워 자른다(좌우 갈색 띠 없이), 번호 표시는 지금 장 안 왼쪽 아래 (design 재검수 R-09, 2026-10-14) */
.carousel-slide img.is-portrait { object-fit: cover; object-position: 50% 60%; }
.carousel-count { right: auto; left: 14px; }
/* 표 뒤 사진은 표보다 커지지 않게 (design 재검수 R-11) */
@media (min-width: 900px) { .stack-photo.after img { width: min(100%, 720px); } }
/* 모든 페이지 본문 영역은 컨테이너(.wrap) 폭에 꽉 채운다 — 글 칸·FAQ·단계·근거·주소·진료시간표의 폭 제한을 푼다 (사용자 지정 2026-10-14: "모든페이지 컨텐츠 영역을 컨테이너에 꽉채워"). 히어로·페이지 머리 글은 사진 위 가독성 때문에 그대로 */
.prose, .sub, .steps, .law, .faq, .address-card, .hours-box, .prose .note, .split-text .note { max-width: none; }
.hours { max-width: none; width: 100%; }
@media (min-width: 900px) { .stack-photo.after img:not(.is-portrait) { width: 100%; } }


/* 헤더 네이버 예약 — 외곽선 알약(전화 버튼 왼쪽). 메뉴가 한 줄에 들어가는 넓은 화면에서만, 좁으면 하단 퀵바·문의 띠의 예약 버튼이 맡는다 */
.header-book { flex: none; display: none; align-items: center; gap: 6px; min-height: 44px; padding: 6px 16px; margin-right: 8px; border-radius: 999px; border: 1px solid rgba(178, 151, 128, .4); color: var(--deep-800); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.header-book:hover { background: #f1ece6; border-color: var(--deep-500); }
/* 글 칸(1080px) 안에 메뉴 8칸 + 전화 버튼이 꽉 차 헤더 예약 버튼은 내지 않는다 — 예약은 히어로·문의 띠·퀵바가 맡는다 */

/* ══ 모던 리프레시 (사용자 지정 2026-10-15 — references/build/modern-design.md) ══
   격자·칸 배치·섹션 순서는 그대로. 모서리·그림자·상태·움직임·사진 크기만 바꾼다. 색은 남색·골드 토큰 안에서.
   조합: 헤더 B · 버튼 A · 제목 A · 카드 B · 히어로 B+C · 띠 A · FAQ B · 표 B · 절차 B · 사진 C (주한의원과 헤더·카드·띠·표·절차 다섯 표면이 다름) */
:root {
  --shadow-sm: 0 1px 2px rgba(45, 36, 30, .05), 0 3px 10px rgba(92, 74, 60, .06);
  --shadow-md: 0 2px 4px rgba(45, 36, 30, .04), 0 12px 28px rgba(92, 74, 60, .11);
  --shadow-lg: 0 4px 8px rgba(45, 36, 30, .05), 0 22px 46px rgba(92, 74, 60, .16);
}


/* 버튼 A — 같은 계열 두 톤 그라디언트(135°) + 브랜드색 그림자, hover 1px 떠오름. 폭(min-width)·높이 그대로 */
.btn { transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:not(.btn-line):not(.btn-ghost):not(.btn-gold) { background: linear-gradient(135deg, var(--deep-700) 0%, var(--deep-900) 100%); border-color: transparent; box-shadow: 0 6px 16px rgba(92, 74, 60, .24); }
.btn:not(.btn-line):not(.btn-ghost):not(.btn-gold):hover { background: linear-gradient(135deg, var(--deep-700) 0%, var(--deep-900) 100%); box-shadow: 0 10px 22px rgba(92, 74, 60, .32); }
.btn-gold, .btn-gold:hover { background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-400) 100%); border-color: transparent; }
.btn-gold { box-shadow: 0 6px 18px rgba(219, 202, 181, .28); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(219, 202, 181, .40); }

/* 섹션 제목 A — 제목 위 짧은 막대(36×4px, 갈색 → 골드 같은 계열) */
.sec h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--deep-500), var(--accent-500)); margin-bottom: 16px; }

/* 카드 B — 테두리만, hover 때 배경이 남색 틴트로 바뀌고 화살표가 4px 이동(떠오름·그림자 없음). 섹션과 반대 톤 바탕은 그대로 */
.card { border: 1px solid rgba(92, 74, 60, .16); box-shadow: none; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.link-card:hover, .link-card:focus-within { background-color: #f1ece6; border-color: rgba(178, 151, 128, .5); }
.link-card .ico, .link-card svg:last-child { transition: transform .25s var(--ease); }
.link-card:hover .ico, .link-card:focus-within .ico { transform: translateX(4px); }
.subs.subs-cols > .sub, .address-card { border-radius: var(--radius-lg); }

/* 히어로·하위 머리 B — 슬로건(eyebrow)을 알약 배지로. 바탕은 막보다 더 짙게(골드 틴트 바탕은 사진 위를 밝혀 글자 대비 3.75~4.49:1 — design 검수 R-16, 2026-10-15), 테두리만 골드 */
.hero .eyebrow, .page-head .eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(45, 36, 30, .32); border: 1px solid rgba(219, 202, 181, .38); color: var(--accent-300); letter-spacing: 0; line-height: 1.5; }
/* 767px 이하: 배지가 두 줄로 접혀 바로 아래 분야 바로가기 알약 링크와 같은 모양이 되므로 글자 줄로만 (design 검수 R-06) */
@media (max-width: 767.98px) { .hero .eyebrow, .page-head .eyebrow { display: block; padding: 0; border: 0; border-radius: 0; background: none; } }
/* 히어로·하위 머리 C — 오른쪽 위에 골드 빛 한 점(글 칸 반대쪽, 낮은 농도라 글자 대비 4.5:1 유지) */
.hero-shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 420px at 92% 6%, rgba(219, 202, 181, .16), transparent 70%); pointer-events: none; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 360px at 94% 0%, rgba(219, 202, 181, .14), transparent 70%); pointer-events: none; }
/* 분야 바로가기 줄은 옆으로 미는 칸(overflow-x: auto) 안이라 위로 떠오르면 윗부분이 잘린다 — 색·테두리만 바꾼다(2026-10-15 사용자 지적) */
:is(.hero, .sc-h2) .hero-practice a { transition: background-color .2s var(--ease), border-color .2s var(--ease); }

/* 문의 띠 A — 짙은 남색 바탕 + radial 빛 두 점(골드 한 점, 밝은 남색 한 점. 낮은 농도라 글자 대비 4.5:1 유지) */
.band { position: relative; isolation: isolate; background:
  radial-gradient(520px 300px at 8% 0%, rgba(219, 202, 181, .14), transparent 70%),
  radial-gradient(600px 340px at 96% 100%, rgba(168, 138, 112, .22), transparent 70%),
  var(--deep-800); }

/* FAQ B — 상자 대신 구분선 목록 + 오른쪽 둥근 +/− 단추 */

/* 표 B — 머리 행 단색(짙은 갈색) + 줄무늬(짝수 행 옅은 크림 틴트). 칸 크기·패딩 그대로 */
thead th { background: var(--deep-800); color: #fff; }
tbody tr:nth-child(even) > th, tbody tr:nth-child(even) > td { background: rgba(92, 74, 60, .06); } /* 크림 틴트 — 메인 색 계열(design 검수 R-17) */

/* 절차 B — 번호 원을 잇는 세로 연결선(타임라인). 선은 각 칸 왼쪽 번호 원 가운데(38px)를 지나 다음 칸까지(gap 14px) 이어진다 */
.steps li::after { content: ""; position: absolute; left: 37px; top: 52px; bottom: -15px; width: 2px; background: linear-gradient(var(--deep-500), rgba(178, 151, 128, .25)); }
.steps li:last-child::after { display: none; }
.steps li::before { z-index: 1; box-shadow: 0 0 0 4px rgba(178, 151, 128, .12); }

/* 사진 C — 큰 모서리(20px, 한의원 모서리 세 단계 중 큰 것) */
.split-media img, .stack-photo img, .single-photo img, .page-head-media img, .profile-photo img, .flow img { border-radius: var(--radius-lg); }
.law { box-shadow: var(--shadow-sm); }

/* 본문 사진 띠 — 컨테이너 전체 폭으로 펼치지 않는다(데스크톱 최대 760px, 모바일 560px). 폭을 묶은 사진은 표 뒤 사진(.after)까지 가운데 — 왼쪽에 붙으면 오른쪽만 빈다(design-lint 17) */
.stack-photo, .single-photo { max-width: 760px; margin-inline: auto; }
@media (max-width: 899.98px) { .stack-photo, .single-photo { max-width: 560px; } }
.stack-photo.after img.is-portrait { margin-inline: auto; }

/* 퀵메뉴(넓은 화면) — 떠오름만 */
@media (min-width: 1360px) {
  .quick a { transition: background .2s var(--ease), transform .2s var(--ease); }
  .quick a:hover { transform: translateX(-2px); }
}

/* ── 캐러셀 — 더 작게, 자동 넘김 (image-carousel.md "자동 넘김·크기", 2026-10-15) ──
   900px 이상 한 화면에 2장(scroll-snap start), 그 아래 1장. 3:2 비율 고정이라 넘어가도 높이 그대로.
   일시정지 버튼·진행 막대는 두지 않는다(사용자 지정 2026-10-15) — 멈춤은 site.js의 마우스·포커스·터치·화면 밖·탭 숨김 조건 */
.carousel-track { gap: 16px; scrollbar-width: none; padding-bottom: 0; }
.carousel-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .carousel-slide { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; } }
@media (max-width: 899.98px) { .carousel-slide { flex-basis: 100%; } .carousel-track { gap: 12px; } }
/* 사진은 자르지 않고 통째로(contain) — 칸을 꽉 채우려고 자르면 세로 사진의 엉뚱한 부분만 보인다(사용자 지정 2026-10-15, 예전 R-09 cover를 바꿈).
   남는 자리는 같은 사진을 크게 깔고 흐리게(빌드가 슬라이드에 --slide-bg로 작은 변환본 주소를 넣는다). 테마색 단색은 어색하다는 지적으로 바꿈. 받기 전에는 갈색 바탕 */
.carousel-slide { position: relative; isolation: isolate; background: var(--deep-800); }
.carousel-slide::before { content: ""; position: absolute; inset: -32px; z-index: -1; background: var(--slide-bg, none) center / cover no-repeat; filter: blur(24px) saturate(1.1) brightness(.88); pointer-events: none; }
.carousel-slide img, .carousel-slide img.is-portrait { position: relative; object-fit: contain; object-position: 50% 50%; }
.carousel-btn { width: 44px; height: 44px; background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-md); transition: background .2s var(--ease); }
.carousel-btn:hover { background: #fff; }
.carousel-count { bottom: 14px; background: rgba(45, 36, 30, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .link-card:hover, .link-card:focus-within, .hero .hero-practice a:hover, .quick a:hover { transform: none !important; }
}

/* 표 칸 숫자·괄호가 낱말 중간에서 꺾이지 않게 — 몸 전체의 overflow-wrap:anywhere를 표 안에서만 끈다. 넘치면 .table-wrap 안에서 가로로 민다(table-no-wrap.md) */
.table-wrap th, .table-wrap td { overflow-wrap: normal; }
.table-wrap td { font-variant-numeric: tabular-nums; }

/* ── design 검수 2026-10-16 ── */
/* 카드 5장: 600~1023px은 2칸 + 마지막 1장 전체 폭, 1024px 이상은 6칸 격자에 앞 3장(2칸씩)·뒤 2장(3칸씩) — 빈 칸 없음(R-12) */
@media (min-width: 600px) and (max-width: 1023.98px) { .card-grid.n-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-grid.n-5 > li:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .card-grid.n-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .card-grid.n-5 > li { grid-column: span 2; } .card-grid.n-5 > li:nth-last-child(-n+2) { grid-column: span 3; } }
/* 진료시간 표는 2칸 — 3칸 표용 마지막 칸 22% 고정을 풀고 요일 칸만 좁게(R-22) */
.hours th[scope=col]:last-child { width: auto; white-space: normal; }
.hours th[scope=col]:first-child { width: 34%; }
/* 히어로 리드 줄 끝 한 낱말 방지(R-25) */
.hero .lead, .page-head .lead, .sec h2 { text-wrap: pretty; }

/* ══ 2026-10-19 보강 — 영어 섹션 라벨 · 안내 콘텐츠 카드 · 분야 카드 선 아이콘 ══
   규칙: references/build/modern-design.md 1(섹션 라벨)·1-1(모던 카드 + 선 아이콘), guide-cards.md 2 */
/* 섹션 라벨 — H2 위 한 줄(헤딩 아님). 제목 A의 액센트 막대는 라벨 앞으로 옮긴다(막대·라벨·제목이 세 줄로 쌓이지 않게) */
.sec-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--deep-500); }
.sec-label::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--deep-500), var(--accent-500)); }
.sec .sec-label + h2::before { display: none; }
.split-text > .sec-label { margin-top: 0; }

/* 분야 카드 선 아이콘 — 44px 둥근 틴트 칸, hover 때 칸이 남색으로 차고 선이 흰색 (색 전환만, 크기 불변) */
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: rgba(178, 151, 128, .09); color: var(--deep-500); transition: background-color .25s var(--ease), color .25s var(--ease); }
.card-ico .ico { width: 24px; height: 24px; }
.link-card:hover .card-ico, .link-card:focus-within .card-ico { background: var(--deep-800); color: #fff; }
.link-card:hover .card-ico .ico, .link-card:focus-within .card-ico .ico { transform: none; } /* 화살표만 움직인다 */
@media (max-width: 599.98px) {
  /* 아이콘 왼쪽 가로형 카드가 켜지는 폭에서 격자도 1열로 — 421~599px에 2열 + 아이콘 칸이면 글 칸이 100px라 글자가 낱말마다 꺾였다 (사용자 지적 2026-10-20, 500px "진료 안내") */
  .card-grid.n-7, .card-grid.n-4, .card-grid.n-2 { grid-template-columns: 1fr; gap: 12px; }
  .card-grid > .link-card .card-body { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .card-grid > .link-card .card-ico { width: 40px; height: 40px; margin: 2px 0 0; grid-row: 1 / span 3; }
  .card-grid > .link-card .card-ico .ico { width: 22px; height: 22px; }
}

/* 하단 안내 콘텐츠 — 다른 페이지 썸네일 카드 6장. 899px 이하 가로 스크롤(다음 카드가 조금 보임), 900px 이상 3열 */
.guide-cards .gc-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(220px, 62%); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 8px; }
.guide-cards .gc-list > li { margin: 0; scroll-snap-align: start; display: flex; }
.gc-card { display: flex; flex-direction: column; width: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid rgba(92, 74, 60, .14); color: inherit; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.bg-white .gc-card { background: var(--ivory); }
.gc-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.gc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.gc-title { font-size: 1.05rem; font-weight: 700; line-height: 1.45; color: var(--deep-800); }
.gc-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }
.gc-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--deep-500); }
.gc-more span { display: inline-block; transition: transform .25s var(--ease); }
.gc-card:hover, .gc-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(178, 151, 128, .4); }
.gc-card:hover .gc-more span, .gc-card:focus-visible .gc-more span { transform: translateX(4px); }
@media (min-width: 600px) { .guide-cards .gc-list { grid-auto-columns: minmax(240px, 40%); } }
@media (min-width: 900px) { .guide-cards .gc-list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .gc-card, .gc-more span, .card-ico { transition: none; } .gc-card:hover, .gc-card:focus-visible { transform: none; } }
.link-card .card-ico svg.ico { width: 24px; height: 24px; } /* 카드 공통 .ico(20px) 규칙보다 앞서게 */
@media (max-width: 599.98px) { .card-grid > .link-card .card-ico svg.ico { width: 22px; height: 22px; } }
/* 주요 정보 띠의 긴 칸 — 900px 이상 4칸 한 줄에서 두 줄로 꺾이지 않게 글자만 줄인다(사용자 지정 2026-10-19). 칸 높이는 다른 칸과 같게 둔다 */
@media (min-width: 900px) { .facts strong.is-long { font-size: clamp(1.05rem, 1.75vw, 1.5rem); white-space: nowrap; line-height: calc(1.25 * clamp(1.4rem, 2.6vw, 1.9rem) / clamp(1.05rem, 1.75vw, 1.5rem)); } }
/* 섹션 끝 사진 한 장(.stack-photo — 한의원 소개 시술 뒤 주의사항, 원장 소개 한약 처방, 한약·요실금 페이지)은 컨테이너 폭에 꽉 채운다 (사용자 지정 2026-10-19, 위 760px 띠 규칙을 바꿈) */
.stack-photo, .stack-photo.after { max-width: none; }
.stack-photo img, .stack-photo.after img:not(.is-portrait) { width: 100%; }
/* 글 옆 세로 제품 사진(청류환·나은뉴런)과 오시는 길 카카오 지도는 옆 글 칸 높이에 꽉 채운다 (사용자 지정 2026-10-19).
   사진·지도는 absolute로 칸 높이만 따라가고 행 높이는 글이 정한다 — 사진 때문에 행이 늘지 않게. 한 칸으로 쌓이는 900px 미만은 그대로 */
@media (min-width: 900px) {
  .split:has(> .split-media img.is-portrait) { align-items: stretch; }
  .split-media:has(> img.is-portrait) { position: relative; min-height: 240px; }
  .split-media > img.is-portrait { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; margin: 0; } /* 높이만 글 칸에 맞추고 가로세로 비율은 원본 그대로(자르지 않음, 사용자 지정 2026-10-19) */
  .address-layout { align-items: stretch; }
  .address-media { position: relative; min-height: 360px; }
  .address-media .address-map { position: absolute; inset: 0; }
  .address-map img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; }
}

/* ── 서울미르한방병원 화면 검수 반영 (2026-10-20, design-final.md) ── */
/* 1) 원장 카드 + 소개 문단 격자에 섹션 영어 라벨 줄을 둔다 — 라벨이 1행을 차지해 H2가 카드 아래로 떨어지던 것(R-12) */
@media (min-width: 1024px) {
  .wrap:has(> .doctor-grid):has(> .prose) > .sec-label { grid-column: 1 / -1; grid-row: 1; }
  .wrap:has(> .doctor-grid):has(> .prose) > .sec-label + h2 { grid-row: 2; }
  .wrap:has(> .doctor-grid):has(> .sec-label):has(> .prose) > .prose { grid-row: 3; }
  .wrap:has(> .doctor-grid):has(> .sec-label):has(> .prose) > .doctor-grid { grid-row: 3; }
}
/* 2) 360px 표 — 3열 이하 표는 최소 폭을 풀어 마지막 칸이 화면 밖으로 나가지 않게(R-22, 추나 본인부담률 표) */
@media (max-width: 599.98px) { table:not(:has(th:nth-child(4))) { min-width: 0; } }
/* 3) 약력 없는 원장 프로필 — 이름표만 있는 패널은 내용 크기로(decisions.md 11, R-12) */
.profile-panel:not(:has(.profile-cols)) { justify-self: start; align-self: center; margin-top: 0; padding: 32px 40px 32px 80px; }
@media (max-width: 767.98px) { .profile-panel:not(:has(.profile-cols)) { justify-self: stretch; padding: 24px; } }
.doctor-card:not(:has(.doctor-meta ul)) .doctor-meta { padding: 24px 28px; }
/* 4) 진료 카드 7장 4+3 — 마지막 카드가 남은 두 칸을 채운다(R-12) */
@media (min-width: 1280px) { .card-grid.n-7 > li:last-child { grid-column: span 2; } }

/* ── 공용 디자인 부품(site-components) 테마 — 사이트 색을 --sc-* 토큰으로 옮긴다(새 색 없음). 부품 파일은 sc.css(빌드가 복사) ──
   부품(성격: 따뜻·친근형) — 사이트 CLAUDE.md "부품:" 줄. 2026-10-20 사용자 "지금 적용" */
:root {
  --sc-brand: var(--deep-800);
  --sc-brand-strong: var(--deep-900);
  --sc-brand-hover: var(--deep-900);
  --sc-brand-hi: var(--deep-700);
  --sc-brand-2: var(--deep-500);
  --sc-accent: var(--accent-400);
  --sc-accent-hi: var(--accent-300);
  --sc-accent-line: var(--accent-500);
  --sc-accent-text: var(--deep-500);
  --sc-surface: #ffffff;
  --sc-surface-2: var(--ivory);
  --sc-hover: var(--ivory);
  --sc-tint: var(--ivory);
  --sc-tint-2: var(--sand);
  --sc-scrim: rgba(28, 24, 21, .45);
  --sc-ink: var(--ink);
  --sc-muted: var(--muted);
  --sc-on-dark: var(--on-dark);
  --sc-on-dark-muted: var(--on-dark-muted);
  --sc-line-soft: var(--line);
  --sc-line: var(--line);
  --sc-line-strong: rgba(120, 100, 80, .3);
  --sc-shadow-rgb: 92, 74, 60;
  --sc-shadow-deep-rgb: 45, 36, 30;
  --sc-radius-sm: var(--radius-sm);
  --sc-radius-md: var(--radius);
  --sc-radius-lg: var(--radius-lg);
  --sc-ease: var(--ease);
  --sc-header-h: var(--header-h);
  --sc-container: calc(var(--wrap) + 2 * var(--gutter));
  --sc-gutter: var(--gutter);
  --sc-focus: var(--deep-500);
  --sc-hl-color: var(--accent-500);
  --sc-n3-w: 112px;   /* N3 알약 칸 — 가장 긴 "진료 안내 ⌄"·"오시는 길" 기준 */
  --sc-d3-cols: 4;
}
/* 헤더 N3 — 로고는 높이만 정하고 폭은 원본 비율(256×82 = 3.12:1)대로(design 재검수 R-10: 160×40 고정이라 가로로 28% 늘어났다), 900~1099px는 칸을 줄여 한 줄 여유 24px 이상(design-lint 17) */
.sc-hd__logo img { width: auto; height: 46px; }
@media (min-width: 900px) and (max-width: 1099.98px) {
  :root { --sc-n3-w: 100px; }
  .sc-hd__logo img { width: auto; height: 40px; }
  .sc-m, .sc-dd__btn { font-size: 15px; }
}
@media (max-width: 899.98px) { .sc-hd__logo img { width: auto; height: 38px; } }
/* 드롭다운 D3 — 진료 7개: 4열 × 2줄 */
.sc-dd3__grid a[aria-current="page"] { background: var(--sand); color: var(--deep-800); }
/* 모바일 메뉴 D5 — 하단 고정 바(퀵메뉴) 위까지만 덮는다(전화·길찾기 바가 메뉴에 가리지 않게) */
/* (2차 QB2: 퀵바 z 40이 헤더 50보다 아래라 D5 메뉴가 퀵바를 덮는다 — 옛 하단 바 위까지만 덮던 규칙은 뺐다) */
.sc-mm__sub a[aria-current="page"] { background: var(--sc-surface); color: var(--deep-800); box-shadow: inset 0 0 0 1px var(--line); }

/* 버튼 B3·B5 — 줄 안 배치는 예전 .btn과 같게. 모바일은 꽉 채움(B5는 --fluid) */
.cta-row .sc-btn { margin: 0; }
.band .sc-b5, .hero .sc-b5, .page-head .sc-b5 { box-shadow: none; }
@media (max-width: 599.98px) { .cta-row .sc-b3 { width: 100%; } }
.page-head a.sc-btn, .hero a.sc-btn, .band a.sc-btn { color: inherit; }
.page-head a.sc-b3--on-dark, .hero a.sc-b3--on-dark, .band a.sc-b3--on-dark { color: var(--deep-800); }
.page-head a.sc-b5, .hero a.sc-b5, .band a.sc-b5 { color: var(--deep-800); }

/* 아이콘 칸 I4 — 사이트 카드 아이콘 칸(.card-ico 틴트 44px)은 그대로, 안쪽 아이콘만 두 톤(강조 금색 면) */
.card-ico.sc-icbox--i2 { --sc-tone: var(--accent-500); --sc-tone-o: .55; }
.link-card .card-ico.sc-icbox--i2 svg.sc-ic { width: 26px; height: 26px; }
.link-card:hover .card-ico.sc-icbox--i2, .link-card:focus-within .card-ico.sc-icbox--i2 { --sc-tone: var(--accent-400); --sc-tone-o: .35; }

/* FAQ E3c — 흰 섹션이 기본. 앞 섹션이 흰색이라 연한 금색 섹션에 오면 닫힌 항목은 흰 판, 열린 항목은 한 단 짙은 틴트(섹션과 구분) */
.sc-faq__t > p, .sc-faq__in > p { margin: 0; }
.sc-faq__in > * { font-size: 16px; color: var(--ink); }
.sec:not(.bg-white) .sc-faq--c .sc-faq__item.is-open { background: var(--sand); }
@media (max-width: 599.98px) { .cta-row .sc-b5, .band-actions .sc-btn { width: 100%; } }
@media (min-width: 600px) { .band-actions .sc-b3 { min-width: 220px; } }
/* 작은 글자 14px 이상(design-lint 8): 전화 버튼 꼬리말·모바일 서브메뉴 */
.sc-b5__tx small { font-size: 14px; }
.sc-mm__sub a { font-size: 14px; }
button, input, select, textarea { font: inherit; } /* Safari 폼 요소 글꼴 (safari-mac 1-3) */

/* ── 2차 부품(2026-10-20) 테마·맞춤 ── */
:root {
  --sc-accent-soft: var(--accent-300);   /* 연한 강조 틴트 — K3 바탕 끝 등 */
  --sc-accent-wash: #ffffff;              /* K3 바탕 가운데 — 새 색을 들이지 않고 흰색 */
  --sc-accent-rgb: 179, 154, 124;          /* = --sc-accent(#bea691) */
  --sc-overlay-rgb: 28, 24, 21;           /* 사진 위 막 = 거의 무채색 짙은 먹색(청록 한 방울) — 테마색 막이면 사진이 초록으로 뭉개짐(사용자 2026-10-29) */
  --sc-card-tint: var(--ivory);
  --sc-steps-bg: var(--ivory);
}
/* 전역 li + li 여백이 부품 목록에 새지 않게(design 검수 R-12 — 헤더 첫 메뉴 3px·D3 첫 타일·D5 격자 6px 어긋남) */
:where(.sc-hd, .sc-tb, .sc-cards, .sc-steps, .sc-nu1, .sc-nu2, .sc-car, .sc-gc, .sc-l3, .sc-ft1, .sc-qb, .sc-person, .pf__grid) li + li { margin-top: 0; }
:where(.sc-hd, .sc-tb, .sc-cards, .sc-steps, .sc-nu1, .sc-nu2, .sc-car, .sc-gc, .sc-l3, .sc-ft1, .sc-qb, .sc-person) :is(ul, ol) { padding-left: 0; margin: 0; list-style: none; }
/* 틴트 섹션 위 부품은 흰 판으로(카드·숫자 칸·절차 카드가 바탕에 묻히지 않게, static/CLAUDE.md 9) */
.sec:not(.bg-white) { --sc-card-tint: #ffffff; --sc-steps-bg: #ffffff; --sc-nu1-bg: #ffffff; --sc-nu2-bg: #ffffff; --sc-car-ph: var(--sand); }
/* 섹션 머리 T2 — 옛 H2 막대·영어 라벨 모양을 끈다. 머리 아래 본문과 간격 */
.sc-head--t2 .sec-label::before, .sc-sp__lbl.sec-label::before { display: none; }
.sc-head--t2 .sec-label { display: block; color: var(--deep-500); }
.sc-head__h::before, .sc-sp__h::before, .sec h2.sc-head__h::before { display: none !important; }
.sc-head--t2 { margin-bottom: 32px; }
.sc-head--t2 .sc-head__h { color: var(--deep-800); }
.sc-sp__lbl.sec-label { display: block; margin: 0 0 10px; letter-spacing: .01em; text-transform: none; font-size: 15px; }
/* 분할 SP1 다음 내용과 간격 */
.sc-sp1 + * { margin-top: 32px; }
/* 분야 카드 K3 — 섹션 머리 아래, 7장(1→2→3열) */
.sc-cards { margin-top: 8px; }
/* FAQ 모바일 답 글 폭 — 왼쪽 들여쓰기 줄임(design 검수 R-16) */
@media (max-width: 599.98px) { .sc-faq--c .sc-faq__in > * { padding-left: 16px; } }
/* 오시는 길 버튼 줄 — B5(56px) 옆 보조 버튼 높이 맞춤(design 검수 R-17) */
.cta-row .btn-line, .cta-row .btn-ghost { min-height: 56px; }
/* 히어로 H2 안 진료 분야 바로가기(writing-style 메인 히어로 1-1)와 글쓴이 줄 */
.sc-h2 .hero-practice { margin-top: 16px; }
.sc-h2 .byline { margin-top: 18px; color: var(--on-dark-muted); font-size: 14px; }
.sc-h2 .byline a { color: var(--accent-300); }
.sc-h2 .sc-hero__btn--line + .sc-hero__btn--line { width: auto; padding-inline: 22px; }
/* 원장 카드 A2 — 한 장이라 폭을 묶는다 */
.sc-people { margin-top: 28px; max-width: 760px; }
/* 2차 화면 확인 반영 */
/* 히어로 H2 리드·상담 띠 본문 링크 — 짙은 막 위 밝은 금색. 진료 분야 바로가기는 옛 알약 줄(.hero-practice)을 그대로 쓴다 */
.sc-h2__lead a, .sc-h2__facts a, .sc-l3 a:not(.sc-l3__btn) { color: var(--accent-300); }
.sc-h2__lead a:hover, .sc-h2__facts a:hover, .sc-l3 a:not(.sc-l3__btn):hover { color: #fff; }
/* K3 아이콘 — 원형 칸 그대로, 안쪽만 두 톤(I4: 강조 금색 면) */
.sc-card--k1 .sc-card__ic { --sc-tone: var(--accent-500); --sc-tone-o: .55; }
/* 진료 카드 7장 — 1024px 이상 4열, 마지막 카드 두 칸(4+3, 한 장만 남지 않게) */
@media (min-width: 1024px) { #clinics .sc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } } /* 진료 카드 8장 = 4열 2줄로 꽉 참(마지막 칸 늘리기 없음 — design-lint 21) */
/* 원장 카드 A2 — 버튼 두 개가 한 줄에 들어가게 폭을 넓히고 글자를 꺾지 않는다 */
.sc-people { max-width: 980px; }
.sc-person__btns .sc-btn { white-space: nowrap; }
/* SP1 사진 기준점 — 원장 진찰 사진은 원장 얼굴이 잘리지 않게 왼쪽을 잡는다 */
.sc-sp1__ph img[src*="doctor-kim-consult"] { object-position: 22% 50%; }
/* 2026-10-21 전체 재검수 반영 */
/* 맨 위로 원 — 맨 위에서는 히어로 전화 버튼 끝을 덮어서, 한 화면쯤 내린 뒤에만 보인다(site.js .qb-top-on). 투명도만 바꿔 자리는 그대로(layout-stability) */
@media (max-width: 1279px) {
  .sc-qb__top { opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .qb-top-on .sc-qb__top { opacity: 1; visibility: visible; }
}
/* 캐러셀 이전·다음 — 점 9개에 밀려 타원으로 찌그러지지 않게 */
.sc-car__btn { flex: none; }
@media (max-width: 479px) { .sc-car__ctrl { gap: 10px; } .sc-car__dots i, .sc-car__dots b { width: 16px; } }
/* 사진이 한 화면에 다 들어가면(site.js .is-fit) 가운데에 모으고 넘김 버튼은 자리만 남기고 숨긴다 */
.sc-car.is-fit .sc-car__track { justify-content: center; }
.sc-car.is-fit .sc-car__ctrl { visibility: hidden; }
/* 원장 카드 A2 — 768~1023에서 버튼 두 개가 한 줄이면 글자가 잘려 1열로 쌓는다 */
@media (max-width: 1023px) { .sc-person--a2 .sc-person__btns { grid-template-columns: minmax(0, 1fr); max-width: 360px; } }
/* 원장 프로필 — 약력 없이 이름 패널만이라 왼쪽 절반만 차던 것을 가운데로 */
@media (min-width: 900px) { #profile .profile { max-width: 760px; margin-inline: auto; } }
/* 제목 끝 한 낱말이 혼자 줄을 넘지 않게, 히어로 소개 문장 안 링크는 끊지 않는다 */
.sc-head__h, .sc-sp__h, main h2 { text-wrap: balance; }
.sc-h2__lead a { white-space: nowrap; }
/* 메인 진료 카드 7장 — 768~1023 2열에서 마지막 1장이 반쪽 줄에 남지 않게 두 칸으로 */
@media (min-width: 600px) and (max-width: 1023px) { #clinics .sc-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* 퀵바 — 테두리 없이 그림자만 (사용자 지정 2026-10-21). PC 타일·모바일 맨 위로 원 모두 */
.sc-qb .sc-qb__t, .sc-qb .sc-qb__t:hover, .sc-qb .sc-qb__t:focus-visible { border: 0; }
/* 유리 타일의 안쪽 흰 줄(inset 하이라이트)도 테두리처럼 보여 뺀다 — 바깥 그림자만 (오른쪽 세로 퀵바는 1280px부터) */
@media (min-width: 1280px) {
  .sc-qb--qb2 .sc-qb__t { box-shadow: 0 8px 22px rgba(var(--sc-shadow-rgb), .16); }
  .sc-qb--qb2 .sc-qb__t:hover, .sc-qb--qb2 .sc-qb__t:focus-visible { box-shadow: 0 12px 28px rgba(var(--sc-shadow-rgb), .22); }
}
@media (max-width: 1279px) {
  .sc-qb .sc-qb__t[data-qb="top"] { box-shadow: 0 2px 6px rgba(var(--sc-shadow-rgb), .10), 0 10px 24px rgba(var(--sc-shadow-rgb), .16); }
}

/* 대표원장 인사말 — 사진 옆 패널에 인사말 문단 + 끝에 서명 (사용자 지정 2026-10-21) */
.profile:has(.profile-greet) { grid-template-columns: 300px minmax(0, 1fr); max-width: none; }
.profile-panel:has(.profile-greet) { align-self: center; margin-top: 0; }
.profile-greet p { margin: 0; font-size: 16.5px; line-height: 1.8; color: var(--ink, #1f2a33); }
.profile-greet p + p { margin-top: 14px; }
.profile-greet p:first-child { font-size: 1.2rem; font-weight: 700; line-height: 1.55; color: var(--deep-800); }
.profile-sign { margin: 18px 0 0; padding: 0 0 18px; border-bottom: 1px solid rgba(92, 74, 60, .14); text-align: right; font-size: 15px; font-weight: 600; color: var(--muted); } /* 서명은 인사말 바로 아래 오른쪽, 구분선은 서명 아래(사용자 지정 2026-10-22) */
.profile-sign strong { margin-left: 8px; font-size: 1.35rem; font-weight: 700; color: var(--deep-800); letter-spacing: .04em; }
@media (max-width: 899px) { .profile:has(.profile-greet) { grid-template-columns: 1fr; } }

/* 히어로 진료 칩 줄 — 모바일은 화면 폭에 정확히 맞춘 가로 스크롤 띠(여백 변수와 실제 여백이 달라 6px 넘쳐 잘렸다), 768px 이상은 칸 폭 안에서 줄바꿈 (design-lint 19, 2026-10-21) */
@media (max-width: 767.98px) { .hero-practice { width: 100vw; margin-inline: calc(50% - 50vw); } }
@media (min-width: 768px) { .hero-practice { max-width: 100%; } .hero-practice ul { flex-wrap: wrap; } }

/* 글 카드 + 사진 — 콘텐츠 영역 안 두 칸, 사진은 카드 높이에 맞춰 잘라 채운다(옆 빈 자리 0). 사용자 지정 2026-10-21 */
.fit { display: grid; gap: 20px; }
.fit-card { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-lg, 20px); background: #fff; }
.bg-white .fit-card { background: var(--ivory); }
.fit-card > :first-child { margin-top: 0; }
.fit-card p { margin: 0; }
.fit-card p + p, .fit-card > * + .prose, .fit-card h2 + * { margin-top: 12px; }
.fit-card .sc-btns, .fit-card .ctas { margin-top: 20px; }
.fit-ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg, 20px); aspect-ratio: 4 / 3; }
.fit-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fit-ph img[src*="doctor-kim-consult"] { object-position: 22% 50%; }
@media (min-width: 900px) {
  .fit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; gap: 24px; }
  .fit-card { display: flex; flex-direction: column; justify-content: center; }
  .fit-ph { aspect-ratio: auto; min-height: 300px; }
}
.fit + * { margin-top: 24px; }

/* 원장 프로필·인사말 — 사진과 패널을 겹치지 않고 나란히, 사진은 패널 높이에 맞춰 채운다(사진 아래 빈 자리 0. 사용자 지정 2026-10-21) */
.profile, .profile:has(.profile-greet) { gap: 20px; margin-top: 32px; }
.profile-panel, .profile-panel:not(:has(.profile-cols)), .profile-panel:has(.profile-greet) { margin: 0; padding: clamp(24px, 3.4vw, 44px); align-self: stretch; }
@media (min-width: 900px) {
  .profile, .profile:has(.profile-greet) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: 24px; }
  .profile-photo { position: relative; max-width: none; width: auto; overflow: hidden; border-radius: var(--radius-lg, 20px); }
  .profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 30% 30%; border-radius: 0; }
}
@media (max-width: 899px) {
  .profile, .profile:has(.profile-greet) { grid-template-columns: 1fr; }
  .profile-photo { max-width: none; width: 100%; }
  .profile-photo img { aspect-ratio: 4 / 3; object-position: 30% 30%; }
}

/* 헤더 메뉴 N1 — 알약 바탕 N3 대신(사용자 지정 2026-10-21 "navbar 호버이벤트도 별로"). 드롭다운 버튼도 같은 밑줄, 바탕색 없음 */
.sc-nav--n1 .sc-dd__btn { position: relative; }
.sc-nav--n1 .sc-dd__btn::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--sc-brand-2); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--sc-ease); }
.sc-nav--n1 .sc-dd__btn:hover, .sc-nav--n1 .sc-dd.is-open .sc-dd__btn { background: transparent; color: var(--sc-brand); }
.sc-nav--n1 .sc-dd__btn:hover::after, .sc-nav--n1 .sc-dd__btn:focus-visible::after, .sc-nav--n1 .sc-dd.is-open .sc-dd__btn::after { transform: scaleX(1); transform-origin: left; }
.sc-nav--n1 .sc-dd__btn[aria-current="page"]::after { transform: scaleX(1); background: var(--sc-brand); }
@media (prefers-reduced-motion: reduce) { .sc-nav--n1 .sc-dd__btn::after { transition: none; } }

/* 히어로 배경 사진의 천천히 확대(Ken Burns)가 히어로 폭 밖으로 5px 나가 넘침으로 잡혔다 — 배경 칸 안에서 자른다 */
.sc-h2__bg { overflow: hidden; }
/* 320px대 폰: 2열 표(구분·내용)는 칸이 좁아 기관 이름 같은 긴 낱말이 중간에서 꺾인다 — 구분 줄 위, 내용 줄 아래로 쌓는다 (design-lint 4) */
@media (max-width: 359.98px) {
  .t2, .t2 tbody, .t2 tr, .t2 th, .t2 td { display: block; width: auto; min-width: 0; }
  .t2 colgroup { display: none; }
  .t2 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .t2 tbody th[scope="row"] { padding-bottom: 2px; border-bottom: 0; }
}

/* 소제목 블록 — 글만 42em으로 두면 오른쪽이 비어 카드로 꽉 채운다. 사진 붙은 소제목은 사진이 글 높이에 맞춰 채움 (사용자 지정 2026-10-21 "카드도 적극적으로") */
.subs { gap: 16px; margin-top: 32px; }
.subs > .sub { max-width: none; padding: clamp(22px, 2.8vw, 32px); border-radius: var(--radius-lg, 20px); background: #fff; }
.bg-white .subs > .sub { background: var(--ivory); }
.subs > .sub h3 { margin-top: 0; }
.subs > .sub p:last-child, .subs > .sub ul:last-child { margin-bottom: 0; }
.subs > .sub.sub-media { padding: 0; overflow: hidden; gap: 0; align-items: stretch; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sub.sub-media .card-media { position: relative; min-height: 220px; }
.sub.sub-media .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sub.sub-media .card-body { padding: clamp(22px, 2.8vw, 32px); align-self: center; }
@media (max-width: 767.98px) {
  .subs > .sub.sub-media { grid-template-columns: 1fr; }
  .sub.sub-media .card-media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* 메인 원장 카드 — 콘텐츠 폭을 꽉 채우고 사진 칸을 줄여 카드 안 빈 자리를 줄인다 (여백 없이 채우기 2026-10-21) */
.sc-people { max-width: none; }
@media (min-width: 900px) {
  .sc-person--a2 { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: stretch; }
  .sc-person--a2 .sc-person__photo { position: relative; aspect-ratio: auto; min-height: 280px; }
  .sc-person--a2 .sc-person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
  .sc-person--a2 .sc-person__photo img[src*="doctor-kim-desk"] { object-position: 52% 45%; }
}

/* 메인 원장 카드 인사말 발췌 — 이름 아래, 버튼 위 (여백 없이 채우기 2026-10-21) */
.sc-person__greet { margin: 0 0 24px; padding: 0 0 0 18px; border-left: 3px solid var(--deep-500); }
.sc-person__greet p { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.sc-person__greet p + p { margin-top: 8px; }
.sc-person--a2 .sc-person__name { margin-bottom: 16px; }

/* 옛 분할(.split: 글 | 사진) — 사진이 글 칸 높이를 채운다(design-lint 21 넓힌 기준, 2026-10-21). 문서 확대 이미지 분할은 그대로 */
@media (min-width: 900px) {
  .split:not(:has(.doc-zoom)) { align-items: stretch; }
  .split:not(:has(.doc-zoom)) .split-media { position: relative; min-height: 280px; overflow: hidden; border-radius: var(--radius-lg, 20px); }
  .split:not(:has(.doc-zoom)) .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
}
.sub.sub-media .card-media { min-height: 160px; }

/* 꼬리표 앞 아이콘 (공릉역에서 오는 길 — 사용자 지정 2026-10-21) */
.sec-label.has-ic { display: inline-flex; align-items: center; gap: 8px; }
.sec-label.has-ic svg { width: 22px; height: 22px; flex: none; color: var(--deep-500); }

/* 오시는 길 주소 카드 — 지도 높이를 표 높이에 맞추고, 버튼 줄은 표·지도 아래 전체 폭 (사용자 지정 2026-10-21) */
@media (min-width: 900px) {
  .address-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "t m" "b b"; align-items: stretch; column-gap: 28px; row-gap: 0; }
  .address-layout .address-card { display: contents; }
  .address-layout .address-table { grid-area: t; margin: 0; }
  .address-layout .address-card .cta-row { grid-area: b; }
  .address-layout .address-media { grid-area: m; display: flex; }
  .address-layout .address-map { position: relative; flex: 1; }
  .address-layout .address-map img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 100%; } /* 카카오 로고(아래 오른쪽)가 잘리지 않게 아래 기준으로 자른다 */
}

/* 절차 카드 S3 — 4칸 고정이라 3단계면 한 칸이 비었다. 단계 수만큼 나눠 콘텐츠 폭을 꽉 채운다 (사용자 지정 2026-10-21) */
@media (min-width: 1024px) {
  .sc-steps--s3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* 히어로 특징 줄 — 둘째 항목부터 목록 공통 위 여백이 붙어 첫 항목만 위로 떠 보였다 (사용자 지정 2026-10-21) */
.sc-h2__facts { padding-left: 0; list-style: none; }
.sc-h2__facts li + li { margin-top: 0; }
/* 히어로 진료 칩 — 데스크톱은 한 줄, 칩은 조금 작게 (사용자 지정 2026-10-21) */
@media (min-width: 1024px) {
  .hero-practice { width: max-content; max-width: min(var(--wrap), calc(100vw - 2 * var(--gutter))); } /* 칩 8개가 한 줄에 다 들어가게 글 칸(720px) 밖까지(design 검수 R-06) */
  .hero-practice ul { flex-wrap: wrap; gap: 6px; padding-inline-end: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; } /* 분야 11개 — 한 줄에 안 들어가 두 줄로 감쌈(잘림 방지) */
  :is(.hero, .sc-h2) .hero-practice a { min-height: 38px; padding: 0 13px; font-size: 14px; }
}
/* 사진 묶음이 한 화면(4장) 안에 다 들어가면 콘텐츠 폭을 꽉 채우고, 쓸 일 없는 넘김 버튼 자리도 없앤다(사용자 지정 2026-10-22 "컨텐츠 WIDTH에 꽉채워").
   JS(.is-fit)를 기다리지 않고 장수로 정해 불러온 뒤에도 자리가 바뀌지 않는다 */
@media (min-width: 900px) {
  .sc-car:not(:has(.sc-car__slide:nth-child(5))) .sc-car__slide { flex: 1 1 0; }
  .sc-car:not(:has(.sc-car__slide:nth-child(5))) .sc-car__ctrl { display: none; }
}
/* 메인 히어로 진료 분야 바로가기 — 1023px 이하는 옆으로 미는 줄 대신 히어로 맨 아래 띠의 2열 버튼 격자(사용자 지정 2026-10-22 "히어로 아래 2열 격자").
   마크업은 그대로(eyebrow 다음) 두고 순서만 맨 끝으로 옮겨 히어로 사진 아래 흰 띠처럼 보이게 한다. 7개면 마지막 칸이 두 칸을 차지해 빈 칸이 없다.
   특징 줄은 세로 3줄 대신 한 줄로 감싸 히어로를 줄인다 — 320·360에서 둘째 버튼이 퀵바에 가리지 않게(디자인 검수 R-06) */
@media (max-width: 1023.98px) {
  .sc-h2 { overflow-x: clip; }
  .sc-h2__in { padding-bottom: 0; }
  .sc-h2 { min-height: 0; }
  .sc-h2__text { display: flex; flex-direction: column; max-width: none; }
  .sc-h2__text > * { max-width: 720px; }
  .sc-h2 .hero-practice { order: 99; width: 100vw; max-width: none; margin: 28px 0 0 calc(-1 * var(--sc-gutter)); padding: 16px var(--sc-gutter) 20px; background: var(--white); }
  .sc-h2 .hero-practice ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .sc-h2 .hero-practice li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  :is(.hero, .sc-h2) .hero-practice a { display: flex; justify-content: center; width: 100%; min-height: 46px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--ivory); color: var(--deep-500); font-size: 15px; font-weight: 600; white-space: normal; text-align: center; }
  :is(.hero, .sc-h2) .hero-practice a:hover, :is(.hero, .sc-h2) .hero-practice a:focus-visible { background: var(--deep-500); color: #fff; border-color: transparent; }
  .sc-h2 .sc-h2__facts { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
  .sc-h2 .sc-h2__facts li { white-space: nowrap; }
  .sc-h2 .sc-h2__facts li::before, .sc-h2 .sc-h2__facts li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 0 0; border-radius: 50%; background: var(--accent-300); vertical-align: 3px; }
  .sc-h2 .sc-hero__btns { margin-top: 24px; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .sc-h2 .hero-practice ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sc-h2 .hero-practice li:last-child:nth-child(odd) { grid-column: auto; }
  .sc-h2 .hero-practice li:nth-child(7):last-child { grid-column: span 2; }
}
@media (max-width: 767.98px) { .sc-h2__in { padding-top: 56px; } }
/* 상담 띠 진료시간 — 요일+시간 묶음 안에서는 줄을 꺾지 않는다('토·일·/공휴일' 방지, 디자인 검수 R-31) */
.sc-l3__meta .nb { white-space: nowrap; }
/* 안내 콘텐츠 900~1099px — 2열이면 썸네일이 460px로 너무 커져 3열 유지(디자인 검수 R-11) */
@media (min-width: 900px) and (max-width: 1099px) { .sc-gc--0 .sc-gc__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
/* PC 퀵바 전화 타일 — 짙은 갈색 머리·띠·푸터 위를 지날 때 같은 색이라 묻히지 않게 한 단계 밝은 갈색 + 더 진한 그림자(테두리는 쓰지 않음, 디자인 검수 R-15) */
@media (min-width: 1280px) {
  .sc-qb--qb2 .sc-qb__t[data-qb="call"] { background: linear-gradient(160deg, var(--deep-700), var(--deep-500)); box-shadow: 0 10px 26px rgba(23, 18, 14, .38); }
  .sc-qb--qb2 .sc-qb__t[data-qb="call"]:hover, .sc-qb--qb2 .sc-qb__t[data-qb="call"]:focus-visible { background: var(--deep-500); }
}
/* 글만 있는 짧은 섹션(제목 + 문단뿐) — 글 줄 오른쪽·아래가 비지 않게 섹션과 반대 톤 전체 폭 카드에 담는다(modern-design "여백 없이 채우기" 4, 디자인 검수 R-33 2026-10-22) */
.sec .wrap > .sc-head + .prose:last-child { padding: clamp(22px, 3vw, 36px) clamp(20px, 3.4vw, 44px); border-radius: 20px; background: var(--ivory); }
:is(.bg-ivory, .bg-sand) .wrap > .sc-head + .prose:last-child { background: var(--white); box-shadow: 0 6px 20px rgba(92, 74, 60, .06); }
.sec .wrap > .sc-head + .prose:last-child > :first-child { margin-top: 0; }
.sec .wrap > .sc-head + .prose:last-child > :last-child { margin-bottom: 0; }
/* 휴대폰(767px 이하)에서는 메인 히어로 분야 바로가기를 숨긴다 — 바로 아래 "진료 분야" 카드가 같은 링크를 맡고, 헤더 메뉴·푸터에도 있다(사용자 지정 2026-10-22 "휴대폰에선 숨기도록해"). 태블릿 4열 격자·데스크톱 한 줄은 그대로 */
@media (max-width: 767.98px) { .sc-h2 .hero-practice { display: none; } }
@media (max-width: 767.98px) { .sc-h2__in { padding-bottom: 40px; } }

/* ── 납품 직전 화면 검수 반영 (design-reviewer 2026-10-22, 사용자 결정 "전부 고침") ── */
/* R-31: 320px대 겹침·꺾임 — 상단 띠 "대표번호" 글자 숨김, 퀵바 라벨 한 단계 작게, 메인 H1 최소 글자 줄임, 본문 링크는 낱말 안에서 끊지 않음 */
@media (max-width: 359.98px) {
  .sc-tb1__k { display: none; }
  .sc-qb__lb { font-size: 11px; letter-spacing: -.04em; }
  .sc-h2__title { font-size: 34px; }
}
.sc-h2__title, .page-head h1 { overflow-wrap: break-word; }
.prose a, .card-body a { overflow-wrap: break-word; }
/* R-25: 하위 머리 H1은 "키워드," 다음 상호를 늘 다음 줄로(오시는 길 "오시는 / 길," 꺾임 방지) */
.page-head h1 .h1-name { display: block; }
/* R-25: 히어로 특징 줄 — 줄이 넘어가도 구분선이 줄 맨 앞에 오지 않게 세로선 대신 간격 + 점 */
.sc-h2__facts { column-gap: 18px; }
.sc-h2__facts li + li::before { content: none; }
.sc-h2__facts li { position: relative; }
.sc-h2__facts li + li { padding-left: 0; }
.sc-h2__facts li:not(:last-child)::after { content: "·"; position: absolute; right: -12px; opacity: .55; }
/* R-33: 사진 없는 원장 카드는 칸을 꽉 채운다 */
.profile.is-nophoto { grid-template-columns: minmax(0, 1fr); }
/* R-33: 소개 진료 안내 4상자 900px 이상 2×2, 404 링크 목록 2~3열 */
@media (min-width: 900px) {
  #care .subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #care .subs > .sub { margin-top: 0; }
  .t-404 .link-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
}

/* 진료원장 세 명 한 섹션(사용자 지정 2026-10-22) — 900px 이상 3열, 카드 높이는 줄마다 같게 */
.doc-trio { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .doc-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc-trio__item { margin: 0; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.bg-white .doc-trio__item { background: var(--ivory); }
.doc-trio__dept { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--deep-500); }
.doc-trio__name { margin: 6px 0 14px; font-size: 22px; font-weight: 800; color: var(--ink); }
.doc-trio__name span { font-size: 16px; font-weight: 600; color: var(--muted); }
.doc-trio__item .profile-col + .profile-col { margin-top: 12px; }
.doc-trio__item ul { margin: 4px 0 0; padding-left: 0; list-style: none; font-size: 15px; line-height: 1.6; }
.doc-trio__item li + li { margin-top: 4px; }
/* 퀵바 전화 칸 — 흰 테두리·유리 흐림 가장자리(둥근 모서리에 밝은 테두리처럼 보임)·안쪽 흰 줄을 모두 뺀다. 정지·hover·focus 모두 (사용자 지정 2026-10-22 "퀵바 전화버튼 테두리 제거") */
.sc-qb .sc-qb__t[data-qb="call"], .sc-qb .sc-qb__t[data-qb="call"]:hover, .sc-qb .sc-qb__t[data-qb="call"]:focus-visible {
  border: 0; outline-color: transparent; background-clip: padding-box;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (min-width: 1280px) {
  .sc-qb--qb2 .sc-qb__t[data-qb="call"] { box-shadow: 0 10px 26px rgba(23, 18, 14, .38); }
  .sc-qb--qb2 .sc-qb__t[data-qb="call"]:hover { box-shadow: 0 12px 28px rgba(23, 18, 14, .42); }
}
.sc-qb .sc-qb__t[data-qb="call"]:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 3px; }
/* 분할 칸(.fit) 세로 사진(원장 사진 4:5)은 위아래를 자르지 않는다 — 칸 비율을 사진과 같은 4:5로, 사진 칸 폭은 좁게(사용자 지정 2026-10-22 "의료진섹션 사진이 위아래로 짤리게하지마") */
.fit-ph:has(> img.is-portrait) { aspect-ratio: 4 / 5; }
@media (max-width: 899.98px) { .fit-ph:has(> img.is-portrait) { width: 100%; max-width: 420px; margin-inline: auto; } }
@media (min-width: 900px) {
  .fit:has(> .fit-ph > img.is-portrait) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: stretch; } /* 글 칸(.fit-card)을 사진 높이에 맞춤(사용자 지정 2026-10-22, design-lint 21) */
  .fit-ph:has(> img.is-portrait) { aspect-ratio: 4 / 5; min-height: 0; }
}


/* 절차 카드 S3 다듬기 (사용자 지정 2026-10-22 "순서 카드 디자인이 엉성해… 카드들 테두리 만들고 화살표도 너무 붙어있어")
   - 카드가 크림 판 안에서 같은 크림이라 묻혔다 → 흰 카드 + 얇은 테두리 + 옅은 그림자, 마지막(결과) 카드는 짙은 갈색 그대로
   - 화살표 원(36px)이 다음 카드에 붙었다 → 카드 사이를 넓히고 화살표를 그 간격 한가운데에 */
.sc-steps--s3 .sc-step__card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sc-steps--s3 .sc-step.is-last .sc-step__card { border-color: transparent; }
.sc-steps--s3 { gap: 56px; }
.sc-steps--s3 .sc-step__arrow { bottom: -46px; } /* 세로(모바일): 간격 56px 가운데 = 28 + 18 */
@media (min-width: 1024px) {
  .sc-steps--s3 { gap: 64px; }
  .sc-steps--s3 .sc-step__arrow { right: -50px; bottom: auto; } /* 가로: 간격 64px 가운데 = 32 + 18 */
}
/* 협진 페이지 원내 장비 표 — 장비 | 쓰는 곳 두 칸을 반반으로(머리칸 고정 폭 184px라 왼쪽으로 치우쳐 보였다, 사용자 지정 2026-10-22) */
#equipment table.t2 .col-k { width: 50%; }

/* 퀵바 아래 고정 줄을 1279px까지 — sc.css는 빌드가 공용 부품(quickbar.css, 899px)으로 매번 다시 만들어 거기 고친 것이 사라졌다(design 재검수 R-15).
   공용 부품의 899px 이하 규칙을 900~1279px에 그대로 한 번 더 건다(퀵바 8칸이라 오른쪽 세로형이 본문을 덮음 — 사용자 지정 2026-10-22) */
@media (min-width: 900px) and (max-width: 1279px) {
  .sc-qb { left: 0; right: 0; top: auto; bottom: 0; transform: none; }
  .sc-qb__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .sc-qb__t { gap: 3px; min-width: 0; font-size: 12px; }
  .sc-qb__t .sc-ic { width: 21px; height: 21px; }
  .sc-qb :focus-visible { outline-offset: -3px; }
  /* 맨 위로: 줄 밖, 줄 위 오른쪽 12px 떨어진 원(44px) */
  .sc-qb__top { position: absolute; right: 12px; bottom: calc(100% + 12px); }
  .sc-qb .sc-qb__t[data-qb="top"] {
    width: 44px; height: 44px; margin: 0; border-radius: 50%;
    background: var(--sc-surface); color: var(--sc-brand); border: 1px solid var(--sc-line-strong);
    box-shadow: 0 2px 4px rgba(var(--sc-shadow-rgb), .05), 0 14px 30px rgba(var(--sc-shadow-rgb), .11);
    transition: transform .25s var(--sc-ease), background-color .25s, color .25s;
  }
  .sc-qb .sc-qb__t[data-qb="top"] .sc-ic { width: 20px; height: 20px; }
  .sc-qb .sc-qb__t[data-qb="top"]:hover, .sc-qb .sc-qb__t[data-qb="top"]:focus-visible { transform: translateY(-2px); background: var(--sc-brand); color: var(--sc-on-dark); border-color: var(--sc-brand); }
  .sc-qb .sc-qb__t[data-qb="top"]:focus-visible { outline-offset: 3px; }

  /* QB2 모바일: 유리 띠(64px) 안 칸, 전화 칸만 주색 둥근 칸 */
  .sc-qb--qb2 {
    height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(var(--sc-surface-rgb, 255, 255, 255), .78);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid rgba(var(--sc-surface-rgb, 255, 255, 255), .8); box-shadow: 0 -8px 22px rgba(var(--sc-shadow-rgb), .12);
  }
  .sc-qb--qb2 .sc-qb__list { height: 100%; gap: 0; }
  .sc-qb--qb2 .sc-qb__t {
    width: auto; height: 100%; border: 0; border-radius: 14px; background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .2s, color .2s;
  }
  .sc-qb--qb2 .sc-qb__t[data-qb="call"] { background: var(--sc-brand); }
  .sc-qb--qb2 .sc-qb__t:hover, .sc-qb--qb2 .sc-qb__t:focus-visible { transform: none; background: rgba(var(--sc-surface-rgb, 255, 255, 255), .9); box-shadow: none; }
  .sc-qb--qb2 .sc-qb__t[data-qb="call"]:hover, .sc-qb--qb2 .sc-qb__t[data-qb="call"]:focus-visible { background: var(--sc-brand-hi); }
  .sc-qb--qb2 .sc-qb__t[data-qb="top"] {
    background: rgba(var(--sc-surface-rgb, 255, 255, 255), .78);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    border-color: rgba(var(--sc-surface-rgb, 255, 255, 255), .7);
  }

  /* QB3 모바일: 흰 바탕 띠 위 따로 떨어진 선 타일(58px) */
  .sc-qb--qb3 {
    padding: 18px 8px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--sc-surface) 72%, rgba(var(--sc-surface-rgb, 255, 255, 255), 0));
  }
  .sc-qb--qb3 .sc-qb__list { gap: 6px; }
  .sc-qb--qb3 .sc-qb__t { width: auto; height: 58px; border-radius: 12px; transition: background-color .2s, color .2s; }
  .sc-qb--qb3 .sc-qb__t:hover, .sc-qb--qb3 .sc-qb__t:focus-visible { transform: none; box-shadow: none; }
  .sc-qb--qb3 .sc-qb__t[data-qb="top"] { border: 1.5px solid var(--sc-brand); box-shadow: none; }

  /* 본문 아래 여백 — 마지막 줄이 퀵바에 가려지지 않게(body 또는 마지막 요소에) */
  .sc-qb-space--qb2 { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sc-qb-space--qb3 { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* 히어로 특징 줄 — 1023px 이하는 공용 부품이 앞 점(li::before)을 붙이므로 뒤 '·'(li::after)는 끈다. 표시는 한 가지만(design 재검수 R-25) */
@media (max-width: 1023.98px) { .sc-h2__facts li:not(:last-child)::after { content: none; } }

/* ── 전체 재검수 반영(design 2026-10-22, 사용자 결정 "전부 고침") ── */
/* R-11 태블릿(600~899px) 의료진: 대표원장 사진이 한 화면을 넘지 않게 폭을 묶고, 진료원장 카드는 2열 */
@media (min-width: 600px) and (max-width: 899.98px) {
  .profile .profile-photo { width: 100%; max-width: 420px; margin-inline: auto; }
  .doc-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* R-05 모바일 하위 머리: 버튼 두 개를 한 줄에 나란히, 리드 문단 사이를 좁혀 첫 화면에서 버튼이 퀵바 뒤로 들어가지 않게 */
@media (max-width: 767.98px) {
  .page-head .cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page-head .cta-row > * { width: 100%; min-width: 0; margin: 0; }
  .page-head .lead + .lead { margin-top: 8px; }
  .page-head .byline { margin-top: 10px; }
}
/* R-14 오시는 길: 지하철·부천시청역·주차 세 섹션이 같은 모양으로 이어지지 않게 — 데스크톱에서 제목과 글을 좌우로 놓고 가운데 섹션은 방향을 바꾼다(지그재그) */
@media (min-width: 900px) {
  :is(#subway, #bucheon-city-hall) > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
  :is(#subway, #bucheon-city-hall) .sc-head { margin: 0; text-align: left; align-items: flex-start; }
  :is(#subway, #bucheon-city-hall) .sc-head__rule { margin-inline: 0; }
  :is(#subway, #bucheon-city-hall) .prose { margin-top: 0; }
  #bucheon-city-hall > .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  #bucheon-city-hall .sc-head { order: 2; }
}
/* R-05 보완: 전화 버튼은 번호가 다 보이게 넓게(번호 칸 1.5 : 두 번째 버튼 1), 글자는 한 단계 작게 */
@media (max-width: 767.98px) {
  .page-head .cta-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .page-head .cta-row .sc-btn, .page-head .cta-row .btn { padding-inline: 12px; font-size: 15px; }
  .page-head .cta-row .sc-b5__ic { width: 36px; height: 36px; }
}
/* R-11 보완: 태블릿 2열에서 진료원장 카드 3장째는 한 줄을 꽉 채운다(빈 칸 없음) */
@media (min-width: 600px) and (max-width: 899.98px) { .doc-trio > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* R-05 보완 2: 모바일 하위 머리 전화 버튼은 "전화 문의"만(번호는 바로 아래 퀵바 첫 칸과 상단 띠에 있음 — 번호까지 넣으면 반 칸에서 잘림). 리드 글자를 한 단계 줄여 버튼이 퀵바 위에 오게 */
@media (max-width: 767.98px) {
  .page-head .cta-row .sc-b5__tx { font-size: 0; }
  .page-head .cta-row .sc-b5__tx small { display: block; font-size: 16px; font-weight: 700; }
  .page-head .lead { font-size: 15.5px; line-height: 1.65; }
}
/* R-05 보완 3: 버튼 글자 길이가 페이지마다 달라(예 "네이버 지도 길찾기") 칸 비율을 고정하면 넘친다 — 글자만큼 나눠 갖고, 둘이 안 들어가면 다음 줄로(design-lint 22) */
@media (max-width: 767.98px) {
  .page-head .cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .page-head .cta-row > * { flex: 1 1 auto; width: auto; }
}

/* 메인 H1 "메인 키워드, 상호"(keyword-heading-rules D-4) — 키워드 한 줄 + 상호는 작은 다음 줄. 쉼표는 키워드 줄 끝에 그대로 보인다(H1 안 글자를 숨기지 않음 — D-4) */
.sc-h2__title em { display: block; }
.sc-h2__regions { display: block; margin-top: .35em; font-size: .52em; line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; color: var(--on-dark); }

/* 메인 히어로 덮개 — 업체 요청 "병원 이미지를 크게, 너무 흐리지 않게": 글자 쪽(왼쪽)만 짙게, 사진 쪽은 거의 그대로 보이게.
   데스크톱만(모바일은 sc.css 748줄 세로 덮개 그대로 — 글자가 사진 위 전체에 걸림). 글자 대비는 왼쪽 .78 기준 흰 글자 7:1 이상 */
@media (min-width: 900px) {
  .sc-h2::after {
    background:
      linear-gradient(180deg, rgba(var(--sc-overlay-rgb), .55) 0, rgba(var(--sc-overlay-rgb), 0) 150px),
      linear-gradient(0deg, rgba(var(--sc-overlay-rgb), .6) 0%, rgba(var(--sc-overlay-rgb), 0) 45%),
      linear-gradient(90deg, rgba(var(--sc-overlay-rgb), .86) 0%, rgba(var(--sc-overlay-rgb), .74) 42%, rgba(var(--sc-overlay-rgb), .34) 72%, rgba(var(--sc-overlay-rgb), .22) 100%); /* 영상 배경(밝은 하늘·간판)에 맞춰 한 단계 어둡게 — 사용자 지정 2026-10-27 "조금더 어둡게" */
  }
}

/* 카드 4장(메인 진료 분야) — 3열이면 마지막 줄에 1장만 남는다(design-lint 21). 4장은 2열, 넓은 화면 4열 */
@media (min-width: 640px) { .sc-cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sc-cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 세로 원장 사진 칸 — 글 칸 높이에 늘어나도 칸 폭(340px)을 넘지 않게(design-lint 21). 업체 프로필은 배경을 지운 PNG라 잘리지 않게 contain */
@media (min-width: 900px) {
  .fit-ph:has(> img.is-portrait) { aspect-ratio: auto; width: 100%; }
  .fit-ph > img.is-portrait[src*="doctor-"] { object-fit: contain; object-position: 50% 100%; }
}

/* 푸터는 문의 띠(L3, --sc-brand-strong)보다 한 단계 짙게 — 이웃 영역 구분(design-lint 5) */
.sc-ft1 { background: var(--deep-950); }
/* 간결형 푸터(사용자 지정 2026-11-25 "푸터가 너무 두꺼워" — dyderm.com 구성 참고, 833px → 약 1/2).
   왼쪽: 메뉴·채널 링크 줄 + 사업자 정보 세 줄 / 오른쪽 아래: 로고 / 맨 아래: 저작권 한 줄. 열 제목·소개 문구 없음 */
.sc-ft1.ft { --ft-pad: clamp(40px, 5vw, 64px); padding: 0; background: linear-gradient(90deg, rgba(10, 10, 9, .82) 0%, rgba(10, 10, 9, .6) 45%, rgba(10, 10, 9, .25) 100%), #0c0b0a url("/assets/img/stock-fo-bg.webp") center 45% / cover no-repeat; } /* 2026-11-27 사용자 지정 — dyderm 푸터처럼 어두운 정물(마른 갈대, 클립아트 td0086t168832). 왼쪽 정보 글자 쪽만 더 어둡게 */
/* 배경 = dyderm.com 푸터 색감(따뜻한 흑갈색)에 맞춰 Pexels 36555791 나무를 오른쪽에 통째로 — 사진 밝기를 흑갈색 범위로 눌러 만듦(_build/tools/footer-tree.py, 사용자 지정 2026-11-25 "나무 더 잘 보이게, 덜 확대"). dyderm 이미지는 쓰지 않음. 폰은 960 폭 */
@media (max-width: 767.98px) { .sc-ft1.ft { background-image: linear-gradient(rgba(10, 10, 9, .72), rgba(10, 10, 9, .72)), url("/assets/img/stock-fo-bg-800.webp"); background-position: center, 62% center; } }
.ft__main { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; padding-block: var(--ft-pad) clamp(24px, 3vw, 36px); }
.ft__info { min-width: 0; }
.ft__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ft__links .sc-ft1__a { min-height: 40px; font-size: 15px; font-weight: 600; color: var(--on-dark); }
.ft__links .sc-ft1__a[href="/privacy/"] { color: var(--accent-400); } /* 개인정보처리방침은 눈에 띄게(개인정보 보호법 표시 관행) */
.ft__ext { gap: 0 18px; }
.ft__ext .sc-ft1__a { font-size: 13.5px; font-weight: 400; color: var(--on-dark-muted); }
.ft__biz { margin-top: 12px; font-style: normal; font-size: 13.5px; line-height: 1.85; color: rgba(248, 245, 241, .7); }
.ft__row { display: flex; flex-wrap: wrap; margin: 0; }
.ft__row > span:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: currentColor; opacity: .35; vertical-align: -1px; }
.ft__tel { display: inline-block; padding: 2px 0; color: var(--on-dark); font-weight: 600; }
/* 푸터 링크 호버 — 밑줄 없이 글자색만 은은하게(사용자 지정 2026-11-25). 공용 footer.css의 밑줄을 덮는다 */
.ft a { transition: color .25s ease; }
.ft a:hover, .ft a:focus-visible { text-decoration: none; }
.ft__links .sc-ft1__a:hover, .ft__links .sc-ft1__a:focus-visible, .ft__tel:hover, .ft__tel:focus-visible { color: var(--accent-300); }
.ft__ext .sc-ft1__a:hover, .ft__ext .sc-ft1__a:focus-visible { color: var(--on-dark); }
@media (prefers-reduced-motion: reduce) { .ft a { transition: none; } }
.ft__logo { flex: none; display: inline-flex; margin-bottom: 6px; }
.ft__logo img { display: block; width: 200px; height: auto; }
.ft__copy { margin: 0; padding-block: 16px calc(var(--ft-pad) + 7px); /* 눈에 보이는 아래 여백 = 위 여백(사용자 지정 2026-11-25 "위아래 여백 동일하게, 아래 늘려"). 위쪽 첫 줄 링크는 높이 40px 칸 안에서 글자가 약 11px 내려와 있고 저작권 글자 아래 빈칸이 약 4px라 7px를 더한다 */ border-top: 1px solid rgba(178, 151, 128, .2); font-size: 12.5px; color: rgba(248, 245, 241, .55); }
@media (max-width: 767.98px) {
  .ft__main { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .ft__logo img { width: 160px; }
  .ft__links { gap: 0 18px; }
  .ft__ext { gap: 0 14px; }
  .ft__row { display: block; } /* 폰: 구분선 없이 한 줄에 한 항목 */
  .ft__row > span { display: block; }
  .ft__row > span::after { display: none !important; }
  /* 폰 터치·글자 기준(design-lint 8): 링크 44px·줄 사이 8px, 정보 글자 14px */
  .ft__links { row-gap: 8px; }
  .ft__links .sc-ft1__a { min-height: 44px; }
  .ft__ext .sc-ft1__a, .ft__biz { font-size: 14px; }
  .ft__tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .ft__copy { font-size: 14px; padding-bottom: calc(var(--ft-pad) - 5px); } /* 폰은 맨 위가 로고(여백 없음) — 글자 아래 빈칸 5px만 뺀다 */
}

/* 오시는 길 지도(카카오 외부 이미지) — 한 칸으로 쌓이는 화면에서 이미지가 오기 전 폭 0 → 높이 0이었다가 늘어나 아래가 밀렸다(design-lint 2). 칸 폭을 먼저 잡는다 */
@media (max-width: 899.98px) { .address-media { width: 100%; } .address-map { width: 100%; } }

/* ── 납품 직전 디자인 검수 반영 (사용자 결정 2026-10-27, docs/review/design-audit-20261027.json) ── */
/* R-15: 900~1099px 헤더 메뉴 8칸(매거진 포함)이 넘치지 않게 간격·글자 한 단계 줄임 */
@media (min-width: 900px) and (max-width: 1099.98px) { .sc-hd__nav .sc-m { padding: 0 7px; font-size: 15px; } }
/* R-28: 900~1023px 메인 히어로 글 칸이 덮개가 옅어지는 오른쪽 사진 위로 가지 않게 */
@media (min-width: 900px) and (max-width: 1023.98px) { .sc-h2__text > * { max-width: 52vw; } }
/* R-16: 히어로 리드는 밝은 글자로 — 사진을 덜 덮고도 4.5:1 이상 */
.sc-h2__lead { color: var(--on-dark); text-shadow: 0 1px 2px rgba(24, 19, 15, .35); }
/* R-04: 모바일 메인 히어로 덮개를 옅게 — 업체 요청 "병원 이미지를 크게, 너무 흐리지 않게"(가장 밝은 지점에서도 리드 약 5:1) */
@media (max-width: 899.98px) {
  .sc-h2::after { background: linear-gradient(180deg, rgba(var(--sc-overlay-rgb), .62) 0, rgba(var(--sc-overlay-rgb), .8) calc(200px - var(--sc-header-h)), rgba(var(--sc-overlay-rgb), .86) 100%); }
}
/* R-05: 359px 이하 하위 머리 — 리드 두 문단이어도 둘째 버튼이 아래 퀵바에 가리지 않게 */
@media (max-width: 359.98px) {
  .page-head.has-bg { padding: 20px 0 32px; }
  .page-head .lead { font-size: 15px; margin-top: 12px; }
  .page-head .lead + .lead { margin-top: 6px; }
}


/* 메인 히어로 배경 영상(사용자 지시 2026-10-27) — poster 사진 위에 같은 자리로 덮는다. 자리가 미리 잡혀 있어 영상이 와도 흔들리지 않는다 */
.sc-h2__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sc-h2__video { display: none; } }
/* 메인 히어로 배경(영상·첫 장면 사진) 전체를 고르게 어둡게 — 사용자 지정 2026-10-27 "배경을 어둡게 하라는거였는데" */
.sc-h2__bg .sc-h2__video, .sc-h2__bg .sc-h2__slide img { filter: brightness(.62); }


/* 사진 캐러셀 아래 버튼 줄은 가운데로(메인 내부 전경 "병원 내부 둘러보기" — 사용자 지정 2026-10-27) */
.sec .sc-car ~ .cta-row { justify-content: center; text-align: center; }

/* 진료원장 카드(doctor-cards) — 사진 3장 나란히 + 이름·직책만. 업체 프로필은 배경 없는 PNG라 아래 기준으로 담는다 */
.doc-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.doc-cards__item { margin: 0; text-align: center; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-cards__ph { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--ivory), #fff); }
.doc-cards__ph picture, .doc-cards__ph figure, .doc-cards__ph img { display: block; width: 100%; height: 100%; margin: 0; }
.doc-cards__ph img { object-fit: contain; object-position: 50% 100%; }
.doc-cards__name { margin: 14px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.doc-cards__name span { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
@media (max-width: 599.98px) { .doc-cards { gap: 10px; } .doc-cards__name { font-size: 16px; } .doc-cards__name span { display: block; margin: 0; font-size: 13.5px; } }

/* ── 전체 재검수 화면 반영 (2026-10-28, 디자인 검수 R-25·R-06·R-22·R-32·R-28) ── */
/* R-25 메인 H1 키워드 줄 — 좁은 폰에서 쉼표만 다음 줄로 떨어지지 않게 키워드 줄을 한 줄로 두고 글 칸 폭에 맞춰 줄인다 */
@media (max-width: 767.98px) {
  .sc-h2__title em { white-space: normal; text-wrap: balance; font-size: min(1em, calc((100vw - 2 * var(--sc-gutter)) / 9.8)); } /* 2026-10-30 design R-03·R-31: 키워드 줄 23자라 nowrap이면 잘림 → 두 줄 허용 */
}
/* R-06 히어로 리드 — flex 칸 안에서는 위아래 여백이 겹치지 않아 문단 사이가 38px로 벌어졌다. 데스크톱과 비슷하게 좁혀 전화 버튼이 퀵바 위에 오게 */
@media (max-width: 1023.98px) {
  .sc-h2__text > .sc-h2__lead { margin-bottom: 0; }
  .sc-h2__text > .sc-h2__lead + .sc-h2__lead { margin-top: 10px; }
}
/* R-22 3칸 표 — 599px 이하에서 행마다 쌓는다: 행 머리(굵게) → 2·3열을 열 이름과 함께 아래로. 열 이름 줄(thead)은 화면 읽기용으로만 남긴다 */
@media (max-width: 599.98px) {
  table.t3, table.t3 tbody, table.t3 tr, table.t3 tbody th, table.t3 td { display: block; width: auto; min-width: 0; }
  table.t3 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.t3 tr { padding: 14px 16px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
  table.t3 tr:last-child { border-bottom: 0; }
  table.t3 tbody th, table.t3 td { padding: 0; border: 0; background: none; text-align: left; }
  table.t3 tbody th { margin-bottom: 6px; font-size: 16px; }
  table.t3 td + td { margin-top: 8px; }
  table.t3 td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
  table.t3 .nw { white-space: normal; }
}
/* R-32 긴 지역 나열 H2 — 지역은 작은 회색 윗줄, 꼬리("오시는 길")는 큰 아랫줄 (modern-design 1-2) */
h2 .h2-top { display: block; margin-bottom: .2em; font-size: .52em; font-weight: 600; line-height: 1.45; color: var(--muted); }
/* R-28 캐러셀 점이 많을 때(320px, 점 11개) 버튼 줄이 본문 칸 밖으로 나가지 않게 점 칸을 줄인다 */
@media (max-width: 379.98px) {
  .sc-car__ctrl { gap: 6px; max-width: 100%; }
  .sc-car__dots i, .sc-car__dots b { width: 13px; }
}
/* R-06 320px대 — 리드 글자를 한 단계 줄여 전화 문의 버튼이 퀵바 위에 오게 */
@media (max-width: 359.98px) {
  .sc-h2__text > .sc-h2__lead { font-size: 15px; line-height: 1.6; }
  .sc-h2__text > .sc-h2__lead + .sc-h2__lead { margin-top: 8px; }
}

/* 의료진 프로필 body — 3인칭 사실 문장(인사말 아님)이라 인용 패널·서명 줄 없이 본문으로 (2026-10-29) */
.profile-body { margin: 12px 0 0; }
.profile-body p { margin: 0 0 .6em; }

/* ── 카드 줄 꽉 채우기(design-lint 21, modern-design 2-1 "여백 없이 채우기" 5) — 이 사이트 카드 수에 맞춘 열 수 (2026-10-29) ── */
/* 메인 진료 분야 8장 = 4열 2줄 */
@media (min-width: 1024px) { #specialties .sc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023.98px) { .sc-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* 절차 S1 — 3단계는 3열, 5단계는 5열, 6단계는 3열 2줄(기본 4열) */
@media (min-width: 1024px) {
  .sc-steps--s2:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-steps--s2:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sc-steps--s2:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023.98px) { .sc-steps--s1 > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 600px) and (max-width: 899.98px) { .sc-gc--0 .sc-gc__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* 사진 위 B3(on-dark) 버튼 hover — 민트 바탕 위 글자는 가장 짙은 색으로(design-lint 20: #514032는 3.97:1) */
.page-head a.sc-b3--on-dark:hover, .hero a.sc-b3--on-dark:hover, .band a.sc-b3--on-dark:hover, .page-head a.sc-b3--on-dark:focus-visible { color: var(--deep-950); }

/* 드롭다운 D3 — 칸 수 = 메뉴 수, 패널 폭도 칸 수에 맞춰 줄인다(빈 칸 없음, 사용자 지시 2026-10-29 "드롭다운 메뉴 빈 여백 제거해")
   한의원 소개 3개 · 교통사고 2개 · 통증 진료 4개. 타일 한 칸 폭은 4칸 패널(680px)과 같게 유지 */
.sc-dd--d3:has(.sc-dd3__grid > li:nth-child(2):last-child) .sc-dd__panel { width: 352px; margin-left: -176px; }
.sc-dd--d3:has(.sc-dd3__grid > li:nth-child(2):last-child) .sc-dd3__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-dd--d3:has(.sc-dd3__grid > li:nth-child(3):last-child) .sc-dd__panel { width: 516px; margin-left: -258px; }
.sc-dd--d3:has(.sc-dd3__grid > li:nth-child(3):last-child) .sc-dd3__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 제목 글자색 — 검정 + 강조 구절만 테마색 (modern-design 1-2, 사용자 지시 2026-10-29 "섹션제목 너무 전체적으로 테마색 — 검은색 섞어서, 강조되는것만 테마색")
   대비: --deep-500 #584535 흰색 6.9:1 · 연파랑 틴트 6.1:1 */
.sec h2, .sec h3, .sc-head--t2 .sc-head__h, .card-title, .link-card .card-title a, .sc-card__t, .sc-step__t, .sc-faq__t { color: var(--ink); }
.sc-head__em, .sec h2 .sc-head__em { color: var(--deep-500); }
.link-card:hover .card-title a, .link-card:hover h3 a { color: var(--deep-500); }
.sc-nu1__t { color: var(--ink); }

/* ── 납품 직전 디자인 검수 고침(사용자 "고쳐" 2026-10-29) ── */
/* R-14 메인 진료 철학 4칸 — 900px 이상 2×2 */
@media (min-width: 900px) { #philosophy .subs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } #philosophy .subs > * { margin: 0; } }
/* R-10 짧은 약력 원장 사진 정수리 잘림 — 데스크톱 2칸(사진 5 : 글 7)에서 칸을 키우고 머리 기준으로 */
@media (min-width: 900px) { .profile-photo { min-height: 440px; } .profile-photo img { object-position: 50% 0; } }
/* R-33 720~899px 오시는 길 — 표와 지도를 위아래로(지도 아래 빈칸 없음) */
@media (min-width: 720px) and (max-width: 899.98px) { .address-layout { grid-template-columns: minmax(0, 1fr); } .address-media { max-width: 560px; margin-inline: auto; } }

/* 글만 있는 소제목 카드의 제목 아이콘(사용자 지정 2026-10-29 "텍스트만 있는 카드 너무 밋밋") — 제목 왼쪽 한 줄, 칸 크기 고정 */
.sub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sub-head h3 { margin: 0; }
.sub-ico.card-ico { margin-bottom: 0; flex: none; }

/* D9 작은 목록 드롭다운 — 현재 페이지 표시 */
.sc-dd9 a[aria-current="page"] { background: var(--sand); color: var(--deep-800); }
.sc-nav--n1 .sc-dd__btn::after { transform-origin: left center; }


/* ── 2026-10-30 납품 직전 design 검수 고침(사용자 결정 "추천대로") ── */
/* R-07 상단 띠 링크 터치 높이 44px(띠 높이 안) */
.sc-tb10__r .sc-tb__a { display: inline-flex; align-items: center; min-height: 44px; }
/* R-15 900~1279px: 오른쪽 고정 레일(80px)이 본문 오른쪽을 덮는 폭 — 그 구간은 모바일과 같은 하단 바로(공용 sc.css 899px 이하 QC4 블록을 그대로 옮김, 공용 파일은 손대지 않음). 본문 .wrap은 헤더와 같은 값 유지(design-lint 17) */
@media (min-width: 900px) and (max-width: 1279.98px) {
  .sc-qc { left: 0; right: 0; top: auto; bottom: 0; transform: none; }
  .sc-qc__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); }
  .sc-qc__t { width: auto; min-width: 0; height: 58px; gap: 4px; border-radius: 12px; font-size: 11px; }
  .sc-qc__t:hover, .sc-qc__t:focus-visible { transform: none; }
  .sc-qc :focus-visible { outline-offset: -3px; }
  .sc-qc__lbd { display: none; }
  .sc-qc__lbm { display: inline; }
  .sc-qc .sc-ic { width: 20px; height: 20px; }
  .sc-qc__top { position: absolute; right: 12px; bottom: calc(100% + 10px); }
  .sc-qc .sc-qc__t[data-qb="top"] { width: 44px; height: 44px; border-radius: 50%; background: var(--sc-surface); box-shadow: 0 8px 20px rgba(var(--sc-shadow-rgb), .16); }
  .sc-qc .sc-qc__t[data-qb="top"]:focus-visible { outline-offset: 3px; }
  .sc-qc--qc4 { background: var(--sc-surface); box-shadow: 0 -8px 22px rgba(var(--sc-shadow-rgb), .08); }
  .sc-qc--qc4 .sc-qc__list { gap: 0; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); border-radius: 0; background: none; box-shadow: none; max-width: 720px; margin: 0 auto; }
  .sc-qc--qc4 .sc-qc__t { height: 62px; padding: 0; }
  .sc-qc--qc4 .sc-qc__chip { width: 34px; height: 34px; }
  .sc-qc--qc4 .sc-qc__chip .sc-ic { width: 18px; height: 18px; }
  .sc-qc--qc4 .sc-qc__top { margin: 0; padding: 0; }
  .sc-qc--qc4 [data-qb="top"] .sc-qc__chip { width: 44px; height: 44px; }
  .sc-qc-space--qc4 { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
/* R-05 ↑ 버튼은 한 화면 넘게 내린 뒤에만(site.js qb-top-on) — 자리는 유지(opacity·visibility) */
html:not(.qb-top-on) .sc-qc [data-qb="top"] { opacity: 0; visibility: hidden; pointer-events: none; }
.sc-qc [data-qb="top"] { transition: opacity .25s var(--ease), visibility .25s; }
/* R-33 2열 소제목 격자에 카드가 1개면 전체 폭 */
.subs.subs-cols > .sub:only-child { grid-column: 1 / -1; }
/* R-29 Safari: 둥근 모서리 + overflow hidden 안 hover 확대 */
.sc-car__card { isolation: isolate; }

/* 섹션 머리 HD1 + 섹션 모양 SS3 (2026-10-30 사용자 지시 "섹션디자인 새로생긴 테마로") — 영어 라벨 글꼴은 Pretendard(명조 금지, static 규칙 8) */
:root { --sc-tt-en-font: var(--font); }
.sc-tt { margin-bottom: 32px; }
.sc-tt__h { color: var(--ink); }
.sc-tt__em { color: var(--deep-500); }
.sc-tt__lb { font-weight: 600; letter-spacing: .06em; }
.sc-sec.bg-sand { --sc-tint: var(--sand); }
.sc-tt__h::before { display: none !important; } /* 옛 섹션 제목 A 막대(.sec h2::before)는 HD1에서 쓰지 않음 */

/* SS3 창살 무늬를 섹션 배경이 아니라 ::before 장식층에 — 섹션 자체에 background-image가 있으면 design-lint 20이 안 카드를 "사진 위 버튼"으로 재서 썸네일 사진 중앙값으로 대비를 계산한다(2026-10-30) */
.sc-ss3 .sc-sec--tint { background-image: none; position: relative; isolation: isolate; }
.sc-ss3 .sc-sec--tint::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(var(--sc-shadow-rgb), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--sc-shadow-rgb), .07) 1px, transparent 1px),
    linear-gradient(rgba(var(--sc-shadow-rgb), .05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--sc-shadow-rgb), .05) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; background-position: -1px -1px; }

/* ── 원장 사진·약력 배치 (사용자 지적 2026-11-02 "사람얼굴이 짤려서 나오고 … 학력, 학회 등 오른쪽 카드도 배열이 이상해") ──
   의료진 #profile: 예전엔 원본(1600×1385)을 3:4로 자르고 약력 전체 높이(1,000px 넘음)까지 늘려 얼굴이 잘렸고, 760px 폭에 학력·학회가 155px 칸으로 눌렸다.
   → 패널을 풀어(display: contents) 사진 | 소개 글 두 칸 + 아래 학력·학회·경력 한 줄 3칸 카드로. 사진은 소개 글 높이만 채우니 양옆만 조금 잘리고 얼굴은 남는다
   (나란한 칸 높이를 맞추는 design-lint 21 — 사용자 2026-10-21 "원장사진 아래에 여백" — 도 함께 지킴) */
#profile .profile { max-width: none; }
#profile .profile-panel { display: contents; }
#profile .profile-body, #profile .profile-cols { border-radius: var(--radius-lg, 20px); background: var(--ivory); }
#profile .profile-body { padding: clamp(24px, 3.2vw, 40px); }
#profile .profile-body > :first-child { margin-top: 0; }
#profile .profile-cols { margin: 0; padding: clamp(24px, 3.2vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
#profile .profile-photo { border-radius: var(--radius-lg, 20px); overflow: hidden; }
#profile .profile-photo img { display: block; width: 100%; border-radius: 0; aspect-ratio: auto; }
@media (min-width: 900px) {
  #profile .profile { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  #profile .profile-photo { align-self: stretch; }
  #profile .profile-photo img { height: 100%; object-fit: cover; object-position: 50% 30%; }
  #profile .profile-cols { grid-column: 1 / -1; }
}
@media (max-width: 899.98px) {
  #profile .profile { gap: 16px; }
  #profile .profile-photo { width: 100%; max-width: 480px; }
  #profile .profile-photo img { height: auto; object-fit: contain; }
  #profile .profile-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #profile .profile-col:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 559.98px) { #profile .profile-cols { grid-template-columns: 1fr; gap: 20px; } }
/* 소개 #greeting: 사진 칸(340px)이 글 상자보다 낮고 사진이 아래에 붙어 작게 떠 보였다 → 데스크톱은 원본 비율(1519×1600) 칸을 글 상자 가운데에, 자르지 않음 */
@media (min-width: 900px) {
  #greeting .fit { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: center; gap: 28px; }
  #greeting .fit-ph { aspect-ratio: 1519 / 1600; }
  #greeting .fit-ph img { object-fit: cover; object-position: 50% 50%; }
}
#profile .profile-body { margin: 0; } /* 사진과 소개 글 카드 위쪽 높이 맞춤 */

/* 본문 글자 링크 — 본문 글자색 그대로 + 얇은 밑줄만, 굵게 금지, hover에서만 포인트색 (references/build/modern-design.md 1장 "본문 글자 링크", 사용자 지정 2026-10-30.
   이 사이트는 규칙 동결(10-30) 때 빠져 있어 사용자 지적 2026-11-02 "하이퍼링크 너무 잘보이지 않게 색은 동일하게"로 적용). 버튼·카드·메뉴·히어로·사진 위 머리(바이라인)는 제외 */
.sec .prose a:not(.btn), .sec .fit-card a:not(.btn), .sec .split-text a:not(.btn), .sec .subs a:not(.btn), .sec table a:not(.btn), .sec .profile-body a:not(.btn), .sc-faq__in a:not(.btn), .sec .law a:not(.btn) {
  color: inherit; font-weight: inherit; background: none;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--deep-500, #604c3a) 55%, transparent);
}
.sec .prose a:not(.btn):hover, .sec .fit-card a:not(.btn):hover, .sec .split-text a:not(.btn):hover, .sec .subs a:not(.btn):hover, .sec table a:not(.btn):hover, .sec .profile-body a:not(.btn):hover, .sc-faq__in a:not(.btn):hover, .sec .law a:not(.btn):hover { color: var(--deep-500, #604c3a); }

/* 소개 #care: 관리 기준 목록 왼쪽 + "한약 처방" 카드 오른쪽 (사용자 지시 2026-11-02 "한약처방 카드를 오른쪽으로 배치해"). 900px 미만은 위아래 그대로 */
@media (min-width: 900px) {
  #care:not(.yq-sec) .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); column-gap: 32px; align-items: center; }
  #care .sc-tt { grid-column: 1 / -1; }
  #care .prose { margin: 0; }
  #care .subs { margin: 0; grid-template-columns: 1fr; }
}

/* 메인 #about — 오른쪽 사진을 빼서(사용자 지시 2026-11-03) 가운데 제목 아래 소개 문장도 가운데로 맞춘다. 좁은 화면은 왼쪽 정렬 그대로 */
@media (min-width: 900px) {
  #about > .wrap > .prose { max-width: 46em; margin-inline: auto; text-align: center; }
}

main { overflow-x: clip; } /* 옆에서 들어오는 동안 화면 밖으로 나간 부분이 가로 스크롤을 만들지 않게(clip은 sticky를 깨지 않는다) */

/* ===== 디자인 검수 D1~D9 (사용자 지시 2026-11-03 "A,B다 고쳐") ===== */
/* D1 폰 하위 머리: 전화·오시는 길 버튼이 하단 퀵바에 가리지 않게 — 여백을 줄이고 작성자 줄은 버튼 아래로(화면 순서만, 480px 이하) */
@media (max-width: 480px) {
  .page-head.has-bg { min-height: 0; padding: 20px 0 32px; }
  .page-head .eyebrow { margin-top: 12px; }
  .page-head h1 { margin-top: 12px; }
  .page-head .lead { font-size: 16px; margin-top: 12px; }
  .page-head-text { display: flex; flex-direction: column; }
  .page-head-text > .byline { order: 2; margin-top: 14px; }
  .page-head-text > .cta-row { order: 1; margin-top: 18px; }
}
/* D2 상단 띠 진료시간이 말줄임으로 잘리지 않게 — 폰은 띠의 "오시는 길"을 숨기고(퀵바 길찾기와 같음), 900~1100은 명절·점심 보조 문장을 숨긴다 */
@media (max-width: 899.98px) { .sc-tb .sc-tb10__r { display: none; } } /* 모바일·태블릿 상단 띠에는 링크를 두지 않는다(design R-15, modern-design 2-1) */
@media (min-width: 900px) and (max-width: 1100px) { .sc-tb .sc-tb10__h { display: none; } }
/* D3 900~1079 헤더 메뉴 오른쪽 여유 — 메뉴 칸 여백·글자·로고를 줄여 스크롤바(15px)가 있어도 오른쪽 24px 이상 */
@media (min-width: 900px) and (max-width: 1079.98px) {
  .sc-hd__in { gap: 12px; }
  .sc-hd__logo img { height: 34px; }
  .sc-hd__nav .sc-m, .sc-hd__nav .sc-dd__btn { padding: 0 5px; font-size: 14px; }
  .sc-hd__menu { gap: 0; }
}
/* D4 가로 스크롤 안내 카드 줄 안에서는 위치를 옮기지 않고 투명도로만 — 등장 중 칸 안에 세로 스크롤이 생기지 않게 */
@media (max-width: 899.98px) { .sc-gc__list > .rv, .gc-list > .rv { transform: none; } }
/* D6 좁은 화면에서 영어 라벨 양옆 선을 줄여 한 줄로 */
@media (max-width: 420px) { .sc-tt__lb { gap: 10px; } .sc-tt__lb::before, .sc-tt__lb::after { width: 20px; } }
/* D8 의료진 연구 논문 목록 — 넓은 화면에서 흰 카드에 넣어 폭을 채우고 두 단으로 */
#research .prose { padding: clamp(22px, 3vw, 36px) clamp(20px, 3.4vw, 44px); border-radius: 20px; background: var(--white, #fff); box-shadow: 0 6px 20px rgba(92, 74, 60, .06); }
#research .prose ul { margin: 0; }
@media (min-width: 900px) {
  #research .prose { max-width: none; }
  #research .prose ul { columns: 2; column-gap: 56px; }
  #research .prose li { break-inside: avoid; }
}
/* D9 폰 ↑ 버튼 — 조금 작게, 반투명 흰 바탕 + 그림자로 아래 글자와 구분 */
@media (max-width: 1279.98px) {
  .sc-qc .sc-qc__t[data-qb="top"], .sc-qc--qc4 [data-qb="top"] .sc-qc__chip { width: 40px; height: 40px; }
  .sc-qc .sc-qc__t[data-qb="top"] { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(92, 74, 60, .18), 0 0 0 1px rgba(92, 74, 60, .08); }
}
/* D1·D2·D6 — 320~360px 아주 좁은 폰 보정 (design 검수 2026-11-03) */
@media (max-width: 360px) {
  .page-head .lead { font-size: 15px; line-height: 1.6; }
  .page-head .crumbs { margin-bottom: 0; }
  .sc-tb10__st { font-size: 14px; letter-spacing: -.01em; }
  .sc-tt__lb { font-size: 19px; letter-spacing: .02em; }
}

/* 퀵바 칸 위치 맞춤 — 본문 목록용 li + li 위쪽 여백(.35em)이 퀵바에도 걸려 전화만 5.6px 위에 떠 있었다(사용자 2026-11-03 "전화 길찾기 시간 블로그의 위치가 다달라. 위아래로 같은 위치에 있어야해") */
@media (max-width: 1279.98px) { .sc-qc__list > li { margin: 0; } } /* 1280 이상 세로 퀵바는 li + li 간격 그대로 */
/* 주차 약도(split-whole) — 위의 "글 칸 높이에 맞춰 자르기"(1149~1150·866~867) 대신 원래 비율 그대로 다 보이게. 파일 끝에 두어 앞 규칙을 이긴다 */
.sec .split.split-whole > * { align-self: center; }
.split.split-whole .split-media { position: static; min-height: 0; overflow: visible; border-radius: var(--radius); }
.split.split-whole .split-media > img.is-portrait { position: static; inset: auto; transform: none; width: 100%; max-width: 420px; height: auto; aspect-ratio: 1080 / 1331; object-fit: contain; border-radius: var(--radius); margin: 0; }

/* 메인 진료 분야 카드 4장(고객 지정 분야 4개) — 3+1로 마지막 줄이 비지 않게 넓은 화면은 4열, 그 아래는 2×2 */
@media (min-width: 1024px) { #specialties .sc-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* 아래 퀵바 줄 정렬(design-lint 23) — 공용 부품(sc.css)의 899px 이하 덮어쓰기보다 뒤에서 위·아래 여백을 같게 */
@media (max-width: 1279.98px) {
  body .sc-qc--qc4 .sc-qc__list { padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); }
  body .sc-qc--qc4 .sc-qc__list > li > .sc-qc__t:not([data-qb="top"]) { width: 100%; }
}
/* 인사말 옆 사진은 글 칸 높이에 맞춘다(design-lint 21) */
@media (min-width: 900px) {
  /* 이 사이트 인사말 사진은 가로형(진료실 3:2) — 틀의 세로 사진용 #greeting 규칙을 기본 분할(7:5, 글 칸 높이에 맞춤)로 되돌린다 */
  #greeting .fit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; gap: 24px; }
  #greeting .fit-ph { aspect-ratio: auto; min-height: 300px; width: auto; }
  #greeting .fit-ph img { object-position: 60% 50%; }
}

/* ── 납품 직전 디자인 검수(2026-11-19) 반영 ── */
/* R-06 모바일 메인 히어로: 전화 버튼은 전체 폭, 나머지 두 버튼은 한 줄 2칸 — 셋째 버튼이 퀵바 뒤로 들어가지 않게 */
@media (max-width: 599px) {
  .sc-h2 .sc-hero__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sc-h2 .sc-hero__btns > :first-child { grid-column: 1 / -1; }
  .sc-h2 .sc-hero__btns .sc-hero__btn { width: 100%; min-width: 0; }
}
/* R-10 소개 의료진 카드: 배경 있는 사각 사진(558×474)을 칸에 꽉 채운다(틀은 누끼 사진 4:5용) */
.doc-cards__ph { aspect-ratio: 558 / 474; background: var(--ivory); }
.doc-cards__ph img { object-fit: cover; object-position: 50% 30%; }
/* R-16 절차 번호 선: 칸 수(3·5)에 맞춰 양끝을 첫·마지막 원 중심에, 세로형은 단계마다 다음 원까지만 */
@media (min-width: 900px) {
  .sc-steps--s2:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-steps--s2:has(> :nth-child(3):last-child)::before { left: 16.667%; right: 16.667%; }
  .sc-steps--s2:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sc-steps--s2:has(> :nth-child(5):last-child)::before { left: 10%; right: 10%; }
}
@media (max-width: 899.98px) {
  .sc-steps--s2::before { content: none; }
  .sc-steps--s2 .sc-step:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: -18px; width: 2px; background: var(--sc-accent-line); }
}
/* R-16 404 링크 목록: 첫 칸이 위로 뜨지 않게 칸 여백을 같게 */
.t-404 .link-list > li { margin: 0; }
/* R-22 3칸 표 모바일 카드형: 칸마다 깔리던 줄무늬를 묶음(행) 전체에 */
@media (max-width: 599.98px) {
  table.t3 tbody tr:nth-child(even) > th, table.t3 tbody tr:nth-child(even) > td { background: none; }
  table.t3 tbody tr:nth-child(even) { background: rgba(92, 74, 60, .06); }
}
/* R-25 하단 문의 띠 진료시간: 모바일에서는 요일 묶음을 한 줄씩, 구분점은 숨김 / 섹션 제목은 줄 끝에 한 낱말이 남지 않게 */
@media (max-width: 599.98px) {
  .sc-l3__tnum { font-size: 0; }
  .sc-l3__tnum > .nb { display: block; font-size: 15px; line-height: 1.6; }
}
.sc-tt__h { text-wrap: balance; }
/* 메인 의료진 사진: 정사각형에 가까워 보여 세로형(4:5) 틀로 — 원본(558×474)의 위아래는 다 보이고 좌우 여백만 잘린다(사용자 2026-11-20) */
.sc-people .sc-person--a2 .sc-person__photo { aspect-ratio: 4 / 5; }
.sc-people .sc-person--a2 .sc-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* 색 있는 섹션의 글 칸(.fit-card)은 흰 카드 없이 섹션 바탕에 바로 놓는다(사용자 2026-11-20). 흰 섹션의 아이보리 카드는 그대로 */
.bg-ivory .fit-card, .sc-sec--tint .fit-card { background: none; border-radius: 0; padding: 0; }
@media (min-width: 900px) { .bg-ivory .fit-card, .sc-sec--tint .fit-card { padding-right: clamp(8px, 2vw, 32px); } }

/* 오시는 길 지도: 그림(458×418)을 칸과 거의 같은 크기로 쓰고, 넘치는 부분은 가운데 기준으로 잘라 업체 핀이 칸 중앙에 온다(사용자 2026-11-20) */
.address-map img { aspect-ratio: 458 / 418; }
.address-layout .address-map img { object-position: 50% 50%; }
@media (min-width: 900px) { .address-layout .address-map img { aspect-ratio: auto; } }

/* ── 수월한의원(2026-11-20) ── */
/* 대표원장 한 명 — 원장 카드 A2는 공용 부품 기본(사진 왼쪽·약력 오른쪽) 그대로. 이전 사이트의 3명용 3열 덮어쓰기는 뺐다 */
.sc-person--a2 .sc-person__photo { aspect-ratio: 3 / 4; }
.sc-person--a2 .sc-person__img { object-position: 50% 12%; }
@media (min-width: 900px) { .sc-person--a2 { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; } }
/* 소개 > 진료 철학: 카드 5장(왼쪽 한 줄) + 대표원장 상담 사진(오른쪽, 카드 높이에 맞춤) — 사진이 카드 아래 한 줄로 크게 깔리지 않게 */
#philosophy .subs { gap: 14px; margin-top: 0; }
#philosophy .sub { padding: 22px 24px; border-radius: var(--radius-lg); background: #fff; }
#philosophy .sub p:last-child { margin-bottom: 0; }
#philosophy .stack-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
@media (min-width: 900px) {
  #philosophy .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 24px; }
  #philosophy .wrap > .sc-tt { grid-column: 1 / -1; }
  #philosophy .subs { grid-column: 1; grid-row: 2; }
  #philosophy .stack-photo { grid-column: 2; grid-row: 2; margin: 0; min-height: 0; position: relative; }
  #philosophy .stack-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 42% 50%; }
}
/* 소개 > 특징 목록(기획안 칩 7개): 알약 줄 */
#intro .prose ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
#intro .prose ul li { margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--ivory); color: var(--deep-800); font-weight: 600; font-size: 15.5px; line-height: 1.4; }
#intro .prose ul li::before, #intro .prose ul li::marker { content: none; }
@media (min-width: 900px) { #philosophy .subs > .sub:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* 원장 카드 버튼: 넓은 화면은 두 개 나란히, 767px 이하는 한 줄에 하나(글자 잘림 없음 — design-lint 19·22) */
@media (min-width: 1024px) { .sc-person--a2 .sc-person__btns { grid-template-columns: repeat(2, minmax(0, 260px)); } }
@media (max-width: 767px) { .sc-person--a2 .sc-person__photo { width: min(100%, 300px); max-width: none; margin-inline: auto; } /* 폭을 정해 둔다 — auto 여백만 주면 사진이 오기 전 칸이 0으로 줄어 내려가며 높이가 바뀐다(design-lint 2) */ .sc-person--a2 .sc-person__btns { max-width: none; } }
/* 모바일 메인 히어로: 글이 길어(리드 2문단 + 칩 5) 전화 버튼이 첫 화면 하단 바 위에 들어오게 위 여백과 꼬리표 자간을 줄인다(design-lint 16) */
@media (max-width: 599px) {
  .sc-h2 .sc-hero__wrap { padding-top: 32px; }
  .sc-h2 .sc-h2__tag { letter-spacing: .06em; }
}

/* ── 납품 직전 디자인 검수(2026-11-20) 반영 ── */
/* R-11 900~1099px: "진료 분야" 드롭다운(D9, 240px)이 화면 오른쪽 밖으로 나가 가로 스크롤이 생기지 않게 오른쪽 기준으로 편다 */
@media (max-width: 1099.98px) { .sc-dd--d9 .sc-dd__panel { left: auto; right: 0; } }
/* R-31 320px대: 하위 페이지 H1의 가운뎃점 묶음(.nw)이 칸을 넘으면 줄을 바꾼다 / 주소 표 진료시간은 줄 둘로 */
@media (max-width: 359.98px) { .page-head h1 .nw { white-space: normal; } }
.address-table .hr-line { white-space: nowrap; }
@media (max-width: 599.98px) { .address-table .hr-line { display: block; } .address-table .hr-sep { display: none; } }
/* R-17 메인 히어로 버튼도 알약형(다른 버튼과 같은 모서리) */
.sc-h2 .sc-hero__btn { border-radius: 999px; }
/* R-25 메인 히어로 칩: 줄 끝에 가운뎃점만 남지 않게 구분점을 항목 앞 점으로(모든 폭 같은 모양) */
.sc-h2 .sc-h2__facts li:not(:last-child)::after { content: none; }
@media (min-width: 1024px) {
  .sc-h2 .sc-h2__facts li::before, .sc-h2 .sc-h2__facts li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 0 0; border-radius: 50%; background: var(--accent-300); vertical-align: middle; }
}
/* R-12 진료 철학: 900~1099px에서는 사진 옆 카드를 한 줄에 하나(2열이면 213px까지 좁아진다) */
@media (min-width: 900px) and (max-width: 1099.98px) { #philosophy .subs { grid-template-columns: minmax(0, 1fr); } }
/* R-33 대표원장 약력: 사진을 4:3으로 줄여 약력 칸 높이에 맞춘다(사진 아래 빈 자리) */
@media (min-width: 900px) { #doctor .profile-photo img { aspect-ratio: 4 / 3; object-position: 50% 14%; } }
/* R-32 글이 짧은 섹션(sec-brief, 빌드가 판단): 본문·버튼도 가운데(modern-design 1-2-1) */
.sec-brief .prose { text-align: center; }
.sec-brief .prose > p { max-width: 40em; margin-inline: auto; text-wrap: balance; }
.sec-brief .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* R-08 오시는 길 지도: 표 옆 칸 비율(세로형 458×698)로 받은 이미지지도를 자르지 않고 그대로 */
.address-map img { aspect-ratio: 458 / 698; }
@media (min-width: 900px) { .address-layout .address-map img { object-fit: cover; object-position: 50% 100%; } } /* 칸과 그림 비율이 거의 같아 잘리는 폭은 좌우 2% 안쪽 — 아래 카카오 로고·축척은 그대로 보인다 */
@media (max-width: 899.98px) { .address-media { max-width: 420px; margin-inline: auto; } }
/* R-06 데스크톱 낮은 화면(1280×720·1366×768): 메인 히어로가 한 화면에 들어오게 제목 크기와 위아래 여백을 줄인다(hero-image-flow 1장) */
@media (min-width: 900px) and (max-height: 820px) {
  .sc-h2 { min-height: 0; }
  .sc-h2 .sc-hero__wrap { padding-top: 36px; padding-bottom: 36px; }
  .sc-h2 .sc-h2__title { font-size: 54px; margin-top: 12px; }
  .sc-h2 .sc-h2__title > span:not(.hl) { font-size: 30px; } /* 새 H1 줄(.hl)은 아래 H1 규칙만(design R-06, 2026-11-25) */
  .sc-h2 .sc-hero__btns { margin-top: 22px; }
}
/* R-06 360~389px: 부제가 두 줄로 접혀 둘째 버튼이 하단 바 뒤로 가지 않게 부제·리드 글자를 한 단계 줄인다 */
@media (max-width: 389.98px) {
  .sc-h2 .sc-h2__title > span:not(.hl) { font-size: 17px; }
  .sc-h2__text > .sc-h2__lead { font-size: 15px; line-height: 1.6; }
}
/* R-25 메인 히어로 칩 다섯 개가 넓은 화면에서 한 줄에 들어가게(마지막 칩 하나만 다음 줄로 떨어지지 않게) */
@media (min-width: 1000px) { .sc-h2__text > .sc-h2__facts { max-width: 900px; } }

/* ── 서울365추나관한의원(2026-11-23) ── */
/* 메인 히어로 '1인 입원실 운영' 배지(기획안 01 "첫 화면 상단 배지") — 알약형, 메인 청록 바탕 + 짙은 글자(대비 6:1 이상) */
.sc-h2__badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--accent-400); color: #1e1812; font-size: 14px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.sc-h2__badge svg { width: 16px; height: 16px; flex: none; }
.sc-h2__badge { width: fit-content; align-self: flex-start; }
/* 메인 H1 — 상호(서울365추나관한의원, 11자)가 낱말 중간에서 끊기지 않게: 한국어 낱말 단위 줄바꿈 + 좁은 화면 글자 크기를 상호 한 줄 폭에 맞춤 */
.sc-h2__title { word-break: keep-all; overflow-wrap: break-word; }
@media (max-width: 559.98px) { .sc-h2 .sc-h2__title { font-size: clamp(26px, 7.6vw, 34px); } }
/* 메인 H1 안 줄바꿈 묶음(.nw)은 부제가 아니다 — 수월한의원 틀의 "> span 부제 크기"를 받지 않게 */
.sc-h2 .sc-h2__title > span.nw { font-size: inherit; }
/* 모바일 히어로 버튼 3개(기획안 01): 글자가 길어(입원 문의 031-606-7788 · 진료시간과 오시는 길) 2칸이면 넘친다 → 한 줄에 하나씩 */
@media (max-width: 599px) {
  .sc-h2 .sc-hero__btns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sc-h2 .sc-hero__btns .sc-hero__btn { min-height: 48px; }
}
/* 히어로 둘째 버튼(입원 문의 + 번호)은 고정 폭 168px에 넘친다(design-lint 22) — 글자에 맞춘 폭. 셋째는 위 규칙(width auto) 그대로 */
@media (min-width: 600px) { .sc-h2 .sc-hero__btn--line { width: auto; padding-inline: 22px; } }
/* ── 납품 직전 디자인 검수(2026-11-23) 반영 ── */
/* R-04 히어로 사진이 한 장일 때: 교차용 18초 확대(36%에서 1.1 → 1로 튐) 대신 천천히 왕복 확대 */
@keyframes s365-kb { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.sc-h2__slide:only-child img { animation: s365-kb 24s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .sc-h2__slide:only-child img { animation: none; transform: none; } }
/* R-16 히어로 윗줄 태그 — 한글 자간을 좁혀 낱자가 흩어지지 않게(전 폭) */
.sc-h2 .sc-h2__tag { letter-spacing: .05em; }
/* R-06 메인 히어로: 데스크톱 제목 3줄 이내(글 칸을 넓히고 글자를 한 단계 줄임) */
@media (min-width: 900px) {
  .sc-h2__text { max-width: 900px; }
  .sc-h2 .sc-h2__title { font-size: clamp(44px, 4.4vw, 62px); }
}
/* R-06 768~899: 버튼 3개 — 첫 버튼은 한 줄 전체, 나머지 둘은 한 줄 2칸(하나만 혼자 떨어지지 않게) */
@media (min-width: 600px) and (max-width: 899.98px) {
  .sc-h2 .sc-hero__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sc-h2 .sc-hero__btns > :first-child { grid-column: 1 / -1; }
  .sc-h2 .sc-hero__btns .sc-hero__btn { width: 100%; }
}
/* R-06 모바일: 입원 문의(전화)를 첫 버튼으로 — 하단 퀵바 뒤로 가려지지 않게, 리드 사이 간격도 줄임 */
@media (max-width: 599.98px) {
  .sc-h2 .sc-hero__btns > a[href^="tel:"] { order: -1; }
  .sc-h2 .sc-hero__btns { margin-top: 18px; }
  .sc-h2__text > .sc-h2__facts { margin-top: 12px; }
}
/* R-10 문의 띠 배경(병원 간판 사진) — 옆 가게 간판 대신 병원 간판이 보이게 위쪽으로 */
.sc-l3 { --sc-l3-pos: center 22%; }
/* R-14 척추·관절 통증 부위 4섹션 — 짧은 글 가운데 정렬(sec-brief)을 풀고 모두 왼쪽 정렬로 맞춤 */
:is(#neck, #back, #shoulder, #knee) .prose { text-align: left; }
:is(#neck, #back, #shoulder, #knee).sec-brief .prose > p { max-width: none; margin-inline: 0; text-wrap: pretty; }
:is(#neck, #back, #shoulder, #knee).sec-brief .cta-row { justify-content: flex-start; }
:is(#neck, #back, #shoulder, #knee) :is(.sec-head, .sc-sec__head) { text-align: left; }
/* R-14 보강: 가운데 제목 아래 본문을 왼쪽 정렬 카드 한 장으로 — 제목과 같은 가운데 축, 읽는 글은 왼쪽(섹션과 반대 톤 카드 — site-build 9) */
:is(#neck, #back, #shoulder, #knee) .prose { max-width: 860px; margin-inline: auto; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent-500); }
.bg-white:is(#neck, #back, #shoulder, #knee) .prose { background: var(--ivory); }
.bg-ivory:is(#neck, #back, #shoulder, #knee) .prose, .bg-sand:is(#neck, #back, #shoulder, #knee) .prose { background: #fff; }
:is(#neck, #back, #shoulder, #knee) .prose > p + p { margin-top: .7em; }

/* ── 2026-11-23 헤더·위 띠를 세종약손과 같은 부품으로(사용자 지시) — N1+N6 → N10 2단, 띠 오른쪽 링크는 아이콘 링크 ── */
.sc-sc { display: inline-flex; align-items: center; gap: 6px; }
.sc-sc .ico { width: 18px; height: 18px; flex: none; color: var(--accent-500); }
.sc-tb10__r .sc-sc .ico { color: var(--deep-800); }
/* 로고 비율 — 공용 sc.css의 width:170px를 높이 기준으로 바꿔 가로로 눌리지 않게(원본 242×44) */
.sc-nav--n10 .sc-hd__logo img { width: auto; height: 40px; }
@media (min-width: 600px) and (max-width: 1099.98px) { .sc-nav--n10 .sc-hd__logo img { height: 36px; } }
@media (max-width: 599.98px) {
  .sc-nav--n10 .sc-hd__logo img { width: 150px; height: auto; }
  .sc-nav--n10 .sc-n10__call { margin-right: 4px; min-width: 0; }
  .sc-nav--n10 .sc-n10__call b { font-size: 15px; }
}
@media (max-width: 399.98px) {
  .sc-nav--n10 .sc-hd__logo img { width: 128px; }
  .sc-nav--n10 .sc-n10__call b { font-size: 13.5px; letter-spacing: -.02em; }
}
.sc-nav--n10 .sc-n10__call { padding-left: 12px; }
@media (max-width: 359.98px) { .sc-nav--n10 .sc-n10__call { display: none; } .sc-nav--n10 .sc-mm-burger { margin-left: auto; } }
/* 600~899px: 전화번호를 메뉴 버튼 옆으로 */
@media (min-width: 600px) and (max-width: 899.98px) {
  .sc-nav--n10 .sc-n10__call { margin-left: auto; margin-right: 8px; }
  .sc-nav--n10 .sc-mm-burger { margin-left: 0; }
}
/* N10 메뉴 막대 드롭다운(사용자 2026-11-23 "드랍다운 메뉴가 어색하네. navbar에 맞춰서 다시 디자인해봐")
   떠 있는 흰 카드 대신 막대에 붙어 그 칸 폭 그대로 아래로 이어지는 진한 청록 판 — 열린 버튼 색(brand-strong)과 이어져 한 덩어리로 보인다 */
.sc-nav--n10 .sc-n10__bar .sc-dd--d9 .sc-dd__panel {
  top: 100%; left: 0; right: 0; width: auto; padding: 6px 0 10px;
  background: var(--sc-brand-strong); border: 0; border-radius: 0 0 var(--sc-radius-md) var(--sc-radius-md);
  box-shadow: 0 14px 28px rgba(var(--sc-shadow-rgb), .22);
  transform: translateY(-4px);
}
.sc-nav--n10 .sc-n10__bar .sc-dd.is-open .sc-dd__panel,
html:not(.sc-js) .sc-nav--n10 .sc-n10__bar .sc-dd:is(:hover, :focus-within) .sc-dd__panel { transform: none; }
.sc-nav--n10 .sc-n10__bar .sc-dd__panel::before { display: none; }
.sc-nav--n10 .sc-dd9 { margin: 0; padding: 0; list-style: none; }
.sc-nav--n10 .sc-dd9 li + li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.sc-nav--n10 .sc-dd9 a {
  justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 0;
  color: rgba(255, 255, 255, .88); font-size: 15px; font-weight: 600;
}
.sc-nav--n10 .sc-dd9 a::before { left: 50%; top: auto; bottom: 9px; width: 24px; height: 2px; margin-left: -12px; background: var(--accent-500); transform: scaleX(0); }
.sc-nav--n10 .sc-dd9 a::after { display: none; }
.sc-nav--n10 .sc-dd9 a:hover, .sc-nav--n10 .sc-dd9 a:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.sc-nav--n10 .sc-dd9 a:hover::before, .sc-nav--n10 .sc-dd9 a:focus-visible::before { transform: scaleX(1); }
.sc-nav--n10 .sc-dd9 a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.sc-nav--n10 .sc-dd9 a[aria-current="page"]::before { transform: scaleX(1); }
.sc-nav--n10 .sc-dd9 a:focus-visible { outline: 2px solid var(--accent-500); outline-offset: -4px; }
@media (max-width: 1099.98px) { .sc-nav--n10 .sc-n10__bar .sc-dd--d9 .sc-dd__panel { left: 0; right: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-nav--n10 .sc-n10__bar .sc-dd__panel { transform: none; } }

/* ── 생성 이미지 개편 (사용자 지정 2026-11-24 "텍스트만 있지 않게 이미지를 넣고 모던하게") ──
   gen-* 이미지는 표시 글자 없이 그대로 쓴다(사용자 지정 2026-11-24) */
.gen-fig { position: relative; display: block; overflow: hidden; border-radius: inherit; }
.gen-fig > img { display: block; width: 100%; }
.split-media .gen-fig { border-radius: var(--radius-lg, 20px); }
.split-media .gen-fig > img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.split-media:has(.gen-fig) { box-shadow: 0 18px 40px -24px rgba(92, 74, 60, .45); border-radius: var(--radius-lg, 20px); }
/* 넓은 화면은 사진이 글 칸 높이를 채운다(1148줄 규칙) — 감싼 span도 칸을 채워야 사진이 보인다 */
@media (min-width: 900px) { .split:not(:has(.doc-zoom)) .split-media .gen-fig { position: absolute; inset: 0; } }
.split:hover .split-media .gen-fig > img { transform: scale(1.03); }
/* 가로 카드(사진 | 글) 안에서는 사진 칸 전체를 채운다 */
.sub.sub-media .card-media .gen-fig { position: absolute; inset: 0; }
.sub.sub-media .card-media .gen-fig > img { height: 100%; }

/* 소제목 카드가 전부 사진 카드면 3단(2개면 2단) 세로 카드로 — 사진 위, 글 아래 */
@media (min-width: 900px) {
  .subs:has(> .sub-media):not(:has(> .sub:not(.sub-media))) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .subs:has(> .sub-media):not(:has(> .sub:not(.sub-media))) > .sub.sub-media { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; }
  .subs:has(> .sub-media):not(:has(> .sub:not(.sub-media))) > .sub.sub-media .card-media { min-height: 0; aspect-ratio: 3 / 2; }
  .subs:has(> .sub-media):not(:has(> .sub:not(.sub-media))) > .sub.sub-media .card-body { align-self: start; }
}
.subs > .sub.sub-media { box-shadow: 0 1px 2px rgba(92, 74, 60, .06), 0 12px 32px -20px rgba(92, 74, 60, .35);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1); }
.subs > .sub.sub-media .card-media img { transition: transform .9s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) {
  .subs > .sub.sub-media:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(92, 74, 60, .08), 0 22px 44px -22px rgba(92, 74, 60, .45); }
  .subs > .sub.sub-media:hover .card-media img { transform: scale(1.04); }
}
.subs > .sub.sub-media .card-body h3 { font-size: clamp(18px, 1.6vw, 20px); letter-spacing: -.01em; }
.subs > .sub.sub-media .card-body h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; border-radius: 3px; background: #c49a3c; }

/* 틴트 섹션에 한지 결 — 아주 옅게(글자 대비에 영향 없게 ::after 장식층, 기존 ::before 창살과 겹치지 않음) */
.sc-sec--tint { position: relative; isolation: isolate; }
.sc-sec--tint::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background: url(/assets/img/gen-texture-hanji-800.webp) center / cover no-repeat; mix-blend-mode: multiply; }
@media (min-width: 900px) { .sc-sec--tint::after { background-image: url(/assets/img/gen-texture-hanji.webp); } }

@media (prefers-reduced-motion: reduce) {
  .subs > .sub.sub-media, .subs > .sub.sub-media .card-media img, .split-media .gen-fig > img { transition: none; }
  .subs > .sub.sub-media:hover, .subs > .sub.sub-media:hover .card-media img, .split:hover .split-media .gen-fig > img { transform: none; }
}

/* ── 섹션 제목 HD7 대괄호 + 테마색 (사용자 지정 2026-11-24 "섹션제목 까만색 쓰지마, about.gunpohani.com처럼 테마색", "[] 템플릿으로")
   참고 사이트처럼 제목 전체를 진한 테마색, 윗줄(가늘게)은 한 단계 밝은 테마색. 괄호는 메인 청록 #c49a3c. 글자 대비: #7f644d/#f7f3ef 3.9:1(큰 글자 3:1 이상) */
.sc-tt--hd7 { --sc-tt-br: #e8e0d6; --sc-tt-br-w: clamp(8px, .8vw, 12px); margin-bottom: clamp(28px, 3.5vw, 44px); } /* 괄호 더 두껍고 연하게(2026-11-24 — 옛 #c49a3c·4~6px → 6~9px → 8~12px) */
.sc-tt--hd7 .sc-tt__h { color: #503f31; margin: 0; }
.sc-tt--hd7 .sc-tt__pre { color: #66503d; } /* 가는 윗줄은 큰 글자로 안 쳐서 4.5:1 필요 — #614f40은 흰 5.3·틴트 5.0·진한 틴트 4.75 */
.sc-tt--hd7 .sc-tt__em { color: #503f31; }
/* 분할 섹션(글 | 사진)의 괄호 제목도 가운데(사용자 지정 2026-11-24 "[]로 감싼건 중앙에") — 글 칸 안 가운데, 크기만 조금 작게 */
.sc-tt--hd7.sc-tt--start { margin-inline: auto; margin-bottom: 20px; } /* 괄호 안쪽 여백은 다른 섹션 제목(HD7 기본)과 같게(2026-11-24 "[]가 너무 붙어있어") */
.sc-tt--hd7.sc-tt--start .sc-tt__h { font-size: clamp(22px, 16px + 1.2vw, 30px); text-align: center; }
/* 흰 섹션의 글 칸도 색 카드로 감싸지 않는다 — 사진 옆 글은 바탕에 바로(참고 about.gunpohani.com/about, 사용자 지정 2026-11-24). 카드는 작은 항목·틴트 섹션 위 흰 카드에만 */
.bg-white .fit-card, .fit-card { background: none; border-radius: 0; padding: 0; box-shadow: none; }
@media (min-width: 900px) { .fit-card { padding-right: clamp(8px, 2vw, 32px); } }
.subs > .sub .card-body h3, .subs > .sub h3, .sub-head h3 { color: #503f31; } /* 카드 소제목도 까만색 대신 테마색(2026-11-24) */

/* ── 사진 옆 글 섹션 (사용자 지정 2026-11-24 "이미지를 오른쪽에", "[] 섹션제목은 컨테이너 중앙에")
   괄호 제목은 두 칸 밖 위 가운데(render.mjs), 아래는 글(왼쪽) | 사진(오른쪽). 글은 카드 없이 세로 가운데 */
.split:not(.split-whole):not(:has(.doc-zoom)) > .split-text { display: flex; flex-direction: column; justify-content: center; }
.sc-tt--hd7.sc-tt--start { margin-bottom: clamp(28px, 3.5vw, 44px); }
.sc-tt--hd7.sc-tt--start .sc-tt__h { font-size: clamp(24px, 17.9px + 1.57vw, 36px); }

/* 페이지 머리 배경 사진 2장 번갈아(layout.mjs image.more) — 12초에 한 번 천천히 교차, 자리(absolute)라 높이 변화 없음 */
.page-head-photo.ph-fade--2 img { animation: ph-fade-a 12s ease-in-out infinite; }
.page-head-photo.ph-fade--2 img.ph-more { animation-name: ph-fade-b; }
@keyframes ph-fade-a { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ph-fade-b { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .page-head-photo.ph-fade--2 img { animation: none; } .page-head-photo.ph-fade--2 img.ph-more { display: none; } }
.sc-car + .prose { margin-top: clamp(20px, 2.5vw, 32px); } /* 사진을 문장 위로 올린 섹션(galleryFirst) — 사진과 문장 사이 여백(2026-11-24) */
#single-room .sc-car__card { aspect-ratio: 4 / 3; } /* 입원실 첫 섹션 사진 2장은 살짝 가로형(사용자 지정 2026-11-24) */

/* ════ HDX 내비게이션 — 365maeilcancer.com/home/ 헤더 그대로 옮김 (사용자 지정 2026-11-24 "냅바 탑바를 여기 디자인으로") ════
   짙은 반투명 두 단: 윗단(흐름 안, 내리면 사라짐) = 왼쪽 진료 안내 두 줄 · 가운데 흰 로고 · 오른쪽 전화 / 아랫단(붙는 메뉴 줄) = 가운데 같은 폭 칸 + 짧은 세로 구분선.
   색은 이 사이트 청록 먹색 + 밝은 청록 강조(--accent-400). 첫 머리(메인 히어로·하위 머리 사진) 위에 겹친다. 높이는 고정값이라 흔들림 없음 */
:root { --hdx-top-h: 84px; --hdx-bar-h: 64px; --hdx-bg: rgba(31, 25, 19, .74); }
@media (max-width: 899.98px) { :root { --hdx-top-h: 36px; --hdx-bar-h: 60px; } }
.hdx-top { position: relative; z-index: 45; color: #c0b5ad; background: var(--hdx-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hdx-top__in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hdx-top-h); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hdx-top__info { margin: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.hdx-top__l1 { font-size: 15px; font-weight: 600; color: #f0eae3; }
.hdx-top__l1 b, .hdx-top__cta b { color: var(--accent-400); font-weight: 700; }
.hdx-top__l2 { font-size: 13px; color: #cac2b8; font-variant-numeric: tabular-nums; }
.hdx-top__mb { display: none; }
.hdx-top__lunch { white-space: nowrap; }
.hdx-top__logo { justify-self: center; display: flex; align-items: center; min-height: 44px; }
.hdx-top__logo img { width: auto; height: 50px; } /* 윗단 84px 안에서 키움(사용자 지정 2026-11-24 "가운데 로고가 좀 작다") */
.hdx-top__cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #f0eae3; font-size: 15px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.hdx-top__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-400); color: #1f1913; flex: none; }
.hdx-top__ic .sc-ic { width: 17px; height: 17px; }
.hdx-top__cta:hover, .hdx-top__cta:focus-visible { color: #fff; }
.hdx-top :focus-visible { outline-color: var(--accent-300); }

/* 붙는 메뉴 줄 */
.sc-hd.hdx { --sc-header-h: var(--hdx-bar-h); z-index: 50; background: var(--hdx-bg); }
.sc-hd.hdx .sc-hd__bg { background: transparent; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sc-hd.hdx :focus-visible { outline-color: var(--accent-300); }
.sc-hd.hdx .sc-m, .sc-hd.hdx .sc-dd__btn { color: #f6f4f1; font-weight: 500; }
.sc-hd.hdx .sc-m:hover, .sc-hd.hdx .sc-dd__btn:hover, .sc-hd.hdx .sc-m[aria-current="page"], .sc-hd.hdx .sc-dd__btn[aria-current="page"],
.sc-hd.hdx .sc-dd.is-open .sc-dd__btn, .sc-hd.hdx .sc-dd:hover .sc-dd__btn, .sc-hd.hdx .sc-dd:focus-within .sc-dd__btn { color: var(--accent-400); background: transparent; }
.sc-hd.hdx .sc-m::after, .sc-hd.hdx .sc-dd__btn::after { content: none !important; display: none !important; }
.sc-hd.hdx .sc-dd__chev { color: currentColor; opacity: .75; }
.sc-hd.hdx .sc-mm-burger { color: #fff; }
.sc-hd.hdx .sc-hd__logo img { width: auto; height: 40px; }
@media (min-width: 900px) {
  .sc-hd.hdx { overflow-x: clip; }
  .sc-hd.hdx .sc-hd__logo { display: none; }
  .sc-hd.hdx .sc-hd__nav { margin: 0 auto; }
  .sc-hd.hdx .sc-hd__menu { gap: 0; align-self: stretch; }
  .sc-hd.hdx .sc-hd__nav, .sc-hd.hdx .sc-hd__menu, .sc-hd.hdx .sc-hd__menu > li { height: var(--hdx-bar-h); }
  .sc-hd.hdx .sc-hd__menu > li { position: relative; display: flex; align-items: center; justify-content: center; }
  .sc-hd.hdx .sc-hd__menu > li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; transform: translateY(-50%); background: rgba(255, 255, 255, .16); }
  .sc-hd.hdx .sc-m, .sc-hd.hdx .sc-dd__btn { font-size: 16px; padding: 0 clamp(12px, 1.6vw, 26px); }
  /* 진료 안내 드롭다운 — 그 칸 아래 반투명 띠 + 위 강조선, 하위 메뉴 가운데 세로 목록 */
  .sc-hd.hdx .sc-dd__panel, .sc-hd.hdx .sc-hd__menu > .sc-dd--d9:last-child .sc-dd__panel { left: 0; right: 0; width: auto; min-width: 150px; padding: 16px 0 20px; background: rgba(31, 25, 19, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 0; border-top: 2px solid var(--accent-400); border-radius: 0; box-shadow: 0 12px 24px rgba(0, 0, 0, .18); text-align: center; transform: none; }
  .sc-hd.hdx .sc-dd9 { display: grid; gap: 2px; }
  .sc-hd.hdx .sc-dd9 a { justify-content: center; min-height: 38px; padding: 0 12px; border-radius: 0; background: none; color: #ded8d1; font-size: 15px; font-weight: 500; }
  .sc-hd.hdx .sc-dd9 a::before, .sc-hd.hdx .sc-dd9 a::after { content: none; display: none; }
  .sc-hd.hdx .sc-dd9 a:hover, .sc-hd.hdx .sc-dd9 a:focus-visible, .sc-hd.hdx .sc-dd9 a[aria-current="page"] { background: none; color: var(--accent-400); }
}
@media (min-width: 1280px) {
  .sc-hd.hdx .sc-hd__menu > li { min-width: 170px; }
  .sc-hd.hdx .sc-m, .sc-hd.hdx .sc-dd__btn { font-size: 17px; }
}
@media (min-width: 900px) and (max-width: 1099.98px) {
  .hdx-top__lunch { display: none; }
  .hdx-top__info { padding-right: 20px; }
  .hdx-top__l2 { white-space: nowrap; }
}
@media (max-width: 899.98px) {
  .hdx-top__in { grid-template-columns: 1fr; border-bottom: 0; }
  .hdx-top__l1, .hdx-top__dk, .hdx-top__logo, .hdx-top__cta { display: none; }
  .hdx-top__mb { display: block; font-size: 13px; color: #e3ddd6; text-align: center; }
}
/* 첫 머리를 윗단+메뉴 줄 아래로 당겨 사진이 그 뒤로 보이게 — 당긴 만큼 안쪽 위 여백을 더해 글자 자리는 그대로 */
main .sc-hero.sc-h2, main .page-head.has-bg { margin-top: calc(-1 * (var(--hdx-top-h) + var(--hdx-bar-h))); }
main .sc-hero.sc-h2 { padding-top: calc(var(--hdx-top-h) + var(--hdx-bar-h)); }
main .page-head.has-bg { padding-top: calc(clamp(56px, 7vw, 96px) + var(--hdx-top-h) + var(--hdx-bar-h)); }

/* ── 히어로 밝게 (사용자 지정 2026-11-24 "navbar도 어두운데 히어로까지 어두우니까 구분이 잘 안되네 … 조금만 더 밝게") ──
   사진 밝기 .62 → .9, 막은 글자 쪽(왼쪽)만 남기고 옅게(365maeilcancer.com과 같은 방식). 하위 머리도 같은 정도. 글자에는 옅은 그림자 */
.sc-h2__bg .sc-h2__video, .sc-h2__bg .sc-h2__slide img { filter: brightness(.9); }
@media (min-width: 900px) {
  .sc-h2::after {
    background:
      linear-gradient(0deg, rgba(var(--sc-overlay-rgb), .4) 0%, rgba(var(--sc-overlay-rgb), 0) 40%),
      linear-gradient(90deg, rgba(var(--sc-overlay-rgb), .7) 0%, rgba(var(--sc-overlay-rgb), .52) 40%, rgba(var(--sc-overlay-rgb), .12) 70%, rgba(var(--sc-overlay-rgb), 0) 100%);
  }
}
@media (max-width: 899.98px) {
  .sc-h2::after { background: linear-gradient(180deg, rgba(var(--sc-overlay-rgb), .48) 0, rgba(var(--sc-overlay-rgb), .6) 40%, rgba(var(--sc-overlay-rgb), .7) 100%); }
}
.sc-h2 .sc-h2__title, .sc-h2__lead, .sc-h2 .sc-h2__facts, .sc-h2 :is(h1, p) { text-shadow: 0 1px 3px rgba(18, 14, 10, .45); }
.page-head.has-bg .page-head-photo img { filter: brightness(.9); }
.page-head.has-bg .page-head-photo::after { background: linear-gradient(180deg, rgba(var(--sc-overlay-rgb), .5) 0%, rgba(var(--sc-overlay-rgb), .58) 100%); }
.page-head.has-bg :is(h1, .lead, .eyebrow, .byline, .crumbs) { text-shadow: 0 1px 3px rgba(18, 14, 10, .5); }
.page-head.has-bg .crumbs, .page-head.has-bg .crumbs a, .page-head.has-bg .crumbs li, .page-head.has-bg .byline { color: rgba(255, 255, 255, .94); }

/* 하위 머리 뱃지(지역 등) — 메인 히어로 뱃지(.sc-h2__badge)와 같은 밝은 청록 알약 + 핀 표시(사용자 지정 2026-11-24 "뱃지 색이 어색") */
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 7px 14px 7px 11px; border: 0; border-radius: 999px; background: var(--accent-400); color: #1e1812; font-size: 14px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-shadow: none !important; }
.page-head .eyebrow::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 767.98px) { .page-head .eyebrow { display: inline-flex; padding: 6px 12px 6px 10px; font-size: 14px; } }

/* ════ 절차 CH — 진행단계(참고 cheonan.dosolhospital.co.kr/sub/sub07_01.php, 사용자 지정 2026-11-24) ════
   위: 화살표(쉐브론) 칸이 가로로 맞물리며 단계마다 짙어지는 청록(STEP 01 · 이름 · 선 아이콘). 아래: 세로선 + 네모 표시 + 설명.
   색 단계는 흰 글자 대비 4.5:1 이상(#66503d 5.3 → #1f1913). 899px 이하는 세로로 쌓고 칸 아래가 뾰족해진다 */
.sc-steps--chev { --ch-notch: 26px; display: flex; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: none; }
.sc-steps--chev > .sc-step { --c: #66503d; position: relative; display: flex; flex-direction: column; align-self: flex-start; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.sc-steps--chev > .sc-step:nth-child(2) { --c: #5c4837; }
.sc-steps--chev > .sc-step:nth-child(3) { --c: #4d3c2e; }
.sc-steps--chev > .sc-step:nth-child(4) { --c: #3e3125; }
.sc-steps--chev > .sc-step:nth-child(5) { --c: #2f251c; }
.sc-steps--chev > .sc-step:nth-child(6) { --c: #1f1913; }
.sc-steps--chev > .sc-step::before, .sc-steps--chev > .sc-step::after { content: none !important; display: none !important; }
.sc-steps--chev .sc-step__head { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 188px; box-sizing: border-box;
  padding: 26px calc(var(--ch-notch) + 14px) 24px calc(var(--ch-notch) + 20px); margin-right: calc(-1 * var(--ch-notch) + 4px); color: #fff; background: var(--c);
  clip-path: polygon(0 0, calc(100% - var(--ch-notch)) 0, 100% 50%, calc(100% - var(--ch-notch)) 100%, 0 100%, var(--ch-notch) 50%); }
.sc-steps--chev > .sc-step:first-child .sc-step__head { padding-left: 24px; border-radius: 14px 0 0 14px; clip-path: polygon(0 0, calc(100% - var(--ch-notch)) 0, 100% 50%, calc(100% - var(--ch-notch)) 100%, 0 100%); }
.sc-steps--chev > .sc-step:last-child .sc-step__head { margin-right: 0; padding-right: 24px; border-radius: 0 14px 14px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--ch-notch) 50%); }
.sc-steps--chev .sc-step__n { position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sc-steps--chev .sc-step__t { margin: 0; color: #fff; font-size: clamp(17px, 1.5vw, 19px); font-weight: 700; line-height: 1.4; word-break: keep-all; }
.sc-steps--chev .sc-step__ic { margin-top: auto; padding-top: 14px; color: #fff; opacity: .95; }
.sc-steps--chev .sc-step__svg { display: block; width: 38px; height: 38px; stroke-width: 1.4; }
.sc-steps--chev .sc-step__body { position: relative; padding: 0 18px 0 calc(var(--ch-notch) + 20px); }
.sc-steps--chev > .sc-step:first-child .sc-step__body { padding-left: 24px; }
.sc-steps--chev .sc-step__body::before { content: ""; display: block; width: 1px; height: 34px; margin-left: 4px; background: #dbd3c9; }
.sc-steps--chev .sc-step__mk { display: block; width: 10px; height: 10px; margin: 0 0 14px; background: var(--c); }
.sc-steps--chev .sc-step__d { margin: 0; color: var(--ink, #2b2623); font-size: 15px; line-height: 1.7; word-break: keep-all; }
.sc-steps--chev .sc-step__card { display: contents; }
@media (max-width: 899.98px) {
  .sc-steps--chev { flex-direction: column; gap: 6px; }
  .sc-steps--chev > .sc-step { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
  .sc-steps--chev .sc-step__head, .sc-steps--chev > .sc-step:first-child .sc-step__head, .sc-steps--chev > .sc-step:last-child .sc-step__head {
    min-height: 0; margin: 0; padding: 16px 14px 24px; border-radius: 12px 12px 0 0; gap: 6px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px)); }
  .sc-steps--chev > .sc-step:last-child .sc-step__head { border-radius: 12px; clip-path: none; padding-bottom: 16px; }
  .sc-steps--chev .sc-step__t { font-size: 15px; }
  .sc-steps--chev .sc-step__ic { padding-top: 6px; }
  .sc-steps--chev .sc-step__svg { width: 28px; height: 28px; }
  .sc-steps--chev .sc-step__body, .sc-steps--chev > .sc-step:first-child .sc-step__body { display: flex; align-items: center; padding: 10px 0 16px 16px; }
  .sc-steps--chev .sc-step__body::before, .sc-steps--chev .sc-step__mk { display: none; }
  .sc-steps--chev .sc-step__d { font-size: 15px; }
}
/* 섹션 안 부품 버튼(.sc-btn — 전화 "입원 문의 031-606-7788" 등)은 본문 링크 밑줄 규칙(.fit-card a:not(.btn) 등)에서 뺀다(사용자 지정 2026-11-24 "밑줄 제거") */
.sec a.sc-btn, .sec a.sc-btn:hover, .sec a.sc-btn :is(span, b, small, strong) { text-decoration: none !important; }

/* 이미지만 있는 자리의 모서리를 덜 둥글게(사용자 지정 2026-11-24 "이미지만 있는것들은 border를 좀 더 줄여") — 20px → 8px.
   글이 함께 있는 카드(사진 카드·안내 콘텐츠 카드·프로필)는 그대로 */
:root { --img-radius: 8px; --sc-car-radius: 8px; }
.split-media, .split-media img, .fit-ph, .fit-ph img, .single-photo img, .stack-photo img, .page-head-media img, .flow img,
.split-media:has(.gen-fig), .split-media .gen-fig, .sc-car__card, .sc-car__card img { border-radius: var(--img-radius) !important; }
/* 머리·히어로 뱃지 글자 굵기 800 → 600(사용자 지정 2026-11-24 "뱃지 텍스트 bold 좀 줄여") */
.page-head .eyebrow, .sc-h2__badge { font-weight: 600; }
.sc-h2__badge, .sc-h2 .sc-h2__badge { text-shadow: none !important; } /* 히어로 글자 그림자(.sc-h2 :is(h1, p))가 뱃지에 걸려 글자가 번져 보이던 것 — 뱃지는 그림자 없음(2026-11-24) */

/* ── 섹션 제목 괄호 = ever-smile.kr/html/main/ h2.title 그대로 (사용자 지정 2026-11-24 "[]디자인을 여기서 그대로, 색만 냅두고") ──
   원본 측정값: 제목 40px·굵기 100(윗줄)/700(아랫줄)·자간 -1px·줄높이 56px, 괄호는 글자 "[" "]" 굵기 800·크기 122px(제목의 3.05배)·top -29px, 안쪽 여백 좌우 100px.
   여기서는 제목 크기만 화면 폭에 맞춰 줄이고(clamp) 나머지는 비율 그대로. 색은 이 사이트 값(괄호 --sc-tt-br, 글자 청록). 글꼴은 Pretendard(사이트 규칙) */
.sc-tt--hd7, .sc-tt--hd7.sc-tt--start { --tt-fs: clamp(26px, 18px + 1.6vw, 40px); position: relative; width: fit-content; max-width: 100%; margin-inline: auto;
  padding: 0 calc(var(--tt-fs) * 2.5); font-size: var(--tt-fs); }
.sc-tt--hd7::before, .sc-tt--hd7::after { position: absolute; top: calc(var(--tt-fs) * -.725); bottom: auto; width: auto; height: auto; border: 0 !important;
  font-size: calc(var(--tt-fs) * 3.05); font-weight: 800; line-height: normal; letter-spacing: -1px; color: var(--sc-tt-br); pointer-events: none; }
.sc-tt--hd7::before { content: "["; left: 0; right: auto; }
.sc-tt--hd7::after { content: "]"; right: 0; left: auto; }
.sc-tt--hd7 .sc-tt__h, .sc-tt--hd7.sc-tt--start .sc-tt__h { font-size: var(--tt-fs); line-height: 1.4; letter-spacing: -1px; text-align: center; }
.sc-tt--hd7 .sc-tt__pre { font-weight: 100; letter-spacing: -1px; }
.sc-tt--hd7 .sc-tt__em { font-weight: 700; letter-spacing: -1px; }
@media (max-width: 599.98px) { .sc-tt--hd7, .sc-tt--hd7.sc-tt--start { --tt-fs: 24px; padding: 0 44px; } }

/* 섹션 기본 본문 = clinicpalace.com/tapering-2/ 본문 문단 값(사용자 지정 2026-11-24 "이정도 색과 크기가 좋을듯")
   원본: 18px · 굵기 400 · 줄높이 1.8 · #666. 모바일 원본 12px은 사이트 최소 글자(14px) 아래라 16px. #666은 흰 5.7:1 · 틴트 #f9f7f4 5.5:1 */
.sec :is(.fit-card, .prose, .split-text) > p, .sec .prose :is(p, li), .sec .split-text li, .sec .fit-card li { font-size: 18px; font-weight: 400; line-height: 1.8; color: #666; }
.sec .sub .card-body p, .sec .sub .card-body li, .sc-faq__in p, .sc-faq__in li { color: #666; }
@media (max-width: 767.98px) { .sec :is(.fit-card, .prose, .split-text) > p, .sec .prose :is(p, li), .sec .split-text li, .sec .fit-card li { font-size: 16px; } }
/* 진행단계(.sc-steps--chev) 글자는 본문 회색 규칙에서 뺀다 — 칸 안 제목은 흰 글자, 아래 설명은 그대로 */
.sec .sc-steps--chev .sc-step__t { color: #fff; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.4; font-weight: 700; }
.sec .sc-steps--chev .sc-step__d { color: #666; font-size: 15px; line-height: 1.7; }
@media (max-width: 899.98px) { .sec .sc-steps--chev .sc-step__t { font-size: 15px; } }

/* 섹션 제목과 본문 사이 간격 넓힘(사용자 지정 2026-11-24 "섹션제목과 본문내용을 전체적으로 조금씩 떨어뜨려놔") — 괄호 글자가 제목 아래로 내려오는 만큼 여유 */
.sc-tt--hd7, .sc-tt--hd7.sc-tt--start { margin-bottom: clamp(44px, 5.2vw, 72px); }
@media (max-width: 599.98px) { .sc-tt--hd7, .sc-tt--hd7.sc-tt--start { margin-bottom: 40px; } }

/* 메인 진료 안내 3블록 = 원형 사진 구성(참고 youmg.co.kr/성장클리닉/ "유명한의원의 성장클리닉", 사용자 지정 2026-11-24)
   카드 바탕·그림자 없이: 큰 원형 사진 → 굵은 제목(가운데) → 회색 설명(가운데). 버튼은 설명 아래 가운데
   교통사고 후유증 "증상 부위" 3블록(#areas)도 같은 모양 (사용자 지정 2026-11-24) */
#clinic .subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 56px); margin-top: 0; }
#clinic .subs > .sub.sub-media { display: flex; flex-direction: column; align-items: center; padding: 0; background: none !important; box-shadow: none !important; border-radius: 0; overflow: visible; transform: none !important; text-align: center; }
#clinic .sub.sub-media .card-media { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1; min-height: 0; border-radius: 50%; overflow: hidden; }
#clinic .sub.sub-media .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50% !important; }
#clinic .sub.sub-media:hover .card-media img { transform: scale(1.04); }
#clinic .sub.sub-media .card-body { padding: 26px 4px 0; align-self: stretch; }
#clinic .sub.sub-media .card-body h3 { margin: 0 0 10px; font-size: clamp(19px, 1.6vw, 21px); font-weight: 700; color: #503f31; }
#clinic .sub.sub-media .card-body h3::after { display: none; }
#clinic .sub.sub-media .card-body p { margin: 0; font-size: 16px; line-height: 1.75; color: #666; }
#clinic .sub.sub-media .ctas, #clinic .sub.sub-media .cta-row { justify-content: center; margin-top: 18px; }
@media (max-width: 767.98px) {
  #clinic .subs { grid-template-columns: 1fr; gap: 44px; }
  #clinic .sub.sub-media .card-media { width: min(72%, 260px); }
}

/* 섹션 위아래 여백 넓힘(사용자 지정 2026-11-24 "섹션들이 너무 따닥따닥 붙어있는거같아") — 96 → 136px(데스크톱), 56 → 72px(모바일). 모든 페이지 공통 */
.sec { padding: clamp(72px, 10vw, 136px) 0; }

/* 메인 입원실 사진 2장 자동 롤링(사용자 지정 2026-11-24 — 입원실 페이지 첫 섹션 두 번째 사진 ward-single-1이 첫 장). 겹쳐 놓고 opacity만 바꿔 칸 크기 그대로, 10초 주기 */
.fit-ph.fit-roll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fit-roll-a 10s ease-in-out infinite; }
.fit-ph.fit-roll img.fit-more { animation-name: fit-roll-b; }
@keyframes fit-roll-a { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fit-roll-b { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fit-ph.fit-roll img { animation: none; } .fit-ph.fit-roll img.fit-more { opacity: 0; } }
@media (max-width: 899.98px) { .fit-ph.fit-roll { aspect-ratio: 4 / 3; } }

/* ════ 주요 정보 육각형 HX (사용자 지정 2026-11-24 — 참고 yeonijae.co.kr/sub/05/01.html "역류성식도염의 발병기전과 한의학적 원인" 그림) ════
   정육각형(위아래 평평) 4개 지그재그: 1100px 이상 한 줄(짝수 칸이 반 칸 아래로 맞물림), 560~1099px 2열 벌집, 560px 미만 세로 지그재그.
   바깥 li = 칸 색(테두리 역할), 안쪽 .hx__in = 위 절반 칸 색 + 아래 절반 흰 바탕. 테두리 두께 t는 빗변에서도 같게 가로 inset을 t×1.155로. 그림자 없는 평면 */
.hx { --t: 8px; display: flex; align-items: flex-start; justify-content: center; margin: 0; padding: 0 0 8px; list-style: none; }
.hx > .hx__item { --c: #b59b84; --tc: #231c16; --w: 28.53%; position: relative; flex: none; width: var(--w); aspect-ratio: 1 / .866; margin: 0; padding: 0; background: var(--c);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.hx > .hx__item:nth-child(2) { --c: #d1c1ae; --tc: #231c16; }
.hx > .hx__item:nth-child(3) { --c: #b3a49a; --tc: #231c16; }
.hx > .hx__item:nth-child(4) { --c: #e7dfd6; --tc: #231c16; } /* 육각형 색 연하게(2026-11-24 — 옛 #503f31·#c49a3c·#2b2623·#e3dbd2, 글자는 모두 짙은 색) */
.hx__in { position: absolute; inset: var(--t) calc(var(--t) * 1.155); display: grid; grid-template-rows: 1fr 1fr; background: linear-gradient(var(--c) 0 50%, #fff 50% 100%);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.hx__cap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-top: 6%; color: var(--tc); text-align: center; }
.hx__no { font-size: 14px; font-weight: 700; letter-spacing: .04em; opacity: .9; font-variant-numeric: tabular-nums; }
.hx__t { margin: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--tc); }
.hx__ck { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px; margin: 0; padding: 9% 0 0; list-style: none; }
.hx__ck li { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; line-height: 1.35; color: #46372a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx__ic { width: 16px; height: 16px; flex: none; fill: none; stroke: #7f644d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1100px) {
  .hx > .hx__item + .hx__item { margin-left: calc(var(--w) * -.165); }
  .hx > .hx__item:nth-child(even) { margin-top: calc(var(--w) * .433 + 12px); }
}
@media (min-width: 560px) and (max-width: 1099.98px) {
  /* 2열 벌집 — 격자에 칸을 정해 놓고 2열은 왼쪽으로 .165w 당겨 맞물림, 3번은 1번 바로 아래·4번은 2번 바로 아래 */
  .hx, .hx > .hx__item { --w: min(320px, calc((100vw - 64px) * .545)); } /* 칸 안 margin %는 격자 칸 기준이라 길이로 */
  .hx { display: grid; grid-template-columns: var(--w) var(--w); justify-content: center; align-items: start; }
  .hx > .hx__item { width: 100%; }
  .hx > .hx__item:nth-child(even) { margin-left: calc(var(--w) * -.165); }
  .hx > .hx__item:nth-child(2) { margin-top: calc(var(--w) * .433 + 12px); }
  .hx > .hx__item:nth-child(3) { margin-top: calc(var(--w) * -.433); }
  .hx > .hx__item:nth-child(4) { margin-top: 12px; }
}
@media (max-width: 559.98px) {
  .hx { flex-direction: column; align-items: stretch; gap: 12px; }
  .hx > .hx__item { --w: min(310px, 94%); }
  .hx > .hx__item:nth-child(even) { align-self: flex-end; }
  .hx__ck { padding-top: 5%; gap: 4px; }
  .hx__ck li { font-size: 14px; }
}


/* 메인 1인 입원실 첫 줄 "서울365추나관한의원은 1인 입원실을 운영합니다." — 테마색보다 살짝 연한 청록 + 굵게(사용자 지정 2026-11-24).
   #736050은 흰 바탕 4.2:1 — 19px 굵은 글자(큰 글자 기준 3:1) 통과 */
#inpatient .fit-card > p:first-child { color: #785e48; font-size: 19px; font-weight: 700; }
/* 메인 1인 입원실 사진 크게(사용자 지정 2026-11-24 — 거울 있는 사진 ward-single-1 한 장, 자동 넘김 없음). 글:사진 7:5 → 5:6, 높이 하한 460px */
@media (min-width: 900px) {
  #inpatient .fit { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  #inpatient .fit-ph { min-height: 460px; }
}
.page-head.has-bg .lead { color: rgb(248, 246, 245); } /* 하위 머리 리드 문장을 메인 히어로 리드와 같은 흰색으로(사용자 지정 2026-11-24) */

/* ════ 가운데 크게 보기 캐러셀 .tv — iloguro.kr style.css에서 옮김(사용자 지정 2026-11-24 "캐러셀 디자인을 iloguro.kr/location/ 이런식으로") ════ */
/* ── 가운데 크게 보기 캐러셀 .tv (사용자 지정 2026-11-19, 참고 jhhospital.kr 병원 둘러보기) ──
   가운데 사진이 크고(양옆의 1.3배) 양옆은 작고 흐리게, 화살표는 가운데 사진 양 끝, 아래에 점. 사진 5장 이상인 묶음에 쓴다(render.mjs TV_MIN).
   무대 높이는 --cw로 미리 정해져 사진이 늦게 오거나 넘어가도 아래 내용이 움직이지 않는다. 모든 사진은 HTML의 <img> 그대로.
   JS가 없으면(sc-js 없음) 옆으로 미는 줄(scroll-snap)로 보인다. */
.sec:has(.tv) { overflow-x: hidden; overflow-x: clip; }
.tv { --cw: min(32vw, 520px); --k: .7692; --sw: calc(var(--cw) * var(--k)); --vgap: 24px; --gap: calc(var(--vgap) + (var(--cw) - var(--sw)) / 2); --arrow: 44px; margin-top: 8px; }
.tv__stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: calc(var(--cw) / 1.446 + 30px); overflow: hidden; }
.tv .tv__track { display: flex; align-items: center; gap: var(--gap); height: 100%; margin: 0; padding: 0 calc(50% - var(--sw) / 2); list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tv .tv__track::-webkit-scrollbar { display: none; }
.tv .tv__track:focus-visible { outline-offset: -4px; }
.tv .tv__track > .tv__slide { flex: 0 0 var(--sw); width: var(--sw); margin: 0; scroll-snap-align: center; }
.tv__card { margin: 0; aspect-ratio: 1.446; border-radius: var(--radius); overflow: hidden; background: var(--sand); isolation: isolate; }
.tv__card img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); -webkit-user-drag: none; }
.tv__btn, .tv__dots { display: none; }
/* JS가 있으면: 사진마다 가운데에서 몇 칸 떨어졌는지(--d)로 자리를 잡는다. transform·opacity만 바꾼다 */
.sc-js .tv .tv__track { display: block; padding: 0; overflow: hidden; touch-action: pan-y; }
.sc-js .tv .tv__track > .tv__slide { position: absolute; top: 50%; left: calc(50% - var(--sw) / 2); opacity: .45; cursor: pointer; transform: translate3d(calc(var(--d, 0) * (var(--sw) + var(--gap))), -50%, 0); transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease; }
.sc-js .tv .tv__track > .tv__slide.is-center { z-index: 2; opacity: 1; cursor: default; transform: translate3d(0, -50%, 0) scale(calc(1 / var(--k))); }
.sc-js .tv .tv__track > .tv__slide.is-center .tv__card { box-shadow: 0 4px 10px rgba(52, 41, 32, .22); }
.sc-js .tv .tv__track > .tv__slide.is-off { opacity: 0; pointer-events: none; }
.sc-js .tv__btn { position: absolute; z-index: 3; top: calc(50% - var(--arrow) / 2); display: grid; place-items: center; width: var(--arrow); height: var(--arrow); padding: 0; border: 2.5px solid #fff; border-radius: 50%; background: var(--deep-500); color: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(52, 41, 32, .22); transition: background-color .2s, transform .2s var(--ease); }
.sc-js .tv__prev { left: calc(50% - var(--cw) / 2 - var(--arrow) / 2); }
.sc-js .tv__next { left: calc(50% + var(--cw) / 2 - var(--arrow) / 2); }
.tv__btn:hover { background: var(--deep-800); transform: scale(1.06); }
.tv__btn .sc-ic { width: 20px; height: 20px; }
.sc-js .tv__dots { display: flex; justify-content: center; height: 24px; margin-top: 12px; }
.tv__dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.tv__dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #d0c4b5; transition: background-color .2s; }
.tv__dot.is-on::before { background: var(--deep-500); }
.sec:not(.bg-white) .tv__dot:not(.is-on)::before { background: #c4af9d; }
@media (max-width: 768px) { .tv { --cw: 80vw; --k: .62; --vgap: 14px; } }
@media (max-width: 480px) { .tv { --cw: 84vw; --k: .58; --vgap: 12px; } }
@media (prefers-reduced-motion: reduce) { .sc-js .tv .tv__track > .tv__slide, .tv__btn, .tv__dot::before { transition: none; } .tv__btn:hover { transform: none; } }
/* 이 사이트: 화살표를 사진 옆이 아니라 아래 점 양옆에(< ● ● ● >, 사용자 지정 2026-11-24). 색은 이 사이트 청록, 그림자 갈색 → 청록 */
.tv__ctrl { display: none; }
.sc-js .tv__ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.sc-js .tv .tv__btn { position: static; top: auto; left: auto; flex: none; width: 44px; height: 44px; border: 1px solid #e4d8c9; background: #fff; color: #503f31; box-shadow: 0 2px 6px rgba(92, 74, 60, .12); }
.sc-js .tv .tv__btn:hover { background: #503f31; color: #fff; border-color: #503f31; }
.sc-js .tv .tv__dots { margin-top: 0; }
.tv__dot.is-on::before { background: #503f31; }
.tv__dot::before, .sec:not(.bg-white) .tv__dot:not(.is-on)::before { background: #e4d8c9; }
.sc-js .tv .tv__track > .tv__slide.is-center .tv__card { box-shadow: 0 6px 16px rgba(92, 74, 60, .2); }
.tv__card { border-radius: var(--img-radius, 8px); background: var(--ivory); }

/* 메인 대표원장 소개 문장 — 두 줄로 나눠 가운데 정렬 (사용자 지정 2026-11-24). 줄 사이는 문단 간격 없이 바로 이어지게 */
#doctor .prose { text-align: center; }
#doctor .prose > p:not(:last-child) { margin-bottom: 0; }

/* ════ 안내 콘텐츠 카드 아래쪽 꾸밈 (사용자 지정 2026-11-24 "이미지 아래부분 레이아웃이 너무 밋밋해, 자세히보기 버튼도 밋밋해, 화살표는 제거") ════
   번호(01·02…) + 짧은 선 → 청록 제목 → 회색 설명 → 알약형 "자세히 보기" 버튼(카드에 마우스를 올리면 청록으로 채워짐). 화살표는 guide.mjs에서 뺌 */
.sc-gc__list { counter-reset: gc; }
.sc-gc__list > li { counter-increment: gc; }
.sc-gc__card { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(92, 74, 60, .06), 0 10px 28px -18px rgba(92, 74, 60, .35); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1); text-decoration: none; }
.sc-gc__body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.sc-gc__body::before { content: counter(gc, decimal-leading-zero); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #785e48; font-variant-numeric: tabular-nums; }
.sc-gc__body::after { content: ""; position: absolute; left: 52px; top: 31px; width: 28px; height: 2px; border-radius: 2px; background: #e4d8c9; }
.sc-gc__t { display: block; font-size: 18px; font-weight: 700; line-height: 1.45; color: #503f31; word-break: keep-all; }
.sc-gc__d { display: block; font-size: 15px; line-height: 1.7; color: #666; word-break: keep-all; }
.sc-gc__more { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; margin-top: auto; min-height: 40px; padding: 0 20px; border: 1px solid #dbd0c2; border-radius: 999px; background: #fff; color: #503f31; font-size: 14px; font-weight: 700; transition: background-color .25s, color .25s, border-color .25s; }
.sc-gc__d + .sc-gc__more, .sc-gc__t + .sc-gc__more { margin-top: auto; }
.sc-gc__d { margin-bottom: 12px; }
.sc-gc__more svg { display: none; }
@media (hover: hover) {
  .sc-gc__card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(92, 74, 60, .08), 0 20px 40px -22px rgba(92, 74, 60, .45); }
  .sc-gc__card:hover .sc-gc__more { background: #503f31; border-color: #503f31; color: #fff; }
}
.sc-gc__card:focus-visible .sc-gc__more { background: #503f31; border-color: #503f31; color: #fff; }
@media (prefers-reduced-motion: reduce) { .sc-gc__card, .sc-gc__more { transition: none; } .sc-gc__card:hover { transform: none; } }

/* 히어로 높이 통일(사용자 지정 2026-11-24 "hero높이는 기본적으로 메인페이지의 hero높이와 동일하게") — 메인 히어로와 하위 머리(사진 배경) 모두 같은 최소 높이(헤더 겹침 포함, border-box).
   글이 더 길면 그만큼만 늘어난다. 하위 머리 글은 세로 가운데 */
:root { --hero-h: 864px; }
@media (max-width: 1199.98px) { :root { --hero-h: 820px; } }
@media (max-width: 899.98px) { :root { --hero-h: 640px; } }
main .sc-hero.sc-h2, main .page-head.has-bg { box-sizing: border-box; min-height: var(--hero-h); }
main .page-head.has-bg { display: flex; flex-direction: column; justify-content: center; }
main .page-head.has-bg > .wrap { width: 100%; }

/* 입원실 페이지 첫 섹션 문장과 아래 사진 사이 여백 넓힘(사용자 지정 2026-11-24) */
#single-room .prose + .sc-car, #single-room .prose + .tv { margin-top: clamp(44px, 5vw, 64px) !important; }

/* 글 다음에 오는 카드·단계·사진·표·법령 상자는 여백을 넉넉히 띄운다 (사용자 지정 2026-11-24 "텍스트랑 다른 카드들, 이미지들 너무 딱 붙어 있는 건 여백을 띄우도록").
   문단 아래 여백(1em)과 겹쳐(collapse) 실제 간격은 이 값이 된다. 표 이름표(.table-caption)·인물 이름표 → 목록, 히어로·문의 띠 안은 그대로 */
main :is(p:not(.table-caption, .profile-label, .sc-h2__lead, .sc-l3__p), .prose)
  + :is(.sc-steps, .sc-car, .sc-cards, .sc-people, .table-box, .law, .subs, .card-grid, .doctor-grid, .carousel, .single-photo, .stack-photo, figure) {
  margin-top: clamp(36px, 4vw, 48px);
}

/* ════ 입원실 페이지 "성남 교통사고 입원" — 카드 구성 (사용자 지정 2026-11-24 "템플릿 레퍼런스 디자인, 카드를 사용") ════
   원고 그대로(문단 2 + 근거 2). 위: 보험 안내 카드 2장(아이콘 원 + 문장), 아래: "근거 법령" 카드 2장(법령 이름 굵게 + 내용). 아이콘은 장식(CSS) */
#traffic-accident .prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: none; }
#traffic-accident .prose > p { position: relative; margin: 0; padding: 104px 30px 30px; border: 1px solid #e9ded0; border-radius: 16px; background: #f9f7f4; font-size: 18px; line-height: 1.7; color: #46372a; font-weight: 500; }
#traffic-accident .prose > p::before { content: ""; position: absolute; left: 30px; top: 30px; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px -8px rgba(92, 74, 60, .35); }
#traffic-accident .prose > p::after { content: ""; position: absolute; left: 44px; top: 44px; width: 28px; height: 28px; background: #503f31;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
#traffic-accident .prose > p:nth-child(1) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14M4 17V12l2-5h12l2 5v5M4 12h16'/%3E%3Ccircle cx='7.5' cy='17' r='1.8'/%3E%3Ccircle cx='16.5' cy='17' r='1.8'/%3E%3C/svg%3E"); }
#traffic-accident .prose > p:nth-child(2) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 12h18M12 11v3'/%3E%3C/svg%3E"); }
#traffic-accident .law { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: none; margin: 16px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
#traffic-accident .law::before { content: "근거 법령"; grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; letter-spacing: .04em; color: #66503d; }
#traffic-accident .law p { margin: 0; padding: 24px 26px; border-radius: 14px; border-left: 4px solid #e6cf8f; background: #fff; box-shadow: 0 1px 2px rgba(92, 74, 60, .06), 0 10px 26px -18px rgba(92, 74, 60, .35); font-size: 15px; line-height: 1.75; color: #666; }
#traffic-accident .law p + p { margin-top: 0; }
#traffic-accident .law cite { display: block; margin-bottom: 8px; font-size: 16px; line-height: 1.5; color: #503f31; }
#traffic-accident .law cite a { color: inherit; text-decoration: none; }
#traffic-accident .law cite a:hover { text-decoration: underline; }
@media (max-width: 767.98px) {
  #traffic-accident .prose, #traffic-accident .law { grid-template-columns: 1fr; gap: 14px; }
  #traffic-accident .prose > p { padding: 92px 22px 24px; font-size: 16px; }
  #traffic-accident .prose > p::before { left: 22px; top: 22px; }
  #traffic-accident .prose > p::after { left: 36px; top: 36px; }
}

/* ── 진료시간·오시는 길 표 — 모던 카드형 (사용자 지정 2026-11-24, 업종 레퍼런스 아이누리 천안 "주간 진료 시간표 + 안내 카드" 2단 참고) ──
   표는 둥근 판 하나: 세로줄 없이 가로 구분선만, 머리칸은 연한 민트, 시각은 크게, 비고는 알약 꼬리표. 글자는 모두 표 원문에 있다(이미지 아님) */
#hours .wrap:has(> .hours-box) { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; align-items: start; }
#hours .wrap > .sc-tt { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  #hours .wrap:has(> .hours-box) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  #hours .wrap > .subs { margin-top: 0; }
}
#hours .hours-box { margin: 0; max-width: none; }
#hours .hours-box::after { display: none; }
table.hours, table.address-table {
  border-collapse: separate; border-spacing: 0; min-width: 0; width: 100%; max-width: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm);
}
table.hours caption {
  display: flex; align-items: center; gap: 10px; padding: 0 0 14px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--deep-500);
}
table.hours caption::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-500); }
/* 열 머리(요일·진료시간)는 읽기 도구에만 — 왼쪽 칸 이름이 이미 무엇인지 말해 준다 */
table.hours thead th { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:is(table.hours, table.address-table) :is(tbody th, td) { border: 0; border-bottom: 1px solid #ebe2d8; vertical-align: middle; }
:is(table.hours, table.address-table) tbody tr:last-child :is(th, td) { border-bottom: 0; }
:is(table.hours, table.address-table) tbody th { background: #f7f3ef; color: var(--deep-800); font-weight: 700; white-space: nowrap; }
table.hours tbody th { width: 36%; padding: 20px 24px; font-size: 16px; }
table.hours td { padding: 20px 24px; color: var(--ink); line-height: 1.5; }
table.hours .hr-time { font-size: 19px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr-tag {
  display: inline-block; margin-left: 8px; padding: 3px 11px; border-radius: 999px; vertical-align: 2px;
  background: rgba(178, 151, 128, .15); color: var(--deep-500); font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
table.hours .hr-lunch .hr-time { font-size: 17px; font-weight: 600; color: var(--muted); }
table.hours .hr-lunch .hr-tag { background: #f1f0ee; color: var(--muted); }
table.hours .hr-off td { color: #866950; font-weight: 700; }
/* 오른쪽 안내 카드 두 장 — 표와 같은 판 모양 */
#hours .subs { gap: 16px; }
#hours .subs > .sub { max-width: none; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory); }
#hours .subs > .sub p { margin-bottom: 0; }

/* 오시는 길 표 */
table.address-table th { padding: 16px 20px; font-size: 15px; }
table.address-table td { padding: 16px 20px; }
@media (max-width: 599.98px) {
  table.hours tbody th, table.hours td { padding: 16px 16px; }
  table.hours tbody th { width: 34%; font-size: 15px; }
  table.hours .hr-time { font-size: 17px; }
  .hr-tag { margin: 6px 0 0; }
  table.hours td .hr-tag { display: table; }
  table.address-table th, table.address-table td { padding: 13px 14px; }
  #hours .subs > .sub { padding: 22px 20px; }
}

/* 모란역에서 오시는 길 안내 문장 — 두 줄 가운데 정렬 (사용자 지정 2026-11-24) */
#directions .prose { text-align: center; margin-inline: auto; }
#directions .prose > p:not(:last-child) { margin-bottom: 0; }
/* 두 표: 줄무늬 없이 흰 판 + 왼쪽 칸만 민트. 진료시간 표 이름은 읽기 도구용(섹션 제목이 이미 "한의원 진료시간") — 판 안에 끼어 꺾이지 않게 */
:is(table.hours, table.address-table) tbody tr > td { background: #fff; }
:is(table.hours, table.address-table) tbody tr > th { background: #f7f3ef; }
table.hours caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 진료시간 2단: 왼쪽 표와 오른쪽 카드 두 장의 위·아래 끝을 맞춘다 (사용자 지정 2026-11-24 "좌우 높이 맞춰줘").
   둘 중 높은 쪽에 맞춰 표는 줄 높이가, 카드는 두 장이 반씩 늘어난다 */
@media (min-width: 1000px) {
  #hours .wrap:has(> .hours-box) { align-items: stretch; }
  #hours .hours-box, #hours .hours-box > .table-wrap { height: 100%; }
  #hours .hours-box table.hours { height: 100%; }
  #hours .wrap > .subs { grid-template-rows: 1fr 1fr; align-content: stretch; }
  #hours .subs > .sub { display: flex; flex-direction: column; justify-content: center; }
}
#hours table.hours { margin: 0; } /* 옛 .hours 위 여백 8px이 남아 카드보다 아래에서 시작하고 아래 테두리가 잘렸다 */
/* 2단일 때 표는 칸에 꼭 맞으므로 표 칸 안 스크롤을 아예 두지 않는다 (사용자 지정 2026-11-24 "스크롤 생긴 거 없도록") */
@media (min-width: 1000px) { #hours .hours-box > .table-wrap { overflow: visible; } }

/* 진료시간 표 뱃지 모던하게(사용자 지정 2026-11-24 "야간진료, 휴게시간없이진료 뱃지를 다른 디자인으로 모던하게") —
   알약 → 둥근 사각(8px) + 앞 아이콘. 야간진료 = 진한 청록 채움·흰 글자·달, 휴게시간 없이 진료 = 청록 테두리·시계, 평일(점심) = 회색 테두리. 아이콘은 장식(CSS mask) */
.hr-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 5px 12px 5px 9px; border: 1px solid #c6b2a1; border-radius: 8px; vertical-align: 3px;
  background: #fff; color: #503f31; font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; box-shadow: 0 1px 2px rgba(92, 74, 60, .08); }
.hr-tag::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: var(--tag-ico) center / contain no-repeat; mask: var(--tag-ico) center / contain no-repeat; }
table.hours tbody tr:nth-child(1) .hr-tag { border-color: #503f31; background: linear-gradient(135deg, #503f31, #342920); color: #fff; box-shadow: 0 4px 10px -4px rgba(55, 43, 33, .55);
  --tag-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/%3E%3C/svg%3E"); }
table.hours tbody tr:nth-child(2) .hr-tag { --tag-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
table.hours tbody tr:nth-child(3) .hr-tag { --tag-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); } /* 공휴일 행 — 반듯 진료시간 3행(디자인 검수 R-17) */
table.hours .hr-lunch .hr-tag { border-color: #dddad7; background: #fff; color: #6d6661; box-shadow: none;
  --tag-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4'/%3E%3C/svg%3E"); }
@media (max-width: 599.98px) { .hr-tag { margin: 8px 0 0; } table.hours td .hr-tag { display: flex; width: fit-content; } }
/* 뱃지와 시간 글자 높이·세로 가운데 맞춤(사용자 지정 2026-11-24 "뱃지들이 텍스트와 높이가 딱 맞아야") — 둘 다 30px 줄 상자, 세로 가운데 */
table.hours .hr-time { display: inline-flex; align-items: center; height: 30px; line-height: 30px; vertical-align: middle; }
.hr-tag { box-sizing: border-box; height: 30px; padding-top: 0; padding-bottom: 0; line-height: 1; vertical-align: middle; }
@media (max-width: 599.98px) { table.hours .hr-time { height: 28px; line-height: 28px; } .hr-tag { height: 28px; } }
/* 요일 글자와 시간 글자 줄 맞춤(사용자 지정 2026-11-24) — 두 칸 모두 세로 가운데 + 같은 30px 줄 높이, 시간 숫자는 한글 요일과 글자 높이가 비슷하게 17px로 통일 */
table.hours tbody :is(th, td) { vertical-align: middle; line-height: 30px; }
table.hours tbody th { font-size: 17px; }
table.hours .hr-time, table.hours .hr-lunch .hr-time { font-size: 18px; }

/* ════ 소개 페이지 대표원장 약력 — 모던하게 (사용자 지정 2026-11-24 "디자인도 모던하게, 사진도 아래로 더 보여줬으면") ════
   사진: 원본 비율(978×1260) 그대로 잘리지 않게 끝까지(팔짱 낀 팔까지), 연한 민트 판 위 + 아래에 이름 띠(장식 — 이름은 제목에 이미 있음).
   오른쪽: 소개 문단 → 학력·학회·경력 카드 3장(아이콘 원 + 점 목록). 화면 글자는 원고 그대로 */
.t-about #doctor .profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; padding: 0; border: 0; background: none; box-shadow: none; }
.t-about #doctor .profile-photo { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 0; padding: 32px 24px 0; border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, #f1ece6 0%, #ece4db 100%); aspect-ratio: auto; height: auto; }
.t-about #doctor .profile-photo img, .t-about #doctor .profile-photo > img.is-portrait { position: static !important; display: block; width: 100%; max-width: 420px; height: auto !important; aspect-ratio: 978 / 1260 !important; object-fit: contain !important; object-position: 50% 100% !important; transform: none !important; border-radius: 0 !important; mix-blend-mode: multiply; }
.t-about #doctor .profile-photo::after { content: "대표원장  박준관"; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 8px 20px -10px rgba(55, 43, 33, .45); color: #342920; font-size: 16px; font-weight: 800; letter-spacing: .02em; white-space: pre; }
.t-about #doctor .profile-panel { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 0; border: 0; background: none; box-shadow: none; }
.t-about #doctor .profile-body { position: relative; padding: 4px 0 0 22px; border-left: 3px solid #e6cf8f; }
.t-about #doctor .profile-body p { margin: 0; font-size: 18px; line-height: 1.8; color: #46372a; }
.t-about #doctor .profile-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.t-about #doctor .profile-col { padding: 22px 20px 20px; border: 1px solid #e9ded0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(92, 74, 60, .05), 0 10px 26px -20px rgba(92, 74, 60, .4); }
.t-about #doctor .profile-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #503f31; }
.t-about #doctor .profile-label::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #f0eae2 var(--lab-ico) center / 18px no-repeat; }
.t-about #doctor .profile-col:nth-child(1) { --lab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23544335' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c2 2 10 2 12 0v-5'/%3E%3C/svg%3E"); }
.t-about #doctor .profile-col:nth-child(2) { --lab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23544335' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 19c0-3 3-5 6-5s6 2 6 5M14 19c0-2 1.5-4 4-4s3 1.5 3 4'/%3E%3C/svg%3E"); }
.t-about #doctor .profile-col:nth-child(3) { --lab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23544335' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 12h18'/%3E%3C/svg%3E"); }
.t-about #doctor .profile-col ul { margin: 0; padding: 0; list-style: none; }
.t-about #doctor .profile-col li { position: relative; margin: 0; padding: 5px 0 5px 14px; font-size: 15px; line-height: 1.55; color: #59524d; word-break: keep-all; }
.t-about #doctor .profile-col li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: #c49a3c; }
.t-about #doctor .profile-col li + li { border-top: 1px dashed #ebe2d8; }
@media (max-width: 1099.98px) { .t-about #doctor .profile-cols { grid-template-columns: 1fr; } }
@media (max-width: 899.98px) {
  .t-about #doctor .profile { grid-template-columns: 1fr; }
  .t-about #doctor .profile-photo { max-width: 420px; width: 100%; margin-inline: auto; }
}
/* 사진 판 = 사진 배경색(#f2f2f2)과 같게 — 사진 테두리 사각형이 보이지 않게. 약력 카드 2열(학력·학회 / 경력 넓게) */
.t-about #doctor .profile-photo { background: #f2f2f2; padding: 24px 24px 0; }
.t-about #doctor .profile-photo img, .t-about #doctor .profile-photo > img.is-portrait { mix-blend-mode: normal; }
@media (min-width: 1100px) {
  .t-about #doctor .profile-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-about #doctor .profile-col:nth-child(3) { grid-column: 1 / -1; }
}
/* 이름 띠는 사진 아래(팔)를 가리지 않게 왼쪽 위로 */
.t-about #doctor .profile-photo::after { left: 20px; top: 20px; bottom: auto; transform: none; }

/* 소개 약력 사진: 허리까지 나온 doctor-park-3(흰 바탕)로 바꿔 판도 흰색, 이름 띠 삭제(사용자 지정 2026-11-24) */
.t-about #doctor .profile-photo { background: #fff; border: 1px solid #ebe2d8; }
.t-about #doctor .profile-photo::after { content: none; display: none; }

/* 오시는 길 카카오 지도 — 핀을 칸 정가운데에, 카카오 상호 상자 위에 깔끔한 이름표 (사용자 지정 2026-11-24).
   카카오 그림(598×734)은 핀을 가로 49.2%·세로 46% 자리에 찍는다. 칸 크기(cq 단위)로 그림 크기를 정해 칸을 꽉 덮으면서
   그 핀 자리가 칸 정가운데에 오게 놓는다 — 넓은 화면에서 칸이 표 높이만큼 늘어나도, 좁은 화면에서 그림 비율로 서도 같다.
   가장자리가 조금 잘려 아래 카카오 로고가 가려질 수 있어 출처를 글자(© Kakao)로 남긴다 */
#address .address-map { position: relative; container-type: size; width: 100%; }
@media (max-width: 899.98px) { #address .address-map { aspect-ratio: 598 / 734; height: auto; } }
@media (min-width: 900px) { #address .address-media { align-items: stretch; } #address .address-map { flex: 1; aspect-ratio: auto; } }
#address .address-map img {
  --hi: max(108.7cqh, 132.6cqw);               /* 위·아래 모두 칸을 덮는 최소 높이(100/0.92) · 폭이 칸보다 8% 넓게(1.08×734/598) */
  position: absolute; inset: auto; top: calc(50cqh - 0.46 * var(--hi)); left: calc(50cqw - 0.492 * 0.8147 * var(--hi));
  width: calc(0.8147 * var(--hi)); height: var(--hi); max-width: none; aspect-ratio: auto; object-fit: fill; transform: none;
}
.address-map__label {
  position: absolute; left: 49.2%; top: calc(50% - 0.042 * max(108.7cqh, 132.6cqw)); transform: translate(-50%, -100%); z-index: 1;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--deep-800); color: #fff; font-size: clamp(12px, 1.1vw, 14px); font-weight: 700; letter-spacing: -.01em; line-height: 1.4;
  box-shadow: 0 4px 12px rgba(45, 36, 30, .28), 0 0 0 3px #fff;
}
.address-map__credit { position: absolute; right: 8px; bottom: 6px; z-index: 1; padding: 1px 7px; border-radius: 4px; background: rgba(255, 255, 255, .85); color: #555; font-size: 11px; font-weight: 600; line-height: 1.5; }

/* 지도 길찾기 버튼 — 서비스 고유 색 (사용자 지정 2026-11-24). 네이버 초록 #816349·흰 글자, 카카오 노랑 #FEE500·검은 글자.
   네이버 초록 위 흰 글자 대비는 약 2.4:1로 사이트 기준(4.5:1)보다 낮다 — 네이버 공식 버튼 색을 따르기로 함(decisions) */
.map-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 800; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease); }
.map-btn:hover, .map-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); filter: brightness(1.03); text-decoration: none; }
.map-btn--naver, .map-btn--naver:hover, .map-btn--naver:focus-visible { background: #816349; color: #fff; }
.map-btn--kakao, .map-btn--kakao:hover, .map-btn--kakao:focus-visible { background: #FEE500; color: #191919; }
.map-btn__ic { display: inline-grid; place-items: center; flex: none; }
.map-btn--naver .map-btn__ic { width: 24px; height: 24px; border-radius: 6px; background: #fff; color: #816349; }
.map-btn--kakao .map-btn__ic { width: 24px; height: 24px; color: #191919; }
.map-btn--kakao .map-btn__ic svg { width: 22px; height: 22px; }
@media (max-width: 599.98px) { .cta-row .map-btn { width: 100%; } }
/* 지도 이름표 차분하게 (사용자 지정 2026-11-24 "색이 너무 튄다") — 흰 바탕·짙은 글자·옅은 테두리, 앞에 작은 청록 점, 아래 작은 꼬리로 핀을 가리킨다 */
.address-map__label {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 700; border: 1px solid rgba(92, 74, 60, .22);
  box-shadow: 0 2px 6px rgba(45, 36, 30, .14);
}
.address-map__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-500); flex: none; }
.address-map__label::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: #fff; border-right: 1px solid rgba(92, 74, 60, .22); border-bottom: 1px solid rgba(92, 74, 60, .22); transform: translateX(-50%) rotate(45deg); }
/* 사이트 기본 버튼(.btn:not(...) 청록 그라디언트)보다 앞서게 — 서비스 고유 색은 바뀌면 안 된다 */
a.btn.map-btn.map-btn--naver:is(*, :hover, :focus-visible) { background: #816349; color: #fff; border-color: transparent; }
a.btn.map-btn.map-btn--kakao:is(*, :hover, :focus-visible) { background: #FEE500; color: #191919; border-color: transparent; }
a.btn.map-btn:is(*, :hover, :focus-visible) { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
/* 길찾기 버튼 호버 — 사이트 버튼의 청록 그라디언트(background-image)가 덮이지 않게 끄고, 같은 색의 한 단계 짙은 값으로만 바꾼다 (사용자 지정 2026-11-24 "호버했을 때 색이 어색해") */
a.btn.map-btn:is(*, :hover, :focus-visible) { background-image: none; filter: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
a.btn.map-btn:is(:hover, :focus-visible) { box-shadow: 0 8px 18px rgba(0, 0, 0, .16); }
a.btn.map-btn.map-btn--naver:is(:hover, :focus-visible) { background-color: #715740; }
a.btn.map-btn.map-btn--kakao:is(:hover, :focus-visible) { background-color: #F2D900; }
/* 카카오맵 길찾기 글자 굵기 한 단계 낮춤 (사용자 지정 2026-11-24) */
a.btn.map-btn.map-btn--kakao { font-weight: 600; }
/* 위 규칙이 사이트 기본 버튼 호버(.btn:not(.btn-line):not(.btn-ghost):not(.btn-gold):hover, 우선순위 0-5-0)에 밀려 서비스 색만 고정한다 */
a.btn.map-btn { background-image: none !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .12) !important; }
a.btn.map-btn:hover, a.btn.map-btn:focus-visible { box-shadow: 0 8px 18px rgba(0, 0, 0, .16) !important; }
a.btn.map-btn--naver { background-color: #816349 !important; }
a.btn.map-btn--naver:hover, a.btn.map-btn--naver:focus-visible { background-color: #715740 !important; }
a.btn.map-btn--kakao { background-color: #FEE500 !important; }
a.btn.map-btn--kakao:hover, a.btn.map-btn--kakao:focus-visible { background-color: #F2D900 !important; }
/* 하위 머리 소개 글을 두 문단으로 나눴을 때 빈 줄 없이 바로 다음 줄로 (사용자 지정 2026-11-24 "개행") */
.page-head .lead:has(+ .lead) { margin-bottom: 0; }
.page-head .lead + .lead { margin-top: 0; }
/* 진료 안내(교통사고·추나·척추) 히어로 스톡 사진만 조금 어둡게(사용자 지정 2026-11-24) — 다른 머리 사진 .9 → .78 */
.page-head.has-bg .page-head-photo img[src*="/stock-"] { filter: brightness(.78); }

/* 퀵바 블로그 = 네이버 블로그 표시(사용자 지정 2026-11-24 "퀵바 블로그를 실제 블로그 아이콘으로") — 펜 그림 대신 네이버 초록 칩에 흰 "blog" 글자.
   링크·이름(블로그)·새 창 안내는 그대로. 글자는 장식(aria-hidden 칩 안) */
.sc-qc a[data-qb="blog"] .sc-qc__chip svg { display: none; }
.sc-qc a[data-qb="blog"] .sc-qc__chip::before { content: "blog"; color: #fff; font: 800 12px/1 Pretendard, system-ui, sans-serif; letter-spacing: -.02em; transform: translateY(-1px); }
.sc-qc a[data-qb="blog"] .sc-qc__chip { background: #816349; }

/* 퀵바 칸마다 실제 앱 아이콘 색(사용자 지정 2026-11-24 "각 아이콘들 색을 실제 아이콘으로 해서 색을 다르게") —
   전화 = 전화 앱 초록, 길찾기(네이버 지도) = 흰 바탕 + 네이버 초록 핀, 카카오맵 = 카카오 노랑 + 짙은 갈색 핀, 진료시간 = 사이트 청록, 블로그 = 네이버 초록 "blog" */
.sc-qc a[data-qb="call"]  { --cg: #9b795b; --cgon: #fff; --sh: rgba(155, 121, 91, .4); }
.sc-qc a[data-qb="place"] { --cg: #fff; --cgon: #816349; --sh: rgba(129, 99, 73, .3); }
.sc-qc a[data-qb="place"] .sc-qc__chip { box-shadow: inset 0 0 0 2px #816349; }
.sc-qc a[data-qb="kakao"] { --cg: #fee500; --cgon: #3c1e1e; --sh: rgba(254, 229, 0, .5); }
.sc-qc a[data-qb="hours"] { --cg: #503f31; --cgon: #fff; --sh: rgba(92, 74, 60, .35); }
.sc-qc a[data-qb="blog"]  { --cg: #816349; --cgon: #fff; }
.sc-qc a[data-qb] .sc-qc__chip { background: var(--cg); color: var(--cgon); }
/* 길찾기도 색 채움(네이버 지도 초록), 전화는 파랑으로(사용자 지정 2026-11-24) */
.sc-qc a[data-qb="place"] { --cg: #816349; --cgon: #fff; }
.sc-qc a[data-qb="place"] .sc-qc__chip { box-shadow: none; }
.sc-qc a[data-qb="call"] { --cg: #2f7bea; --cgon: #fff; --sh: rgba(47, 123, 234, .4); }
.sc-qc a[data-qb="call"] { --cg: #c49a3c; --cgon: #fff; --sh: rgba(178, 151, 128, .4); } /* 전화 = 사이트 메인 청록(덜 튀게, 2026-11-24 "파란색 너무 눈에 띈다") — 진료시간(짙은 청록)보다 밝아 구분 */

/* ════ 척추·관절 통증 부위별 진료(#areas:has(#neck) — 교통사고 #areas와 구분) — 한 섹션, 사진 왼쪽·오른쪽 번갈아 (사용자 지정 2026-11-24) ════
   부위 제목(h3, 키워드 유지)은 큰 제목이 아니라 글 위 작은 이름표. 카드 바탕 없이 사진 | 글, 짝수 줄은 글 | 사진 */
#areas:has(#neck) .subs { display: grid; grid-template-columns: 1fr !important; gap: clamp(48px, 6vw, 88px); margin-top: 0; }
#areas:has(#neck) .subs > .sub.sub-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; grid-template-rows: auto; gap: clamp(32px, 5vw, 72px); align-items: center; padding: 0; background: none !important; border: 0; box-shadow: none !important; border-radius: 0; overflow: visible; transform: none !important; }
#areas:has(#neck) .subs > .sub.sub-media:nth-child(even) > .card-media { order: 2; }
#areas:has(#neck) .sub.sub-media .card-media { position: relative; min-height: 0; aspect-ratio: 3 / 2; border-radius: var(--img-radius, 8px); overflow: hidden; }
#areas:has(#neck) .sub.sub-media .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#areas:has(#neck) .sub.sub-media .card-body { padding: 0; align-self: center; }
#areas:has(#neck) .sub.sub-media .card-body h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: #f0eae2; color: #503f31; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
#areas:has(#neck) .sub.sub-media .card-body h3::after { display: none; }
#areas:has(#neck) .sub.sub-media .card-body p { margin: 0; font-size: 18px; line-height: 1.8; color: #666; }
#areas:has(#neck) .sub.sub-media .card-body p + p { margin-top: 14px; }
@media (max-width: 899.98px) {
  #areas:has(#neck) .subs > .sub.sub-media { grid-template-columns: 1fr !important; gap: 20px; }
  #areas:has(#neck) .subs > .sub.sub-media:nth-child(even) > .card-media { order: 0; }
  #areas:has(#neck) .sub.sub-media .card-body p { font-size: 16px; }
}
/* 교통사고 "목과 어깨" 원형 사진 — 인물이 사진 왼쪽 1/3에 있어 원 왼쪽으로 쏠렸다. 왼쪽 끝 기준으로 잘라 목·손이 원 가운데에 오게 (사용자 지정 2026-11-24) */
#areas .subs > .sub:nth-child(1) .card-media img { object-position: 0% 50%; }
/* 척추·관절 부위별: 제목 아래 여백 + 사진 줄 사이 여백 넓힘(2026-11-24) */
#areas:has(#neck) .sc-tt--hd7 { margin-bottom: clamp(64px, 7vw, 104px); }
#areas:has(#neck) .subs { gap: clamp(72px, 9vw, 128px); }
@media (max-width: 899.98px) { #areas:has(#neck) .subs { gap: 56px; } }

/* ════ 섹션 제목 괄호를 글자 "[ ]" 대신 선으로 (사용자 지정 2026-11-24 "[] 위아래로 같은 높이에, 섹션제목이 [] 중앙에") ════
   글자 괄호는 글꼴 모양 때문에 제목보다 아래로 치우쳤다(위 13px·아래 5px). 선 괄호는 제목 상자 위·아래에 같은 여백(--br-pad)으로 붙어 늘 가운데.
   두께·팔 길이는 ever-smile 글자 괄호와 비슷하게(제목 크기 비례). 색은 그대로 --sc-tt-br */
.sc-tt--hd7, .sc-tt--hd7.sc-tt--start { --br-pad: calc(var(--tt-fs) * .32); --br-w: calc(var(--tt-fs) * .46); --br-arm: calc(var(--tt-fs) * .88); /* 굵기·팔 길이 = 옛 글자 괄호 실측(제목 38.5px에서 기둥 18px·팔 34px) — 2026-11-24 사용자 "원래대로 두껍게" */ padding-top: var(--br-pad); padding-bottom: var(--br-pad); }
.sc-tt--hd7::before, .sc-tt--hd7::after { content: "" !important; top: 0 !important; bottom: 0 !important; width: var(--br-arm) !important; height: auto !important; font-size: 0 !important;
  border: var(--br-w) solid var(--sc-tt-br) !important; }
.sc-tt--hd7::before { left: 0 !important; border-right: 0 !important; }
.sc-tt--hd7::after { right: 0 !important; left: auto !important; border-left: 0 !important; }
/* 교통사고 "증상 부위"도 메인 진료 안내처럼 원형 사진 (사용자 지정 2026-11-24). 척추·관절 #areas(#neck 있음)는 원형 아님 — 같은 id라 :has로 가른다 */
#areas:not(:has(#neck)) .subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 56px); margin-top: 0; }
#areas:not(:has(#neck)) .subs > .sub.sub-media { display: flex; flex-direction: column; align-items: center; padding: 0; background: none !important; box-shadow: none !important; border-radius: 0; overflow: visible; transform: none !important; text-align: center; }
#areas:not(:has(#neck)) .sub.sub-media .card-media { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1; min-height: 0; border-radius: 50%; overflow: hidden; }
#areas:not(:has(#neck)) .sub.sub-media .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50% !important; }
#areas:not(:has(#neck)) .sub.sub-media:hover .card-media img { transform: scale(1.04); }
#areas:not(:has(#neck)) .sub.sub-media .card-body { padding: 26px 4px 0; align-self: stretch; }
#areas:not(:has(#neck)) .sub.sub-media .card-body h3 { margin: 0 0 10px; font-size: clamp(19px, 1.6vw, 21px); font-weight: 700; color: #503f31; }
#areas:not(:has(#neck)) .sub.sub-media .card-body h3::after { display: none; }
#areas:not(:has(#neck)) .sub.sub-media .card-body p { margin: 0; font-size: 16px; line-height: 1.75; color: #666; }
#areas:not(:has(#neck)) .sub.sub-media .ctas, #areas:not(:has(#neck)) .sub.sub-media .cta-row { justify-content: center; margin-top: 18px; }
@media (max-width: 767.98px) {
  #areas:not(:has(#neck)) .subs { grid-template-columns: 1fr; gap: 44px; }
  #areas:not(:has(#neck)) .sub.sub-media .card-media { width: min(72%, 260px); }
}
/* ── 2026-11-24 전체 재검수 디자인 반영 ── */
/* R-07 모바일 메뉴 닫기(X): 탭하면 숨은 체크박스가 :focus-visible이 되어 sc.css가 버튼 바탕을 옅은 틴트로 칠한다 — 흰 아이콘이 묻히지 않게 반투명 바탕 */
.sc-hd.hdx .sc-mm-burger:hover, .sc-hd.hdx .sc-mm-toggle:focus-visible ~ .sc-hd__in .sc-mm-burger { background: rgba(255, 255, 255, .16); }
/* R-03 메인 히어로 모바일: 버튼 셋을 2줄(입원실 안내 전체 폭 + 둘째 줄 2칸)로, 칩·버튼 위 여백을 줄여 둘째 버튼이 하단 퀵바에 가리지 않게 */
@media (max-width: 599.98px) {
  .sc-hero.sc-h2 .sc-hero__btns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .sc-hero.sc-h2 .sc-hero__btns > .sc-hero__btn { order: 0 !important; width: 100%; min-width: 0; padding-inline: 10px; }
  .sc-hero.sc-h2 .sc-hero__btns > :first-child { grid-column: 1 / -1; }
  .sc-hero.sc-h2 .sc-hero__btns > .sc-hero__btn span { white-space: nowrap; font-size: 14.5px; }
  .sc-hero.sc-h2 .sc-h2__facts { margin-top: 12px; margin-bottom: 0; }
}
/* R-22 오시는 길 320px: 진료시간 표·주소 표 시간 줄이 칸을 넘치지 않게 */
@media (max-width: 359.98px) {
  table.hours tbody th, table.hours td { padding: 14px 10px; }
  table.hours tbody th { width: auto; font-size: 14px; }
  .hr-tag { padding-inline: 8px; font-size: 12.5px; }
  .address-table .hr-line { white-space: normal; word-break: keep-all; }
}
/* R-32·R-25 [ ] 제목 윗줄 좁은 화면: 크기를 조금 줄이고 줄을 고르게 — 상호(띄어쓰기 없는 한 낱말)는 중간에서 꺾이지 않게 */
@media (max-width: 399.98px) {
  .sc-tt--hd7 .sc-tt__pre { font-size: clamp(17px, 5.4vw, 22px); text-wrap: balance; word-break: keep-all; }
  .sc-tt--hd7 { padding-inline: calc(var(--tt-fs) * 1.6); }
}
/* R-03 이어서 — 360×740 같은 낮은 폰에서도 버튼 둘째 줄이 퀵바 위에 오게 위아래 간격만 줄인다(글자 크기는 그대로) */
@media (max-width: 599.98px) {
  .sc-hero.sc-h2 .sc-h2__in { padding-top: 16px; }
  .sc-hero.sc-h2 .sc-h2__badge { margin-bottom: 8px; }
  .sc-hero.sc-h2 .sc-h2__tag { margin-bottom: 0; }
  .sc-hero.sc-h2 .sc-h2__title { margin-top: 12px; }
  .sc-hero.sc-h2 .sc-h2__lead { margin-top: 14px; }
  .sc-hero.sc-h2 .sc-h2__lead + .sc-h2__lead { margin-top: 6px; }
  .sc-hero.sc-h2 .sc-h2__facts { margin-top: 8px; }
  .sc-hero.sc-h2 .sc-hero__btns { margin-top: 12px; }
}
/* R-03 이어서 — 짧은 두 버튼(입원실 안내·진료시간과 오시는 길)을 첫 줄 2칸에, 긴 전화 버튼은 둘째 줄 전체 폭에(두 칸에 넣으면 번호가 칸을 넘친다) */
@media (max-width: 599.98px) {
  .sc-hero.sc-h2 .sc-hero__btns > :first-child { grid-column: auto; }
  .sc-hero.sc-h2 .sc-hero__btns > .sc-hero__btn[href^="tel:"] { order: 3 !important; grid-column: 1 / -1; }
}
@media (max-width: 374.98px) {
  .sc-hero.sc-h2 .sc-hero__btns > .sc-hero__btn { padding-inline: 6px; }
  .sc-hero.sc-h2 .sc-hero__btns > .sc-hero__btn span { font-size: 14px; }
}

/* 진료 절차(화살표형) 호버 — 올린 단계만 살아나게 (사용자 지정 2026-11-24 "호버했을 때 효과").
   화살표 판은 4px 떠오르며 밝아지고, 아이콘은 위로, 아래 연결선은 길어지며 청록, 네모 표시는 마름모로 돌며 청록, 설명 글은 짙게.
   마우스가 있는 기기에서만, 움직임 줄이기 설정이면 색만 바뀐다. 높이·폭은 그대로라 아래 내용이 밀리지 않는다 */
.sc-steps--chev .sc-step__head { transition: transform .3s var(--ease), filter .3s var(--ease); }
.sc-steps--chev .sc-step__ic { transition: transform .3s var(--ease); }
.sc-steps--chev .sc-step__body::before { transition: background-color .3s var(--ease), transform .3s var(--ease); transform-origin: top; }
.sc-steps--chev .sc-step__mk { transition: background-color .3s var(--ease), transform .3s var(--ease); }
.sc-steps--chev .sc-step__d { transition: color .3s var(--ease); }
@media (hover: hover) and (min-width: 900px) {
  .sc-steps--chev > .sc-step:hover .sc-step__head { transform: translateY(-4px); filter: brightness(1.14) drop-shadow(0 8px 14px rgba(45, 36, 30, .22)); }
  .sc-steps--chev > .sc-step:hover .sc-step__ic { transform: translateY(-3px) scale(1.08); }
  .sc-steps--chev > .sc-step:hover .sc-step__body::before { background-color: var(--accent-500); transform: scaleY(1.15); }
  .sc-steps--chev > .sc-step:hover .sc-step__mk { background-color: var(--accent-500); transform: rotate(45deg) scale(1.15); }
  .sc-steps--chev > .sc-step:hover .sc-step__d { color: var(--deep-800); }
}
@media (hover: hover) and (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .sc-steps--chev > .sc-step:hover :is(.sc-step__head, .sc-step__ic, .sc-step__mk) { transform: none; }
  .sc-steps--chev > .sc-step:hover .sc-step__body::before { transform: none; }
}

/* 글 + 사진 2단(.split) — 글 칸과 사진의 위·아래 끝을 맞춘다 (사용자 지정 2026-11-24 "높이를 사진과 맞춰", 교통사고 자동차보험 접수).
   사진 높이(3:2)를 기준으로 글 칸을 같은 높이로 늘리고, 첫 문단은 사진 위 끝에, 법령 상자는 사진 아래 끝에 붙인다 */
@media (min-width: 900px) {
  .split:not(.split-whole):not(:has(.doc-zoom, .flow)) { align-items: stretch; }
  .split:not(.split-whole):not(:has(.doc-zoom, .flow)) > .split-text { display: flex; flex-direction: column; }
  .split:not(.split-whole):not(:has(.doc-zoom, .flow)) > .split-text > :first-child { margin-top: 0; }
  .split:not(.split-whole):not(:has(.doc-zoom, .flow)) > .split-text > :last-child { margin-top: auto; margin-bottom: 0; }
  .split:not(.split-whole):not(:has(.doc-zoom, .flow)) > .split-media { display: flex; }
  .split:not(.split-whole):not(:has(.doc-zoom, .flow)) > .split-media img { height: 100%; min-height: 100%; aspect-ratio: auto; }
}
/* 모바일 메뉴 판은 헤더(로고·햄버거) 바로 아래부터 흰색 (사용자 지정 2026-11-24 "햄버거, 로고 아래쪽으로 흰색이 오게").
   헤더 아래 끝은 위 띠가 보일 때 96px, 내린 뒤 60px로 달라서 site.js가 --mm-top에 그 값을 넣는다(없으면 헤더 높이) */
.sc-hd.hdx .sc-mm, .sc-hd.hdx .sc-mm__scrim { top: var(--mm-top, var(--sc-header-h)); }

/* ── 메인 글자 섹션 사진 카드(2026-11-24 사용자 지정 — 참고 갤러리아·루미르·셀파크·DY 피부과) ───────────── */
/* A. 한의원 소개 BSP(갤러리아 "Bespoke"): 왼쪽 글 + 작은 세로 사진, 오른쪽 크림 사각판 위에 가는 선 원 다섯 개가 고리로 겹침 */
.bsp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bsp__text .sc-tt { margin-bottom: 22px; }
.bsp__text { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); column-gap: 28px; align-items: end; }
.bsp__text > .sc-tt { grid-column: 1 / -1; }
.bsp__lead { grid-column: 2; grid-row: 2; align-self: end; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.85; color: var(--ink); margin: 0; }
.bsp__ph { grid-column: 1; grid-row: 2; margin: 0; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; box-shadow: 0 24px 48px -28px rgba(45, 36, 30, .45); }
.bsp__ph img { width: 100%; height: 100%; object-fit: cover; }
.bsp__board { position: relative; aspect-ratio: 1; background: #725a45; background: linear-gradient(160deg, #7f644d, #503f31); border-radius: 2px; } /* 흰 글자 대비 4.5:1 이상(군포 --primary·--primary-dark) */
.bsp__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 13px; letter-spacing: .14em; color: rgba(255, 255, 255, .92); font-weight: 600; text-align: center; }
.bsp__ring { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.bsp__ring li { position: absolute; left: var(--x); top: var(--y); width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; display: grid; place-items: center; padding: 6%; text-align: center; }
.bsp__ring span { color: #fff; font-size: clamp(13px, 1.15vw, 16px); font-weight: 600; line-height: 1.45; word-break: keep-all; text-shadow: 0 1px 6px rgba(52, 41, 32, .35); }
@media (max-width: 899.98px) {
  .bsp { grid-template-columns: 1fr; }
  .bsp__text { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); column-gap: 20px; }
  .bsp__board { width: min(100%, 440px); margin: 0 auto; }
}
@media (max-width: 519.98px) { .bsp__text { grid-template-columns: 1fr; } .bsp__lead { grid-column: 1; grid-row: 2; margin-bottom: 20px; } .bsp__ph { grid-row: 3; aspect-ratio: 16 / 10; } }
@media (max-width: 420px) { .bsp__ring span { font-size: 12px; } .bsp__ring li { width: 39%; padding: 5%; } }


/* ── 넓은 컨테이너(사용자 지정 2026-11-25 "컨테이너 width를 넓혀줘. 안내콘텐츠도 한눈에, 진료철학도 더 키워야") ── */
:root { --wrap: 1320px; }
/* 1280px 이상은 오른쪽 세로 퀵바(약 100px)가 떠 있으므로 그만큼 비운다 — 1440px 화면에서 1200px, 1560px 이상에서 1320px */
@media (min-width: 1280px) { :root { --wrap: min(1320px, calc(100vw - 220px)); } }
/* 안내 콘텐츠 5장: 1200px 이상은 한 줄 다섯 칸(sc.css의 3+2 배치를 덮음) */
@media (min-width: 1200px) {
  .sc-gc.sc-gc--0 .sc-gc__list:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .sc-gc.sc-gc--0 .sc-gc__list:has(> li:nth-child(5):last-child) > li,
  .sc-gc.sc-gc--0 .sc-gc__list:has(> li:nth-child(5):last-child) > li:nth-child(4) { grid-column: auto; }
  .sc-gc.sc-gc--0 .sc-gc__body { padding: 20px 20px 22px; }
  .sc-gc.sc-gc--0 .sc-gc__d { height: calc(1.6em * 3); -webkit-line-clamp: 3; line-clamp: 3; } /* 칸이 좁아져 두 줄이면 문장이 잘림 */
}
/* 진료 분야(안내 콘텐츠) 섹션만 더 넓게 (사용자 지정 2026-11-25 "진료분야 컨테이너 WIDTH를 좀 늘려").
   1280px 이상: 오른쪽 세로 퀵바(.lq, 화면 오른쪽 끝에서 약 26~83px)와 17px 이상 띄우고 좌우 같은 여백 — 양쪽 max(100px, 6vw + 14px)씩 비움, 최대 1680px.
   1440px 1220 → 1240px, 1600px 1320 → 1380px, 1920px 1320 → 1662px. 제목·카드가 같이 넓어진다 */
@media (min-width: 1280px) {
  #related-guides > .wrap { max-width: min(1680px, calc(100vw - 2 * max(100px, 6vw + 14px))); padding-inline: 0; } /* 퀵바는 화면이 넓을수록 안쪽으로 들어온다(1440 83px · 1600 93px · 1920 100px) */
}
/* 한의원 소개: 사진·원판 키움 */
@media (min-width: 1100px) {
  .bsp__text { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); column-gap: 36px; }
  .bsp__ring span { font-size: 17px; }
}

/* ── 히어로 아래 이야기(참고 youmg.co.kr "Story", 사용자 지정 2026-11-25) ── */
.story { display: grid; grid-template-columns: clamp(300px, 37%, 600px) minmax(0, 1fr); gap: clamp(40px, 5.6vw, 108px); align-items: center; } /* 글 칸을 넓혀 문장 한 줄이 넘어가지 않게(사용자 지정 2026-11-25) */
/* 이야기 섹션만 글 칸 폭을 넓힘 — 사진을 4:5 그대로 키우고 문장은 한 줄 유지, 사진+글 묶음은 가운데(사용자 지정 2026-11-25 "왼쪽으로 쏠린 느낌").
   글 칸은 가장 긴 문장 폭만큼(fit-content), 사진 칸은 남는 폭(최대 560px) — 오른쪽 퀵 레일 자리는 좌우 같게 비움 */
.story { grid-template-columns: minmax(250px, 1fr) minmax(0, 580px); } /* 사진 칸을 넓힘 — 글 칸 최대 640px(사용자 지정 2026-11-26 "사진 width 늘려서") */
.story__ph { width: 100%; max-width: 720px; justify-self: end; } /* 가로 사진(숲 하트)이 양옆 잘리지 않게 넓힘(사용자 지정 2026-11-26) */ /* 글 칸이 먼저 문장 폭을 잡고 사진은 남는 폭(최대 510px) */
@media (min-width: 900px) and (max-width: 1279.98px) { .story-sec > .wrap { padding-inline: var(--gutter); } } /* 헤더와 같은 글 칸(design R-28, 2026-11-25) */
@media (min-width: 1280px) { .story-sec > .wrap { max-width: min(1320px, calc(100vw - 220px)); padding: 0; } }
.story__ph { margin: 0; }
.story__ph img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; } /* 사진 원본 비율 그대로, 자르지 않음(사용자 지정 2026-11-26) */
.story__cap { margin-top: 14px; text-align: right; font-size: 14px; color: var(--muted, #665a51); }
.story__cap strong { margin-left: 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.story .story__h::before { display: none; } /* 제목 위 짧은 막대 없음(사용자 지정 2026-11-25) */
.story__eb { margin: 0 0 18px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #785e48; }
.story .story__h { margin: 0 0 clamp(24px, 3vw, 40px); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.45; font-weight: 600; color: var(--ink); text-align: left; word-break: keep-all; }
.story__p { margin: 0 0 18px; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.9; color: #574b43; word-break: keep-all; }
.story__p:last-child { margin-bottom: 0; }
/* 글 뒤 은은한 "Sincerity"(정성) — 꾸밈 글자라 CSS 가상 요소로만(본문·색인에 안 들어감, 사용자 지정 2026-11-25). 흐름 밖(absolute)이라 자리 변화 없음 */
.story-sec { overflow-x: clip; }
.story__tx { position: relative; isolation: isolate; }
@font-face { font-family: "Cormorant Sincerity"; src: url("../fonts/cormorant-italic-deco.woff2?v=08d9898069") format("woff2"); font-style: italic; font-weight: 300 700; font-display: swap; } /* Cormorant Italic 가변(OFL, 원본 static/tools/serif-fonts/src)에서 워터마크 낱말 글자만 뽑은 9.4KB — 2026-11-27 굵기 300~700으로 다시 만듦. 옛: "Sincerity"·"Philosophy" 2.5KB(2026-11-25 Philosophy 추가) — 이 꾸밈 글자 한 곳만 공통 규칙 8 예외(사용자 지정 2026-11-25, 후보 37번) */
.story__tx::before { content: "Balance"; position: absolute; z-index: -1; top: clamp(-156px, -10.6vw, -82px); right: 0; font-family: "Cormorant Sincerity", Pretendard, sans-serif; font-size: clamp(84px, 10.4vw, 172px); font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1; color: #c49a3c; opacity: .24; white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 899.98px) { .story__tx::before { top: -44px; right: 0; font-size: clamp(56px, 16vw, 92px); } }
@media (max-width: 899.98px) {
  .story { grid-template-columns: 1fr; }
  .story__ph { max-width: none; justify-self: stretch; }
  .story__ph img { aspect-ratio: auto; } /* 원본 비율 그대로 */
}

#philosophy.pf-sec > .wrap { display: block; } /* 서울 style.css의 #philosophy 두 칸 배치를 끈다 */
/* ── 진료 철학 = 사진 카드 묶음(참고 youmg.co.kr "진료분야", 사용자 지정 2026-11-25) ──
   왼쪽 정렬 제목·회색 한 줄, 둥근 사진 카드를 넓은 칸·좁은 칸으로 엇갈려 배치(위 줄 넓·좁·좁, 아래 줄 좁·넓), 사진 아래쪽 어두운 그라데이션 위에 흰 제목·설명 */
.pf__head { position: relative; margin-bottom: clamp(28px, 4vw, 48px); }
.pf-sec { overflow-x: clip; }
.pf__head { isolation: isolate; }
/* 제목 뒤 꾸밈 글자 "Philosophy" — 이야기 섹션 "Sincerity"와 같은 글씨체·색·진하기·크기, 제목과 겹치게 왼쪽에(사용자 지정 2026-11-25). 가상 요소라 본문·색인에 안 들어감 */
.pf__head::before { content: "Philosophy"; position: absolute; z-index: -1; top: clamp(-156px, -10.6vw, -82px); left: -0.04em; font-family: "Cormorant Sincerity", Pretendard, sans-serif; font-size: clamp(84px, 10.4vw, 172px); font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1; color: #c49a3c; opacity: .24; white-space: nowrap; pointer-events: none; user-select: none; }
@media (max-width: 899.98px) { .pf__head::before { top: -44px; font-size: clamp(56px, 16vw, 92px); } }
.pf .pf__h::before { display: none; } /* 제목 위 짧은 막대 없음(사용자 지정 2026-11-25) */
.pf .pf__h { position: relative; margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; font-weight: 600; color: var(--ink); text-align: left; }
.pf__sub { position: relative; margin: 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: #665a51; }
.pf__grid { --pf-g: clamp(16px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--pf-g); } /* 줄마다 비율: 위 .3·.3·.4, 아래 .48·.52 (간격 뺀 폭 기준 — 칸 그리드는 간격이 칸 수만큼 늘어 넘침) */
.pf__card { position: relative; flex: 0 0 calc((100% - 2 * var(--pf-g)) * .3); height: clamp(300px, 29vw, 420px); border-radius: 20px; overflow: hidden; background: #503f31; isolation: isolate; }
.pf__card:nth-child(3) { flex-basis: calc((100% - 2 * var(--pf-g)) * .4); }
.pf__card:nth-child(4) { flex-basis: calc((100% - var(--pf-g)) * .54); } /* 입원 진료 — .48에서 조금 넓힘 (사용자 지정 2026-11-25) */
.pf__card:nth-child(5) { flex-basis: calc((100% - var(--pf-g)) * .46); } /* 친절하고 깨끗한 — 입원 카드가 줄어든 만큼 넓힘 */
.pf__ph img.is-portrait { object-position: 50% 58%; }
.pf__ph { position: absolute; inset: 0; margin: 0; z-index: -2; }
.pf__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pf__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(45, 36, 30, .05) 30%, rgba(45, 36, 30, .72) 100%); }
.pf__tx { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 44px); color: #fff; }
.pf .pf__t { margin: 0 0 10px; font-size: clamp(21px, 2vw, 30px); line-height: 1.3; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(45, 36, 30, .35); }
.pf__d { margin: 0; min-height: 3.3em; /* 설명 두 줄 자리를 늘 잡아 한 줄짜리 카드도 제목 높이가 옆 카드와 같게(사용자 지정 2026-11-25) */ font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.65; color: rgba(255, 255, 255, .94); word-break: keep-all; text-shadow: 0 1px 6px rgba(45, 36, 30, .4); }
@media (hover: hover) { .pf__card:hover .pf__ph img { transform: scale(1.05); } }
@media (max-width: 1099.98px) {
  .pf__card, .pf__card:nth-child(n) { flex-basis: calc((100% - var(--pf-g)) / 2); }
  .pf__card:nth-child(1) { flex-basis: 100%; } /* 2칸일 때 넓은 칸은 가로 사진(1번)에 */
}
@media (max-width: 599.98px) {
  .pf__grid { --pf-g: 14px; }
  .pf__card, .pf__card:nth-child(n) { flex-basis: 100%; height: 260px; border-radius: 16px; }
  .pf__card:nth-child(5) { height: 340px; } /* 세로 사진은 조금 높게 */
}
@media (prefers-reduced-motion: reduce) { .pf__ph img { transition: none; } }

/* 히어로 → 이야기, 이야기 → 진료 철학 사이 여백 넓힘(사용자 지정 2026-11-25). 기본 .sec 위아래 clamp(72px, 10vw, 136px) */
#story.story-sec { padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(88px, 12vw, 176px); }
#philosophy.pf-sec { padding-top: clamp(96px, 14vw, 200px); }

/* ════ 대표원장 약력 — dyderm.com/doctor 배치 그대로(사용자 지정 2026-11-25, render.mjs doctorDySection) ════
   900px 이상: 왼쪽 화면 끝까지 붙은 토프 사진 판(약 51%) + 오른쪽 이름 머리·가는 선(오른쪽 끝까지)·알약 라벨 두 칸.
   900px 미만: 사진 판(좌우 여백 안) 위, 글 아래 한 칸. 이름은 Pretendard(공통 규칙 8 — 참고 사이트의 명조는 쓰지 않음) */
.dy-sec { overflow-x: clip; }
.dy { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: center; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); } /* 화면 끝에 붙이지 않고 다른 섹션과 같은 본문 폭 안에(사용자 지정 2026-11-25 "왼쪽에 딱 붙었다") */
.dy__ph { position: relative; margin: 0; aspect-ratio: 734 / 844; background: #ebe7e3; overflow: hidden; isolation: isolate; } /* 참고 사이트 토프보다 훨씬 연하게(사용자 지정 2026-11-25 두 번) */
/* 사진 판 위 흐린 로고는 지움(사용자 지정 2026-11-25) */
.dy__ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 20%; } /* 엘앤더슨: 배경 뺀 원장 사진이 아니라 실사 한 장 — 칸을 꽉 채워 판 색이 보이지 않게(사용자 지정 2026-11-26) */
.dy__info { padding: 0 0 0 clamp(36px, 5vw, 96px); }
.dy__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dy__badge { display: inline-grid; place-items: center; width: 64px; height: 64px; flex: none; background: #725a45; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.dy-sec .dy__name { margin: 0; font-size: clamp(34px, 3.3vw, 48px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: #2a2a2a; text-align: left; }
.dy-sec .dy__name::before { content: none; display: none; }
.dy__pos { margin-left: 4px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.01em; }
.dy__line { height: 1px; margin: clamp(36px, 4.4vw, 64px) 0; background: #cdc8c1; }
.dy__cols { display: grid; grid-template-columns: repeat(2, max-content); gap: 28px clamp(28px, 3vw, 56px); }
.dy__tag { display: inline-block; margin: 0 0 26px; min-width: 120px; padding: 6px 28px; border: 1px solid #2b2623; border-radius: 999px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; color: #3c3c3c; text-align: center; letter-spacing: -.01em; }
.dy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dy__list li { position: relative; padding-left: 13px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.35; color: #3c3c3c; letter-spacing: -.01em; word-break: keep-all; }
.dy__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.dy__list li.dy__gap { margin-top: 20px; }
@media (min-width: 900px) and (max-width: 1179.98px) { .dy__cols { grid-template-columns: 1fr; } }
@media (max-width: 899.98px) {
  .dy { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .dy__ph { width: 100%; max-width: 420px; margin-inline: auto; } /* 태블릿에서 사진이 화면을 다 채우지 않게(design 검수 2026-11-26) */
  .dy__info { padding: clamp(24px, 6vw, 36px) 0 0; }
  .dy__badge { width: 46px; height: 46px; font-size: 13px; }
  .dy__line { margin: 22px 0 28px; }
  .dy__cols { grid-template-columns: 1fr; gap: 28px; }
  .dy__tag { margin-bottom: 18px; min-width: 84px; padding: 4px 20px; }
  .dy__list { gap: 10px; }
}

/* ════ 메인 섹션 제목 — 대괄호(HD7) 대신 제목 뒤 영어 꾸밈 글자(사용자 지정 2026-11-25 "[] 말고 philosophy·sincerity처럼") ════
   build.mjs addSectionLabels → <div class="wm-head" data-wm="Space"><h2 class="wm-head__h">. Philosophy 머리와 같은 글씨체·색·진하기, 왼쪽 정렬.
   글자는 가상 요소(attr)라 본문·색인에 안 들어가고 흐름 밖이라 자리 변화 없음. 위로 나가는 높이는 섹션 위 여백 안에 들게 줄임 */
.sc-sec:has(> .wrap > .wm-head), .sc-sec:has(.wm-head) { overflow-x: clip; }
.wm-head { position: relative; isolation: isolate; margin: 0 0 clamp(28px, 4vw, 48px); text-align: left; }
.wm-head::before { content: attr(data-wm); position: absolute; z-index: -1; top: clamp(-118px, -7.6vw, -60px); left: -0.04em; font-family: "Cormorant Sincerity", Pretendard, sans-serif; font-size: clamp(72px, 9vw, 150px); font-style: italic; font-weight: 400; line-height: 1; color: #c49a3c; opacity: .24; white-space: nowrap; pointer-events: none; user-select: none; }
.wm-head .wm-head__h { position: relative; margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-align: left; word-break: keep-all; }
.wm-head .wm-head__h::before, .wm-head .wm-head__h::after { content: none; display: none; }
@media (max-width: 899.98px) { .wm-head::before { top: -40px; font-size: clamp(52px, 15vw, 84px); } }

/* ── 한의원 소개 = lumirderm.com 연구 섹션 모양(사용자 지정 2026-11-25) ──
   lumirderm 색(바탕 #2e2621·글자 #eae7e3·선 #cec9c3) + 공단 곡선 배경(stock-satin-brown — Unsplash SB-01 색 보정), 가운데 제목·본문, 가는 선 격자 + 마름모 번호 + 이음새 별 */
.lm-sec { position: relative; color: var(--on-dark); background: linear-gradient(rgba(11, 9, 7, .8), rgba(11, 9, 7, .8)), #1a1510 url("../img/stock-satin-brown.webp") center / cover no-repeat; } /* 2026-11-26 사용자 지정 "배경 좀더 어둡게" — 검은 녹색 막 .62 */ /* Unsplash _j8aAQumTDM(Pawel Czerwinski, Unsplash License)을 lumirderm보다 조금 더 어둡고 갈색으로(#241d16~#503f31) 다시 입힘 — 사용자 지정 2026-11-25 SB-01. 장식 배경이라 ItemList·og 밖 */
@media (max-width: 899.98px) { .lm-sec { background-image: linear-gradient(rgba(11, 9, 7, .8), rgba(11, 9, 7, .8)), url("../img/stock-satin-brown-1200.webp"); } }
.lm-sec::before, .lm-sec::after { content: none !important; }
.lm__head { text-align: center; max-width: 820px; margin: 0 auto clamp(48px, 7vw, 96px); }
.lm-sec .lm__h { margin: 0 0 clamp(20px, 2.4vw, 32px); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.4; font-weight: 600; color: #fff; text-align: center; }
.lm-sec .lm__h::before, .lm-sec .lm__h::after { content: none; display: none; }
.lm__h1 { display: block; font-size: .5em; font-weight: 500; color: #eae7e3; margin-bottom: 12px; }
.lm__h2 { display: block; }
.lm__lead { max-width: 36em; margin: 0 auto; text-wrap: balance; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.85; color: #eae7e3; word-break: keep-all; }
.lm__gridwrap { position: relative; }
.lm__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; /* 위아래 줄 높이를 같게 — 가운데 별(.lm__star, top 50%)이 가로선에 정확히 놓이게(사용자 지정 2026-11-26) */ border-top: 1.5px solid rgba(200, 196, 191, .34); border-bottom: 1.5px solid rgba(200, 196, 191, .34); }
.lm__cell { grid-column: span 2; display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); padding: clamp(32px, 4vw, 56px) clamp(22px, 3vw, 48px); border-left: 1.5px solid rgba(200, 196, 191, .34); }
.lm__cell:nth-child(3n) { border-right: 1.5px solid rgba(200, 196, 191, .34); }
.lm__grid.n-5 .lm__cell:nth-child(-n+3) { border-bottom: 1.5px solid rgba(200, 196, 191, .34); }
.lm__grid.n-5 .lm__cell:nth-child(n+4) { grid-column: span 3; }
.lm__grid.n-5 .lm__cell:nth-child(5) { border-right: 1.5px solid rgba(200, 196, 191, .34); }
.lm__no { position: relative; flex: 0 0 52px; height: 52px; display: grid; place-items: center; }
.lm__no::before { content: ""; position: absolute; inset: 8px; transform: rotate(45deg); border: 1px solid #cec9c3; }
.lm__no span { position: relative; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.lm-sec .lm__t { margin: 0; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; font-weight: 700; color: #fff; word-break: keep-all; }
.lm__star { position: absolute; z-index: 1; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); fill: rgba(200, 196, 191, .7); pointer-events: none; }
@media (max-width: 899.98px) {
  .lm__grid, .lm__grid.n-5 { grid-template-columns: 1fr 1fr; }
  .lm__cell, .lm__grid.n-5 .lm__cell:nth-child(n) { grid-column: auto; border-right: 0; border-bottom: 1.5px solid rgba(200, 196, 191, .34); }
  .lm__grid.n-5 .lm__cell:nth-child(5) { grid-column: 1 / -1; }
  .lm__grid .lm__cell:nth-last-child(1) { border-bottom: 0; }
  .lm__cell:nth-child(even) { border-left: 1.5px solid rgba(200, 196, 191, .34); }
  .lm__cell:nth-child(odd) { border-left: 0; }
  .lm__star { display: none; }
}
@media (max-width: 519.98px) {
  .lm__grid, .lm__grid.n-5 { grid-template-columns: 1fr; }
  .lm__cell:nth-child(n) { border-left: 0; padding: 22px 6px; }
  .lm__no { flex-basis: 44px; height: 44px; }
}
.lm__tx { min-width: 0; padding-top: 0; }
.lm-sec .lm__t { margin-bottom: 12px; }
.lm__d { text-wrap: pretty; margin: 0; font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.75; color: #eae7e3; opacity: .86; word-break: keep-all; }


/* 퀵바 — lumirderm.com 퀵메뉴 모양 그대로(사용자 지정 2026-11-25). 값은 그 사이트 common.css .quick-menu-side에서 가져오고 색만 테마로.
   데스크톱: 오른쪽 아래 흰 둥근 사각 세로 줄(글자 없음). 1024px 이하: 원형 펼침 단추 → 위로 원형 단추 펼침(fixed라 본문을 밀지 않음) */
.lq { position: fixed; right: clamp(15px, 1.8vw, 30px); bottom: 125px; z-index: 990; display: flex; flex-direction: column; align-items: flex-end; gap: clamp(8px, .6vw, 10px); }
.lq__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(8px, .6vw, 10px); }
.lq__item { margin: 0; }
.lq__a { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; width: clamp(54px, 4vw, 70px); height: clamp(54px, 4vw, 70px); background: var(--white); color: var(--deep-800); border-radius: 10px; box-shadow: 0 4px 15px rgba(45, 36, 30, .1); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, color .25s ease; }
.lq__a:hover { color: var(--deep-700); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(45, 36, 30, .18); }
.lq__a:focus-visible, .lq__toggle:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 3px; }
.lq__ic { display: block; width: 44%; height: 44%; flex: none; } /* 아이콘 + 아래 이름(2026-11-25) */
.lq__toggle { display: none; }
.lq__lb { font-size: clamp(11px, .8vw, 13px); font-weight: 600; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
@media (max-width: 1024px) {
  .lq { right: 15px; bottom: calc(25px + env(safe-area-inset-bottom)); align-items: center; gap: 8px; }
  .lq__list { gap: 8px; }
  .lq__a { gap: 2px; }
  .lq__lb { font-size: 11px; }
  .lq__a { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 4px 12px rgba(45, 36, 30, .15); }
  .lq__ic { width: 46%; height: 46%; } /* 모바일 단추·아이콘 조금 키움(사용자 지정 2026-11-25) */
  /* 닫힌 동안은 자리를 그대로 둔 채 숨긴다(visibility) — 펼칠 때 펼침 단추 위치가 바뀌지 않게 */
  .lq__item { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .lq.is-open .lq__item { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  .lq__toggle { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--deep-700); color: var(--white); box-shadow: 0 4px 16px rgba(45, 36, 30, .2); cursor: pointer; }
  .lq__toggle .lq__ic { width: 26px; height: 26px; transition: transform .25s ease; }
  /* 모바일 메뉴가 열리면(sc.js가 헤더 .sc-hd에 .sc-mm-open — .lq는 헤더 뒤 형제) 퀵바를 헤더(z 50 — 메뉴 판·어두운 막) 아래 층으로 — 메뉴 뒤에 가려 안 보인다(사용자 지정 2026-11-25) */
  .sc-hd.sc-mm-open ~ .lq { z-index: 40; }
  .lq.is-open .lq__toggle .lq__ic { transform: rotate(45deg); }
  .lq:not(.is-open) .lq__list { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lq__a, .lq__item, .lq__toggle .lq__ic { transition: none !important; }
  .lq__a:hover { transform: none; }
}
/* 선을 화면 끝까지·끊김 없이·2px(lumirderm처럼 — 사용자 지정 2026-11-25). 양끝 칸에서 바깥으로 50vw 선을 이어 그림. 섹션 overflow-x: clip이라 가로 스크롤 없음 */
.lm-sec { overflow-x: clip; }
.lm__grid > li.lm__cell { position: relative; margin: 0 !important; transform: none !important; } /* 공통 li 위 여백·등장 효과 밀림 때문에 선이 끊겨 보였음 */
@media (min-width: 900px) {
  .lm__grid.n-5 .lm__cell:nth-child(1)::before, .lm__grid.n-5 .lm__cell:nth-child(4)::before,
  .lm__grid.n-5 .lm__cell:nth-child(3)::after, .lm__grid.n-5 .lm__cell:nth-child(5)::after {
    content: ""; position: absolute; width: 50vw; border-top: 1.5px solid rgba(200, 196, 191, .34); border-bottom: 1.5px solid rgba(200, 196, 191, .34); pointer-events: none; }
  .lm__grid.n-5 .lm__cell:nth-child(1)::before, .lm__grid.n-5 .lm__cell:nth-child(4)::before { right: calc(100% + 1.5px); }
  .lm__grid.n-5 .lm__cell:nth-child(3)::after, .lm__grid.n-5 .lm__cell:nth-child(5)::after { left: 100%; }
  .lm__grid.n-5 .lm__cell:nth-child(1)::before, .lm__grid.n-5 .lm__cell:nth-child(3)::after { top: -1.5px; bottom: -1.5px; } /* absolute 기준은 테두리 안쪽 — 칸의 아래 테두리(1.5px)까지 내려 맞춤 */
  .lm__grid.n-5 .lm__cell:nth-child(4)::before, .lm__grid.n-5 .lm__cell:nth-child(5)::after { top: 0; bottom: -1.5px; border-top: 0; } /* 가운데 가로선은 위 칸(1·3)이 그림 — 겹쳐 두 줄로 보이지 않게 */
}

/* ════ 메인 히어로 밝게 — 참고 youmg.co.kr(유명한의원): 하얗게 바랜 진료 사진 위 왼쪽 진한 글(사용자 지정 2026-11-25) ════
   사진은 스톡 1장 고정(롤링 없음 — hero-image-flow 0장). 왼쪽은 흰 막을 진하게, 오른쪽으로 갈수록 사진이 보이게.
   글자는 흰색 → 잉크색으로 바꿔 대비 4.5:1 이상(흰 막 .86 위 #2b2623·#463d36) */
.sc-hero.sc-h2 .sc-h2__bg { background: #fbfaf8; }
.sc-hero.sc-h2 .sc-h2__bg .sc-h2__slide img { filter: brightness(1.08) saturate(.82) contrast(.9) !important; opacity: .82; object-position: 60% 50%; }
.sc-hero.sc-h2::after { background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .8) 34%, rgba(255, 255, 255, .42) 60%, rgba(255, 255, 255, .16) 100%) !important; }
.sc-hero.sc-h2 .sc-h2__title, .sc-hero.sc-h2 .sc-h2__title > span { color: #2b2623 !important; text-shadow: none !important; }
.sc-hero.sc-h2 .sc-h2__lead { color: #463d36 !important; text-shadow: none !important; }
.sc-hero.sc-h2 .sc-h2__tag { color: #725a45 !important; text-shadow: none !important; }
.sc-hero.sc-h2 .sc-h2__badge { color: #503f31 !important; background: rgba(114, 90, 69, .08) !important; border-color: rgba(114, 90, 69, .28) !important; text-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sc-hero.sc-h2 .sc-h2__facts, .sc-hero.sc-h2 .sc-h2__facts li { color: #463d36 !important; text-shadow: none !important; }
.sc-hero.sc-h2 .sc-h2__facts li::before { background: #c49a3c !important; }
.sc-hero.sc-h2 .sc-hero__btn--white { background: #725a45 !important; color: #fff !important; border-color: #725a45 !important; }
.sc-hero.sc-h2 .sc-hero__btn--white:hover { background: #503f31 !important; border-color: #503f31 !important; }
.sc-hero.sc-h2 .sc-hero__btn--line { background: rgba(255, 255, 255, .7) !important; color: #503f31 !important; border-color: rgba(92, 74, 60, .45) !important; }
.sc-hero.sc-h2 .sc-hero__btn--line:hover { background: #fff !important; }
@media (max-width: 899.98px) { .sc-hero.sc-h2::after { background: linear-gradient(180deg, rgba(255, 255, 255, .78) 0, rgba(255, 255, 255, .86) 45%, rgba(255, 255, 255, .9) 100%) !important; } }
.sc-hero.sc-h2 .byline, .sc-hero.sc-h2 .byline a { color: #665a51 !important; text-shadow: none !important; }
.sc-hero.sc-h2 .byline a { text-decoration: underline; text-underline-offset: 3px; }
/* 손이 글 밑에 깔리지 않게 사진을 오른쪽으로 18% 밀어 둠 — 왼쪽 빈 자리는 흰 바탕+흰 막에 묻힘(youmg처럼 손은 오른쪽 아래). 900px 미만은 글이 사진 위 전체라 그대로 */
@media (min-width: 900px) { .sc-hero.sc-h2 .sc-h2__slide { transform: translateX(18%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); } .sc-hero.sc-h2 .sc-h2__slide img { object-position: 50% 62%; } }

/* ════ 히어로 아래 정보 띠(layout.mjs heroInfo) — 히어로에서 내린 배지·특징·버튼·운영 표시(사용자 지정 2026-11-25) ════
   PC: 왼쪽 배지+특징 한 줄, 오른쪽 버튼, 아래 운영 표시. 높이는 내용으로 고정(나중에 바뀌는 글자 없음) */
.hero-info { background: #fff; border-bottom: 1px solid #ece4db; }
.hero-info .hi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 32px; padding-block: clamp(22px, 2.6vw, 34px); }
.hi__main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hi__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(114, 90, 69, .08); border: 1px solid rgba(114, 90, 69, .25); color: #503f31; font-size: 14px; font-weight: 700; }
.hi__badge .sc-ic { width: 18px; height: 18px; }
.hi__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.hi__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #463d36; white-space: nowrap; }
.hi__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c49a3c; flex: none; }
.hero-info .hi__btns { margin: 0; display: flex; gap: 10px; }
.hero-info .sc-hero__btn--white { background: #725a45; color: #fff; border-color: #725a45; }
.hero-info .sc-hero__btn--white:hover { background: #503f31; border-color: #503f31; color: #fff; }
.hero-info .sc-hero__btn--line { background: #fff; color: #503f31; border-color: rgba(92, 74, 60, .4); }
.hero-info .hi__by { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #665a51; text-shadow: none; }
.hero-info .hi__by a { color: #665a51; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899.98px) {
  .hero-info .hi { grid-template-columns: 1fr; }
  .hi__facts li { font-size: 14px; }
  .hero-info .hi__btns { flex-direction: column; }
  .hero-info .hi__btns .sc-hero__btn { width: 100%; }
}
@media (min-width: 900px) { .sc-hero.sc-h2 { align-items: center; } .sc-hero.sc-h2 .sc-h2__in { padding-block: 40px; } } /* 글이 줄어 아래로 처져 보여서 세로 가운데(youmg처럼) */
/* 한 줄 안의 칸끼리 제목 높이를 맞춤 — 설명 칸을 세 줄 높이로 잡아 두 줄짜리(02)도 제목이 옆 칸과 같은 높이에(사용자 지정 2026-11-25) */
@media (min-width: 900px) { .lm__d { min-height: calc(1.75em * 3); } }

/* ════ 메뉴 바 — dyderm.com처럼 은은하게(사용자 지정 2026-11-25) ════
   짙은 두 단(윗단 안내 줄 + 메뉴 줄) → 한 줄 72px: 흰 반투명 + 흐림, 왼쪽 원래 색 로고, 가운데 메뉴(진한 회갈색 15~16px), 올리면 짧은 밑줄.
   윗단 안내 줄(입원실·진료시간·전화)은 숨김 — 같은 정보가 퀵 메뉴·퀵바에 있음. 높이는 고정값이라 흔들림 없음 */
:root { --hdx-top-h: 0px; --hdx-bar-h: 72px; }
@media (max-width: 899.98px) { :root { --hdx-top-h: 0px; --hdx-bar-h: 60px; } }
.hdx-top { display: none !important; }
.sc-hd.hdx { background: rgba(255, 255, 255, .72); }
.sc-hd.hdx .sc-hd__bg { background: transparent; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(92, 74, 60, .08); }
.sc-hd.hdx .sc-m, .sc-hd.hdx .sc-dd__btn { color: #2e2b2a; font-weight: 500; letter-spacing: -.02em; }
.sc-hd.hdx .sc-m:hover, .sc-hd.hdx .sc-m[aria-current="page"], .sc-hd.hdx .sc-m:focus-visible { color: #725a45; }
.sc-hd.hdx .sc-mm-burger { color: #2e2b2a; }
.sc-hd.hdx :focus-visible { outline-color: #725a45; }
.sc-hd.hdx .sc-hd__logo img { width: auto; height: 40px; }
@media (min-width: 900px) {
  .sc-hd.hdx .sc-hd__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hdx-bar-h); }
  .sc-hd.hdx .sc-hd__logo { display: flex; justify-self: start; }
  .sc-hd.hdx .sc-hd__nav { margin: 0; justify-self: center; }
  .sc-hd.hdx .sc-hd__menu > li + li::before { content: none; }
  .sc-hd.hdx .sc-hd__menu > li { min-width: 0; }
  .sc-hd.hdx .sc-m { position: relative; display: flex; align-items: center; height: var(--hdx-bar-h); font-size: 16px; padding: 0 clamp(14px, 1.7vw, 28px); }
  .sc-hd.hdx .sc-m::after { content: "" !important; display: block !important; position: absolute; left: 50%; bottom: 20px; width: 0; height: 2px; background: #725a45; transform: translateX(-50%); transition: width .3s cubic-bezier(.22, 1, .36, 1); }
  .sc-hd.hdx .sc-m:hover::after, .sc-hd.hdx .sc-m:focus-visible::after { width: calc(100% - 2 * clamp(14px, 1.7vw, 28px)); }
}
@media (min-width: 1280px) { .sc-hd.hdx .sc-hd__menu > li { min-width: 0; } .sc-hd.hdx .sc-m { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .sc-hd.hdx .sc-m::after { transition: none; } }
/* 메뉴 바 색 — 디와이(rgba(46, 43, 42,.6))처럼 반투명한 어두운 바탕, 이 사이트 테마 갈색으로(사용자 지정 2026-11-25 "은은하고 반투명한 테마색"). 바탕이 어두워 흰 글자·흰 로고(공통 규칙 19) */
.sc-hd.hdx { background: rgba(83, 65, 50, .58); }
.sc-hd.hdx .sc-hd__bg { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sc-hd.hdx .sc-m, .sc-hd.hdx .sc-dd__btn { color: #fff; }
.sc-hd.hdx .sc-m:hover, .sc-hd.hdx .sc-m[aria-current="page"], .sc-hd.hdx .sc-m:focus-visible { color: #fff; }
.sc-hd.hdx .sc-m::after { background: #e7dcce !important; }
.sc-hd.hdx .sc-mm-burger { color: #fff; }
.sc-hd.hdx :focus-visible { outline-color: #e7dcce; }

/* ════ 메인 히어로 첫 화면 꽉 차게 + 글 위치 youmg.co.kr처럼(사용자 지정 2026-11-25) ════
   높이: 메인만 화면 높이(헤더 겹침 포함, border-box). svh라 폰 주소창이 들어가고 나와도 높이가 바뀌지 않는다(흔들림 없음). 하위 머리는 --hero-h 그대로.
   글: 왼쪽 정렬, 세로 가운데보다 조금 위(아래 여백을 더 줘 약 40px 올림 — youmg는 첫 줄 margin-top -80px). 머리말은 제목 위 한 줄 문장처럼 크게. */
main .sc-hero.sc-h2 { min-height: 100vh; min-height: 100svh; align-items: center; }
main .sc-hero.sc-h2 .sc-h2__in { width: 100%; padding-block: 24px 104px; }
main .sc-hero.sc-h2 .sc-h2__tag { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.01em; color: #342920 !important; }
main .sc-hero.sc-h2 .sc-h2__title { margin-top: clamp(10px, 1.2vw, 16px); }
@media (max-width: 899.98px) { main .sc-hero.sc-h2 .sc-h2__in { padding-block: 16px 72px; } }
main .sc-hero.sc-h2 .sc-h2__title:first-child { margin-top: 0; } /* 머리말을 뺀 뒤(2026-11-25) 제목이 맨 위 — 위 여백 없앰 */
/* 메뉴 바 최종 — 밝은 히어로와 따로 놀아서 흰 반투명으로(사용자 2026-11-25 "추천대로" — 참고 유명한의원 흰 헤더). 위 갈색 반투명 규칙을 덮음. 진한 갈색 글자라 대비 4.5:1 이상 */
.sc-hd.hdx { background: rgba(255, 255, 255, .72); }
.sc-hd.hdx .sc-hd__bg { border-bottom: 1px solid rgba(92, 74, 60, .1); }
.sc-hd.hdx .sc-m, .sc-hd.hdx .sc-dd__btn { color: #352a20; }
.sc-hd.hdx .sc-m:hover, .sc-hd.hdx .sc-m[aria-current="page"], .sc-hd.hdx .sc-m:focus-visible { color: #725a45; }
.sc-hd.hdx .sc-m::after { background: #725a45 !important; }
.sc-hd.hdx .sc-mm-burger { color: #352a20; }
.sc-hd.hdx :focus-visible { outline-color: #725a45; }

/* ── 메인 히어로 글자 — youmg.co.kr 히어로 "단순한 치료를 넘어 / 행복한 삶의 회복으로." 굵기·모양(사용자 지정 2026-11-25, 대괄호 없음):
   위 작은 줄 Pretendard 20px 400, 제목 두 줄 Noto Serif KR SemiBold(600)·자간 -1px·줄 간격 1.5·#3c3c3c. 글꼴 파일은 제목 글자만 담은 4KB(OFL) ── */
@font-face { font-family: "Noto Serif KR Hero"; src: url("../fonts/serif-ko-h1.woff2?v=8d4583c822") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; } /* 가변 글꼴, 히어로 제목 세 줄 글자만 9KB(OFL) */
main .sc-hero.sc-h2 .sc-h2__title { font-family: "Noto Serif KR Hero", "Noto Serif KR", serif; font-size: clamp(32px, 3.82vw, 55px); font-weight: 600; letter-spacing: -2px; line-height: 1.5; color: #3c3c3c !important; }
main .sc-hero.sc-h2 .sc-h2__title .hl { display: block; }
main .sc-hero.sc-h2 .sc-h2__title > span.hl:not(.hl--1) { color: #342920 !important; } /* 테마 진한 갈색(사용자 지정 2026-11-25 — youmg 회색 #3c3c3c에서 바꿈) — 앞 규칙(.sc-h2__title > span #2b2623)을 덮음 */
main .sc-hero.sc-h2 .sc-h2__title .hl--1 { font-family: "Noto Serif KR Hero", "Noto Serif KR", serif; font-size: clamp(16px, 1.39vw, 20px); font-weight: 500; letter-spacing: -.2px; line-height: 1.7; color: #342920 !important; padding-left: .35em; /* 아래 제목과 같은 글꼴·색, 살짝 들여씀(사용자 지정 2026-11-25) */ margin-bottom: clamp(0px, .3vw, 4px); } /* 같은 H1 안이라 붙임(사용자 지정 2026-11-25) */
main .sc-hero.sc-h2 .sc-h2__lead { margin-top: clamp(18px, 2vw, 28px); }
@media (max-width: 599.98px) {
  main .sc-hero.sc-h2 .sc-h2__title { font-size: min(32px, calc((100vw - 2 * var(--gutter, 20px)) / 10.4)); letter-spacing: -1.2px; }
  main .sc-hero.sc-h2 .sc-h2__title .hl--1 { font-size: 15px; }
  main .sc-hero.sc-h2 .sc-h2__title .hl--2 { white-space: nowrap; font-size: min(1em, calc((100vw - 2 * var(--gutter, 20px)) / 21)); } /* 반듯: H1 둘째 줄 약 22자(디자인 검수 R-03) */
}

/* 메뉴 마우스 올림 — 밑줄 없이 글자색만 은은하게(사용자 지정 2026-11-25 두 번 "밑줄은 제거"), 로고 키움. 위쪽 밑줄 규칙(content "" !important)을 덮음 */
.sc-hd.hdx .sc-hd__menu .sc-m::after, .sc-hd.hdx .sc-hd__menu .sc-m:hover::after, .sc-hd.hdx .sc-hd__menu .sc-m:focus-visible::after { content: none !important; display: none !important; }
.sc-hd.hdx .sc-hd__menu .sc-m { text-decoration: none; transition: color .35s cubic-bezier(.22, 1, .36, 1); }
.sc-hd.hdx .sc-hd__menu .sc-m:hover, .sc-hd.hdx .sc-hd__menu .sc-m:focus-visible { color: #80654d; } /* 흰 바탕 대비 약 5:1 */
.sc-hd.hdx .sc-hd__logo img { height: 50px; }
@media (max-width: 899.98px) { .sc-hd.hdx .sc-hd__logo img { height: 42px; } }
@media (prefers-reduced-motion: reduce) { .sc-hd.hdx .sc-hd__menu .sc-m { transition: none; } }

/* ── 둘러보기(#tour) = lumirderm.com "둘러보기" 모양(사용자 지정 2026-11-25 "캐러셀 디자인을 lumirderm.com 이거로 하고 이미지 갯수 합쳐") ──
   값은 그 사이트 .mn-sec-interior에서: 바탕 #372e27 계열·윗글 #ddd8d1·제목 흰색·사진 바탕 #141414, 썸네일 1px 흰 40% 테두리 / 고른 것 3px 흰색, 사진 아래 끝에 반쯤 걸침.
   큰 사진은 페이드로 바뀜(JS site.js "둘러보기"). JS 없으면 가로로 밀어 보는 줄. 세로 사진 2장(room-4·ward-corridor-1)은 잘리지 않게 contain */
.gl-sec { position: relative; color: #ddd8d1; background: radial-gradient(120% 80% at 50% 0%, #48392b 0%, #30261d 55%, #231c16 100%); padding-bottom: calc(clamp(72px, 10vw, 136px) + 44px); }
.gl-sec::before, .gl-sec::after { content: none !important; }
.gl__head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 5.5vw, 80px); }
.gl__eb { margin: 0 0 clamp(14px, 1.4vw, 20px); font-size: clamp(14px, 1vw, 16px); font-weight: 500; letter-spacing: .02em; color: #ddd8d1; }
.gl-sec .gl__h { margin: 0 0 clamp(20px, 2.2vw, 30px); font-size: clamp(25px, 2.6vw, 38px); line-height: 1.42; font-weight: 700; letter-spacing: -.01em; color: #fff; text-align: center; word-break: keep-all; }
.gl-sec .gl__h::before, .gl-sec .gl__h::after { content: none; display: none; }
.gl__h1, .gl__h2 { display: block; text-wrap: balance; }
.gl__lead { max-width: 34em; margin: 0 auto; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; color: #ddd8d1; text-wrap: balance; word-break: keep-all; }
.gl { position: relative; }
.gl__stage { position: relative; background: #141414; }
.gl__track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gl__track::-webkit-scrollbar { display: none; }
.gl__track:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gl__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.gl__card { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #141414; }
.gl__card img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.gl__card img.is-portrait { object-fit: contain; }
.gl__btn, .gl__count { display: none; }
/* JS가 붙으면 겹쳐 놓고 투명도만 바꾼다 — 자리 크기는 그대로(레이아웃 흔들림 없음) */
.sc-js .gl__track { display: block; aspect-ratio: 16 / 9; overflow: hidden; position: relative; touch-action: pan-y; }
.sc-js .gl__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.sc-js .gl__slide.is-on { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.sc-js .gl__card { height: 100%; aspect-ratio: auto; }
.gl__thumbs { display: none; }
.sc-js .gl__thumbs { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translate(-50%, 50%); display: flex; justify-content: center; gap: 12px; width: max-content; max-width: calc(100% - 48px); margin: 0; padding: 0; list-style: none; }
.gl__thumbs li { flex: 0 1 150px; min-width: 0; }
.gl__th { display: block; width: 100%; aspect-ratio: 183 / 88; padding: 0; border: 1px solid rgba(255, 255, 255, .4); background: #141414; overflow: hidden; cursor: pointer; transition: border-color .3s, border-width .3s; }
.gl__th img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s; -webkit-user-drag: none; }
.gl__th:hover img, .gl__th.is-on img { opacity: 1; }
.gl__th.is-on { border: 3px solid #fff; }
.gl__th:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 899.98px) {
  .gl-sec { padding-bottom: clamp(72px, 10vw, 136px); }
  .gl__card, .sc-js .gl__track { aspect-ratio: 4 / 3; }
  .sc-js .gl__card { aspect-ratio: auto; }
  .sc-js .gl__thumbs { display: none; }
  /* 작은 화면은 lumirderm처럼 사진 양옆 둥근 버튼(40px → 손가락 크기 44px) */
  .sc-js .gl__btn { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin-top: -22px; border: 1px solid rgba(60, 50, 43, .2); border-radius: 50%; background: rgba(253, 252, 251, .85); color: #372e27; cursor: pointer; }
  .sc-js .gl__prev { left: 12px; }
  .sc-js .gl__next { right: 12px; }
  .gl__btn .sc-ic, .gl__btn svg { width: 18px; height: 18px; }
  .sc-js .gl__count { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: block; min-width: 4.2em; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(20, 20, 20, .55); font-size: 14px; line-height: 1.4; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) { .sc-js .gl__slide, .sc-js .gl__slide.is-on, .gl__th, .gl__th img { transition: none; } }

/* 오시는 길 — kakkai.co.kr/sub/06/sub0605.html 방식(사용자 지정 2026-11-25): 본문 칸 폭(최대 1280px) 지도 1280×535 + 길찾기 알약 + 주소 한 줄 + 교통 안내 표(왼쪽 크림 이름 칸 · 오른쪽 내용).
   글 칸(1080)보다 넓게 — 좌우로 같은 만큼 빼낸다. 100vw에 스크롤바 폭이 들어 있어 10px 덜 뺀다 */
#location .loc-dy { margin-top: 36px; margin-inline: calc(50% - min(640px, 50vw - var(--gutter) - 10px)); }
.loc-map { position: relative; background: #eee9e2; border-radius: 14px; overflow: hidden; }
.loc-map__link { display: block; }
.loc-map__link img { display: block; width: 100%; height: auto; aspect-ratio: 1278 / 534; object-fit: cover; }
.loc-map__btns { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 12px; margin: 0; white-space: nowrap; }
.loc-map__btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; background: rgba(53, 42, 32, .92); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(53, 42, 32, .22); transition: background-color .3s cubic-bezier(.22, 1, .36, 1); }
.loc-map__btn:hover, .loc-map__btn:focus-visible { background: #413224; color: #fff; }
.loc-map__btn:focus-visible { outline: 2px solid #342920; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(53, 42, 32, .22); } /* 연한 지도 위에서도 보이게 — 짙은 테두리 + 흰 안쪽 링(design R-19, 2026-11-25) */
.loc-map__ic { display: inline-flex; }
.loc-map__ic--naver { color: #816349; }
.loc-map__ic--kakao { color: #fee500; }
.loc-map__ic--kakao svg { width: 18px; height: 18px; }
.loc-map__ic--kakao circle { fill: #352a20; }
.loc-ic { flex: none; color: #725a45; }
.loc-addr { display: flex; align-items: center; gap: 12px; margin: 44px 0 22px; font-size: 22px; font-weight: 600; color: #2b2623; line-height: 1.45; word-break: keep-all; }
.loc-addr address { font-style: normal; }
.loc-table table { width: 100%; border-collapse: collapse; border-top: 1px solid #c6baab; table-layout: fixed; }
.loc-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* 표 이름은 읽기 도구용 — 화면에는 위 주소 줄이 제목 노릇 */
.loc-table tbody tr > th, .loc-table tbody tr > td { border: 0; border-bottom: 1px solid #c6baab; padding: 22px 0; vertical-align: middle; text-align: left; }
.loc-table col.loc-col-k { width: 300px; }
.loc-table tbody tr > th { background: #efe9e1; font-size: 18px; font-weight: 600; color: #352a20; white-space: nowrap; }
.loc-table th > * { vertical-align: middle; }
.loc-table th span { margin-left: 14px; }
.loc-table tbody tr > th { padding-left: 40px; }
.loc-table tbody tr > td { padding-left: 44px; padding-right: 20px; background: #fff; font-size: 17px; font-weight: 400; color: #463c34; line-height: 1.6; word-break: keep-all; }
@media (max-width: 1023.98px) {
  .loc-table col.loc-col-k { width: 220px; }
  .loc-table tbody tr > th { padding-left: 24px; font-size: 16px; }
  .loc-table tbody tr > td { padding-left: 24px; font-size: 16px; }
}
@media (max-width: 719.98px) {
  .loc-map { border-radius: 0; overflow: visible; background: none; }
  .loc-map__link { border-radius: 10px; overflow: hidden; background: #eee9e2; }
  .loc-map__link img { aspect-ratio: 798 / 558; }
  .loc-map__btns { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; } /* 작은 지도를 가리지 않게 지도 아래로 */
  .loc-map__btn { justify-content: center; height: 46px; padding: 0 10px; font-size: 15px; gap: 6px; box-shadow: none; }
  .loc-addr { margin: 28px 0 16px; font-size: 17px; align-items: flex-start; gap: 8px; }
  .loc-addr .loc-ic { width: 22px; height: 22px; margin-top: 2px; }
  /* 좁은 화면은 한 줄을 위(이름)·아래(내용) 두 칸으로 */
  .loc-table table, .loc-table tbody, .loc-table tr, .loc-table th, .loc-table td { display: block; width: 100%; }
  .loc-table tbody tr > th { padding: 12px 16px; font-size: 15px; border-bottom: 0; }
  .loc-table th .loc-ic { width: 20px; height: 20px; }
  .loc-table th span { margin-left: 8px; }
  .loc-table tbody tr > td { padding: 12px 16px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .loc-map__btn { transition: none; } }

/* 섹션 제목(h2) 굵기 600 하나로 — 이야기 섹션 제목과 같게(사용자 지정 2026-11-25 "다른 모든 섹션 제목들 볼드를 맞춰", 공용 디자인 규칙 site-build) */
main section h2[class] { font-weight: 600 !important; } /* 앞쪽 섹션별 규칙(.wm-head .wm-head__h 700 등)이 더 구체적이라 !important로 덮음 */

/* 둘러보기 캐러셀·썸네일 크기 = lumirderm.com .mn-sec-interior 값 그대로(사용자 지정 2026-11-25 "사이즈를 루미르와 완전 동일하게").
   1025px 이상: 큰 사진 폭 min(1476px, 화면-80px)(그 사이트 container 1650·좌우 40px·main-wrap 1476) × 높이 703px 고정, 썸네일 183×88(좁으면 줄어듦)·간격 12·사진 아래로 44px 걸침.
   1024px 이하: 폭 92%·4:3(padding-bottom 75%), 썸네일 숨김, 둥근 버튼 40px·좌우 16px */
.gl-sec { overflow-x: clip; }
/* 글 칸(.wrap)보다 넓게 펼치기는 여백으로 — transform을 쓰면 스크롤 등장(.rv translateY → none)이 덮어써서 등장하는 동안 옆으로 밀려 들어옴(사용자 지적 2026-11-25) */
.gl { --glw: min(1476px, calc(100vw - 80px)); position: relative; width: var(--glw); margin-inline: calc((100% - var(--glw)) / 2); }
.gl__card, .sc-js .gl__track { aspect-ratio: auto; height: 703px; }
.sc-js .gl__card { height: 100%; }
.sc-js .gl__thumbs { bottom: -44px; transform: translateX(-50%); gap: 12px; width: auto; max-width: 100%; }
.gl__thumbs li, .gl__thumbs li + li { flex: 0 1 183px; width: 183px; height: 88px; margin: 0; padding: 0; }
.sc-js .gl__thumbs { align-items: flex-start; height: 88px; }
.gl__th { width: 100%; height: 88px; aspect-ratio: auto; box-sizing: border-box; }
@media (max-width: 1024px) {
  .gl-sec { padding-bottom: clamp(72px, 10vw, 136px); }
  .gl { --glw: 92vw; }
  .gl__card, .sc-js .gl__track { height: auto; aspect-ratio: 4 / 3; }
  .sc-js .gl__card { height: 100%; aspect-ratio: auto; }
  .sc-js .gl__thumbs { display: none; }
  .sc-js .gl__btn { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin-top: -22px; border: 1.2px solid rgba(60, 50, 43, .2); border-radius: 50%; background: rgba(253, 252, 251, .85); color: #3c322b; cursor: pointer; }
  .sc-js .gl__prev { left: 16px; }
  .sc-js .gl__next { right: 16px; }
  .gl__btn .sc-ic, .gl__btn svg { width: 18px; height: 18px; }
  .sc-js .gl__count { position: absolute; z-index: 3; right: 16px; bottom: 12px; display: block; min-width: 4.2em; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(20, 20, 20, .55); font-size: 14px; line-height: 1.4; text-align: center; color: #fff; font-variant-numeric: tabular-nums; }
}

/* 둘러보기 배경 — 사용자 선택 TB-06(docs/review/tour-bg-candidates.html, 2026-11-25). Unsplash 6PcVu-KmOsY(Kseniya Lapteva, Unsplash License) 갈색 수채 얼룩을
   lumirderm 둘러보기 배경 색·명암(평균 #312b26, 결 표준편차 약 4)으로 다시 입힘 — _build/tools/tour-bg.py. 배치는 그 사이트처럼 cover·center top. 장식 배경이라 ItemList·og 밖 */
.gl-sec { background: #372e27 url("../img/stock-tour-brown.webp") center top / cover no-repeat; }
@media (max-width: 899.98px) { .gl-sec { background-image: url("../img/stock-tour-brown-1200.webp"); } }

/* 교통사고 입원 진료 섹션 — 가운데 정렬(사용자 지정 2026-11-25). 워터마크 "Rest"도 가운데로 */
#inpatient .wm-head { text-align: center; }
#inpatient .wm-head::before { left: 50%; transform: translateX(-50%); white-space: nowrap; }
#inpatient .wm-head .wm-head__h { text-align: center; text-wrap: balance; }
#inpatient .prose { max-width: 800px; margin-inline: auto; text-align: center; }
#inpatient .prose p { text-wrap: balance; word-break: keep-all; }
@media (min-width: 900px) { #inpatient .prose { max-width: none; } #inpatient .prose p { white-space: nowrap; } } /* 넓은 화면에서 문장 한 줄로(사용자 지정 2026-11-25 "개행하지마") */

/* 메인 안내 콘텐츠 제목 아래 한 문단(원고 guide_intro — 옛 #clinic 첫 문장, 사용자 지정 2026-11-25). 제목(wm-head) 아래 여백을 문단이 이어받음 */
#related-guides .wm-head:has(+ .sc-gc__lead) { margin-bottom: clamp(14px, 1.6vw, 20px); }
.sc-gc__lead { max-width: 44em; margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.8; color: var(--ink-2, #463a32); word-break: keep-all; text-wrap: pretty; }

/* 두 줄 섹션 제목 — 윗줄 작게, 아랫줄 제목 크기(한의원 소개 .lm__h1/.lm__h2와 같은 비율 — 사용자 지정 2026-11-25) */
.wm-head__h .h2-sub, .wm-head__h .h2-main { display: block; }
.wm-head__h .h2-sub { font-size: .5em; font-weight: 500 !important; color: var(--sc-muted, #66594f); margin-bottom: 12px; }
.gl-sec .gl__h .gl__h1 { font-size: .5em; font-weight: 500; color: #eae7e3; margin-bottom: 12px; }
/* 안내 콘텐츠 머리 문단은 넓은 화면에서 한 줄(사용자 지정 2026-11-25 "개행 X") — 1100px 이상에서 줄바꿈 없이, 좁으면 자연스럽게 줄바꿈 */
@media (min-width: 1100px) { .sc-gc__lead { max-width: none; white-space: nowrap; font-size: 17px; } }
/* 메인 진료 분야(안내 콘텐츠) 제목·머리 문단 가운데 정렬(사용자 지정 2026-11-25) — #inpatient와 같은 방식. 한 줄 문단은 1100px부터 */
#related-guides .wm-head { text-align: center; }
#related-guides .wm-head::before { left: 50%; transform: translateX(-50%); white-space: nowrap; }
#related-guides .wm-head .wm-head__h { text-align: center; text-wrap: balance; }
.sc-gc__lead { margin-inline: auto; text-align: center; text-wrap: balance; }
@media (min-width: 1100px) { .sc-gc__lead { white-space: nowrap; max-width: none; } } /* 글 폭 953px — 1100px 화면 글 칸 990px에 들어감 */
/* 두 줄 제목 윗줄이 좁은 화면에서 14px 밑으로 내려가지 않게 */
.wm-head__h .h2-sub { font-size: max(15px, .5em); }

/* 진료 분야 페이지(t-article) 머리도 메인 히어로처럼 첫 화면 꽉 차게(사용자 지정 2026-11-25). svh라 폰 주소창이 오르내려도 높이가 그대로(흔들림 없음). 개인정보(t-page)는 그대로 */
:is(.t-article, .t-about) main .page-head.has-bg { min-height: 100vh; min-height: 100svh; }

/* 메뉴 바 높이 늘림(사용자 지정 2026-11-25 "navbar height 좀 늘려줘") — 72 → 88px(데스크톱), 60 → 68px(폰). 히어로 위 여백·앵커 이동 여유도 같은 값으로 */
:root { --hdx-bar-h: 88px; --header-h: 88px; }
@media (max-width: 899.98px) { :root { --hdx-bar-h: 68px; --header-h: 68px; } }
@media (min-width: 900px) { .sc-hd.hdx .sc-m::after { bottom: 26px; } .sc-hd.hdx .sc-hd__logo img { height: 44px; } }

/* 두 줄 섹션 제목 크기 통일(사용자 지정 2026-11-25 "편안히 머물다 가는 / 사당동 한의원 이수정성한의원처럼 위아래를 맞춰") —
   한의원 소개(.lm__h) 값 그대로: 아랫줄 clamp(26px, 2.8vw, 40px)·굵기 600, 윗줄 그 절반·500, 줄 사이 12px.
   적용: 입원 진료·진료 분야 등 [br] 두 줄 제목(.wm-head__h:has(.h2-sub)), 둘러보기(.gl__h), 한의원 소개(.lm__h). 윗줄은 좁은 화면에서도 15px 아래로 안 내려감(모두 같게) */
.wm-head .wm-head__h:has(.h2-sub), .gl-sec .gl__h, .lm-sec .lm__h { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.4; }
.wm-head__h .h2-main, .gl__h .gl__h2, .lm__h .lm__h2 { font-weight: 600; }
.wm-head__h .h2-sub, .gl-sec .gl__h .gl__h1, .lm-sec .lm__h .lm__h1 { font-size: max(15px, .5em); font-weight: 500 !important; line-height: 1.4; margin-bottom: 12px; }

/* ════ 진료 분야 페이지(t-article) — youmg.co.kr 성장클리닉·역류성식도염 구조(사용자 지정 2026-11-25) ════
   배경색으로 섹션을 나누지 않는다(빌드에서 모두 흰색 — build.mjs). 넓은 여백 + 가운데 제목 + 회색 본문 + 선 없는 카드 + 연회색 안내 상자.
   머리: 제목만 가운데. 리드·작성자는 머리 아래 따옴표 소개 글(.pg-intro — layout.mjs). */
:is(.t-article, .t-about) .page-head--c .page-head-in, :is(.t-article, .t-about) .page-head--c .page-head-text { max-width: 920px; margin-inline: auto; text-align: center; }
@media (min-width: 1280px) { :is(.t-article, .t-about) .page-head--c .page-head-in, :is(.t-article, .t-about) .page-head--c .page-head-text { max-width: 1120px; } } /* 데스크톱 H1 두 줄 이내(design R-06, 2026-11-25) */
:is(.t-article, .t-about) .page-head--c .crumbs ol { justify-content: center; }
:is(.t-article, .t-about) .page-head--c .eyebrow { margin-inline: auto; }
:is(.t-article, .t-about) .page-head--c h1 { text-wrap: balance; }
:is(.t-article, .t-about) .page-head--c .cta-row { justify-content: center; }
:is(.t-article, .t-about) main .page-head--c { justify-content: center; }

.pg-intro { padding: clamp(96px, 10vw, 160px) 0 clamp(24px, 3vw, 40px); text-align: center; background: #fff; }
.pg-intro__q { position: relative; max-width: 860px; margin: 0 auto; padding-top: clamp(56px, 5vw, 72px); }
.pg-intro__q::before { content: "\201C"; position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-family: Georgia, "Times New Roman", serif; font-size: clamp(72px, 6vw, 96px); line-height: .8; color: #c49a3c; }
.pg-intro .lead { margin: 0 0 .5em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.85; color: #342920; word-break: keep-all; text-wrap: balance; } /* 줄 끝 외톨이 줄 없게(design R-25, 2026-11-25) */
.pg-intro .byline { margin: clamp(24px, 2.4vw, 36px) 0 0; color: #6b625b; font-size: 14px; }

.t-article main .sec.sc-sec:not(#related-guides) { background: #fff !important; padding-block: clamp(64px, 7vw, 112px); }
.t-article main .sec.sc-sec::before, .t-article main .sec.sc-sec::after { display: none !important; }

/* 제목 — 대괄호 없이 가운데: 윗줄 작은 갈색, 아랫줄 진한 제목 */
.t-article .sc-tt--hd7::before, .t-article .sc-tt--hd7::after { content: none !important; display: none !important; }
.t-article .sc-tt--hd7, .t-article .sc-tt--hd7.sc-tt--start { padding: 0 !important; max-width: 900px; margin: 0 auto clamp(24px, 2.6vw, 40px) !important; text-align: center; }
.t-article .sc-tt--hd7 .sc-tt__h { text-align: center; line-height: 1.35; letter-spacing: -.02em; }
.t-article .sc-tt--hd7 .sc-tt__pre { display: block; margin-bottom: 10px; font-size: clamp(14px, 1.1vw, 16px); font-weight: 500; letter-spacing: 0; color: #66503d; }
.t-article .sc-tt--hd7 .sc-tt__em { display: block; font-size: clamp(26px, 2.4vw, 36px); color: #2b2623; }

/* 본문 — 가운데, 회색, 넉넉한 줄 간격. 상자 없이 */
.t-article .sec .prose { max-width: 820px; margin-inline: auto; padding: 0 !important; text-align: center; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.t-article .sec .prose > p, .t-article .sec-brief .prose > p { max-width: none; margin-inline: auto; color: #5c544f; font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.9; word-break: keep-all; text-wrap: pretty; }
.t-article .sec .prose ul, .t-article .sec .prose ol:not(.sc-steps) { display: inline-block; max-width: 760px; text-align: left; color: #5c544f; line-height: 1.85; }

/* 하위 항목(H3 카드) — 상자 없이 윗선 하나, 여러 칸 */
.t-article .subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 3vw, 48px); max-width: 1120px; margin: clamp(36px, 4vw, 60px) auto 0; }
.t-article .subs .sub { margin: 0 !important; padding: 28px 0 0 !important; background: none !important; border: 0 !important; border-top: 1px solid #e2dbd3 !important; border-radius: 0 !important; box-shadow: none !important; text-align: left; transform: none !important; }
.t-article .subs .sub .card-body { padding: 0 !important; }
.t-article .subs .sub h3 { font-size: clamp(18px, 1.4vw, 20px); color: #2b2623; }
.t-article .subs .sub p { color: #5c544f; font-size: 15.5px; line-height: 1.8; }

/* 주의사항 — youmg "부모님을 위한 안내"처럼 연회색 둥근 상자 */
.t-article #caution .prose { max-width: 1000px; padding: clamp(24px, 2.6vw, 36px) clamp(24px, 3vw, 44px) !important; text-align: left; background: #f6f3ef !important; border-radius: 16px !important; }
.t-article #caution .prose ul { display: block; max-width: none; margin: 0; padding-left: 1.1em; }
.t-article #caution .prose > p { text-align: left; }

/* 메인 입원 진료 문단 아래 넓은 밝은 사진(youmg.co.kr "삶의 회복이 시작되는 곳" 방식, 사용자 지정 2026-11-25). 자리는 비율로 미리 잡는다 */
.wide-ph { margin-top: 44px; }
.wide-ph img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-lg); }
@media (max-width: 719.98px) { .wide-ph { margin-top: 28px; } .wide-ph img { aspect-ratio: 4 / 3; object-position: 62% 35%; } }
.t-article .sec .prose:has(.sc-steps) { max-width: 1120px; }
.t-article .sec .prose:has(.sc-steps) > p { max-width: 820px; }
.t-article .sec .prose .sc-steps { text-align: left; margin-top: clamp(28px, 3vw, 44px); }
/* 제목은 한 줄로(youmg "유명한의원의 성장클리닉"처럼) — 자동으로 나뉘던 윗줄·아랫줄을 같은 크기로 이어 씀. 긴 안내 콘텐츠 제목만 윗줄 작게 */
.t-article .sc-tt--hd7 .sc-tt__pre, .t-article .sc-tt--hd7 .sc-tt__em { display: inline; margin: 0; font-size: clamp(26px, 2.3vw, 34px); font-weight: inherit; letter-spacing: inherit; color: #2b2623; }
.t-article .sc-tt--hd7 .sc-tt__h { text-wrap: balance; word-break: keep-all; }
.t-article #related-guides .sc-tt__pre { display: block; margin-bottom: 10px; font-size: clamp(14px, 1.1vw, 16px); font-weight: 500; color: #66503d; }
.t-article #related-guides .sc-tt__em { display: block; }
/* 앞쪽 #neck 등 id 규칙(왼쪽 정렬)을 덮음 */
.t-article main section[id]:not(#caution) .prose > p { text-align: center; max-width: 820px; margin-inline: auto; }
.t-article main .sec.sc-sec { padding-block: clamp(56px, 6vw, 96px); }
/* 절차 단계 — 짙은 갈색 화살표 대신 연한 크림 화살표(흰 페이지에서 혼자 무겁지 않게) */
.t-article .sc-steps--chev > .sc-step { --c: #f1ece5; }
.t-article .sc-steps--chev > .sc-step:nth-child(even) { --c: #ebe2d7; }
.t-article .sc-steps--chev .sc-step__head, .t-article .sc-steps--chev .sc-step__t, .t-article .sc-steps--chev .sc-step__ic { color: #342920; }
.t-article .sc-steps--chev .sc-step__n { color: #644f3c; }
.t-article .sc-steps--chev .sc-step__mk { background: #c49a3c; }
.t-article .sc-steps--chev .sc-step__d { color: #5c544f; }
/* 호버 때 진해지게(사용자 지정 2026-11-25 "호버했을때 좀 진해져야") — 공통 호버의 brightness(1.14)는 연한 크림을 더 밝게만 해 티가 안 났음. 갈색 글자 #3d2818은 진해진 바탕에서도 대비 7:1 넘음 */
.t-article .sc-steps--chev .sc-step__head { transition: transform .3s var(--ease), filter .3s var(--ease), background-color .3s var(--ease); }
@media (hover: hover) and (min-width: 900px) {
  .t-article .sc-steps--chev > .sc-step:hover { --c: #d6c6b3; }
  .t-article .sc-steps--chev > .sc-step:nth-child(even):hover { --c: #cdbba5; }
  .t-article .sc-steps--chev > .sc-step:hover .sc-step__head { filter: drop-shadow(0 8px 14px rgba(45, 36, 30, .2)); }
  .t-article .sc-steps--chev > .sc-step:hover .sc-step__n { color: #503f31; }
}
@media (max-width: 599.98px) { :is(.t-article, .t-about) .page-head--c .crumbs li[aria-current] { display: none; } } /* 가운데 정렬 머리에서 긴 현재 위치가 "/ …"로 꺾이지 않게 — 같은 말이 바로 아래 H1에 있음 */

/* 진료 분야(#related-guides) 섹션 배경 = 크림 실크 주름을 갈색 톤으로 입힌 사진 (사용자 선택 GB-09 + "좀 갈색느낌", 2026-11-25 — docs/review/guide-bg-candidates.html).
   원본 클립아트코리아 twi001t2666927(보관함 common/ck-twi001t2666927-cream-silk-folds.webp)을 #15100c~#2c2520~#4c3d2d로 다시 입힘 — 사용자 "진료공간 섹션과 비슷한 갈색 진하기"(진료 공간 stock-tour-brown 가운데값 #332d24와 맞춤). 글자도 진료 공간과 같은 밝은 색. CSS 장식 배경이라 og·ItemList와 무관.
   틴트 섹션 공통 한지 결(::after)은 실크 결과 겹쳐 지저분해서 이 섹션만 끈다 */
/* 메인(.t-home)만 — 하위 분야 페이지(.t-article)는 사용자 지정 "섹션 모두 흰색"(decisions 2026-11-25 진료 분야 5페이지 구조)이라 흰 바탕·짙은 글자 그대로 */
:is(.t-home, .t-article) #related-guides { background: #372e27 url(/assets/img/stock-bg-silk-brown-960.webp) center / cover no-repeat; color: #ddd8d1; }
@media (min-width: 900px) { :is(.t-home, .t-article) #related-guides { background-image: url(/assets/img/stock-bg-silk-brown.webp); } }
:is(.t-home, .t-article) #related-guides::after { content: none; }
/* 글자색 = 진료 공간(.gl-sec)과 같게: 제목 #fff · 작은 글자 #eae7e3 · 설명 #ddd8d1. 영어 꾸밈 글자는 어두운 바탕에서 조금 더 보이게 */
:is(.t-home, .t-article) #related-guides .wm-head__h, :is(.t-home, .t-article) #related-guides .h2-main { color: #fff; }
:is(.t-home, .t-article) #related-guides .h2-sub { color: #eae7e3; }
:is(.t-home, .t-article) #related-guides .sc-gc__lead { color: #ddd8d1; }
:is(.t-home, .t-article) #related-guides .wm-head::before { color: #c49a3c; opacity: .32; }

/* 메인 섹션 사이 여백 통일(사용자 지정 2026-11-25 "각 섹션간 여백을 sincerity와 philosophy 사이 여백으로") —
   이야기(#story) 아래 clamp(88px, 12vw, 176px) + 진료 철학 위 clamp(96px, 14vw, 200px) = 1440 화면 약 373px · 폰 184px를 모든 경계에 같게.
   둘러보기는 썸네일이 사진 아래로 44px 걸쳐(그만큼 아래 여백에 더함 — 1024px 이하는 썸네일 없음) */
.t-home main .sec { padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(88px, 12vw, 176px); }
.t-home main .sec.gl-sec { padding-bottom: calc(clamp(88px, 12vw, 176px) + 44px); }
@media (max-width: 1024px) { .t-home main .sec.gl-sec { padding-bottom: clamp(88px, 12vw, 176px); } }

/* 영어 꾸밈 글자(Location·Philosophy 등) 맨 위를 섹션 시작으로 보고 여백을 잼(사용자 지정 2026-11-25 "location같은 영어가 너무 윗 섹션과 붙어있어").
   꾸밈 글자가 제목 위로 나간 만큼(.wm-head::before top clamp(-118px, -7.6vw, -60px), 900px 미만 -40px · .pf__head::before clamp(-156px, -10.6vw, -82px), 900px 미만 -44px)
   위 여백에 더해, 앞 섹션 내용 끝 → 꾸밈 글자 맨 위가 다른 경계와 같은 값(1440 약 373px · 폰 184px)이 되게 */
.t-home main .sec:has(> .wrap > .wm-head) { padding-top: calc(clamp(96px, 14vw, 200px) + clamp(60px, 7.6vw, 118px)); }
.t-home main #philosophy.pf-sec { padding-top: calc(clamp(96px, 14vw, 200px) + clamp(82px, 10.6vw, 156px)); }
@media (max-width: 899.98px) {
  .t-home main .sec:has(> .wrap > .wm-head) { padding-top: calc(clamp(96px, 14vw, 200px) + 40px); }
  .t-home main #philosophy.pf-sec { padding-top: calc(clamp(96px, 14vw, 200px) + 44px); }
}
/* 진료 분야 머리 — H1 아래 감성 한 줄(youmg 히어로 부제 자리, 사용자 지정 2026-11-25) */
:is(.t-article, .t-about) .page-head--c .ph-tagline { margin: clamp(14px, 1.6vw, 22px) auto 0; max-width: 40em; font-size: clamp(15px, 1.25vw, 19px); font-weight: 400; line-height: 1.7; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(18, 14, 10, .5); word-break: keep-all; text-wrap: balance; }
/* 진료 철학은 처음 위 여백으로 되돌림(사용자 지정 2026-11-25 "진료 원칙 너무 내려갔다") — Philosophy 꾸밈 글자 몫을 더하지 않음 */
.t-home main #philosophy.pf-sec { padding-top: clamp(96px, 14vw, 200px); }
@media (max-width: 899.98px) { .t-home main #philosophy.pf-sec { padding-top: clamp(96px, 14vw, 200px); } }
/* 진료 철학 좀 더 위로 + 꾸밈 글자 있는 섹션(오시는 길 등) 위 여백을 진료 철학과 같게(사용자 지정 2026-11-25) — 위 여백 clamp(72px, 10vw, 140px) = 1440 140px · 폰 72px.
   위에서 더했던 꾸밈 글자 몫(+clamp(60px, 7.6vw, 118px))은 뺌 */
.t-home main #philosophy.pf-sec, .t-home main .sec:has(> .wrap > .wm-head) { padding-top: clamp(72px, 10vw, 140px); }
@media (max-width: 899.98px) { .t-home main #philosophy.pf-sec, .t-home main .sec:has(> .wrap > .wm-head) { padding-top: clamp(72px, 10vw, 140px); } }
/* 입원 진료(Rest) 위 여백 늘림(사용자 지정 2026-11-25 "rest도 좀 내려. 너무 붙어있어") — 140 → 200px(폰 72 → 96px), 꾸밈 글자 없는 섹션과 같은 값 */
.t-home main #inpatient.sec { padding-top: clamp(96px, 14vw, 200px); }
@media (max-width: 899.98px) { .t-home main #inpatient.sec { padding-top: clamp(96px, 14vw, 200px); } }
/* 진료 분야(Clinic) 위 여백도 입원 진료와 같게(사용자 지정 2026-11-25 "clinic도 동일") — 140 → 200px(폰 72 → 96px) */
:is(.t-home, .t-article) main #related-guides.sec { padding-top: clamp(96px, 14vw, 200px); }
@media (max-width: 899.98px) { :is(.t-home, .t-article) main #related-guides.sec { padding-top: clamp(96px, 14vw, 200px); } }
/* 오시는 길(Location) 위 여백도 입원 진료·진료 분야와 같게(사용자 지정 2026-11-25) — 140 → 200px(폰 72 → 96px) */
.t-home main #location.sec { padding-top: clamp(96px, 14vw, 200px); }
@media (max-width: 899.98px) { .t-home main #location.sec { padding-top: clamp(96px, 14vw, 200px); } }
/* 진료시간(Everyday)도 영어 꾸밈 글자 위 여백을 위 섹션과 같게 (사용자 2026-11-25 "everyday도 위에서 여백좀 둬야돼. 위에랑 동일하게") */
.t-home main #hours.sec { padding-top: clamp(96px, 14vw, 200px); }
@media (max-width: 899.98px) { .t-home main #hours.sec { padding-top: clamp(96px, 14vw, 200px); } }

/* 오시는 길 아이콘 = kakkai.co.kr 오시는 길 모양(사용자 지정 2026-11-25): 꽉 찬 짙은 단색 35px(폰 26px), 주소 줄은 카멜 원 39px(폰 30px) 안 흰 핀 */
.loc-table th .loc-ic { width: 35px; height: 35px; color: #342920; }
.loc-addr .loc-ic--pin { width: 39px; height: 39px; margin-top: 0; }
@media (max-width: 719.98px) {
  .loc-table th .loc-ic { width: 26px; height: 26px; }
  .loc-addr .loc-ic--pin { width: 30px; height: 30px; margin-top: 0; }
  .loc-addr { align-items: center; }
}

/* 버스 종류 색 배지(사용자 지정 2026-11-25 "뱃지로 해") — 알약형, 폭 고정이라 번호 줄 시작이 맞음. 흰 글자 대비: 간선 #3d5bab 6.4 · 지선 #604a37 5.2 · 마을 #544130 5.0 */
.bus-b { display: inline-block; min-width: 3.4em; margin: 3px 10px 3px 0; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; color: #fff; vertical-align: 1px; }
.bus-b--trunk { background: #3d5bab; }
.bus-b--branch { background: #604a37; }
.bus-b--village { background: #544130; }
.bus-b--wide { background: #c8372d; } /* 광역버스 빨강(사용자 지정 2026-11-27) */
@media (max-width: 719.98px) { .bus-b { font-size: 14px; margin-right: 8px; padding: 1px 8px; } }
.bus-l { display: flex; align-items: flex-start; gap: 0; }
.bus-l .bus-b { flex: none; }
.bus-l > span:last-child { padding-top: 2px; }
/* 지하철 노선 색 동그라미(사용자 지정 2026-11-25) — 4호선 하늘 #8e6d50·7호선 올리브 #747f00(서울 지하철 노선색)을 흰 글자 대비 4.5:1 넘게 조금 진하게 */
.sub-b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1; color: #fff; vertical-align: -4px; font-variant-numeric: tabular-nums; }
.sub-b + .sr-only + .sub-b { margin-left: 0; }
.sub-b--1 { background: #c45200; } /* 부산 1호선 주황 — 흰 글자 대비 4.5:1 넘게 조금 진하게 */
.sub-b--4 { background: #6d533d; }
.sub-b--7 { background: #666f00; }
td .sub-b:last-of-type { margin-right: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sub-b { vertical-align: 1px; } /* 글자 줄 가운데와 맞춤(사용자 지적 2026-11-25 "텍스트랑 정렬이 안돼") — 전 -4px은 약 5px 낮았음 */
.sub-b::before { content: attr(data-n); }

/* ════ 진료 분야 머리 = 메인 히어로와 같은 글자·밝기(사용자 지정 2026-11-25) ════
   H1: 메인 제목과 같은 명조(Noto Serif KR Hero — 분야 H1 글자까지 담아 다시 만든 파일)·크기·굵기·자간·진한 갈색.
   p(감성 한 줄): 메인 리드와 같은 Pretendard 18px·#463d36. 글자가 진해졌으니 배경도 메인처럼 하얗게 바랜 사진 위(가운데 정렬이라 흰 막은 고르게) */
:is(.t-article, .t-about) .page-head--c .page-head-photo img { filter: brightness(.9) saturate(.9) contrast(.95) !important; opacity: .94; } /* 조금 더 어둡게(사용자 지정 2026-11-25 두 번) — 처음 brightness 1.08·opacity .82 */
:is(.t-article, .t-about) .page-head--c .page-head-photo { background: #fbfaf8; }
:is(.t-article, .t-about) .page-head--c .page-head-photo::after { background: rgba(255, 255, 255, .54) !important; } /* 처음 .74 → .64 → .54 — H1 #342920 대비는 design-lint가 잰다 */
:is(.t-article, .t-about) .page-head--c h1 { font-family: "Noto Serif KR Hero", "Noto Serif KR", serif; font-size: clamp(32px, 3.82vw, 55px); font-weight: 600; letter-spacing: -2px; line-height: 1.5; color: #342920 !important; text-shadow: none !important; }
:is(.t-article, .t-about) .page-head--c h1 * { color: inherit !important; font: inherit; letter-spacing: inherit; }
:is(.t-article, .t-about) .page-head--c .ph-tagline { margin-top: clamp(18px, 2vw, 28px); font-family: Pretendard, "Pretendard Fallback", sans-serif; font-size: 18px; font-weight: 400; line-height: 1.75; color: #463d36; text-shadow: none; }
@media (max-width: 599.98px) {
  :is(.t-article, .t-about) .page-head--c h1 { font-size: min(32px, calc((100vw - 2 * var(--gutter, 20px)) / 10.4)); letter-spacing: -1.2px; }
  :is(.t-article, .t-about) .page-head--c .ph-tagline { font-size: 15px; line-height: 1.6; }
}

/* 진료시간(#hours) 섹션 배경 = 연한 베이지 린넨을 진료 분야·진료 공간과 같은 짙은 갈색으로 입힌 사진 (사용자 선택 GB-04 "갈색톤으로", 2026-11-25 — docs/review/hours-bg-candidates.html).
   원본 클립아트코리아 yaytg127753(보관함 common/ck-yaytg127753-light-beige-linen.webp) → #15100c~#2c2520~#4a3b2d. 메인만(하위 페이지는 #hours 없음). CSS 장식 배경 — og·ItemList와 무관.
   틴트 공통 한지 결(::after)은 끄고, 카드 밖 글자는 진료 공간과 같은 밝은 색 */
.t-home #hours { background: #372e27 url(/assets/img/stock-bg-linen-brown-960.webp) center / cover no-repeat; color: #ddd8d1; }
@media (min-width: 900px) { .t-home #hours { background-image: url(/assets/img/stock-bg-linen-brown.webp); } }
.t-home #hours::after { content: none; }
.t-home #hours .wm-head__h, .t-home #hours .h2-main { color: #fff; }
.t-home #hours .h2-sub { color: #eae7e3; }
.t-home #hours .prose, .t-home #hours .prose p, .t-home #hours .prose .nw { color: #ddd8d1; }
.t-home #hours .wm-head::before { color: #c49a3c; opacity: .32; }
/* 진료시간 — 본문 문단·일요일 카드를 표로 합친 뒤(2026-11-25 사용자 "중복 제거하고 최대한 표 안으로, 표 색도 배경색과 어울리고 잘 보이게").
   넓은 화면: 제목 왼쪽 · 표 오른쪽(오른쪽이 비지 않게). 표는 갈색 린넨 위 반투명 짙은 판 + 카멜 선 + 밝은 글자(진료 공간 글자색과 같은 계열) */
@media (min-width: 1000px) {
  .t-home #hours .wrap:has(> .hours-box) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(40px, 5vw, 88px); align-items: center; }
  .t-home #hours .wm-head { margin-bottom: 0; }
}
.t-home #hours table.hours { background: rgba(15, 12, 10, .42); border: 1px solid rgba(178, 151, 128, .38); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .55); }
.t-home #hours table.hours :is(tbody th, td) { border-bottom-color: rgba(178, 151, 128, .22); }
.t-home #hours table.hours tbody th { background: rgba(178, 151, 128, .12); color: #e0d2c0; }
.t-home #hours table.hours td, .t-home #hours table.hours tbody tr > td { background: transparent; color: #f0ebe5; }
.t-home #hours table.hours .hr-time { color: #fff; }
.t-home #hours .hr-tag { background: #c49a3c; color: #201a14; }
.t-home #hours table.hours .hr-lunch td { color: #ddd8d1; }
.t-home #hours table.hours .hr-off td { color: #dac8b3; }
.t-home #hours .hr-sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: #d3c7b9; }

/* 메인 진료 분야 카드 — 흰 카드가 갈색 실크 바탕에서 너무 튀어(사용자 지정 2026-11-25 "배경과 어울리는 색으로") 짙은 갈색 반투명 판 + 가는 밝은 테두리, 글자는 크림 계열.
   흐림(backdrop-filter)은 헤더·퀵바에만 쓰는 규칙이라 넣지 않고 불투명도로만. 글자 대비: 제목 #ece4da·설명 #d3c8bb 모두 바탕(약 #2c231b) 대비 9:1 이상 */
:is(.t-home, .t-article) #related-guides .sc-gc__card { background: rgba(34, 27, 21, .72); border: 1px solid rgba(231, 221, 208, .16); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .6); }
:is(.t-home, .t-article) #related-guides .sc-gc__body::before { color: #c49a3c; }
:is(.t-home, .t-article) #related-guides .sc-gc__body::after { background: rgba(178, 151, 128, .5); }
:is(.t-home, .t-article) #related-guides .sc-gc__t { color: #ece4da; }
:is(.t-home, .t-article) #related-guides .sc-gc__d { color: #d3c8bb; }
@media (hover: hover) { :is(.t-home, .t-article) #related-guides .sc-gc__card:hover { border-color: rgba(178, 151, 128, .45); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .7); } }
/* 표 굵기 덜어냄(사용자 2026-11-25 "볼드를 좀 빼도될듯") — 칸 이름·시간·휴진일 700 → 500, 나머지 400 */
.t-home #hours table.hours tbody th { font-weight: 500; }
.t-home #hours table.hours .hr-time { font-weight: 400; } /* 시간도 굵기 뺌(사용자 2026-11-25 "시간도 볼드 빼") */
.t-home #hours table.hours td { font-weight: 400; }
.t-home #hours table.hours .hr-off td { font-weight: 500; }

/* 메인 진료 분야 = 썸네일 카드만(사용자 지정 2026-11-25). 카드 판·테두리 없이 둥근 썸네일 한 장. 폰(899px 이하)은 옆으로 밀지 않고 아래로: 두 칸 격자, 남는 다섯째는 가운데 */
:is(.t-home, .t-article) #related-guides .sc-gc__card { background: none; border: 0; box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .6); border-radius: 14px; }
:is(.t-home, .t-article) #related-guides .sc-gc__list { grid-auto-rows: auto; }
@media (max-width: 899px) {
  :is(.t-home, .t-article) #related-guides .sc-gc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
  :is(.t-home, .t-article) #related-guides .sc-gc__list > li { flex: none; min-width: 0; }
  :is(.t-home, .t-article) #related-guides .sc-gc__list > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
/* 자주 묻는 질문(Questions) 위 여백도 입원 진료·진료 분야·오시는 길과 같게(사용자 지정 2026-11-25) — 140 → 200px(폰 72 → 96px) */
.t-home main #faq.sec { padding-top: clamp(96px, 14vw, 200px); }
@media (max-width: 899.98px) { .t-home main #faq.sec { padding-top: clamp(96px, 14vw, 200px); } }

/* 메뉴 앵커(한의원 소개·의료진 소개·진료 공간·오시는 길)로 갔을 때 스크롤 한 번(약 100px) 더 내린 자리에 멈추게(사용자 지정 2026-11-25).
   섹션 위 여백(200px, 폰 96px)이 커서 제목이 너무 아래에 왔음. 기본 [id] scroll-margin-top = 헤더 + 12px(1440 100px) → 헤더 + 12px - 100px.
   오시는 길은 Location 꾸밈 글자가 제목 위로 나와 있어 헤더에 가리지 않게 조금 덜 내림. 폰은 위 여백이 작아 헤더 바로 아래 안에서만 */
.t-home main #about, .t-home main #doctor, .t-home main #tour { scroll-margin-top: calc(var(--header-h) + 12px - 100px); }
.t-home main #location { scroll-margin-top: calc(var(--header-h) + 12px - 84px); }
@media (max-width: 899.98px) {
  .t-home main #about, .t-home main #doctor, .t-home main #tour { scroll-margin-top: 0px; }
  .t-home main #location { scroll-margin-top: 28px; }
}

/* 진료 문의 띠(L3) — 외래 데스크 사진 위 막을 한 단계 어둡게(사용자 지정 2026-11-25 "그냥 좀 어둡게" — 갈색 막은 이상하다 해서 되돌림). 막 색은 기본 먹색 그대로, 진하기만 올림 */
.sc-l3::after { background: linear-gradient(90deg, rgba(var(--sc-overlay-rgb), .95) 0%, rgba(var(--sc-overlay-rgb), .9) 48%, rgba(var(--sc-overlay-rgb), .7) 100%); }

/* ════ 진료 분야 페이지(t-article) 글 → 카드 (사용자 지정 2026-11-25 "하위페이지들이 너무 본문에 텍스트만… 카드를 적극적으로", 참고 youmg.co.kr·kakkai.co.kr·lumirderm.com) ════
   섹션은 흰 바탕 그대로(사용자 지정 "섹션 모두 흰색") → 카드는 크림 틴트(반대 톤). 마크업은 render.mjs ptCards·ckCards·h3Block.
   ① 소제목(H3) 블록 = 크림 카드 격자 + 아이콘 칸 + 번호(CSS 카운터) ② 문단만 있는 섹션 = 1개 아이콘 강조 상자 / 2개 두 칸(앞 칸 짙은 갈색) / 3개 번호 카드
   ③ 섹션 목록 = 체크 카드, 주의사항은 종 아이콘 카드 ④ 진료 방법 이름 칩. 글 다음 카드 여백 36~48px(site-build 20) */
.t-article .subs { counter-reset: sub; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); max-width: 1120px; margin: clamp(36px, 4vw, 48px) auto 0; }
@media (min-width: 1000px) {
  .t-article .subs.n-3, .t-article .subs.n-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-article .subs.n-4, .t-article .subs.n-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.t-article .subs.n-1 { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
@media (max-width: 719.98px) { .t-article .subs { grid-template-columns: minmax(0, 1fr); } }
.t-article .subs .sub { counter-increment: sub; position: relative; padding: clamp(24px, 2.4vw, 32px) clamp(22px, 2.2vw, 28px) !important; background: #f5f1ec !important; border: 1px solid #eae1d7 !important; border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(92, 74, 60, .05) !important; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease) !important; }
.t-article .subs .sub::after { content: counter(sub, decimal-leading-zero); position: absolute; top: clamp(18px, 2vw, 24px); right: clamp(20px, 2.2vw, 26px); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #a28164; font-variant-numeric: tabular-nums; }
.t-article .subs.n-1 .sub::after { content: none; }
.t-article .subs .sub .sub-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.t-article .subs .sub .sub-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: #725a45; box-shadow: 0 6px 14px -8px rgba(92, 74, 60, .35); }
.t-article .subs .sub .sub-ico .ico { width: 26px; height: 26px; }
.t-article .subs .sub h3 { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.45; color: #342920 !important; word-break: keep-all; }
.t-article .subs .sub p, .t-article .subs .sub li { color: #5c544f; font-size: 15.5px; line-height: 1.8; word-break: keep-all; }
@media (hover: hover) and (min-width: 900px) {
  .t-article .subs .sub:hover { transform: translateY(-4px) !important; background: #ede6de !important; border-color: #ded2c3 !important; box-shadow: 0 16px 32px -20px rgba(92, 74, 60, .45) !important; }
}

/* ② 문단만 있는 섹션 */
.pt-note { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); max-width: 1000px; margin: clamp(36px, 4vw, 48px) auto 0; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px); background: #f5f1ec; border: 1px solid #eae1d7; border-radius: 18px; text-align: left; }
.pt-note__ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #725a45; box-shadow: 0 8px 18px -10px rgba(92, 74, 60, .4); }
.pt-note__ic .ico { width: 30px; height: 30px; }
.pt-note p { margin: 0; color: #463d36; font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.85; word-break: keep-all; text-wrap: pretty; }
@media (max-width: 599.98px) { .pt-note { flex-direction: column; align-items: flex-start; } .pt-note__ic { width: 52px; height: 52px; } }

.pt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); max-width: 1120px; margin: clamp(36px, 4vw, 48px) auto 0; text-align: left; }
.pt-cards.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-cards--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; }
@media (max-width: 899.98px) { .pt-cards, .pt-cards--duo, .pt-cards.n-4 { grid-template-columns: minmax(0, 1fr); } }
.pt-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.6vw, 34px); background: #f5f1ec; border: 1px solid #eae1d7; border-radius: 18px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease); }
.pt-card__top { display: flex; align-items: center; justify-content: space-between; }
.pt-card__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: #725a45; box-shadow: 0 6px 14px -8px rgba(92, 74, 60, .35); }
.pt-card__ic .ico { width: 26px; height: 26px; }
.pt-card__n { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #d3c2ae; font-variant-numeric: tabular-nums; }
.pt-card p { margin: 0; color: #5c544f; font-size: 15.5px; line-height: 1.85; word-break: keep-all; text-wrap: pretty; }
/* 두 칸: 앞 칸은 짙은 갈색 바탕(lumirderm 비교 카드처럼 한쪽을 무겁게) — #f0ebe5 글자 대비 11:1 */
.pt-cards--duo .pt-card:first-child { background: linear-gradient(150deg, #503f31, #342920); border-color: transparent; }
.pt-cards--duo .pt-card:first-child p { color: #f0ebe5; }
.pt-cards--duo .pt-card:first-child .pt-card__ic { background: rgba(255, 255, 255, .12); color: #dbc9b3; box-shadow: none; }
@media (hover: hover) and (min-width: 900px) {
  .pt-card:hover { transform: translateY(-4px); background-color: #ede6de; box-shadow: 0 16px 32px -20px rgba(92, 74, 60, .45); }
  .pt-cards--duo .pt-card:first-child:hover { background: linear-gradient(150deg, #453629, #271f18); }
}

/* ③ 목록 → 체크 카드 */
.ck-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); max-width: 1120px; margin: clamp(36px, 4vw, 48px) auto 0; padding: 0; list-style: none; text-align: left; }
.ck-cards.n-2, .ck-cards.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
@media (max-width: 899.98px) { .ck-cards, .ck-cards.n-2, .ck-cards.n-4 { grid-template-columns: minmax(0, 1fr); } }
.ck-cards li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: clamp(20px, 2.2vw, 26px); background: #f5f1ec; border: 1px solid #eae1d7; border-radius: 16px; color: #463d36; font-size: 15.5px; line-height: 1.75; word-break: keep-all; transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); }
.ck-cards li::before { content: none; }
.ck-cards__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -2px; border-radius: 50%; background: #725a45; color: #fff; }
.ck-cards__ic svg { width: 18px; height: 18px; }
.ck-cards--warn li { background: #fff; border-color: #e2d6c7; border-top: 3px solid #c49a3c; }
.ck-cards--warn .ck-cards__ic { background: #ede6de; color: #715944; }
.ck-note { max-width: 1000px; margin: 18px auto 0; text-align: center; color: #6b625b; font-size: 14.5px; }
@media (hover: hover) and (min-width: 900px) { .ck-cards li:hover { transform: translateY(-3px); background-color: #ede6de; box-shadow: 0 14px 28px -20px rgba(92, 74, 60, .45); } .ck-cards--warn li:hover { background-color: #f8f5f2; } }
/* 주의사항 회색 상자(.prose)는 목록이 카드로 빠지고 글만 남으면 상자 없이 */
.t-article #caution .prose:not(:has(ul)) { max-width: 820px; padding: 0 !important; background: none !important; text-align: center; }
.t-article #caution .prose:not(:has(ul)) > p { text-align: center; }

/* ④ 진료 방법 이름 칩 */
.pt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: clamp(36px, 4vw, 48px) auto 0; padding: 0; list-style: none; }
.pt-chips li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px 10px 12px; border: 1px solid #ded2c3; border-radius: 999px; background: #fff; color: #342920; font-size: 15px; font-weight: 600; line-height: 1.2; }
.pt-chips li::before { content: none; }
.pt-chips li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f0ebe4; color: #725a45; }
.pt-chips li > span .ico { width: 17px; height: 17px; }
.pt-chips + .pt-cards, .pt-chips + .pt-note { margin-top: clamp(22px, 2.4vw, 30px); }
@media (prefers-reduced-motion: reduce) { .t-article .subs .sub, .pt-card, .ck-cards li { transition: none !important; transform: none !important; } }
.ck-cards__t strong { display: block; margin-bottom: 2px; color: #342920; font-weight: 700; } /* "생리통·생리불순: …" 앞 이름을 카드 제목처럼 */
/* 진료 분야 페이지 카드 번호(01·02…) 숨김 — 진료 절차 STEP만 남김(사용자 지정 2026-11-25) */
.t-article .subs .sub::after, .t-article .sc-gc__body::before, .t-article .sc-gc__body::after { content: none; }
/* 진료 분야 페이지 본문 글자 +1.5px·카드 폭 넓힘(사용자 지정 2026-11-25) — 히어로·바로 아래 도입 문장·H2는 그대로 */
.t-article .sec .prose > p, .t-article .sec-brief .prose > p { font-size: clamp(17px, calc(1.15vw + 1.5px), 18.5px); }
.t-article .sec .prose ul, .t-article .sec .prose ol:not(.sc-steps) { font-size: 17.5px; }
.t-article .subs .sub h3 { font-size: clamp(18.5px, calc(1.35vw + 1.5px), 20.5px); }
.t-article .subs .sub p, .t-article .subs .sub li { font-size: 17px; }
.t-article .pt-note p { font-size: clamp(17px, calc(1.2vw + 1.5px), 18.5px); }
.t-article .pt-card p, .t-article .ck-cards li { font-size: 17px; }
.t-article .ck-note { font-size: 16px; }
.t-article .pt-chips li { font-size: 16.5px; }
.t-article .sec .sc-steps--chev .sc-step__t { font-size: clamp(18.5px, calc(1.5vw + 1.5px), 20.5px); }
.t-article .sec .sc-steps--chev .sc-step__d { font-size: 16.5px; }
@media (max-width: 899.98px) { .t-article .sec .sc-steps--chev .sc-step__t { font-size: 16.5px; } }
.t-article .sc-faq__in > * { font-size: 17.5px; }
.t-article .sc-faq__t { font-size: 1.09em; }
.t-article .sc-gc__t { font-size: 19.5px; }
.t-article .sc-gc__d { font-size: 16.5px; }
.t-article .subs, .t-article .pt-cards, .t-article .ck-cards, .t-article .sec .prose:has(.sc-steps) { max-width: 1240px; }
.t-article .pt-cards--duo, .t-article .ck-cards.n-2, .t-article .ck-cards.n-4, .t-article .pt-note { max-width: 1160px; }
.t-article .subs.n-1 { max-width: 1160px; } /* 다른 카드 줄과 같은 폭(design R-28, 2026-11-25) */
.t-article #caution .prose { max-width: 1120px; }
.t-article .law { font-size: 16.5px; }
/* 진료 분야 카드 5장은 등장을 짧게(사용자 지정 2026-11-25 "조금 빠르게") — 1.2s → .75s, 간격은 site.js */
.sc-gc__list > .rv { transition: opacity .75s ease-out, transform .75s cubic-bezier(.22, .8, .3, 1); }

/* ════ 2026-11-25 전체 검수 반영(사용자 지정 "다 고쳐") ════ */
/* D-011: 1280px 미만에서는 오시는 길 지도·표가 글 칸을 꽉 채움(넓게 빼는 것은 1280px 이상 — 사용자 지정 kakkai 방식) */
@media (max-width: 1279.98px) { #location .loc-dy { margin-inline: 0; } }
/* D-015: FAQ 닫힌 칸 위아래 여백 고르게 */
#faq h3.sc-faq__h { margin: 0; }
/* D-015: 짙은 바탕 Clinic 꾸밈 글자가 폰에서 작은 제목 줄과 겹쳐 탁해지지 않게 */
@media (max-width: 899.98px) { :is(.t-home, .t-article) #related-guides .wm-head::before { top: -58px; opacity: .2; } }
/* D-017: 진료 원칙 제목 줄 끝 외톨이 없게 */
.pf .pf__h { text-wrap: balance; }
/* 하위 1: 분야 히어로 감성 한 줄 — 글자 자리에만 흰 막을 조금 더(사진 전체 막 .54는 사용자 지정 그대로), 글자는 한 단계 진하게 */
:is(.t-article, .t-about) .page-head--c .page-head-photo::after { background: radial-gradient(ellipse 62% 42% at 50% 56%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72%), rgba(255, 255, 255, .54) !important; }
:is(.t-article, .t-about) .page-head--c .ph-tagline { color: #2c231b; font-weight: 500; }
/* 하위 2: 낱말 하나짜리 H2(span 없음)도 다른 섹션 제목과 같은 크기·색 */
.t-article .sc-tt--hd7 .sc-tt__h { font-size: clamp(26px, 2.3vw, 34px); color: #2b2623; }
/* 하위 3: 개인정보처리방침·404도 분야 페이지와 같은 제목·카드 모양(대괄호 없음·가운데 제목·번호 없는 카드) */
.t-page .sc-tt--hd7::before, .t-page .sc-tt--hd7::after, .t-404 .sc-tt--hd7::before, .t-404 .sc-tt--hd7::after { content: none !important; display: none !important; }
.t-page .sc-tt--hd7, .t-page .sc-tt--hd7.sc-tt--start, .t-404 .sc-tt--hd7, .t-404 .sc-tt--hd7.sc-tt--start { padding: 0 !important; max-width: 900px; margin: 0 auto clamp(24px, 2.6vw, 40px) !important; text-align: center; }
.t-page .sc-tt--hd7 .sc-tt__h, .t-404 .sc-tt--hd7 .sc-tt__h { text-align: center; line-height: 1.35; letter-spacing: -.02em; font-size: clamp(26px, 2.3vw, 34px); color: #2b2623; text-wrap: balance; word-break: keep-all; }
.t-page #related-guides .sc-tt__pre, .t-404 #related-guides .sc-tt__pre { display: block; margin-bottom: 10px; font-size: clamp(14px, 1.1vw, 16px); font-weight: 500; letter-spacing: 0; color: #66503d; }
.t-page #related-guides .sc-tt__em, .t-404 #related-guides .sc-tt__em { display: block; font-size: clamp(26px, 2.3vw, 34px); color: #2b2623; }
.t-page .sc-gc__body::before, .t-page .sc-gc__body::after, .t-404 .sc-gc__body::before, .t-404 .sc-gc__body::after { content: none; }
/* 하위 6: 1280~1599px에서는 진료 분야 카드 줄 = 본문 글 칸(10px만 넓어 어긋나 보이던 것). 1600px 이상은 넓힌 폭 그대로(사용자 지정) */
@media (min-width: 1280px) and (max-width: 1599.98px) { #related-guides > .wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding-inline: var(--gutter); } }
/* 진료 문의 띠 "방문 안내" 라벨 12.5 → 14px(design 검수 2026-11-25 — sc.css는 빌드가 공용 부품에서 다시 만들어 여기서 덮음) */
.sc-l3 .sc-l3__lbl { font-size: 14px; }
/* 개인정보·404 섹션 제목도 분야 페이지처럼 윗줄·아랫줄을 같은 크기·색으로 이어 한 줄(안내 콘텐츠 제목은 위 #related-guides 규칙이 윗줄만 작게) */
.t-page .sc-tt--hd7 .sc-tt__pre, .t-page .sc-tt--hd7 .sc-tt__em, .t-404 .sc-tt--hd7 .sc-tt__pre, .t-404 .sc-tt--hd7 .sc-tt__em { display: inline; margin: 0; font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; letter-spacing: inherit; color: #2b2623; }
.t-page #related-guides .sc-tt__pre, .t-404 #related-guides .sc-tt__pre { display: block; font-weight: 500; font-size: clamp(14px, 1.1vw, 16px); color: #66503d; }
.t-page #related-guides .sc-tt__em, .t-404 #related-guides .sc-tt__em { display: block; }

/* 진료 분야 페이지(article) 하단 진료 분야(#related-guides)도 메인과 같은 섹션으로(사용자 지정 2026-11-25 "디자인이랑 모바일도 동일하게") — 위 :is(.t-home, .t-article) 규칙 + 메인과 같은 아래 여백 */
.t-article main #related-guides.sec { padding-bottom: clamp(88px, 12vw, 176px); }



/* ── 메인 첫 화면 인트로 (사용자 지정 2026-11-27, galleriaskings.com 참고) ──
   크림 바탕에서 제목 줄이 흐림→또렷하게 차례로 떠오르고, 뒤이어 숲 사진이 살짝 축소되며 스르륵 깔린 뒤 헤더가 내려온다.
   글자는 처음부터 HTML에 있고(검색 수집 영향 없음) CSS 애니메이션만 쓴다. 자리(레이아웃)는 그대로라 밀림 없음.
   JS가 없거나 움직임 줄이기 설정이면 꺼진다. */
@media (prefers-reduced-motion: no-preference) {
  .sc-js .t-home .sc-hero.sc-h2 { background: #f7f5ef; } /* 사진이 깔리기 전 크림 바탕(원래 짙은 녹색이 비쳐 보임) */
  .sc-js .t-home .sc-hero.sc-h2 .sc-h2__bg { animation: lx-bg 1.6s cubic-bezier(.22,1,.36,1) 1.15s both; }
  .sc-js .t-home .sc-hero.sc-h2::after { animation: lx-fade 1.2s ease 1s both; }
  .sc-js .t-home .sc-h2__title .hl { display: block; animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) both; }
  .sc-js .t-home .sc-h2__title .hl--1 { animation-delay: .15s; }
  .sc-js .t-home .sc-h2__title .hl--2 { animation-delay: .4s; }
  .sc-js .t-home .sc-h2__lead { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) .75s both; }
  .sc-js .t-home .sc-hd { animation: lx-down .9s cubic-bezier(.22,1,.36,1) 1.7s both; }
}
@keyframes lx-rise { from { opacity: 0; filter: blur(8px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes lx-bg { from { opacity: 0; transform: scale(1.06); clip-path: inset(18% 0 0 0); } to { opacity: 1; transform: scale(1); clip-path: inset(0); } }
@keyframes lx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lx-down { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* 메인 첫 화면 인트로에 퀵바도 함께(사용자 지정 2026-11-27) — 헤더 뒤에 오른쪽에서 하나씩 들어온다.
   fill-mode backwards만: 끝난 뒤에는 원래 규칙으로 돌아가 모바일 접힘(숨김)·hover가 그대로 동작 */
@media (prefers-reduced-motion: no-preference) {
  .sc-js .t-home .lq { animation: lx-qb .9s cubic-bezier(.22,1,.36,1) 1.85s backwards; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1025px) {
  .sc-js .t-home .lq { animation: none; }
  .sc-js .t-home .lq__item { transform-origin: 100% 50%; animation: lx-qb .9s cubic-bezier(.22,1,.36,1) backwards; }
  .sc-js .t-home .lq__item:nth-child(1) { animation-delay: 1.8s; }
  .sc-js .t-home .lq__item:nth-child(2) { animation-delay: 1.92s; }
  .sc-js .t-home .lq__item:nth-child(3) { animation-delay: 2.04s; }
  .sc-js .t-home .lq__item:nth-child(4) { animation-delay: 2.16s; }
  .sc-js .t-home .lq__item:nth-child(5) { animation-delay: 2.28s; }
}
@keyframes lx-qb { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* 메인 "도심 속 숲속 병원" 칸 사이 가운데 + 장식 — 칸들이 다 올라온 뒤 제자리에서 돌며 커진다(사용자 지적 2026-11-27 "생기는 애니메이션이 이상해").
   가운데 맞춤 translate(-50%, -50%)는 등장 중에도 유지 */
.lm__star.rv { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-90deg); transition: opacity .8s ease-out, transform 1.1s cubic-bezier(.22, 1, .36, 1) !important; transition-delay: .9s !important; }
.lm__star.rv.in { opacity: 1; transform: translate(-50%, -50%); }

/* 공간 갤러리(.gl) 사진 바뀜을 부드럽게(사용자 지정 2026-11-27) — 나가는 사진(is-prev)은 아래에 불투명하게 남고, 새 사진(is-on)이 위로 1.2초 동안 겹친다.
   새 사진은 1.06배에서 제자리로 천천히 가라앉는다. 자리 크기는 그대로(투명도·transform만) */
.sc-js .gl__slide.is-prev { z-index: 1; opacity: 1; visibility: visible; transition: none; }
.sc-js .gl__slide.is-on { z-index: 2; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.sc-js .gl__slide .gl__card img { transform: scale(1.06); transition: transform 0s linear 1.2s; }
.sc-js .gl__slide.is-on .gl__card img { transform: none; transition: transform 2.4s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) { .sc-js .gl__slide.is-on { transition: none; } .sc-js .gl__slide .gl__card img, .sc-js .gl__slide.is-on .gl__card img { transform: none; transition: none; } }



/* 진료 문의 띠 — 무늬 배경(짙은 벽 질감, 보관함 후보 P-10 unsplash -gWSFS8rrVg — 사용자 지정 2026-11-27 "사진 말고 무늬 배경" → P-29에서 P-10으로). 막은 옅게 덮어 결이 보이게 */
.sc-l3 { background: #2a2119 url("/assets/img/stock-bg-band-wall-960.webp") center / cover no-repeat; }
@media (min-width: 960px) { .sc-l3 { background-image: url("/assets/img/stock-bg-band-wall.webp"); } }
.sc-l3::after { background: linear-gradient(90deg, rgba(var(--sc-overlay-rgb), .6) 0%, rgba(var(--sc-overlay-rgb), .35) 50%, rgba(var(--sc-overlay-rgb), .15) 100%); }
@media (max-width: 767px) { .sc-l3::after { background: rgba(var(--sc-overlay-rgb), .45); } }



/* 하위 페이지 H1 세 줄(사용자 지정 2026-11-27) — 1줄 지역+키워드(작게) / 2줄 세부 / 3줄 병원 이름. 줄마다 크기를 따로 조절 */
:is(.t-article, .t-about) .page-head--c h1 .ph1 { display: block; }
:is(.t-article, .t-about) .page-head--c h1 .ph1--1 { font-size: .6em; line-height: 1.6; letter-spacing: -.5px; }
:is(.t-article, .t-about) .page-head--c h1 .ph1--2 { font-size: 1em; }
:is(.t-article, .t-about) .page-head--c h1 .ph1--3 { font-size: 1em; }



/* ── 본문 표 모양 T4 「연녹색 머리 미니멀」(사용자 지정 2026-11-27, 시안 docs/review/table-design-options.html — 앞 안의 짙은 녹색 머리·금색 선은 "이상하다"로 버림) ──
   메인 진료시간 표(hours-box)·오시는 길 표는 제외. 아주 옅은 녹색 둥근 머리 줄 + 녹색 글자, 줄 사이 가는 선만(세로선·줄무늬·칸 바탕 없음).
   칸 모양은 600px 이상만 — 그 아래는 기존 카드형 쌓기(t3)·좁은 표 규칙 그대로 */
main .table-box:not(.hours-box) { margin: clamp(26px, 3vw, 40px) 0; }
main .table-box:not(.hours-box) > .table-caption { margin: 0 0 12px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: #342920; }
main .table-box:not(.hours-box) > .table-wrap { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
main .table-box:not(.hours-box) table { width: 100%; border-collapse: separate; border-spacing: 0; border: 0; margin: 0; background: transparent; }
main .table-box:not(.hours-box) :is(thead th, tbody th, td) { border: 0; background: transparent; }
main .table-box:not(.hours-box) tbody tr:nth-child(even) > :is(th, td) { background: transparent; }
main .table-box:not(.hours-box) thead th { background: #f4f1ee; color: #503f31; font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; }
main .table-box:not(.hours-box) tbody th { color: #503f31; font-weight: 650; }
@media (min-width: 600px) {
  main .table-box:not(.hours-box) :is(th, td) { padding: 16px 20px; font-size: 15.5px; line-height: 1.65; vertical-align: middle; }
  main .table-box:not(.hours-box) thead th { padding-block: 14px; }
  main .table-box:not(.hours-box) thead th:first-child { border-radius: 10px 0 0 10px; }
  main .table-box:not(.hours-box) thead th:last-child { border-radius: 0 10px 10px 0; }
  main .table-box:not(.hours-box) tbody :is(th, td) { border-bottom: 1px solid #eceae7; }
  main .table-box:not(.hours-box) table:not(.t2):not(.t3) :is(tbody th, td) { padding-block: 11px; font-size: 15px; } /* 줄 많은 비급여 표는 촘촘하게 */
}
@media (max-width: 599.98px) {
  main .table-box:not(.hours-box) thead th:first-child { border-radius: 8px 0 0 8px; }
  main .table-box:not(.hours-box) thead th:last-child { border-radius: 0 8px 8px 0; }
  main .table-box:not(.hours-box) table.t3 tr { border-bottom: 1px solid #eceae7; background: transparent; }
  main .table-box:not(.hours-box) table.t3 tbody tr:nth-child(even) { background: transparent; }
  main .table-box:not(.hours-box) table:not(.t3) tbody :is(th, td) { border-bottom: 1px solid #eceae7; }
}


/* 주의 섹션(dy-soft, 종이 결 바탕) 안의 표 — 머리 줄을 섹션 바탕과 같은 베이지 계열로(사용자 지정 2026-11-27 "성분·어떤 성분인지·1회 비용 색을 밑에 주의사항과 같은 색") */
main .dy-soft .table-box:not(.hours-box) thead th { background: rgba(253, 251, 245, .62); color: #45403c; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); } /* 아래 주의 목록 띠(.dy-soft .dy-bars li)와 같은 반투명 미색 */
main .dy-soft .table-box:not(.hours-box) tbody :is(th, td) { border-bottom-color: rgba(120, 100, 60, .16); }
main .dy-soft .table-box:not(.hours-box) tbody th { color: #45403c; }



/* 2026-11-27 사용자 지정 — 푸터 바로가기 목록 제거, 개인정보처리방침은 저작권 줄 오른쪽에 흰 글자 */
.ft__copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.ft__copy .ft__privacy { color: #fff; font-weight: 600; text-decoration: none; }
.ft__copy .ft__privacy:hover { text-decoration: underline; text-underline-offset: 3px; }

/* >>> yq.css (자동 — 정본 yq.css, _build/tools/append-yq.cjs) */
/* ══ 진료 분야 페이지 = youmg.co.kr/통증클리닉 하위 페이지 모양(사용자 지정 2026-11-26, docs/rules/article-format.md) ══
   1440px 화면에서 잰 값: 본문 폭 1360(좌우 40) · 섹션 제목 34px · 명조 질문 36px · 타원 카드 4칸(16:10) · 체크 칸 2칸(76px)
   · 원형 4칸 · 연회색 판 큰 원 3칸 · 지그재그 사진 16:9.4 · 섹션 사이 140~160px. 색만 엘앤더슨 녹색·금색으로.
   빌드 전에 node _build/tools/append-yq.cjs 가 style.css 끝 표시 사이에 넣는다 */
.t-article { --yq-gray: #f0edea; --yq-muted: #615c59; --yq-serif: "Nanum Myeongjo", "Noto Serif KR", "AppleMyungjo", "Batang", serif; }
/* 머리: 화면 꽉 찬 사진 + 어두운 막 + 흰 H1 + 금색 영어 한 줄 */
:is(.t-article, .t-about) .page-head--yq .page-head-photo { background: #19140f; }
:is(.t-article, .t-about) .page-head--yq .page-head-photo img { filter: none !important; opacity: 1; }
:is(.t-article, .t-about) .page-head--yq .page-head-photo::after { background: rgba(19, 15, 11, .46) !important; }
:is(.t-article, .t-about) .page-head--yq h1 { color: #fff !important; font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
:is(.t-article, .t-about) .page-head--yq .ph-tagline { color: var(--accent-400) !important; font-size: clamp(14px, 1.1vw, 17px); letter-spacing: .02em; text-shadow: none; }
/* 스톡 고르기 전 회색 자리 */
.yq-sec h2::before, .yq-loc h2::before { display: none !important; } /* youmg 제목엔 위 장식 막대 없음 */
.yq-sec .yq-h, .yq-sec .yq-intro__h, .yq-zz__t, .yq-ft__t, .yq-loc__h { font-weight: 700 !important; }
:is(.t-article, .t-about) .page-head--yq h1, :is(.t-article, .t-about) .page-head--yq h1 * { font-family: var(--font) !important; letter-spacing: -.02em; }
.yq-slot { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; background: #c8c8c8; color: #3d3d3d; text-align: center; padding: 12px; box-sizing: border-box; }
.yq-slot__code { font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.yq-slot__need { font-size: 12.5px; line-height: 1.5; max-width: 26em; word-break: keep-all; }
/* 공통 섹션 */
.t-article .yq-sec { padding-block: clamp(80px, 10vw, 150px) 0; background: #fff; }
.yq-head { margin-bottom: clamp(28px, 3vw, 44px); }
.yq-h { margin: 0; font-size: clamp(24px, 2.4vw, 34px) !important; font-weight: 700 !important; line-height: 1.4; color: #222; letter-spacing: -.02em; word-break: keep-all; }
.yq-sub { margin: 14px 0 0; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.7; color: var(--yq-muted); word-break: keep-all; }
.yq-head--c { text-align: center; }
.yq-head--serif .yq-h { font-family: var(--yq-serif); font-size: clamp(26px, 2.6vw, 38px) !important; }
/* 1 따옴표 질문 + 넓은 사진 */
/* 분야 페이지 첫 질문 — 따옴표 대신 로고 상징(L+) 큰 워터마크를 제목 뒤 오른쪽에 아주 옅게(사용자 지정 2026-11-27, 시안 logo-mark-options.html B8).
   따옴표 span은 마크업에 남기되 숨김(aria-hidden). 워터마크는 ::before라 자리를 차지하지 않음(레이아웃 그대로) */
.yq-intro__q { display: none; }
.yq-intro { position: relative; isolation: isolate; }
.yq-intro::before { content: ""; position: absolute; z-index: -1; right: 0; top: clamp(-70px, -4vw, -30px); width: clamp(200px, 24vw, 330px); aspect-ratio: 441 / 408;
  background: url("/assets/img/logo/logo-mark.webp") center / contain no-repeat; opacity: .08; pointer-events: none; }
@media (max-width: 599.98px) { .yq-intro::before { width: 170px; right: -14px; top: -40px; opacity: .07; } }
.yq-intro__h { margin: 0; font-family: var(--yq-serif); font-size: clamp(26px, 2.6vw, 38px) !important; font-weight: 700 !important; line-height: 1.5; color: #222; letter-spacing: -.02em; word-break: keep-all; }
.yq-intro__sub, .yq-intro__lead { margin: 18px 0 0; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.8; color: var(--yq-muted); word-break: keep-all; }
.yq-intro__lead + .yq-intro__lead, .yq-intro__sub + .yq-intro__lead { margin-top: 0; }  /* 2026-12-02 사용자 지정: 리드 문단 사이 = 줄바꿈 간격과 같게 */
.yq-intro .byline { margin-top: 18px; justify-content: flex-start; }
.yq-intro__ph { margin-top: clamp(40px, 5vw, 72px); }
.yq-intro__ph img, .yq-intro__ph .yq-slot { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
/* 2 타원 사진 카드 */
@media (min-width: 900px) { .yq-ovals:has(> li:nth-child(3n):last-child) { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; } } /* 6장이면 3칸 두 줄 — 둘째 줄이 반만 차지 않게 */
.yq-ovals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.7vw, 24px); }
.yq-oval__ph { border-radius: 999px; overflow: hidden; }
.yq-oval__ph img, .yq-oval__ph .yq-slot { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s var(--ease); }
.yq-oval:hover .yq-oval__ph img { transform: scale(1.04); }
.yq-oval__t { margin: 18px 0 0; text-align: center; font-size: clamp(15.5px, 1.15vw, 17.5px); font-weight: 500; color: #333; line-height: 1.55; word-break: keep-all; }
/* 3 체크 칸 */
.yq-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.yq-ck { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 26px; border-radius: 10px; background: var(--yq-gray); font-size: clamp(15.5px, 1.1vw, 17px); color: #333; line-height: 1.6; word-break: keep-all; box-sizing: border-box; }
.yq-ck__ic { flex: none; width: 22px; height: 22px; }
.yq-ck__ic circle { fill: var(--deep-700); }
.yq-ck__ic path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 4 원형 사진 4칸 */
.yq-circles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px clamp(16px, 2.2vw, 36px); }
.yq-cir__ph { border-radius: 50%; overflow: hidden; width: 100%; max-width: 310px; margin-inline: auto; }
.yq-cir__ph img, .yq-cir__ph .yq-slot { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; }
.yq-cir__t { margin: 20px 0 0; text-align: center; font-size: clamp(15.5px, 1.15vw, 17.5px); font-weight: 500; color: #333; line-height: 1.6; word-break: keep-all; }
/* 5 연회색 판 큰 원 3칸 */
.t-article .yq-feature-sec { background: var(--yq-gray); padding-block: clamp(80px, 10vw, 150px); margin-top: clamp(80px, 9vw, 140px); }
.yq-feature { list-style: none; margin: clamp(20px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(20px, 3vw, 48px); }
.yq-ft { text-align: center; }
.yq-ft__ph { border-radius: 50%; overflow: hidden; width: 100%; max-width: 380px; margin-inline: auto; background: #fff; }
.yq-ft__ph img, .yq-ft__ph .yq-slot { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; }
.yq-ft__t { margin: 26px 0 0; font-size: clamp(18px, 1.5vw, 22px) !important; font-weight: 700; color: #222; }
.yq-ft__d { margin: 12px auto 0; max-width: 30em; font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.8; color: var(--yq-muted); word-break: keep-all; }
/* 6 지그재그 */
.yq-zz { list-style: none; margin: clamp(36px, 4vw, 60px) 0 0; padding: 0; display: grid; gap: clamp(56px, 6.5vw, 94px); }
.yq-zz__row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 3.2vw, 46px); }
.yq-zz__ph img, .yq-zz__ph .yq-slot { display: block; width: 100%; height: auto; aspect-ratio: 16/9.4; object-fit: cover; }
.yq-zz__tx { padding-inline: clamp(0px, 3vw, 46px); }
.yq-zz__row.is-rev .yq-zz__ph { order: 2; }
.yq-zz__row.is-rev .yq-zz__tx { text-align: right; }
.yq-zz__t { margin: 0; font-size: clamp(18px, 1.5vw, 22px) !important; font-weight: 700; color: #222; }
.yq-zz__d { margin: 16px 0 0; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.85; color: var(--yq-muted); word-break: keep-all; }
/* 비급여 금액 칸 — 띄어쓰기 없는 금액 범위가 꺾이지 않게 */
.t-article table td { overflow-wrap: normal; }
.t-article table:not(.t2):not(.t3) td:nth-child(3) { white-space: nowrap; } /* 비급여 표 금액 칸만 — 카드형 표(t2·t3)와 비고 칸은 줄바꿈 허용(design 검수 2026-11-26) */
/* 7 맨 아래 오시는 길 */
.yq-loc { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(80px, 9vw, 140px); background: #f8f7f6; }
.yq-loc__tx { padding: clamp(48px, 6vw, 96px) clamp(26px, 5vw, 80px); }
.yq-loc__h { margin: 0; font-size: clamp(24px, 2.2vw, 32px) !important; font-weight: 700; color: #222; }
.yq-loc__s { margin: 14px 0 0; font-size: 16px; color: var(--yq-muted); }
.yq-loc__addr { margin: clamp(32px, 4vw, 56px) 0 0; font-size: clamp(20px, 2vw, 30px); font-weight: 700; color: #222; line-height: 1.4; word-break: keep-all; }
.yq-loc__note { margin: 14px 0 0; font-size: 15px; color: var(--yq-muted); line-height: 1.7; }
.yq-loc__note a { color: inherit; }
.yq-loc__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.yq-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; height: 44px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.yq-btn--naver { background: #816349; color: #fff; }
.yq-btn--kakao { background: #fee500; color: #191919; }
.yq-loc__map { display: block; min-height: 360px; overflow: hidden; }
.yq-loc__map img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899.98px) {
  .yq-ovals, .yq-circles { grid-template-columns: repeat(2, 1fr); }
  .yq-checks { grid-template-columns: 1fr; }
  .yq-feature { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .yq-zz__row { grid-template-columns: 1fr; }
  .yq-zz__row.is-rev .yq-zz__ph { order: 0; }
  .yq-zz__row.is-rev .yq-zz__tx { text-align: left; }
  .yq-zz__tx { padding-inline: 0; }
  .yq-loc { grid-template-columns: 1fr; }
  .yq-loc__map { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .yq-oval__ph img { transition: none; } }

/* 지그재그가 섹션 마지막이면 아래 녹색 진료 분야 섹션과 띄운다(design 검수 2026-11-26) */
.yq-zigzag-sec { padding-bottom: clamp(80px, 9vw, 140px) !important; }
/* 카드형 표(t2·t3)의 비용 칸 — 넓은 화면에서 금액 범위가 꺾이지 않게. 좁은 화면은 칸이 카드가 되어 줄바꿈 허용 */
@media (min-width: 900px) { .t-article table td[data-label*="비용"], .t-article table td[data-label*="금액"] { white-space: nowrap; } }

/* ══ dyderm 하위 페이지 부품 (dy.mjs, 사용자 지정 2026-11-26 — 아이콘 카드 대신) ══ */
.t-article { --dy-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif; --dy-ink: #2b2b2b; --dy-muted: #5b625e; --dy-line: #dcdcd4; }
.dy-sec { padding-block: clamp(80px, 9vw, 140px) !important; }
.dy-head { margin-bottom: clamp(30px, 3.4vw, 48px); }
.dy-head--center { text-align: center; }
.dy-en { margin: 0 0 10px !important; font-family: var(--dy-serif); font-size: clamp(18px, 1.6vw, 24px) !important; font-weight: 500; letter-spacing: .04em; color: #66503d; line-height: 1.2; }
.dy-en--light { color: #e4cf97; }
.dy-h { margin: 0 !important; font-size: clamp(22px, 2vw, 30px) !important; font-weight: 600 !important; line-height: 1.45; color: var(--dy-ink); letter-spacing: -.02em; word-break: keep-all; }
.dy-sec p { word-break: keep-all; }
.dy-h::before, .dy-h::after { content: none !important; display: none !important; }
.dy-lead { margin: 0 0 10px; font-size: 16.5px; line-height: 1.85; color: var(--dy-muted); }
.dy-leadbox { max-width: 760px; margin: -14px auto 34px; text-align: center; }
.dy-note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.75; color: var(--dy-muted); }
.dy-strong { color: var(--dy-ink) !important; font-weight: 600; }
/* insight — 글 왼쪽, 타원 사진 오른쪽 + 큰 영어 글자 */
.dy-ins { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dy-ins.no-ph { grid-template-columns: minmax(0, 760px); }
.dy-ins__tx p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.9; color: var(--dy-muted); }
.dy-rule { width: 100%; height: 0; margin: 26px 0 28px; border: 0; border-top: 1px solid var(--dy-line); }
.dy-ins__ph { position: relative; padding-bottom: clamp(30px, 4vw, 60px); }
.dy-ins__ph img, .dy-ins__ph .yq-slot { display: block; width: 100%; height: auto; aspect-ratio: 3/2 !important; object-fit: cover; border-radius: 50%; }
.dy-ins__wm { position: absolute; right: -2%; bottom: 0; font-family: var(--dy-serif); font-size: clamp(40px, 6vw, 92px); line-height: .9; letter-spacing: .01em; color: #7b736d; mix-blend-mode: multiply; pointer-events: none; white-space: nowrap; }
.dy-ins .cta-row { margin-top: 26px; }
/* target — 사진 위 + 가운데 제목·설명 */
.dy-target { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.dy-target.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; }
.dy-target.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dy-target__it { text-align: center; }
.dy-target__it img, .dy-target__it .yq-slot { display: block; width: 100%; height: auto; aspect-ratio: 16/10 !important; object-fit: cover; }
.dy-target__t { margin: 22px 0 8px; font-size: 18px !important; font-weight: 600 !important; color: var(--dy-ink); }
.dy-target__d { margin: 0 auto 6px; max-width: 30em; font-size: 16px; line-height: 1.8; color: var(--dy-muted); }
.dy-target .dy-lines { text-align: left; }
/* equip — 줄로 나눈 행 + 체크 줄 목록 */
.dy-equip { border-top: 1px solid var(--dy-ink); }
.dy-equip__row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding-block: clamp(28px, 3.4vw, 46px); border-bottom: 1px solid var(--dy-line); }
.dy-equip__n { display: block; margin-bottom: 8px; font-family: var(--dy-serif); font-size: 30px; line-height: 1; color: #b08a37; }
.dy-equip__t { margin: 0; font-size: clamp(18px, 1.5vw, 21px) !important; font-weight: 600 !important; line-height: 1.5; color: var(--dy-ink); }
.dy-equip__bd p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.85; color: var(--dy-muted); }
.dy-lines { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--dy-line); }
.dy-lines li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--dy-line); font-size: 16px; line-height: 1.7; color: #43403e; }
.dy-lines li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 5px; border-left: 1.6px solid #66503d; border-bottom: 1.6px solid #66503d; transform: rotate(-45deg); }
.dy-listbox { max-width: 860px; margin: 0 auto 40px; }
/* solution — 짙은 사진 바탕 판 */
.dy-sol { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(40px, 5vw, 70px); padding: clamp(44px, 6vw, 90px) clamp(26px, 6vw, 96px); background: #322b26; color: #fff; }
.dy-sol__bg, .dy-sol .yq-slot { position: absolute !important; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; }
.dy-sol.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 22, 19,.88) 0%, rgba(27, 22, 19,.7) 55%, rgba(27, 22, 19,.45) 100%); }
.dy-sol__in { width: 100%; }
.dy-sol__t { margin: 0 0 24px; font-size: clamp(20px, 1.8vw, 26px) !important; font-weight: 600 !important; color: #fff !important; }
.dy-sol__tx { padding-left: clamp(18px, 2.4vw, 36px); border-left: 1px solid rgba(255,255,255,.55); }
.dy-sol__tx p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.85; color: #f1efe9; }
.dy-sol .dy-lines li { color: #f1efe9; border-color: rgba(255,255,255,.25); }
/* precautions — 연한 바탕 + 흰 띠 목록 */
.t-article main section.sec.dy-soft:not(#dy-none) { background: radial-gradient(120% 80% at 15% 10%, #fbfaf5 0%, #eeece2 55%, #e6e4d8 100%) !important; }
.dy-bars { list-style: none; max-width: 760px; margin: 0 auto; padding: 0; display: grid; gap: 10px; }
.dy-bars li { padding: 16px 24px; background: #fff; border: 0; text-align: center; font-size: 16px; line-height: 1.7; color: #333; box-shadow: 0 1px 2px rgba(80, 63, 49,.05); }
.dy-prec { margin-top: clamp(30px, 4vw, 56px); }
.dy-prec--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.dy-prec__t { margin: 0 0 16px; text-align: center; font-size: 17px !important; font-weight: 600 !important; color: var(--dy-ink); }
.dy-prec__d { text-align: center; font-size: 15.5px; color: var(--dy-muted); }
.dy-soft .dy-note { text-align: center; }
/* steps — 왼쪽 고정 제목, 오른쪽 짙은 띠 */
.dy-steps { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.dy-steps__side { position: sticky; top: 120px; }
.dy-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dy-steps__bar { display: flex; align-items: baseline; gap: 22px; margin: 0; padding: 20px 30px; background: #503f31; color: #fff; }
.dy-steps__n { font-family: var(--dy-serif); font-size: 22px; line-height: 1; color: #e4cf97; }
.dy-steps__name { font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; }
.dy-steps__d { margin: 0; padding: 18px 30px 8px 82px; font-size: 16.5px; line-height: 1.8; color: var(--dy-muted); }
@media (max-width: 899.98px) {
  .dy-ins, .dy-steps, .dy-equip__row, .dy-prec--cols { grid-template-columns: 1fr; }
  .dy-ins__ph { order: -1; max-width: 520px; }
  .dy-target, .dy-target.n-2, .dy-target.n-4 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .dy-steps__side { position: static; }
  .dy-steps__bar { padding: 16px 20px; gap: 14px; }
  .dy-steps__d { padding: 12px 20px 4px 20px; }
  .dy-bars li { padding: 14px 16px; }
}

/* 분야 페이지 본문 글자 한 단계 키움(사용자 지정 2026-11-26 "하위페이지들 본문 텍스트가 너무 작아") */
/* 헤더 — 메뉴 없이 로고 가운데(사용자 지정 2026-11-26) */
.hdx--center .sc-hd__in { display: flex !important; justify-content: center !important; grid-template-columns: none !important; }
.hdx--center .sc-hd__logo { margin-inline: auto !important; }
/* 메인 H1 둘째 줄(BSD-2000 고주파온열암치료와 숲속 치유, 22자) — 넓은 화면에서 한 줄로(사용자 지정 2026-11-26 세 줄 모양) */
@media (min-width: 900px) { main .sc-hero.sc-h2 .sc-h2__title .hl--2 { white-space: nowrap; font-size: .9em; } }
/* 메인 H1 둘째·셋째 줄 한 단계 작게(사용자 지정 2026-11-26 "텍스트 크기 좀 줄여") */
main .sc-hero.sc-h2 .sc-h2__title .hl--2, main .sc-hero.sc-h2 .sc-h2__title .hl--3 { font-size: clamp(26px, 2.9vw, 42px); }
@media (max-width: 559.98px) { main .sc-hero.sc-h2 .sc-h2__title .hl--2 { font-size: min(26px, calc((100vw - 40px) / 20)); } main .sc-hero.sc-h2 .sc-h2__title .hl--3 { font-size: 26px; } }
/* 메인 히어로 리드 — 문장마다 한 줄로(넓은 화면), 좁은 화면은 그대로 줄바꿈(사용자 지정 2026-11-26 감성 문구) */
@media (min-width: 1100px) { main .sc-hero.sc-h2 .sc-h2__lead { max-width: 900px; } }

/* ===== 글꼴 역할(사용자 지정 2026-11-26, 정본 static/.claude/references/build/typography.md — dyderm.com 방식) =====
   한글 제목·인용 = Noto Serif KR · 영어 라벨·숫자 장식 = Cardo · 본문·버튼·표·FAQ 질문·카드 작은 글 = Pretendard
   글꼴 파일은 static/tools/serif-fonts/subset.py가 사이트 제목 글자만 담아 만든다(OFL, CDN 안 씀) */
@font-face { font-family: "Serif KO H1"; src: url("../fonts/serif-ko-h1.woff2?v=8d4583c822") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Serif KO"; src: url("../fonts/serif-ko.woff2?v=69aea0d387") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo EN"; src: url("../fonts/en-cardo.woff2?v=87e2422bbe") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --ff-serif: "Serif KO", "Noto Serif KR", "AppleMyungjo", serif; --ff-serif-h1: "Serif KO H1", "Serif KO", "Noto Serif KR", serif; --ff-en: "Cardo EN", "Cardo", Georgia, serif; }
.t-article { --yq-serif: var(--ff-serif); --dy-serif: var(--ff-en); }
/* H1 — 첫 화면: preload한 H1 전용 작은 파일 */
main h1, main h1 *, main .sc-hero.sc-h2 .sc-h2__title, main .sc-hero.sc-h2 .sc-h2__title .hl--1,
:is(.t-article, .t-about) .page-head--yq h1, :is(.t-article, .t-about) .page-head--yq h1 *, :is(.t-article, .t-about) .page-head--c h1 { font-family: var(--ff-serif-h1) !important; letter-spacing: -.02em; }
/* 섹션 제목(h2) 전부 · 소개형 항목 제목(h3) */
main h2, main h2 *, .yq-zz__t, .dy-equip__t, .dy-prec__t, .dy-sol__t { font-family: var(--ff-serif) !important; letter-spacing: -.02em; }
/* 영어 라벨·영어 머리 한 줄·숫자 장식 — Cardo는 400 하나만(가짜 굵게 방지) */
.dy-en, .ph-tagline, :is(.t-article, .t-about) .page-head--c .ph-tagline, .dy-ins__wm, .dy-equip__n, .dy-steps__n { font-family: var(--ff-en) !important; font-weight: 400 !important; }
/* 본문 쪽은 Pretendard 그대로 — FAQ 질문 h3 · 사진(스톡·실사) 카드의 제목·글(사용자 지정 2026-11-26 "스톡기반의 카드는 pretendard로 텍스트 통일") */
.sc-faq__h, .pf__t, .yq-ft__t, .dy-target__t { font-family: var(--font) !important; }

/* 진료 원칙 사진 카드 — 더 어둡게, 글자 수와 상관없이 같은 줄의 카드 제목이 같은 높이에서 시작(사용자 지정 2026-11-26)
   글 칸 높이를 고정(제목 2줄 + 설명 4줄 자리)하고 제목은 그 자리 위쪽에 붙인다 — 한 줄 제목도 두 줄 제목과 첫 줄이 맞는다 */
.pf__card::after { background: linear-gradient(180deg, rgba(24, 19, 15, .30) 0%, rgba(24, 19, 15, .52) 42%, rgba(24, 19, 15, .88) 100%); }
.pf__tx { display: flex; flex-direction: column; }
.pf .pf__t { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; font-weight: 700; letter-spacing: -.02em; height: 2.8em; margin: 0 0 12px; display: flex; align-items: flex-start; text-wrap: balance; word-break: keep-all; }
.pf__d { min-height: 0; height: 6.6em; font-size: clamp(14px, 1vw, 15.5px); }
@media (max-width: 599.98px) { .pf__d { height: auto; } .pf .pf__t { height: auto; } } /* 한 칸에 한 장이면 맞출 옆 카드가 없다 */
/* 메인 H1 아랫줄(부산 암요양병원 엘앤더슨병원) 한 단계 크게(사용자 지정 2026-11-26) */
main .sc-hero.sc-h2 .sc-h2__title .hl--2 { font-size: clamp(30px, 3.5vw, 52px); }
@media (max-width: 559.98px) { main .sc-hero.sc-h2 .sc-h2__title .hl--2 { font-size: min(32px, calc((100vw - 40px) / 19)); } } /* 반듯: 둘째 줄 약 22자(디자인 검수 R-03) */
/* 메인 H1 윗줄(BSD-2000 고주파온열암치료와 숲속 치유) 아주 조금 크게(사용자 지정 2026-11-26) */
main .sc-hero.sc-h2 .sc-h2__title .hl--1 { font-size: clamp(17px, 1.5vw, 22px); }
@media (max-width: 559.98px) { main .sc-hero.sc-h2 .sc-h2__title .hl--1 { font-size: 16px; } }
/* 명조는 고딕보다 글자 폭이 넓어 붙여 쓴 묶음(.nw "유방암·자궁경부암·난소암")이 360px에서 칸을 넘는다 — 좁은 폭만 글자 크기를 폭에 맞춰 줄임 */
/* 하위 페이지 머리 H1 — 메인 히어로 제목 큰 줄(.hl--2)과 같은 글꼴·크기·굵기·자간·줄 간격, 색만 흰색(사진 위). 아래 영어 한 줄은 그대로(사용자 지정 2026-11-27) */
:is(.t-article, .t-about) .page-head--yq h1, :is(.t-article, .t-about) .page-head--yq h1 * { letter-spacing: -.02em !important; }
:is(.t-article, .t-about) .page-head--yq h1 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; /* 메인보다 한 단계 작게(사용자 지정 2026-11-27 "전체적으로 폰트크기 줄여봐" — 옛 clamp(30px, 3.5vw, 52px)) */ line-height: 1.5; color: #fff !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .28); }
/* 좁은 폭도 메인 제목 큰 줄과 같은 식(min(32px, (100vw-40px)/14)) */
@media (max-width: 559.98px) { :is(.t-article, .t-about) .page-head--yq h1 { font-size: min(24px, calc((100vw - 40px) / 16)); } }
/* 하위 페이지 첫 화면 등장 — 메인 인트로와 같은 움직임(lx-rise·lx-down). 사진이 먼저 깔리고 제목 → 상호 → 영어 한 줄 → 헤더 순.
   글자는 처음부터 HTML에 있고 투명도·위치만 바꿔 자리 밀림 없음. JS 없거나 움직임 줄이기면 꺼짐 */
@media (prefers-reduced-motion: no-preference) {
  .sc-js :is(.t-article, .t-about) .page-head--yq .page-head-photo img { animation: lx-sub-bg 1.6s cubic-bezier(.22,1,.36,1) both; }
  .sc-js :is(.t-article, .t-about) .page-head--yq h1 { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) .35s both; }
  .sc-js :is(.t-article, .t-about) .page-head--yq .ph-tagline { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) .8s both; }
  .sc-js .t-article .sc-hd { animation: lx-down .9s cubic-bezier(.22,1,.36,1) 1.2s both; }
}
@keyframes lx-sub-bg { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
/* 섹션 제목 뒤 영어 워터마크(Healing·Philosophy·Rest·Clinic…) — 더 희미하고 두껍게(사용자 지정 2026-11-27). Cormorant Italic 가변(300~700) 글자만 담은 파일 */
.story__tx::before, .pf__head::before, .wm-head::before { font-weight: 700 !important; opacity: .13 !important; }
/* 진료시간 워터마크 "Always Near"(2026-11-27)는 두 낱말이라 길다 — 왼쪽 칸을 넘어 오른쪽 표 밑으로 들어가지 않게 이 섹션만 작게 */
#hours .wm-head::before { font-size: clamp(48px, 6.2vw, 92px) !important; }
/* 메인 히어로 사진 등장 — 천천히 스며들기(사용자 지정 2026-11-27 "다르게 부드러우면", "끊기는 느낌")
   - 사진을 다 받아 풀어 둔 뒤(site.js가 .is-bg-ready를 붙임) 투명도만 2.4초에 걸쳐 올린다. 시간으로만 시작하면 큰 사진이 늦게 도착할 때 반쯤 진행된 자리에 툭 끼어들어 끊겨 보인다
   - 흐림(blur)·확대·clip-path는 넣지 않는다: 사진에 이미 색 보정 filter·가장자리 mask·계속 도는 확대가 있어 겹치면 매 프레임 다시 그린다
   - JS가 멈춰도 4초 뒤에는 보이게(lx-show) */
@media (prefers-reduced-motion: no-preference) {
  .sc-js .t-home .sc-hero.sc-h2 .sc-h2__bg, .sc-js .t-home .sc-hero.sc-h2::after { animation: lx-show 0s linear 4s forwards; opacity: 0; transition: opacity 2.4s cubic-bezier(.4, 0, .2, 1); will-change: opacity; }
  .sc-js .t-home .sc-hero.sc-h2.is-bg-ready .sc-h2__bg, .sc-js .t-home .sc-hero.sc-h2.is-bg-ready::after { opacity: 1; }
}
@keyframes lx-show { to { opacity: 1; } }


/* 본문 끝 작성·감수 줄(2026-11-27 A안) — FAQ 아래 회색 작은 글자 한 줄 */
.byline.byline--end { margin: clamp(28px, 3vw, 40px) 0 0; font-size: 13px; line-height: 1.6; color: #686360; text-shadow: none; } /* 흰 바탕 대비 5.6:1 — 연한 회색(#86817e 3.7:1)은 글자 대비 미달(design-lint 14) */
/* 하위 페이지 섹션 사이 여백 늘림(사용자 지정 2026-11-27 "너무 붙어있어") — youmg 모듈 섹션은 아래 여백이 0이라 위쪽 섹션끼리 128px(1280)·80px(390)로 붙어 보였다 */
.t-article .yq-sec { padding-block: clamp(96px, 12vw, 170px) clamp(24px, 3.5vw, 56px); }
/* 상황 사진 카드(타원) 섹션 제목은 가운데(사용자 지정 2026-11-27) — 아래 카드 줄이 가운데 정렬이라 맞춤 */
.t-article .yq-ovals-sec .yq-head { text-align: center; }
.t-article .yq-ovals-sec .yq-head .yq-h { margin-inline: auto; }

/* 원형 사진 카드 글 첫 줄(이름)만 조금 굵게 — 사용자 지정 2026-11-27 */
.yq-cir__k { font-weight: 650; color: #292420; }
/* 회색 띠 섹션(.yq-feature-sec "일상처럼 머무는 …")은 띠 안 위·아래 여백을 같게(사용자 지정 2026-11-27) — 위 .yq-sec 여백 규칙이 아래를 줄인 것을 되돌림 */
.t-article .yq-feature-sec { padding-block: clamp(96px, 12vw, 170px); }

/* 지그재그 줄(사진+글) 사이 여백 넓힘 — 사용자 지정 2026-11-27 "이미지 사이간 여백 좀 늘리자. 하위페이지 동일" (56~94px → 72~140px) */
.yq-zz { gap: clamp(72px, 9.5vw, 140px); }

/* 사진+글 섹션(dy-insight, 예: ADMISSION·HYPERTHERMIA) 위아래 여백 80% — 사용자 지정 2026-11-27. 연달아 오는 묶음의 맨 위(첫 섹션 위)는 그대로 */
.dy-ins-sec { padding-block: clamp(64px, 7.2vw, 112px) !important; }
:not(.dy-ins-sec) + .dy-ins-sec { padding-top: clamp(80px, 9vw, 140px) !important; }

/* 흰 바탕 섹션이 연달아 올 때 여백이 겹쳐 너무 넓음(사용자 지정 2026-11-27 "HYPERTHERMIA와 ADMISSION 사이 너무 넓다", "엘앤더슨병원의 하루는… 위 여백 너무 넓다", 하위 페이지 동일)
   — 앞 섹션 아래 여백만 두고 뒤 섹션 위 여백은 작게. 바탕색이 다른 섹션(dy-soft 연한 바탕) 앞뒤는 그대로 */
.dy-sec:not(.dy-soft) + .dy-sec:not(.dy-soft) { padding-top: clamp(20px, 2.4vw, 36px) !important; }
.dy-sec:not(.dy-soft) + .yq-zigzag-sec { padding-top: clamp(20px, 2.4vw, 36px) !important; }
.t-article :is(.dy-sec:not(.dy-soft), .sc-sec.bg-white:not(.guide-cards):not(.dy-soft):not(#faq)) + :is(.dy-sec:not(.dy-soft), .yq-zigzag-sec, .sc-sec.bg-white:not(.guide-cards):not(.dy-soft):not(#faq)) { padding-top: clamp(20px, 2.4vw, 36px) !important; }

/* 회색 띠 섹션(yq-feature-sec) 배경 — 베이지 한지 섬유 결 위에 회녹색 막(.6)을 덮어 은은하게(사용자 지정 2026-11-27, 시안 feature-bg-options.html BG-07, 보관함 ck-tc07850000101) */
.t-article .yq-feature-sec { background: linear-gradient(rgba(240, 237, 234, .6), rgba(240, 237, 234, .6)), #f0edea url("/assets/img/stock-bg-hanji-fiber-960.webp") center / cover no-repeat; }
@media (min-width: 960px) { .t-article .yq-feature-sec { background-image: linear-gradient(rgba(240, 237, 234, .6), rgba(240, 237, 234, .6)), url("/assets/img/stock-bg-hanji-fiber.webp"); } }

/* 주의·제외 섹션(dy-soft, PRECAUTIONS 등 — 숲치료·고주파·면역 페이지) 배경 — 따뜻한 종이 결(보관함 unsplash-Ng5onpi5iRQ, 시안 feature-bg-options.html BG-10) 위 회녹색 막 .6(사용자 지정 2026-11-27) */
.t-article main section.sec.dy-soft:not(#dy-none) { background: linear-gradient(rgba(240, 237, 234, .6), rgba(240, 237, 234, .6)), #e9e5d8 url("/assets/img/stock-bg-warm-paper-960.webp") center top / 960px auto repeat !important; } /* 반듯: 이어지는 섹션 이음매 없게 반복 무늬(디자인 검수 R-13) */
@media (min-width: 960px) { .t-article main section.sec.dy-soft:not(#dy-none) { background-image: linear-gradient(rgba(240, 237, 234, .6), rgba(240, 237, 234, .6)), url("/assets/img/stock-bg-warm-paper.webp") !important; background-size: 1600px auto !important; background-attachment: fixed !important; } }

/* 주의 섹션 목록 띠 — 종이 결 바탕 위에서 순백이 튀어 반투명 미색으로(사용자 지정 2026-11-27 "흰색 배경이 너무 하얀듯") */
.dy-soft .dy-bars li { background: rgba(253, 251, 245, .62); border: 1px solid rgba(255, 255, 255, .55); box-shadow: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* 카드 설명 문단이 둘 이상이면 문단 사이 여백 없이 바로 이어서(줄바꿈처럼) — 사용자 지적 2026-11-27 "왜 문단사이 여백있지?" */
.dy-target__d + .dy-target__d { margin-top: 0; }
.dy-target__d:has(+ .dy-target__d) { margin-bottom: 0; }

/* 가운데 머리말 아래 안내 문단 폭 760px → 1120px — 한 문장이 한 줄로 들어가게(사용자 지정 2026-11-27 "개행없도록 한줄", 좁은 화면에서는 자연히 줄바꿈) */
.dy-leadbox { max-width: 760px; } /* 반듯: 한 줄 40~45자(디자인 검수 R-11) */
/* 긴 표 나눠 보기(.tf, 2026-11-27 비급여 진료비용) — JS가 켜졌을 때만 막대·페이지가 보인다. JS가 없으면 표 전체가 그대로 */
.tf__bar, .tf__foot { display: none; }
.tf.is-on .tf__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 16px; }
.tf.is-on .tf__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.tf__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tf__tab { font: inherit; font-size: 14px; font-weight: 600; line-height: 1; padding: 10px 14px; min-height: 40px; border-radius: 999px; border: 1px solid #dcd9d5; background: #fff; color: #49433e; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tf__tab .tf__n { margin-left: 4px; font-size: 12px; font-weight: 500; color: #847f7b; font-variant-numeric: tabular-nums; }
.tf__tab[aria-pressed="true"] { background: #503f31; border-color: #503f31; color: #fff; }
.tf__tab[aria-pressed="true"] .tf__n { color: rgba(255, 255, 255, .8); }
@media (hover: hover) { .tf__tab:not([aria-pressed="true"]):hover { border-color: #503f31; color: #503f31; } }
.tf__search { flex: 0 1 300px; min-width: 220px; }
.tf__search input { width: 100%; font: inherit; font-size: 15px; padding: 10px 14px 10px 40px; min-height: 42px; border: 1px solid #d6d3cf; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235f6964' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50%; color: #222; -webkit-appearance: none; appearance: none; }
.tf__search input:focus { outline: 2px solid #503f31; outline-offset: 1px; }
.tf__status { margin: 0; font-size: 14px; color: #686360; font-variant-numeric: tabular-nums; min-height: 1.6em; }
.tf__pager { display: flex; flex-wrap: wrap; gap: 6px; }
.tf__pg { font: inherit; font-size: 14px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid #dcd9d5; background: #fff; color: #49433e; cursor: pointer; font-variant-numeric: tabular-nums; }
.tf__pg.is-on { background: #503f31; border-color: #503f31; color: #fff; }
.tf__pg:disabled { opacity: .35; cursor: default; }
.tf tbody tr[hidden] { display: none; }
@media (max-width: 599.98px) { .tf__search { flex-basis: 100%; } }
/* 페이지 버튼이 없을 때(결과 한 페이지)도 자리를 잡아 아래가 튀지 않게 — 버튼 한 줄 높이 · 안내 문장 한 줄(layout-stability 2026-11-27) */
.tf__pager { min-height: 40px; }
.tf__status { white-space: nowrap; }
@media (max-width: 599.98px) { .tf.is-on .tf__foot { flex-direction: column; align-items: flex-start; } .tf__pager { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } }
.tf__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 40px; color: #847f7b; }
@media (max-width: 599.98px) { .tf__pager { flex-wrap: nowrap; overflow: visible; } }
/* 비급여 표(.tf) 모양 — 넓은 화면은 칸 글이 꺾이지 않게 한 줄로(행 높이가 같아 페이지·분류가 바뀌어도 빈 칸이 생기지 않음),
   좁은 화면(600px 미만)은 행마다 카드처럼: 위 작은 분류 → 항목(굵게)과 금액(오른쪽) → 비고(작게). 4칸 가로 스크롤로 금액이 잘리던 것을 없앰 */
@media (min-width: 900px) {
  .tf .table-wrap { overflow-x: auto; }
  .tf table { width: 100%; }
  .tf th, .tf td { white-space: nowrap; }
  .tf td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
  .tf thead th:nth-child(3) { text-align: right; }
}
@media (max-width: 599.98px) {
  .tf table, .tf tbody { display: block; width: 100%; }
  .tf thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tf tbody tr:not([hidden]) { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cat cat" "name price" "note note"; column-gap: 12px; row-gap: 3px; padding: 12px 2px; border-bottom: 1px solid #e7e4e1; }
  .tf tbody th, .tf tbody td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
  .tf tbody th { grid-area: cat; font-size: 12px; font-weight: 500; color: #746f6b; }
  .tf tbody td:nth-child(2) { grid-area: name; font-size: 15px; font-weight: 600; color: #222; word-break: keep-all; }
  .tf tbody td:nth-child(3) { grid-area: price; font-size: 15px; font-weight: 700; color: #503f31; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .tf tbody td:nth-child(4) { grid-area: note; font-size: 13px; color: #686360; }
  .tf tbody td:nth-child(4):empty { display: none; }
  .tf .table-wrap { overflow: visible; }
}
@media (max-width: 599.98px) { .tf table { min-width: 0 !important; width: 100% !important; } .tf tbody tr:not([hidden]) { width: 100%; } }

/* 원형 카드 사진 출처 표시(자유 라이선스) — 작고 옅게 */
.yq-ft__cr { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: #938e8b; letter-spacing: 0; }
/* 표 도구 접근성(design-lint 8·14·18) — 개수 글자 대비 4.5:1 이상, 탭·페이지 버튼 터치 44px, 페이지 줄 가로 밀림 방지 */
.tf__tab .tf__n { color: #686360; }
.tf__tab, .tf__pg { min-height: 44px; }
.tf__pg { min-width: 44px; height: 44px; }
.tf__gap { height: 44px; }
.tf__pager { min-height: 44px; overscroll-behavior-x: contain; }

/* 2026-11-27 사용자 지정 "항목별 비용은 진료 시 … 밑에 여백 좀 줘" — 비급여 안내 문단과 분류 탭(표) 사이 */
.prose > p + .tf, .prose + .tf{margin-top:clamp(28px,3.2vw,44px)}

/* 2026-11-27 사용자 지정 "구분 항목 금액 비고가 흔들리지 않게 해. 일정 위치에" — 칸 너비를 고정해 분류·검색·페이지가 바뀌어도 머리줄이 그 자리 그대로.
   "N개 항목 중 1–4 이것도 제거" — 화면에서는 숨기고 화면 낭독기 안내(aria-live)로만 남김, 페이지 번호는 가운데 */
@media (min-width: 600px) {
  .tf table { table-layout: fixed; width: 100%; }
  .tf thead th:nth-child(1) { width: 18%; }
  .tf thead th:nth-child(2) { width: 33%; }
  .tf thead th:nth-child(3) { width: 19%; }
  .tf thead th:nth-child(4) { width: 30%; }
  .tf th, .tf td { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
  .tf td:nth-child(3) { white-space: nowrap; }
}
.tf__status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; min-height: 0; }
.tf.is-on .tf__foot { justify-content: center; }
@media (max-width: 599.98px) { .tf.is-on .tf__foot { align-items: center; } }
/* 페이지 번호 7칸(‹ 1~5 ›)이 360px 화면에서도 한 줄에 — 칸 사이만 좁힌다(누르는 크기 44px 그대로) */
@media (max-width: 599.98px) { .tf__pager { gap: 4px; } }

/* 2026-11-27 "페이징이랑 표랑 너무 먼데" — 넓은 화면에서 칸 안 좌우 여백을 줄여 행이 두 줄로 꺾이지 않게(행 높이가 고르면 잡아 둔 빈 자리도 줄어듦) */
@media (min-width: 900px) { main .tf .table-box:not(.hours-box) :is(th, td) { padding-inline: 14px; } }
/* 2026-11-27 사용자 지정 "텍스트가 개행되지 않게 비고, 항목 같은 거 좀 늘려야" — 비급여 표만 본문 폭(42em)을 벗어나 최대 1040px로. 위 안내 문단·법령 상자는 42em 그대로 */
@media (min-width: 900px) {
  .t-article .sec .prose:has(> .tf), .prose:has(> .tf) { max-width: min(1040px, 100%); }
  .prose:has(> .tf) > :not(.tf) { max-width: 820px; margin-inline: auto; }
}

/* 2026-11-27 사용자 지정 "의료법 제45조 … 디자인 무난하게. 링크 부분은 BOLD만 하고 밑줄 제거" — 근거 법령 상자: 왼쪽 금색 선·그림자 없이 옅은 바탕 + 가는 테두리, 법령 이름은 굵은 글자 한 줄 */
.sec .law { margin: clamp(24px, 3vw, 36px) auto 0; padding: 18px 22px; border: 1px solid #e8e5e2; border-radius: 12px; background: #f9f7f5; box-shadow: none; font-size: 14.5px; line-height: 1.7; color: #686360; text-align: left; }
.bg-white .law { background: #f9f7f5; }
.sec .law cite { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: #503f31; }
.sec .law a:not(.btn), .sec .law a:not(.btn):hover { color: inherit; font-weight: 700; text-decoration: none; }
.t-article .sec .law { font-size: 15px; } .t-article .sec .law cite { font-size: 15.5px; }

/* 2026-11-27 사용자 지정 — 섹션 제목 두 줄: 윗줄은 조금 작게, 아랫줄(키워드·병원 이름)은 그대로 */
.yq-h__pre { display: inline-block; font-size: .72em; font-weight: 500; color: #58514c; letter-spacing: -.01em; margin-bottom: .15em; }

/* ════ 2026-11-27 전체 검수 뒤 사용자가 고른 화면 수정(디자인 R-31·R-04·R-19·R-29·R-16·R-22) ════ */
/* R-31 원형 사진 2열 — 긴 이름이 한쪽 칸만 넓히지 않게 두 칸 같은 폭, 굵은 이름은 넘칠 때만 꺾임 */
@media (max-width: 899.98px) { .yq-ovals, .yq-circles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yq-cir__k { overflow-wrap: anywhere; }
/* R-04 메인 히어로 — 안내 문장 끝(약 800px)까지 흰 막을 넓혀 글자 대비 4.5:1 이상 */
.sc-hero.sc-h2::after { background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .84) 42%, rgba(255, 255, 255, .7) 58%, rgba(255, 255, 255, .34) 76%, rgba(255, 255, 255, .14) 100%) !important; }
/* R-19 검색 0건 안내 줄 · 검색칸 지우기 단추 테마색 */
.tf tbody tr.tf__empty td { padding: 48px 16px !important; text-align: center; color: #686360; font-size: 15px; white-space: normal; }
@media (max-width: 599.98px) { .tf tbody tr.tf__empty:not([hidden]) { display: block; border: 0; } .tf tbody tr.tf__empty td { display: block; } }
.tf__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b4139' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / 16px; }
/* R-29 검색칸 16px — iOS Safari가 누를 때 화면을 확대하지 않게 */
.tf__search input { font-size: 16px; }
/* R-22 모바일 카드 작은 글자 키움 · 600~899px도 금액 오른쪽 정렬 */
@media (max-width: 599.98px) { .tf tbody th { font-size: 13px; } .tf tbody td:nth-child(4) { font-size: 14px; } }
.tf__tab .tf__n { font-size: 13px; }
@media (min-width: 600px) { .tf td:nth-child(3), .tf thead th:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; } }
/* R-16 분야 페이지 H1 첫 줄 — 비율 .6em은 두고 좁은 화면 바닥값 13px */
:is(.t-article, .t-about) .page-head--c h1 .ph1--1 { font-size: max(.6em, 15px); }

/* 2026-11-27 사용자 지정 — 404 히어로: 흰 바탕 가운데 정렬, 404 일러스트(stock-nf-404) → 제목 → 안내 → 처음으로 */
.t-404 .page-head { background: #fff; text-align: center; padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 56px); min-height: 0; }
.t-404 .page-head::before, .t-404 .page-head::after { display: none; }
.t-404 .page-head-in, .t-404 .page-head-text { max-width: 720px; margin-inline: auto; }
.t-404 .nf-ill { margin: 0 auto clamp(8px, 1.2vw, 14px); max-width: min(240px, 62vw); }
.t-404 .nf-ill img { display: block; width: 100%; height: auto; }
.t-404 .page-head h1 { color: #2b2623; text-shadow: none; }
.t-404 .page-head .lead { color: #58514c; text-shadow: none; margin-inline: auto; }
.t-404 .nf-cta { margin: clamp(18px, 2.4vw, 28px) 0 0; }
.t-404 .nf-cta .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: #725a45; color: #fff; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .t-404 .nf-cta .btn:hover { background: #503f31; } }

/* 2026-11-27 사용자 지정 "처음으로 제거, 진료 분야 올려서 6개 카드가 한 줄에, 한 화면에, 404 이미지 크기 줄여" */
.t-404 .page-head { padding: clamp(20px, 2.6vw, 36px) 0 clamp(8px, 1.2vw, 16px); }
.t-404 .page-head h1 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.t-404 .page-head .lead { font-size: 16px; }
.t-404 #related-guides { padding-top: clamp(20px, 2.4vw, 32px) !important; padding-bottom: clamp(40px, 4vw, 64px) !important; }
.t-404 #related-guides .sc-tt { margin-bottom: clamp(16px, 2vw, 24px); }
@media (min-width: 1100px) {
  :is(.t-404, .t-page) #related-guides .sc-gc__list { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 14px !important; overflow: visible !important; margin-inline: 0 !important; padding: 0 !important; }
  :is(.t-404, .t-page) #related-guides .sc-gc__list > li { grid-column: auto !important; width: auto !important; min-width: 0 !important; }
  :is(.t-404, .t-page) #related-guides .sc-gc__body { padding: 12px 14px 14px !important; }
  :is(.t-404, .t-page) #related-guides .sc-gc__t { font-size: 15px; line-height: 1.45; }
  :is(.t-404, .t-page) #related-guides .sc-gc__d { display: none !important; }
}
@media (min-width: 600px) and (max-width: 1099.98px) {
  :is(.t-404, .t-page) #related-guides .sc-gc__list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; overflow: visible !important; margin-inline: 0 !important; padding: 0 !important; }
  :is(.t-404, .t-page) #related-guides .sc-gc__list > li { grid-column: auto !important; width: auto !important; min-width: 0 !important; }
}
@media (min-width: 1100px) { :is(.t-404, .t-page) #related-guides .sc-gc__body { min-height: 0 !important; height: auto !important; } .t-404 #related-guides .sc-tt__em { font-size: clamp(24px, 2.2vw, 30px); } }
/* 2026-11-27 사용자 지정 — 404 진료 분야 제목의 윗줄("숲 곁에서 … 엘앤더슨병원") 숨김. 404는 noindex라 화면에서만 뺀다 */
.t-404 #related-guides .sc-tt__pre { display: none; }

/* 반듯: 비교표(#compare) 좁은 화면 — 칸 폭 같게, 표만 가로 스크롤(디자인 검수 R-22) */
@media (max-width: 719.98px) { #compare .table-wrap table:not(.t3):has(tr > :nth-child(4)) { table-layout: fixed; min-width: 560px; } #compare .table-wrap :is(th, td) { word-break: keep-all; } }

/* ══ dyderm.com 테마·섹션 배경·헤더 (사용자 지정 2026-12-01 "테마색 디와이피부를 사용, 섹션배경도 디와이와 동일, navbar도 마찬가지, navbar는 앵커로 섹션 이동") ══
   dyderm 색: 짙은 갈색 #2F2A28 · 베이지 #EDE6DE · 연회색 #F4F3F1 · 브라운 버튼 #76614A(올리면 #4A4441) · 금색 #C5A059 · 회베이지 #D8D2CB. 로고는 업체 초록 그대로.
   메인 섹션 순서: 소개 원문(흰→베이지 그라데이션 = dyderm Philosophy) · 진료 원칙(흰) · 클리닉 소개(베이지 = Define) · 공간(짙은 갈색 = SPACE) · 오시는 길(연회색 = LOCATION) · 진료시간(흰) · 진료 안내(베이지) · FAQ(흰) · 문의 띠(짙은 갈색) */

/* 헤더 — dyderm header: 고정 72px, 사진 위 반투명 짙은 갈색(#2F2A2899) + 흰 글자, 내리면 흰 흐림 + 짙은 글자, 메뉴 밑줄은 가운데서 양쪽으로 */
.sc-hd.hdx.dyh { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 60; --hdx-bar-h: 72px; --sc-header-h: 72px; --dyh-text: #2f2a28;
  background: rgba(255, 255, 255, .86); box-shadow: 0 4px 20px rgba(0, 0, 0, .04); transition: background-color .35s ease, box-shadow .35s ease; }
.sc-hd.hdx.dyh .sc-hd__bg { background: transparent; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 0; }
.sc-hd.hdx.dyh--tr { --dyh-text: #fff; background: rgba(47, 42, 40, .66); box-shadow: none; } /* dyderm .6 — 밝은 사진 위 흰 글자 4.5:1을 넘기려고 조금 짙게 */
.sc-hd.hdx.dyh--tr .sc-hd__bg { -webkit-backdrop-filter: none; backdrop-filter: none; }
.sc-hd.hdx.dyh .sc-m, .sc-hd.hdx.dyh .sc-m:hover, .sc-hd.hdx.dyh .sc-m:focus-visible, .sc-hd.hdx.dyh .sc-m[aria-current="page"] { color: var(--dyh-text); font-weight: 500; letter-spacing: -.02em; }
.sc-hd.hdx.dyh .sc-mm-burger { color: var(--dyh-text); }
.sc-hd.hdx.dyh :focus-visible { outline-color: var(--dyh-text); }
.sc-hd.hdx.dyh .sc-m::after { background: var(--dyh-text) !important; }
.sc-hd.hdx.dyh .sc-hd__menu > li + li::before { content: none; }
/* 로고 두 장을 같은 자리에 겹쳐 두고 투명도만 바꾼다(폭 고정 — 흔들림 없음) */
.dyh .sc-hd__logo { position: relative; display: flex; align-items: center; }
.dyh .dyh__logo img { width: auto; height: 40px; }
.dyh .dyh__logo--w { position: absolute; left: 0; top: 50%; width: 83px; height: 40px; transform: translateY(-50%); background: url(/assets/img/logo/logo-white.webp) left center / contain no-repeat; opacity: 0; transition: opacity .35s ease; } /* 흰 로고는 그림 칸이 아니라 배경 — 같은 로고 img가 두 번 잡히지 않게(alt 빈 img 방지) */
.dyh .dyh__logo--c { transition: opacity .35s ease; }
.dyh--tr .dyh__logo--w { opacity: 1; }
.dyh--tr .dyh__logo--c { opacity: 0; }
@media (min-width: 900px) {
  .sc-hd.hdx.dyh .sc-hd__in { display: grid; grid-template-columns: clamp(160px, 12vw, 250px) 1fr clamp(160px, 12vw, 250px); align-items: center; height: 72px; max-width: 1920px; padding-inline: clamp(24px, 4vw, 80px); }
  .sc-hd.hdx.dyh .sc-hd__logo { display: flex; justify-self: start; }
  .sc-hd.hdx.dyh .sc-hd__nav { justify-self: center; margin: 0; }
  .sc-hd.hdx.dyh .sc-hd__menu { gap: clamp(16px, 2.8vw, 56px); }
  .sc-hd.hdx.dyh .sc-m { height: 72px; padding: 0; font-size: clamp(15px, .95vw, 18px); }
  .sc-hd.hdx.dyh .sc-m::after { left: 50%; bottom: 0; width: 0; height: 2px; transform: translateX(-50%); }
  .sc-hd.hdx.dyh .sc-m:hover::after, .sc-hd.hdx.dyh .sc-m:focus-visible::after { width: 100%; }
}
@media (max-width: 899.98px) {
  .sc-hd.hdx.dyh { --hdx-bar-h: 64px; --sc-header-h: 64px; }
  .sc-hd.hdx.dyh .sc-hd__in { height: 64px; display: flex; align-items: center; justify-content: space-between; padding-inline: 20px; }
  .sc-hd.hdx.dyh .sc-hd__logo { display: flex; }
  .dyh .dyh__logo img { height: 34px; }
}
/* 헤더가 사진 위에 겹친다 — 사진 머리가 없는 404만 헤더 높이만큼 띄운다 */
.t-404 main { padding-top: 72px; }

/* 색 변수 밖에 직접 적힌 밝은 칸 */
.sc-btn--primary, .sc-l3__btn--primary { background: #76614a; border-color: #76614a; color: #fff; }
.sc-btn--primary:hover, .sc-l3__btn--primary:hover { background: #4a4441; border-color: #4a4441; color: #fff; }

/* 메인 섹션 배경 */
.t-home #story { background: linear-gradient(180deg, rgba(237, 230, 222, .04) 0%, #ede6de 100%), #fff !important; }
.t-home #philosophy { background: #fff !important; }
.t-home #about.lm-sec { background: #ede6de !important; color: #3c3c3c; }
.t-home #about.lm-sec :is(.lm__h, .lm__t) { color: #2f2a28; }
.t-home #about.lm-sec :is(.lm__h1, .lm__lead) { color: #3c3c3c; }
.t-home #about.lm-sec .lm__d { color: #555; opacity: 1; }
.t-home #about.lm-sec .lm__no::before { border-color: #76614a; }
.t-home #about.lm-sec .lm__no span { color: #2f2a28; }
.t-home #about.lm-sec :is(.lm__cell, .lm__cell:nth-child(n)) { border-color: rgba(47, 42, 40, .18); }
.t-home #about.lm-sec .wm-head::before, .t-home #about.lm-sec::before { color: #d8d2cb; }
.t-home #tour.gl-sec { background: #2f2a28 !important; }
.t-home #location { background: #f4f3f1 !important; }
.t-home #location::after { content: none !important; }
.t-home #hours { background: #fff !important; color: #3c3c3c; }
.t-home #hours :is(.wm-head__h, .h2-main) { color: #2f2a28; }
.t-home #hours .h2-sub, .t-home #hours :is(.prose, .prose p, .prose .nw) { color: #3c3c3c; }
.t-home #hours .wm-head::before { color: #ede6de; opacity: 1; }
.t-home #hours table.hours { background: #fff; border: 1px solid #d8d2cb; box-shadow: 0 20px 40px -30px rgba(47, 42, 40, .35); }
.t-home #hours table.hours :is(tbody th, td) { border-bottom-color: #ede6de; }
.t-home #hours table.hours tbody th { background: #f4f3f1; color: #2f2a28; }
.t-home #hours table.hours td, .t-home #hours table.hours tbody tr > td { color: #3c3c3c; }
.t-home #hours table.hours .hr-time { color: #2f2a28; }
.t-home #hours .hr-tag { background: #76614a; color: #fff; }
.t-home #hours table.hours :is(.hr-lunch, .hr-off) td, .t-home #hours .hr-sub { color: #5c5550; }
:is(.t-home, .t-article) #related-guides { background: #ede6de !important; color: #3c3c3c; }
:is(.t-home, .t-article) #related-guides :is(.wm-head__h, .h2-main) { color: #2f2a28; }
:is(.t-home, .t-article) #related-guides :is(.h2-sub, .sc-gc__lead) { color: #3c3c3c; }
:is(.t-home, .t-article) #related-guides .wm-head::before { color: #d8d2cb; opacity: 1; }
.t-home #faq { background: #fff !important; }
.sc-l3 { background: #2f2a28 !important; }
.sc-l3::after { content: none !important; }

/* 분야·개인정보 페이지 — 흰 / 연회색 / 베이지만(질감 대신 dyderm 단색) */
.sc-sec--tint::after { content: none !important; }
.t-article .yq-feature-sec { background: #f4f3f1 !important; }
.t-article main section.sec.dy-soft:not(#dy-none) { background: #f4f3f1 !important; }
/* N6 유리 알약(오므라듦)은 쓰지 않는다 — dyderm처럼 헤더 폭 그대로 흰 흐림만 */
.sc-hd.hdx.dyh.is-scrolled .sc-hd__bg { background: transparent; border-radius: 0; transform: none; box-shadow: none; }
.sc-hd.hdx.dyh.is-scrolled .sc-hd__logo { transform: none; }
/* 메뉴 앵커로 이동하면 섹션 바탕이 헤더 바로 아래에서 시작 */
.t-home main > section[id] { scroll-margin-top: 72px !important; }
@media (max-width: 899.98px) { .t-home main > section[id] { scroll-margin-top: 64px !important; } }
/* 고정 메뉴판(.sc-mm·어두운 막)이 헤더 안에 갇히지 않게 — 헤더에 transform이 있으면 fixed 자식의 기준 상자가 헤더가 된다 */
.sc-hd.hdx.dyh { transform: none !important; }
@media (max-width: 899.98px) { .sc-hd.hdx.dyh :is(.sc-mm, .sc-mm__scrim) { top: 64px !important; } }
@media (max-width: 899.98px) { .sc-hd.hdx.dyh :is(.sc-mm, .sc-mm__scrim) { height: calc(100vh - 64px); height: calc(100dvh - 64px); bottom: auto !important; } }

@media (max-width: 899.98px) { .dyh .dyh__logo--w { width: 70px; height: 34px; } }
/* 메뉴 포커스 테두리 — 헤더 글자색과 같게(흰 헤더 위 짙은 갈색, 사진 위 흰색) */
.sc-hd.hdx.dyh :is(.sc-m, .sc-hd__logo, .sc-mm-burger):focus-visible { outline: 2px solid var(--dyh-text) !important; outline-offset: 2px; }
/* 헤더 글 칸 = 본문·푸터 글 칸(design-lint 17) */
.sc-hd.hdx.dyh .sc-hd__in { max-width: calc(var(--wrap) + 2 * var(--gutter)) !important; margin-inline: auto; padding-inline: var(--gutter) !important; }
@media (min-width: 900px) { .sc-hd.hdx.dyh .sc-hd__in { grid-template-columns: 1fr auto 1fr; } }
/* 개인정보·404 하단 안내 카드 — 사진 아래 밝은 칸의 글자는 짙은 갈색 */
:is(.t-page, .t-404, .t-about, .t-profile, .t-contact) #related-guides a.sc-gc__card, :is(.t-page, .t-404, .t-about, .t-profile, .t-contact) #related-guides a.sc-gc__card:hover, :is(.t-page, .t-404, .t-about, .t-profile, .t-contact) #related-guides .sc-gc__t { color: #2f2a28; }
:is(.t-page, .t-404, .t-about, .t-profile, .t-contact) #related-guides .sc-gc__d { color: #5c5550; }

/* ══ 메뉴 구성 2026-12-01(decisions 21): BD CLINIC 드롭다운 + 진료 분야 4 ══ */
/* 드롭다운 — dyderm gnb-dropdown: 흰 상자(모서리 4px·그림자), 줄 48px 가운데 정렬, 올리면 짙은 갈색 바탕 + 흰 글자 */
.sc-hd.hdx.dyh .sc-dd__btn { color: var(--dyh-text) !important; background: transparent !important; font-weight: 500; letter-spacing: -.02em; }
@media (min-width: 900px) {
  .sc-hd.hdx.dyh .sc-hd__menu > li.sc-dd { height: 72px; }
  .sc-hd.hdx.dyh .sc-dd__btn { height: 72px; padding: 0; font-size: clamp(15px, .95vw, 18px); position: relative; }
  .sc-hd.hdx.dyh .sc-dd__btn::after { content: "" !important; display: block !important; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--dyh-text); transform: translateX(-50%); transition: width .3s ease; }
  .sc-hd.hdx.dyh .sc-dd:is(:hover, :focus-within, .is-open) .sc-dd__btn::after { width: 100%; }
  .sc-hd.hdx.dyh .sc-dd--d9 .sc-dd__panel { left: 50%; right: auto; width: clamp(160px, 10.8vw, 196px); margin-left: calc(clamp(160px, 10.8vw, 196px) / -2); padding: 8px 0 0; background: transparent; border: 0; box-shadow: none; }
  .sc-hd.hdx.dyh .sc-dd--d9 .sc-dd__panel::before { display: none; }
  .sc-hd.hdx.dyh .sc-dd9 { margin: 0; padding: 0; list-style: none; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
  .sc-hd.hdx.dyh .sc-dd9 li + li { box-shadow: none; border: 0; }
  .sc-hd.hdx.dyh .sc-dd9 a { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 10px; font-size: clamp(14px, .83vw, 16px); font-weight: 500; letter-spacing: -.02em; color: #2f2a28; background: #fff; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
  .sc-hd.hdx.dyh .sc-dd9 a::before, .sc-hd.hdx.dyh .sc-dd9 a::after { display: none; }
  .sc-hd.hdx.dyh .sc-dd9 a:is(:hover, :focus-visible) { background: #2f2a28; color: #fff; }
  .sc-hd.hdx.dyh .sc-dd9 a:focus-visible { outline: 2px solid #c5a059 !important; outline-offset: -4px; }
}

/* BD CLINIC 페이지 섹션 배경 — dyderm 순서: 소개(흰→베이지) · 의료진(연회색) · 진료안내(흰) · 오시는 길(연회색) · 진료 안내 카드(베이지) · FAQ(흰) */
.t-about #about-bd { background: linear-gradient(180deg, rgba(237, 230, 222, .04) 0%, #ede6de 100%), #fff !important; }
.t-about #doctor { background: #f4f3f1 !important; }
.t-about #hours { background: #fff !important; }
.t-about #location { background: #f4f3f1 !important; }
.t-about #faq { background: #fff !important; }
.t-about #related-guides { background: #ede6de !important; }

/* 의료진 사진 칸을 옆 약력 칸 높이에 맞춤(design-lint 21) — 얼굴이 잘리지 않게 위쪽 기준 */
@media (min-width: 900px) {
  .t-about #doctor .profile { align-items: stretch; }
  .t-about #doctor .profile-photo, .t-about #doctor .profile-photo picture { display: block; height: 100%; }
  .t-about #doctor .profile-photo > img.is-portrait { width: 100%; max-width: none; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; object-position: center top; }
}

/* ══ 히어로 — 모든 페이지 한 화면 꽉 채움 + dyderm 톤(어두운 막 위 흰 글자), 메인 글자 가운데 (사용자 지정 2026-12-01) ══
   dyderm 메인 비주얼: 높이 100vh(모바일 100dvh) · 영상 위 검정 25% 막. 우리 사진은 흰 인테리어 시안이라 같은 어둡기가 되도록 막을 짙게(짙은 갈색 #1a1716 48%) */
.sc-hero.sc-h2, .page-head.has-bg { height: 100vh; height: 100dvh; min-height: 560px !important; max-height: none; }
.sc-hero.sc-h2 { display: flex; align-items: center; justify-content: center; background: #1a1716; }
.sc-hero.sc-h2::after { background: rgba(26, 23, 22, .48) !important; opacity: 1 !important; }
.sc-hero.sc-h2 .sc-h2__bg { background: #1a1716; }
.sc-hero.sc-h2 .sc-h2__slide img { filter: none !important; }
.sc-hero.sc-h2 .sc-h2__in { width: 100%; margin-inline: auto; padding-top: 72px; padding-bottom: 0; text-align: center; }
.sc-hero.sc-h2 .sc-h2__text { margin-inline: auto; max-width: 960px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sc-hero.sc-h2 .sc-h2__text > * { max-width: 100%; margin-inline: auto; }
.sc-hero.sc-h2 :is(.sc-h2__title, .sc-h2__title .hl) { color: #fff !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.sc-hero.sc-h2 .sc-h2__lead { color: rgba(255, 255, 255, .9) !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.sc-hero.sc-h2 :is(.sc-h2__tag, .sc-h2__facts, .sc-h2__facts li) { color: #ede6de !important; }
.sc-hero.sc-h2 :is(.sc-hero__btns, .sc-h2__facts, .hero-practice ul) { justify-content: center; }
@media (max-width: 899.98px) { .sc-hero.sc-h2 .sc-h2__in { padding-top: 64px; } }
/* 하위 페이지 머리 — 같은 막, 글자 가운데 */
.page-head.has-bg .page-head-photo::after { background: rgba(26, 23, 22, .48) !important; }
.page-head.has-bg { display: flex; flex-direction: column; justify-content: center; }
.page-head.has-bg > .wrap { width: 100%; padding-top: 72px; }
@media (max-width: 899.98px) { .page-head.has-bg > .wrap { padding-top: 64px; } }
/* 옛 헤더(88px) 밑으로 당겨 올리던 음수 여백을 없앰 — 이제 헤더가 fixed로 사진 위에 겹친다 */
.sc-hero.sc-h2, .page-head.has-bg { margin-top: 0 !important; }
/* 메인 사진 — 오른쪽 반쪽이 아니라 화면 전체 */
.sc-hero.sc-h2 .sc-h2__slide { left: 0 !important; right: 0 !important; width: 100% !important; }
.sc-hero.sc-h2 .sc-h2__slide img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.sc-hero.sc-h2 :is(.sc-h2__title, .sc-h2__title .hl) { -webkit-text-fill-color: #fff !important; background: none !important; }
.sc-hero.sc-h2 .sc-h2__lead { -webkit-text-fill-color: rgba(255, 255, 255, .9); }
/* 하위 머리 글자 가운데 */
.page-head.has-bg .page-head-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-head.has-bg .page-head-text { margin-inline: auto; text-align: center; max-width: 900px; }
.page-head.has-bg :is(.crumbs, .crumbs ol, .page-head-cta, .page-head .cta, .sc-hero__btns, .btns) { justify-content: center; }
/* 메인 사진 슬라이드를 오른쪽으로 18% 밀던 transform(옛 왼쪽 글 칸 자리) 없앰, 사진 투명도도 원래대로 */
.sc-hero.sc-h2 .sc-h2__slide { transform: none !important; }
.sc-hero.sc-h2 .sc-h2__slide img { opacity: 1 !important; object-position: 50% 50%; }
.page-head.has-bg .cta-row { justify-content: center; }
.sc-hero.sc-h2 .sc-h2__slide { -webkit-mask-image: none !important; mask-image: none !important; }

/* ══ 섹션 제목 — dyderm 방식(사용자 지정 2026-12-01 "BALANCE, DOCTOR 이런 영어들 쓰지 말자 … 영어 쓰는 폰트·크기·굵기나 '정교하게 구현하는 / 섬세한 맞춤 시술' 같은 위에 줄 같은 심플한 것으로") ══
   · 큰 기울임 영어 워터마크(Balance·Philosophy·Visit·Hours·Questions·Doctor·BD Clinic) 없음
   · 영어 한 줄 = dyderm .sec-tit-eng: Cardo 400 · 40px(모바일 26px) · #2A2A2A · 줄 간격 1.1
   · 한국어 제목 = dyderm .item-heading: Noto Serif KR 26px(모바일 18px) · 줄 간격 1.54 · #2A2A2A, 윗줄(.sub-lead) 보통 굵기 + 아랫줄(.main-lead) 600 */
.story__tx::before, .pf__head::before, .wm-head::before { content: none !important; display: none !important; }
:is(.sc-tt--hd7 .sc-tt__h, .sc-tt__h)::before, :is(.sc-tt--hd7 .sc-tt__h, .sc-tt__h)::after { content: none !important; display: none !important; }
main :is(h2.pf__h, h2.lm__h, h2.gl__h, h2.wm-head__h, h2.story__h, h2.yq-intro__h, h2.yq-h, h2.dy-h, h2.sc-tt__h, h2.sc-tt__h *) {
  font-family: "Noto Serif KR", var(--font) !important; letter-spacing: -.01em;
}
main :is(h2.pf__h, h2.lm__h, h2.gl__h, h2.wm-head__h, h2.story__h, h2.yq-intro__h, h2.yq-h, h2.dy-h, h2.sc-tt__h) {
  font-size: clamp(20px, 1.85vw, 26px) !important; line-height: 1.54 !important; font-weight: 600 !important; color: #2a2a2a;
}
main :is(.h2-sub, .lm__h1, .gl__h1, .yq-h__pre, .sc-tt__pre) {
  display: block !important; margin: 0 !important; font-size: 1em !important; line-height: 1.54 !important; font-weight: 400 !important; color: inherit !important; letter-spacing: inherit;
}
main :is(.h2-main, .lm__h2, .gl__h2, .yq-h__main, .sc-tt__em) {
  display: block !important; font-size: 1em !important; line-height: 1.54 !important; font-weight: 600 !important; color: inherit !important;
}
main :is(.gl__h2) br, main h2.yq-h > br { display: none; }

/* 어두운 바탕(공간·문의 띠) 제목은 흰색 */
.gl-sec h2.gl__h, .sc-l3 h2 { color: #fff !important; }
/* 영어 한 줄 — dyderm .sec-tit-eng */
main .dy-en { font-family: "Cardo", Georgia, serif !important; font-size: 40px !important; font-weight: 400 !important; font-style: normal !important; line-height: 1.1 !important; letter-spacing: 0 !important; color: #2a2a2a !important; opacity: 1 !important; margin: 0 0 12px !important; text-transform: none; }
@media (max-width: 767.98px) {
  main .dy-en { font-size: 26px !important; line-height: 1.2 !important; margin-bottom: 8px !important; }
}
/* 대괄호 [ ] 제목 꾸밈도 쓰지 않는다 — dyderm 제목에 없음 */
.sc-tt--hd7::before, .sc-tt--hd7::after { content: none !important; display: none !important; border: 0 !important; }
.sc-tt--hd7 { padding-inline: 0 !important; }
/* BD CLINIC 진료안내 — 제목이 가운데라 표도 가운데 */
.t-about #hours .hours-box { margin-inline: auto !important; width: 100%; max-width: 760px !important; }
.t-about #hours .hours-box :is(.table-wrap, table.hours) { width: 100% !important; max-width: none !important; margin-inline: auto; }
.t-about #hours > .wrap { display: block !important; }

/* ══ 메인 첫 화면 BD 로고 (사용자 지정 2026-12-01 "로고 그리지 말고 로고 파일과 동일한 로고를 스르륵 생기게, 그리고 '가장 나다운 선과 결을 되찾는 시간'")
   BD 모노그램은 업체가 파일로 준 적이 없어(.ai는 반듯한방병원 막대 로고뿐) 2차 디자인미팅 4K 안내 데스크 렌더의 벽 사인을 픽셀로 재어 다시 그린 벡터를 쓴다(원본과 겹쳐 맞춤 — 세리프 B·기둥을 가르는 휘감는 선·기둥 없는 초승달 D·별).
   로고 전체가 흐림에서 또렷하게 스르륵 → 원문 한 줄이 떠오르고 끝(둘 다 그대로 남음). JS가 .bdi-run을 붙일 때만 움직이고, 없으면 처음부터 보인다 */
.bdi { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; padding-top: 72px; }
.bdi__logo { display: block; width: clamp(84px, 7vw, 112px); height: auto; overflow: visible; } /* dyderm 히어로 DY 글자(Cardo 92px) 높이에 맞춤(사용자 2026-12-01 "로고 너무 큰 듯, 디와이 정도로") */
.bdi__sub { margin-top: clamp(18px, 1.8vw, 26px); font-family: "Noto Serif KR", serif; font-size: clamp(17px, 1.6vw, 24px); font-weight: 400; letter-spacing: .025em; color: #fff; white-space: nowrap; }
.bdi-run .bdi__logo { animation: bdiLogo .9s cubic-bezier(.25, .8, .35, 1) 0s both; } /* 당김(사용자 2026-12-01 "너무 늦다") */
.bdi-run .bdi__sub { animation: bdiSub .8s cubic-bezier(.25, 1, .5, 1) .2s both; } /* 로고가 거의 생길 즈음 바로(사용자 2026-12-01 "너무 나중에 생긴다") */
@keyframes bdiLogo { 0% { opacity: 0; transform: scale(.97); filter: blur(8px); } 60% { filter: blur(0); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bdiSub { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 899.98px) { .bdi { padding-top: 64px; } .bdi__logo { width: 84px; } .bdi__sub { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .bdi * { animation: none !important; } }

/* 메인 숨김 카드 띠 — yyd-brighten.com naver-carousel.css 값 그대로(사용자 지정 2026-12-01, decisions 27).
   카드는 헤더 뒤 top 90px에 깔리고 본문(main, z-index 10)이 덮는다. display:none을 쓰지 않는다 */
#naver-carousel { display: flex; position: absolute; z-index: 1; top: 90px; width: 100%; overflow: hidden; background: #fff; color: #000; padding: 1rem; box-sizing: border-box; }
#naver-carousel ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
#naver-carousel ul li { flex: 1; }
#naver-carousel ul li a { display: block; }
#naver-carousel ul li a .thumb { height: 300px; }
#naver-carousel ul li a .thumb img { display: block; border: 0; width: 100%; object-fit: cover; height: 100%; }
#naver-carousel ul li a .title { padding: 1rem 0; text-align: center; }
.t-home #main { z-index: 10; position: relative; background: #fff; }

/* ══ 히어로 아래 H1 블록 (사용자 지정 2026-12-01 "메인은 '가장 나다운 선과 결을 되찾는 시간'만, H1 문구는 아래쪽에") — dyderm 제목처럼 가운데, Noto Serif ══ */
.bdi__sub { font-size: clamp(17px, 1.6vw, 24px); }
.hero-copy { background: #fff; padding: clamp(72px, 8vw, 120px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.hero-copy__text { max-width: 900px; margin: 0 auto; }
.hero-copy__h1 { margin: 0; font-family: "Noto Serif KR", serif; color: #2a2a2a; line-height: 1.45; letter-spacing: -.01em; }
.hero-copy__h1 .hl { display: block; }
.hero-copy__h1 .hl--1 { font-size: clamp(17px, 1.5vw, 22px); font-weight: 400; color: #5c5550; margin-bottom: 10px; }
.hero-copy__h1 .hl--2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; }
.hero-copy__lead { margin: clamp(18px, 2vw, 26px) auto 0; max-width: 46em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.85; color: #5c5550; word-break: keep-all; }
.t-home #philosophy { padding-top: clamp(40px, 5vw, 64px); }

/* 드롭다운 클릭 안 됨 고침(2026-12-01): 헤더의 overflow-x: clip(style.css .sc-hd.hdx)이 72px 아래로 나온 드롭다운의
   마우스 판정을 잘라, 보이기만 하고 눌리지 않았다. PC에서 헤더 넘침을 풀어 준다 */
@media (min-width: 900px) { .sc-hd.hdx.dyh { overflow: visible; } }

/* 헤더 로고 — 파일 한 장(컬러)만 쓰고 사진 위에서는 필터로 흰색만 입힌다(사용자 2026-12-01 "색만 바뀌고 형태는 완전 동일하게").
   예전엔 흰 로고를 배경 그림으로 겹쳐 두어 크기 계산·위치가 1px씩 달라 바뀔 때 모양이 흔들렸다 */
.dyh .dyh__logo--w { display: none !important; }
.dyh .dyh__logo--c { opacity: 1 !important; }
.dyh .dyh__logo--c img { transition: filter .35s ease; }
.dyh--tr .dyh__logo--c img { filter: brightness(0) invert(1); }

/* ══ 퀵바 — 김앤케이(kimnklaw.kr) 모양을 테마색으로 (사용자 지정 2026-12-01 "퀵바는 김앤케이처럼 타원형, 아이콘은 그대로 넣되 색은 테마색") ══
   넓은 화면: 오른쪽 가운데 반투명 짙은 갈색 캡슐(모서리 59px) 하나, 안에 흰 원 아이콘(테마 브라운 #76614A, 진료시간만 금색 #C5A059) + 흰 글자.
   1024px 이하: 예전 '+' 펼침 그대로(원 안 아이콘만 테마색) */
.lq__ico { display: contents; }
@media (min-width: 1025px) {
  .lq { top: 50%; bottom: auto; transform: translateY(-50%); right: clamp(14px, 2.2vw, 40px); padding: 18px 14px; border-radius: 59px; background: rgba(47, 42, 40, .6); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 8px 32px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .lq__list { display: grid; justify-items: center; gap: 10px; }
  .lq__a, .lq__a:hover { width: 68px; height: auto; padding: 4px 0; gap: 6px; background: none; border-radius: 0; box-shadow: none; color: #fff; transform: none; }
  .lq__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #76614a; transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s; }
  .lq__ic { width: 26px; height: 26px; }
  .lq__lb { font-size: 13px; font-weight: 500; line-height: 1.15; letter-spacing: -.04em; color: #fff; }
  .lq__a[data-qb="hours"] .lq__ico { color: #c5a059; }
  .lq__a:hover .lq__ico { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
  .lq__a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px; }
}
@media (min-width: 1025px) and (max-height: 700px) {
  .lq { padding: 12px 10px; }
  .lq__list { gap: 4px; }
  .lq__ico { width: 40px; height: 40px; }
  .lq__ic { width: 20px; height: 20px; }
}
@media (max-width: 1024px) {
  .lq__a { color: #76614a; }
  .lq__a[data-qb="hours"] { color: #c5a059; }
  .lq__toggle { background: #76614a; }
}

/* ══ 의료진 페이지(/doctor/) — dyderm.com/doctor 구성(사용자 지정 2026-12-01) ══
   소개 글(가운데, 흰→베이지) → 원장 블록(왼쪽 화면 끝까지 붙은 토프 판 + 흐린 로고 무늬, 오른쪽 면허 꼬리표·명조 이름·선·알약 라벨 두 칸) → 공간 사진 띠 */
.dyi-sec { padding-block: clamp(96px, 10vw, 160px) !important; background: linear-gradient(180deg, rgba(237, 230, 222, .04) 0%, #ede6de 100%), #fff; text-align: center; }
.dyi { display: flex; flex-direction: column; align-items: center; }
.dyi__en { margin: 0 0 14px; font-family: var(--ff-en); font-size: clamp(20px, 1.9vw, 28px); letter-spacing: .02em; color: #2f2a28; }
.dyi-sec .dyi__h { margin: 0; font-family: var(--ff-serif); font-size: clamp(20px, 2vw, 28px); font-weight: 600; line-height: 1.55; letter-spacing: -.02em; color: #2a2a2a; text-align: center; }
.dyi-sec .dyi__h::before { content: none; display: none; }
.dyi__p { margin: clamp(22px, 2.4vw, 34px) 0 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.75; color: #555; word-break: keep-all; }
.t-profile .dy-sec { background: #fff !important; }
.t-profile .dy__ph { background: #b9b0a7; }
.dy__ph img.dy__wm { position: absolute; z-index: 2; inset: auto; top: 6%; left: 6%; width: clamp(80px, 10vw, 150px); height: auto; object-fit: contain; opacity: .5; filter: brightness(0) invert(1); pointer-events: none; }
.t-profile .dy__badge { width: auto; height: auto; padding: 8px 10px; background: #76614a; font-size: clamp(14px, 1.1vw, 16px); font-weight: 700; }
.t-profile .dy-sec .dy__name { font-family: var(--ff-serif); font-weight: 600; }
@media (min-width: 900px) {
  .t-profile .dy { max-width: none; padding-inline: 0; grid-template-columns: minmax(0, 51%) minmax(0, 1fr); }
  .t-profile .dy__info { padding: 0 var(--gutter) 0 clamp(40px, 5vw, 96px); max-width: 760px; }
}
.dyb-sec { position: relative; isolation: isolate; min-height: clamp(420px, 42vw, 620px); display: flex; align-items: center; padding-block: clamp(72px, 8vw, 120px) !important; color: #fff; }
.dyb__bg { position: absolute; inset: 0; z-index: -1; }
.dyb__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.dyb__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 24, 18, .2) 0%, rgba(31, 24, 18, .62) 100%); }
.dyb { width: 100%; display: flex; flex-direction: column; align-items: flex-end; text-align: left; }
.dyb > * { width: min(100%, 460px); }
.dyb-sec .dyb__h { margin: 0; font-family: var(--ff-serif); font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; line-height: 1.6; color: #fff; text-align: left; }
.dyb-sec .dyb__h::before { content: none; display: none; }
.dyb__p { margin: 18px 0 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: rgba(255, 255, 255, .88); }
@media (max-width: 899.98px) { .dyb { align-items: center; text-align: center; } .dyb-sec .dyb__h { text-align: center; } .dyb__bg::after { background: rgba(31, 24, 18, .55); } }

/* 의료진 사진 위 로고 워터마크 — img 대신 배경(빈 alt 그림 없이, 2026-12-01). 크기·위치·색은 위 .dy__ph img.dy__wm과 같게 */
.dy__ph .dy__wm { position: absolute; z-index: 2; top: 6%; left: 6%; width: clamp(80px, 10vw, 150px); aspect-ratio: 1; background: center / contain no-repeat; opacity: .5; filter: brightness(0) invert(1); pointer-events: none; }

/* 메인 첫 화면 순서(사용자 지정 2026-12-01 "BD 생기고 가장~시간 생기고 NAVBAR와 퀵바 조금 더 스르륵"):
   로고(0.2~2.8s) → 원문 한 줄(2.6~3.9s) → 헤더·퀵바 함께(3.6~5.2s). 헤더·퀵바는 위·옆에서 툭 내려오지 않고 투명도 위주로 길게 스며든다.
   퀵바는 틀(유리 배경)까지 .lq 통째로 — 아이콘별로 따로 생기지 않는다. PC .lq의 세로 가운데 transform을 건드리지 않게 translate 속성만.
   퀵바 fill backwards — 끝난 뒤엔 원래 규칙(모바일 펼침·hover) 그대로 */
@media (prefers-reduced-motion: no-preference) {
  .sc-js .t-home .bdi-run .bdi__sub { animation-delay: 2.6s; }
  .sc-js .t-home .sc-hd { animation: bd-hd 1.6s cubic-bezier(.25, .8, .35, 1) 3.6s both; }
  .sc-js .t-home .lq { animation: bd-qb 1.6s cubic-bezier(.25, .8, .35, 1) 3.6s backwards !important; }
  .sc-js .t-home .lq__item { animation: none !important; }
}
@keyframes bd-hd { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes bd-qb { from { opacity: 0; translate: 10px 0; } to { opacity: 1; translate: 0 0; } }

/* 진료 분야 4페이지 머리 = 밝은 추상 무늬(사용자 선택 2026-12-01 HP-lifting-04·HP-skin-booster-02·HP-laser-02·HP-hair-removal-02, 프롬프트 docs/review/codex-prompt-hero-patterns.md)
   무늬가 밝아 어두운 막을 걷고 글자를 짙은 갈색으로(프롬프트 "반영할 때 막을 옅게 하고 글자를 짙은 갈색으로") */
:is(.t-article, .t-about) .page-head--yq .page-head-photo:has(img[src*="/ai-hero-"]) { background: #f4f3f1; }
:is(.t-article, .t-about) .page-head--yq .page-head-photo:has(img[src*="/ai-hero-"])::after { background: rgba(244, 243, 241, .18) !important; }
:is(.t-article, .t-about) .page-head--yq:has(img[src*="/ai-hero-"]) h1 { color: #2f2a28 !important; text-shadow: 0 1px 18px rgba(255, 255, 255, .6); }
:is(.t-article, .t-about) .page-head--yq:has(img[src*="/ai-hero-"]) .ph-tagline { color: #76614a !important; }
/* 진료 분야 머리 아래 끝을 넓은 타원 곡선으로(사용자 지정 2026-12-01 "lumirderm.com/thermage 여기처럼 곡선형태로") — 그 사이트 1440×900에서 잰 값:
   머리 높이 약 680px(화면의 76%), 아래 곡선은 가운데가 가장자리보다 약 10% 더 내려옴 / 390px 폭은 높이 약 445px, 곡선 4~5%.
   clip-path 타원(중심 = 머리 위 끝, 세로 반지름 = 머리 높이): 가로 반지름 115%면 가장자리가 10% 올라가고, 170%면 4.5% */
:is(.t-article, .t-about) main .page-head--yq:has(img[src*="/ai-hero-"]) { height: clamp(480px, 76vh, 760px) !important; min-height: 0 !important; clip-path: ellipse(115% 100% at 50% 0); }
@media (max-width: 767.98px) { :is(.t-article, .t-about) main .page-head--yq:has(img[src*="/ai-hero-"]) { height: 480px !important; clip-path: ellipse(170% 100% at 50% 0); } }
/* 메인 히어로 — 조금 더 밝게(막 48% → 38%), 사진 넘김 더 느리게(한 장 6초 → 9초, 한 바퀴 27초) — 사용자 지정 2026-12-01 */
.sc-hero.sc-h2::after { background: rgba(26, 23, 22, .38) !important; }
.sc-hero.sc-h2 .sc-h2__slide, .sc-hero.sc-h2 .sc-h2__slide img { animation-duration: 27s !important; }
.sc-hero.sc-h2 .sc-h2__slide:nth-child(2) { animation-delay: -18s; }
.sc-hero.sc-h2 .sc-h2__slide:nth-child(3) { animation-delay: -9s; }
.bdi { filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .28)); } /* 밝아진 사진 위에서도 흰 로고·문구가 읽히게 — 로고 애니메이션의 filter와 겹치지 않게 감싸개에 */

/* 메인 철학 카드 글자를 아래로(사용자 지정 2026-12-01 "카드 텍스트들 아래에 여백이 좀 있네. 전체적으로 좀 내려줘")
   제목 2줄·설명 4줄 자리를 늘 잡아 두어 1440px에서 글 아래가 74~121px 비었다 — 실제는 제목 1줄·설명 최대 3줄.
   제목은 1줄 자리, 설명은 3줄 자리(옆 카드와 제목 높이는 그대로 맞음), 아래 안쪽 여백도 줄임 */
.pf .pf__t { height: auto; min-height: 1.4em; margin-bottom: 8px; }
.pf__d { height: 3.3em; } /* 줄마다 그 줄에서 가장 긴 설명 줄 수만큼: 2칸 배치·아래 줄은 2줄 */
@media (min-width: 1100px) { .pf__card:nth-child(-n+3) .pf__d { height: 4.95em; } }
@media (min-width: 600px) and (max-width: 767.98px) { .pf__d { height: 4.95em; } } /* 좁은 2칸은 설명이 3줄까지 */ /* 3칸인 윗줄은 "선과 결"이 3줄 */
.pf__tx { padding-bottom: clamp(20px, 2.2vw, 32px); }
@media (max-width: 599.98px) { .pf__d { height: auto; } }

/* ══ 메인 중간 인용 띠 #promise — 업체 원문 "당신의 모든 날이 가장 빛나는 순간이 되도록, BD 클리닉이 함께합니다."(사용자 지정 2026-12-01)
   dyderm 메인 중간의 큰 문장 띠처럼: 인테리어 사진 + 짙은 막 + 흰 명조 가운데 두 줄 ══ */
.t-home #promise { position: relative; padding-block: clamp(96px, 12vw, 180px) !important; background: #2f2a28 url(/assets/img/bd-corridor-wide-2.webp) center / cover no-repeat !important; text-align: center; overflow: hidden; }
.t-home #promise::before { content: "" !important; display: block !important; position: absolute; inset: 0; background: rgba(26, 23, 22, .5); }
.t-home #promise .wrap { position: relative; z-index: 1; }
.t-home #promise .sc-tt { margin: 0 auto; }
.t-home #promise h2 { color: #fff !important; font-size: clamp(22px, 2.4vw, 34px) !important; line-height: 1.6 !important; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.t-home #promise h2 .sc-tt__pre { font-weight: 400 !important; }
.t-home #promise h2 .sc-tt__em { font-weight: 600 !important; }
.t-home #promise h2::before { content: "\201C" !important; display: block !important; position: static !important; font-family: "Cardo", Georgia, serif; font-size: 2.4em; line-height: .6; color: rgba(255, 255, 255, .7); margin-bottom: .2em; border: 0 !important; width: auto !important; height: auto !important; background: none !important; }
/* 메인 H1 블록 글자 — dyderm 메인 철학 문구 크기 그대로(사용자 지정 2026-12-01 "모두가 같은 아름다움을…/얼굴의 구조와… 이 텍스트 크기로"):
   H1 큰 줄 = .philo-heading(Noto Serif 30px·600·#2A2A2A·1.53, 모바일 20px), 아래 문단 = .philo-desc(Noto Serif 22px·600·#3C3C3C·1.8, 모바일 15px) */
.hero-copy__text { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-copy__h1 .hl--2 { font-size: 30px !important; font-weight: 600; color: #2a2a2a; line-height: 1.53; letter-spacing: -.02em; }
.hero-copy__h1 .hl--1 { font-size: 18px; margin-bottom: 4px; }
.hero-copy__lead { margin: 0 auto; max-width: none; font-family: "Noto Serif KR", serif; font-size: 22px; font-weight: 600; color: #3c3c3c; line-height: 1.8; letter-spacing: -.02em; }
@media (max-width: 767.98px) {
  .hero-copy__text { gap: 8px; }
  .hero-copy__h1 .hl--2 { font-size: 20px !important; line-height: 1.45; }
  .hero-copy__h1 .hl--1 { font-size: 15px; }
  .hero-copy__lead { font-size: 15px; line-height: 1.65; }
}
@media (min-width: 1024px) { .hero-copy__text { max-width: 1080px; } } /* 넓은 화면은 문장마다 한 줄("설계합니다." 혼자 남지 않게) */
/* "반듯한방병원 피부 클리닉" 위를 아주 조금 띄우고, 아래 문단과 여백(사용자 지정 2026-12-01) */
.hero-copy__h1 .hl--1 { margin-bottom: 10px; }
.hero-copy__lead { margin-top: clamp(14px, 1.6vw, 24px); }
/* 아래 두 문장 — 굵기 한 단계(600 → 500), 크기 한 단계(22 → 20px, 모바일 15 → 14px) 낮춤(사용자 지정 2026-12-01) */
.hero-copy__lead { font-size: 20px; font-weight: 500; }
@media (max-width: 767.98px) { .hero-copy__lead { font-size: 14px; } }
/* 인용 띠 배경을 5층 복도 벽 렌더(p26, 검은 띠 잘라 낸 bd-promise)로, 문장은 사진 한가운데에 딱(사용자 지정 2026-12-01).
   넓은 화면은 렌더 비율 그대로(3840×1293) 다 보이게, 따옴표 장식은 흐름 밖으로 빼 두 줄이 정확히 가운데 */
.t-home #promise { display: flex !important; align-items: center; justify-content: center; padding: 0 !important; aspect-ratio: 3840 / 1293; min-height: 340px; background: #2f2a28 url(/assets/img/bd-promise.webp) center / cover no-repeat !important; }
@media (max-width: 1199.98px) { .t-home #promise { background-image: url(/assets/img/bd-promise-1200.webp) !important; } }
.t-home #promise::before { background: rgba(26, 23, 22, .45); }
.t-home #promise > .wrap { width: 100%; margin: 0; }
.t-home #promise .sc-tt, .t-home #promise h2 { margin: 0 auto !important; padding: 0 !important; position: relative; }
.t-home #promise h2::before { position: absolute !important; left: 50%; bottom: 100%; transform: translate(-50%, -.15em); margin: 0 !important; }
.t-home #promise .sc-tag, .t-home #promise .sec-tag, .t-home #promise [class*="tag"] { display: none !important; }
.t-home #promise h2 .sc-tt__em { font-weight: 400 !important; } /* 아랫줄도 굵게 하지 않음(사용자 지정 2026-12-01) */
@media (max-width: 767.98px) { .t-home #promise { aspect-ratio: auto; min-height: 0; height: 340px; } } /* 좁은 화면은 비율 대신 높이 고정 — 비율+최소 높이 때문에 폭이 화면보다 넓어지던 것 */
.t-home #promise { aspect-ratio: 3840 / 899; } /* 위쪽 어두운 천장을 잘라 낸 비율(사용자 지정 2026-12-01 "위에 까만 거 보인다") */
@media (max-width: 767.98px) { .t-home #promise { aspect-ratio: auto; } }
@media (min-width: 768px) { .t-home #promise { min-height: 0; width: 100%; } } /* 비율 + 최소 높이 때문에 폭이 화면보다 넓어지지 않게 */
.t-home #promise { background-position: center bottom !important; } /* 화면 비율이 달라 잘릴 때도 아래(바닥)까지는 보이게(사용자 지정 2026-12-01 "아래쪽은 까만 거 나오기 전까지") */
.t-home #related-guides { background: #f4f3f1 !important; } /* 둘러보기·수원 피부관리 순서를 바꾸며(2026-12-01) 베이지 수원 피부관리와 이웃 — 같은 색이 붙지 않게 연회색 */

/* 제모 첫 섹션 사진(HR-B-03, 16:9 원본) — 인물이 왼쪽 끝이라 16:10 칸에서 왼쪽 기준으로 자른다(2026-12-01) */
#intro img[src*="stock-intro-hair-removal"] { object-position: 0% 50%; }

/* ══ 메인 둘러보기 ↔ 수원 피부관리 배경 맞바꿈(사용자 지정 2026-12-01) — 둘러보기 = 베이지 #EDE6DE + 짙은 글자, 수원 피부관리 = 짙은 갈색 #2F2A28 + 흰 글자 ══ */
.t-home #tour.gl-sec { background: #ede6de !important; color: #3c3c3c; }
.t-home #tour.gl-sec h2.gl__h { color: #2a2a2a !important; text-shadow: none; }
.t-home #tour.gl-sec :is(.gl__h1, .gl__lead, p) { color: #3c3c3c !important; }
.t-home #about.lm-sec { background: #2f2a28 !important; color: #ddd8d1; }
.t-home #about.lm-sec :is(h2.lm__h, .lm__h, .lm__t) { color: #fff !important; }
.t-home #about.lm-sec :is(.lm__h1, .lm__lead) { color: #e7e1da !important; }
.t-home #about.lm-sec .lm__d { color: #d8d2cb !important; opacity: 1; }
.t-home #about.lm-sec .lm__no::before { border-color: #c5a059 !important; }
.t-home #about.lm-sec .lm__no span { color: #fff !important; }
.t-home #about.lm-sec :is(.lm__cell, .lm__cell:nth-child(n)) { border-color: rgba(255, 255, 255, .16) !important; }
.t-home #about.lm-sec :is(.lm__star, .lm__star::before, .lm__star::after) { color: #c5a059; }
.t-home #related-guides { background: #ede6de !important; } /* 수원 피부관리(짙은 갈색) 다음 — 다시 베이지 */
/* 둘러보기 캐러셀 — 세로 사진도 틀을 꽉 채우게 확대(양옆 검은 받침 없음, 사용자 지정 2026-12-01). 위아래가 잘리므로 가운데보다 조금 아래(바닥·가구 쪽) 기준 */
.gl__card img.is-portrait { object-fit: cover !important; object-position: 50% 58%; }
.gl__stage { background: #2f2a28; }
/* bd-care-1은 사진 자체 왼쪽 5%가 어두움 — 이 사진만 6% 넓혀 왼쪽으로 밀어 가림(2026-12-01) */
.gl__card img[src*="/bd-care-1"] { width: 106% !important; max-width: none !important; margin-left: -6%; }
/* 하위 페이지 진료 안내 카드 — 장 수(4·5)와 상관없이 한 줄에 고르게(사용자 지정 2026-12-01). 좁은 화면은 기존 배치 */
@media (min-width: 900px) { body:not(.t-home) #related-guides .sc-gc__list { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; } body:not(.t-home) #related-guides .sc-gc__list > li { grid-column: auto !important; width: auto !important; max-width: none !important; } }

/* 짙은 갈색 두 섹션에 무늬(사용자 지정 2026-12-01 "무늬 없으니 밋밋해 — 아카이브에서") — 보관함 D:/stock-images/common/section-bg/dark-abstract. 색은 지금 #2F2A28 막을 덮어 톤 유지 */
.t-home #about.lm-sec { background: linear-gradient(rgba(47, 42, 40, .82), rgba(47, 42, 40, .82)), #2f2a28 url(/assets/img/stock-bg-about-tex.webp) center / cover no-repeat !important; }
@media (max-width: 959.98px) { .t-home #about.lm-sec { background-image: linear-gradient(rgba(47, 42, 40, .82), rgba(47, 42, 40, .82)), url(/assets/img/stock-bg-about-tex-960.webp) !important; } }
.sc-l3 { background: linear-gradient(rgba(47, 42, 40, .8), rgba(47, 42, 40, .8)), #2f2a28 url(/assets/img/stock-bg-contact-tex.webp) center / cover no-repeat !important; }
@media (max-width: 959.98px) { .sc-l3 { background-image: linear-gradient(rgba(47, 42, 40, .8), rgba(47, 42, 40, .8)), url(/assets/img/stock-bg-contact-tex-960.webp) !important; } }

/* 푸터 배경 — 2026-12-01 사용자 선택 Pexels 15251653(어두운 방 탁자 위 잎가지 유리병·흰 화병). 물건이 오른쪽이라 왼쪽 정보 글자 쪽만 더 어둡게(옛 stock-fo-bg 마른 갈대를 대체). 장식이라 JSON-LD·og 제외 */
.sc-ft1.ft { background: linear-gradient(90deg, rgba(14, 12, 11, .86) 0%, rgba(14, 12, 11, .66) 45%, rgba(14, 12, 11, .38) 100%), #0e0c0b url("/assets/img/stock-fo-bg-still.webp") center / cover no-repeat; } /* 사진은 _build/tools/footer-vase.py로 만든 1920×344(화병 둘을 글자와 로고 사이에 통째로) */
@media (max-width: 767.98px) { .sc-ft1.ft { background-image: linear-gradient(rgba(14, 12, 11, .76), rgba(14, 12, 11, .76)), url("/assets/img/stock-fo-bg-still-800.webp"); background-position: center, center; } }

/* 무늬는 사용자 선택(2026-12-01 무늬 고르기 페이지 3번·10번): 수원 피부관리 = pexels-6138030 white-liquid-in-water, 진료 문의 = unsplash--gWSFS8rrVg black-and-white abstract */
/* 푸터 — 더 어둡게(사용자 지정 2026-12-01): 정물 사진 위 막을 왼쪽 .82→.92, 가운데 .6→.86, 오른쪽 .25→.7 — 사진은 위 P08(stock-fo-bg-still)로 바꿈 */
.sc-ft1.ft { background-image: linear-gradient(90deg, rgba(10, 10, 9, .92) 0%, rgba(10, 10, 9, .86) 45%, rgba(10, 10, 9, .7) 100%), url("/assets/img/stock-fo-bg-still.webp") !important; }
@media (max-width: 767.98px) { .sc-ft1.ft { background-image: linear-gradient(rgba(10, 10, 9, .88), rgba(10, 10, 9, .88)), url("/assets/img/stock-fo-bg-still-800.webp") !important; } }

/* 메인 #about 강점 4칸 — 2×2(사용자 지정 2026-12-01 "김앤케이처럼 표 줄이 바깥에도 이어지도록 하고 2X2로").
   kimnklaw.kr .lm__grid.n-5 방식 그대로: 양끝 칸에서 바깥으로 50vw 선을 이어 화면 끝까지. 선 색은 칸 테두리 색을 물려받음(inherit) */
@media (min-width: 900px) {
  .lm__grid.n-4 .lm__cell { grid-column: span 3; }
  .lm__grid.n-4 .lm__cell:nth-child(-n+2) { border-bottom: 1.5px solid rgba(200, 196, 191, .34); }
  .lm__grid.n-4 .lm__cell:nth-child(3) { border-right: 0; }
  .lm__grid.n-4 .lm__cell:nth-child(even) { border-right: 1.5px solid rgba(200, 196, 191, .34); }
  .lm__grid.n-4 .lm__cell:nth-child(odd)::before, .lm__grid.n-4 .lm__cell:nth-child(even)::after {
    content: ""; position: absolute; width: 50vw; border-top: 1.5px solid; border-bottom: 1.5px solid; border-color: inherit; pointer-events: none; }
  .lm__grid.n-4 .lm__cell:nth-child(odd)::before { right: calc(100% + 1.5px); }
  .lm__grid.n-4 .lm__cell:nth-child(even)::after { left: 100%; }
  .lm__grid.n-4 .lm__cell:nth-child(-n+2)::before, .lm__grid.n-4 .lm__cell:nth-child(-n+2)::after { top: -1.5px; bottom: -1.5px; }
  .lm__grid.n-4 .lm__cell:nth-child(n+3)::before, .lm__grid.n-4 .lm__cell:nth-child(n+3)::after { top: 0; bottom: -1.5px; border-top: 0; } /* 가운데 가로선은 위 칸이 그림 — 두 줄로 겹치지 않게 */
}
@media (max-width: 899.98px) { .lm__grid.n-4 .lm__cell:nth-child(n) { grid-column: auto; border-right: 0; } }
@media (min-width: 600px) and (max-width: 899.98px) {
  .lm__grid.n-4 .lm__cell:nth-child(odd) { border-left: 0; }
  .lm__grid.n-4 .lm__cell:nth-child(even) { border-left: 1.5px solid rgba(200, 196, 191, .34); }
  .lm__grid.n-4 .lm__cell:nth-child(3) { border-bottom: 0; }
}
@media (max-width: 599.98px) { .lm__grid.n-4 .lm__cell:nth-child(n) { border-left: 0; } }
/* 메인 의료진 사진 링크(→ ABOUT BD) — 사진이 absolute라 링크가 사진 칸 전체를 덮게(2026-12-01) */
.dy__ph .dy__phlink { position: absolute; inset: 0; z-index: 1; display: block; cursor: pointer; }
.dy__ph .dy__phlink:focus-visible { outline: 3px solid #c5a059; outline-offset: -3px; }
/* 진료시간 표 + 오른쪽 지도(2026-12-02 사용자 지정) — 넓은 화면 2단, 지도는 표 높이에 맞춰 채움 / 좁은 화면은 표 아래 지도 */
#hours .hm { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); width: 100%; max-width: 1080px; margin-inline: auto; }
#hours .hm .hours-box { margin: 0 !important; max-width: none !important; width: 100%; }
#hours .hm-map { display: block; position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: #ece6df; }
#hours .hm-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
#hours .hm-map:focus-visible { outline: 3px solid #c5a059; outline-offset: 3px; }
@media (min-width: 900px) {
  #hours .hm { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
  #hours .hm-map { aspect-ratio: auto; min-height: 360px; }
}
#hours .hm-map { border-radius: 16px; border: 1px solid #dcd6cf; box-shadow: 0 18px 40px -24px rgba(47,42,40,.35); }
/* 진료안내 + 오시는 길 합친 섹션(2026-12-02) — 지도 칸 아래 주소·길찾기·교통 표 */
#hours .hm + .loc-dy { width: 100%; max-width: 1080px; margin: clamp(36px, 4vw, 48px) auto 0; }
#hours .loc-dy .loc-map:not(:has(.loc-map__link)) { margin: 0; }
#hours .hm-box { border-radius: 16px; border: 1px solid #dcd6cf; box-shadow: 0 18px 40px -24px rgba(47,42,40,.35); }
#hours .hm-box .hm-map { border: 0; box-shadow: none; border-radius: 0; height: 100%; }
@media (max-width: 719.98px) { #hours .hm-box { border: 0; box-shadow: none; } #hours .hm-box .hm-map { border-radius: 12px; height: auto; } }
#hours table.hours .hr-sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: #6b635d; }
/* 메인 의료진 섹션 제목(2026-12-02) — 다른 섹션 제목과 같은 자리·간격 */
#doctor .dy-tt { margin-bottom: clamp(36px, 4vw, 56px); }
#doctor h3.dy__name { font-family: var(--ff-serif); font-weight: 600; } /* 제목 아래로 내려 h3가 돼도 이름은 명조 그대로(2026-12-02) */
/* 교통 안내 색 뱃지(2026-12-02 사용자 지정) — 경기 버스 종류 색 · 수인분당선 노선 색, 흰 글자 대비 4.5:1 넘게 조금 진하게 */
.bus-b--general { background: #23782b; } /* 경기 일반 시내버스 초록 */
.bus-b--express { background: #c8202a; } /* 경기 직행좌석 빨강 */
.line-b { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.5; vertical-align: 1px; }
.line-b--suin { background: #f5a200; color: #2a2118; } /* 수인분당선 노랑(노선 색) — 노랑 위 흰 글자는 대비가 낮아 짙은 글자 */
/* 뱃지 글자 작게·가늘게(2026-12-02 사용자 지정 "텍스트 너무 크고 볼드 제거") */
#hours :is(.bus-b, .line-b) { font-size: 12px; font-weight: 500; padding: 1px 9px; line-height: 1.6; }
#hours .bus-b { min-width: 3em; }
/* 길찾기 버튼 — 짙은 갈색 → 흰 알약(지도 위에서 덜 강렬하게), 아이콘은 실제 브랜드 색(2026-12-02 사용자 지정) */
.loc-map__btn { background: rgba(255, 255, 255, .96); color: #2f2a28; font-weight: 500; border: 1px solid #ddd5cc; box-shadow: 0 6px 18px rgba(53, 42, 32, .14); }
.loc-map__btn:hover, .loc-map__btn:focus-visible { background: #fff; color: #2f2a28; border-color: #b9ada0; }
.loc-map__ic--naver { color: #03c75a; } /* 네이버 초록 */
.loc-map__ic--kakao { color: #ffcd00; } /* 카카오맵 노랑 핀 */
.loc-map__ic--kakao svg path { stroke: #c9a400; stroke-width: .6; }
.loc-map__ic--kakao circle { fill: #3c1e1e; }
/* 뱃지 글자 상하 가운데(2026-12-02) — 높이 고정 + flex 가운데, 줄 높이 1 */
#hours :is(.bus-b, .line-b) { display: inline-flex; align-items: center; justify-content: center; height: 21px; padding: 0 9px; line-height: 1; vertical-align: middle; box-sizing: border-box; }
#hours .bus-l { align-items: center; }
/* 길찾기 버튼 — 교통 표 머리 칸과 같은 색, 테두리 없음, 호버 때 살짝 떠오르고 조금 짙어짐(2026-12-02 사용자 지정) */
.loc-map__btn { background: #efe9e1; border: 0; box-shadow: 0 6px 16px rgba(53, 42, 32, .12); transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.loc-map__btn:hover, .loc-map__btn:focus-visible { background: #e6ddd2; border: 0; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(53, 42, 32, .2); }
@media (prefers-reduced-motion: reduce) { .loc-map__btn:hover { transform: none; } }
.loc-map__btn { background: #e3d8cb; } /* 지도와 구분되게 한 단계 진하게(2026-12-02) */
.loc-map__btn:hover, .loc-map__btn:focus-visible { background: #d8cbbb; }
/* 헤더 로고는 본문 칸보다 바깥(왼쪽)으로, 메뉴는 가운데에서 살짝 오른쪽으로(2026-12-02 사용자 지정) */
@media (min-width: 900px) {
  .sc-hd.hdx.dyh .sc-hd__in { max-width: 1760px !important; padding-inline: clamp(24px, 4vw, 72px) !important; }
  .sc-hd.hdx.dyh .sc-hd__nav { position: relative; left: clamp(24px, 3vw, 56px); }
}
/* 메뉴·퀵바 앵커(#doctor·#hours)로 왔을 때 섹션 위 여백이 커서 제목이 너무 아래 — 제목이 헤더 아래 약 56px(폰 36px)에 오게(2026-12-02 사용자 지정) */
.t-home main > section#doctor { scroll-margin-top: -2px !important; }
.t-home main > section#hours { scroll-margin-top: -73px !important; }
@media (max-width: 899.98px) {
  .t-home main > section#doctor { scroll-margin-top: 2px !important; }
  .t-home main > section#hours { scroll-margin-top: -14px !important; }
}

/* about 히어로 — 하위 페이지(ai-hero 무늬) 머리와 같은 밝은 톤·검은 글자·타원 아래끝(사용자 지정 2026-12-02 "about도 다른 하위페이지들과 동일하게 히어로 … 밝기도 더 비슷한 톤, 텍스트도 검은색"). 실사라 크림 막을 무늬보다 짙게 */
.t-about .page-head--yq .page-head-photo { background: #f4f3f1; }
.t-about .page-head--yq .page-head-photo::after { background: rgba(244, 243, 241, .62) !important; }
.t-about .page-head--yq h1 { color: #2f2a28 !important; text-shadow: 0 1px 18px rgba(255, 255, 255, .7); }
.t-about .page-head--yq .ph-tagline { color: #76614a !important; text-shadow: none; }
.t-about main .page-head--yq { height: clamp(480px, 76vh, 760px) !important; min-height: 0 !important; clip-path: ellipse(115% 100% at 50% 0); }
@media (max-width: 767.98px) { .t-about main .page-head--yq { height: 480px !important; clip-path: ellipse(170% 100% at 50% 0); } }
/* 모바일 메뉴 — BD CLINIC 하위 메뉴를 처음부터 펼쳐 아래로, 아이콘 없이(2026-12-02 사용자 지정) */
.sc-mm__grp { padding: 14px 0 10px; }
.sc-mm__grp-t { display: block; padding: 0 20px 6px; font-size: 16.5px; font-weight: 700; color: var(--sc-ink, #2f2a28); }
.sc-mm__grp-list { margin: 0; padding: 0; list-style: none; }
.sc-mm__grp-list a { display: flex; align-items: center; min-height: 44px; padding: 0 20px 0 34px; font-size: 15px; font-weight: 500; color: #5c5550; text-decoration: none; }
.sc-mm__grp-list a::before { content: ""; width: 6px; height: 1px; margin-right: 10px; background: currentColor; opacity: .6; }
.sc-mm__grp-list a:hover, .sc-mm__grp-list a:focus-visible { background: var(--sc-hover, #f4f3f1); color: #2f2a28; }
/* 둘러보기 장수(4/10) — 모바일에서 밝은 사진 위에 묻혀 흰 알약 + 짙은 글자로(2026-12-02 사용자 지정 "하얗게") */
.sc-js .gl__count { background: rgba(255, 255, 255, .92) !important; color: #2f2a28 !important; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
/* 모바일 퀵바 — 김앤케이(kimnklaw.kr)처럼 화면 맨 아래 폭 전체 전화 상담 버튼 + 그 위 오른쪽 + 단추, 누르면 길찾기·오시는 길(2026-12-02 사용자 지정) */
.lq__num { display: none; }
@media (max-width: 899.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .lq { top: auto; right: 0; bottom: 0; left: 0; transform: none; display: flex; align-items: stretch; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-radius: 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 -4px 18px rgba(47, 42, 40, .1); }
  .lq__list { display: contents; }
  .lq__item:nth-child(1) { flex: 1 1 auto; opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto; }
  .lq__item:nth-child(1) .lq__a { flex-direction: row; gap: 8px; width: 100%; height: 52px; border-radius: 14px; background: #76614a; color: #fff; box-shadow: none; }
  .lq__item:nth-child(1) .lq__ic { width: 20px; height: 20px; color: #fff; }
  .lq__item:nth-child(1) .lq__lb { font-size: 16px; font-weight: 600; }
  .lq__item:nth-child(1) .lq__num { display: inline; font-size: 16px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
  .lq__toggle { position: absolute; right: 14px; bottom: calc(100% + 14px); order: 0; display: grid; place-items: center; width: 56px; height: 56px; }
  .lq__toggle .lq__ic { width: 24px; height: 24px; }
  .lq__item:nth-child(n+2) { position: absolute; right: 14px; }
  .lq__item:nth-child(2) { bottom: calc(100% + 14px + 66px + 66px); }
  .lq__item:nth-child(3) { bottom: calc(100% + 14px + 66px); }
  .lq:not(.is-open) .lq__item:nth-child(n+2) { pointer-events: none; }
}
/* 둘러보기 포커스 테두리 — 흰색은 베이지 바탕에 묻혀(1.24:1) 짙은 갈색으로(2026-12-02 검수 R-19, 사용자 지정) */
.gl__th:focus-visible, .gl__track:focus-visible { outline-color: #2f2a28 !important; }
/* 첫 페이지에서만 헤더·퀵바 등장 효과 — 같은 창에서 다른 페이지로 옮기면(sessionStorage bd-seen → html.sc-seen) 처음부터 그 자리에 그대로(2026-12-02 사용자 지정) */
html.sc-js.sc-seen body .sc-hd, html.sc-js.sc-seen body .lq, html.sc-js.sc-seen body .lq__item { animation: none !important; }
/* 하위 페이지 히어로 아래 첫 섹션의 로고 워터마크 제거(2026-12-02 사용자 지정) */
.yq-intro::before { content: none !important; display: none !important; }
#naver-carousel ul li a .desc { padding: 0 0 1rem; font-size: .875rem; line-height: 1.5; text-align: center; color: #555; } /* 카드 한 줄(ItemList description) — 2026-12-02 */

/* 고르기 카드 안 기기 설명·주의사항(사용자 지정 2026-12-02 "나열된 거 중앙정렬만 되어 있어 이상해 … 이런 데 포함시켜") — 글은 늘 왼쪽 정렬, 영어 라벨 → 제목 → 설명 → 주의사항 칸 */
.yq-zz__row.has-more { align-items: start; }
.yq-zz__row.has-more .yq-zz__tx, .yq-zz__row.is-rev.has-more .yq-zz__tx { text-align: left; }
.yq-zz__en, .yq-row__en { margin: 0 0 10px; font-family: var(--ff-en) !important; font-size: clamp(13px, .95vw, 15px); letter-spacing: .12em; color: #76614a; }
.yq-zz__row.has-more .yq-zz__d + .yq-zz__d { margin-top: 10px; }
.yq-care { margin-top: clamp(20px, 2vw, 28px); padding: clamp(18px, 1.8vw, 24px) clamp(18px, 2vw, 28px); background: #f4f3f1; border-left: 2px solid #c5a059; }
.yq-care__t { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; color: #2f2a28; }
.yq-care__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yq-care__l li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.7; color: var(--yq-muted); word-break: keep-all; }
.yq-care__l li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: #c5a059; }
.yq-zz--r .yq-zz__ph img, .yq-zz--r .yq-zz__ph .yq-slot { aspect-ratio: var(--zz-r, 4/3); }
/* 사진 없는 목록 — 왼쪽 이름 / 오른쪽 설명, 줄로 나눔 */
.yq-rows { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; border-top: 1.5px solid rgba(47, 42, 40, .2); }
.yq-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); padding: clamp(32px, 3.6vw, 52px) 0; border-bottom: 1px solid rgba(47, 42, 40, .12); }
.yq-row__t { margin: 0; font-family: var(--ff-serif) !important; font-size: clamp(20px, 1.7vw, 26px) !important; font-weight: 700; color: #222; letter-spacing: -.02em; }
.yq-row__d { margin: 0; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.85; color: var(--yq-muted); word-break: keep-all; }
.yq-row__d + .yq-row__d { margin-top: 10px; }
.yq-rows-sec .yq-care { background: #fff; }
@media (max-width: 899.98px) { .yq-row { grid-template-columns: 1fr; gap: 14px; } }
/* 헤더는 스크롤·메뉴 열림·포커스와 상관없이 늘 첫 화면 모양(반투명 짙은 갈색 + 흰 글자·흰 로고) — 2026-12-02 사용자 지정 "모든 페이지 navbar 스크롤 내려도 하얗게 하지 말고, 로고 색도 그대로" */
/* 내린 뒤엔 같은 색 막 뒤로 본문 글자가 비쳐 지저분해 — 색은 그대로 두고 뒤만 흐리게(2026-12-02) */
.sc-hd.hdx.dyh--tr.is-scrolled { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }

/* 시술 페이지 섹션 제목 크기를 하나로 — 기기 고르기 제목(.yq-head--serif .yq-h)에 맞춤 (사용자 지정 2026-12-02 "이런거 폰트크기 '내 얼굴의 고민에 맞춰 고르는 수원 리프팅 기기' 이거에 맞춰. 리프팅~제모 4개페이지") */
.t-article main :is(h2.yq-intro__h, h2.yq-h, h2.dy-h, h2.sc-tt__h) { font-size: clamp(26px, 2.6vw, 38px) !important; }
/* 기기 설명 칸(has-more) 사진은 오른쪽 글 높이 기준 위아래 가운데(2026-12-02 사용자 지정) — 글은 왼쪽 정렬 그대로 */
.yq-zz__row.has-more { align-items: center; }
/* 분야 페이지 첫 제목 — 윗줄 볼드 없이, 아랫줄은 한 단계 가볍게(2026-12-02 사용자 지정) */
main h2.yq-intro__h .yq-intro__h-a { font-weight: 400 !important; }
main h2.yq-intro__h .yq-intro__h-b { font-weight: 600 !important; }
/* 분야 페이지 두 줄 섹션 제목(yq-h) — 윗줄·아랫줄 같은 굵기로(2026-12-02 사용자 지정 "볼드로 맞춰 위아래") */
/* (되돌림 2026-12-02: 윗줄은 가늘게 400, 아랫줄 600 — 사용자 "위에 볼드는 내려야해") */
/* ABOUT BD 첫 섹션 — 분야 페이지 첫 제목과 같은 크기·굵기, 본문도 같은 크기·색(2026-12-02 사용자 지정) */
main h2.yq-intro__h { font-size: clamp(26px, 2.6vw, 38px) !important; }
.t-about main h2.yq-intro__h { font-weight: 600 !important; }
.t-about .yq-intro :is(.yq-intro__sub, .yq-intro__lead) { color: rgb(97, 92, 89); }
/* 분야 페이지 히어로 아래 첫 섹션 문단 사이 — ABOUT BD와 같은 18px(2026-12-02 사용자 지정, 36줄 "줄바꿈 간격과 같게"를 대체) */
.yq-intro__lead + .yq-intro__lead, .yq-intro__sub + .yq-intro__lead { margin-top: 18px; }
.yq-intro__sub + .yq-intro__sub { margin-top: 18px; }
/* 분야 페이지 주의사항(AFTER CARE·제모 caution) ↔ 진료 안내 배경 맞바꿈(2026-12-02 사용자 지정) — 흰 주의사항 상자가 연회색 위에서 잘 안 보여 베이지로, 진료 안내는 연회색 */
.t-article main section.sec.sec.sec:is(#aftercare, #caution) { background: #ede6de !important; } /* dy-soft 규칙(1,3,2)보다 세게 */
.t-article #related-guides { background: #f4f3f1 !important; }
.t-article main section.sec.sec.sec:is(#aftercare, #caution) :is(li, .dy-soft__item) { background: #fff !important; } /* 주의사항 상자 흰색 불투명(베이지 위에서 또렷하게) */
/* 분야 페이지 섹션 여백 리듬 맞춤(2026-12-02 검수 R-16, 사용자 지정) — 비교표·(레이저)과정은 다른 흰 섹션과 같은 170/50(폰 96/24), 주의사항(베이지)은 위아래 130(폰 80) */
.t-article main section.sec.sec#compare, .t-article main section.sec.sec#process.dy-sec { padding-top: clamp(96px, 11.8vw, 170px) !important; padding-bottom: clamp(24px, 3.5vw, 50.4px) !important; }
.t-article main section.sec.sec.sec:is(#aftercare, #caution) { padding-top: clamp(80px, 9vw, 129.6px) !important; padding-bottom: clamp(80px, 9vw, 129.6px) !important; }
/* 메인 둘러보기·소개 섹션 제목 윗줄 굵기 400으로 통일(R-32) */
.t-home main h2 :is(.gl__h1, .lm__h1, .h2-sub) { font-weight: 400 !important; }
/* 분야 페이지 두 줄 제목 — 줄마다 고르게 나눠 끝에 낱말 하나만 남지 않게(R-25) */
.t-article main h2 > span:is(.yq-intro__h-a, .yq-intro__h-b, .yq-h__pre, .yq-h__main, .sc-tt__pre, .sc-tt__em) { display: block; text-wrap: balance; }
.t-article main h2 > span + br { display: none; }
html body.t-article main section.sec.sec.sec:is(#aftercare, #caution) { padding-top: clamp(80px, 9vw, 129.6px) !important; } /* 흰 섹션 잇기 규칙(4088)보다 세게 — 레이저 주의사항도 베이지 섹션 여백 */
html body.t-article main section.sec.sec#compare + section#process { padding-top: clamp(96px, 11.8vw, 170px) !important; } /* 레이저: 비교표 → 과정 사이도 다른 페이지처럼 */
/* 4088 규칙은 :not(#faq) 때문에 아이디 2개 무게 — 아이디를 겹쳐 더 세게 */
html body.t-article main section.sec.sec.sec#aftercare#aftercare, html body.t-article main section.sec.sec.sec#caution#caution { padding-top: clamp(80px, 9vw, 129.6px) !important; }
html body.t-article main section.sec.sec#compare + section#process#process { padding-top: clamp(96px, 11.8vw, 170px) !important; }
/* 분야 페이지 안내 카드 글자(2026-12-02 사진만 → 제목·한 줄 보이게) — ABOUT과 같은 짙은 갈색 */
.t-article #related-guides a.sc-gc__card, .t-article #related-guides a.sc-gc__card:hover, .t-article #related-guides .sc-gc__t { color: #2f2a28 !important; }
.t-article #related-guides .sc-gc__d { color: #5c5550 !important; }
/* 메인 둘러보기·소개 제목 윗줄 400(기존 500 !important 규칙보다 세게) */
.t-home main .gl-sec .gl__h .gl__h1, .t-home main .lm-sec .lm__h .lm__h1 { font-weight: 400 !important; }
/* 주의사항 등 dy 제목 두 줄(2026-12-02) — 윗줄 400·아랫줄 600, 다른 두 줄 제목과 같게 */
main h2.dy-h > .dy-h__a, main h2.dy-h > .dy-h__b { display: block; text-wrap: balance; }
main h2.dy-h > .dy-h__a { font-weight: 400 !important; }
main h2.dy-h > .dy-h__b { font-weight: 600 !important; }
/* 주의사항 상자 — 글 왼쪽 정렬 + 앞에 동그라미 체크 아이콘(2026-12-02 사용자 지정) */
.dy-soft .dy-bars li { position: relative; display: flex; align-items: flex-start; gap: 14px; text-align: left !important; padding: 16px 24px 16px 20px; }
.dy-soft .dy-bars li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: calc((1.7em - 24px) / 2); border-radius: 50%; background: #76614a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 719.98px) { .dy-soft .dy-bars li { padding: 14px 16px 14px 14px; gap: 10px; } .dy-soft .dy-bars li::before { width: 22px; height: 22px; background-size: 14px; margin-top: calc((1.7em - 22px) / 2); } }
/* 위 flex는 안의 <span class="nw">를 따로 칸으로 떼어 글이 쪼개짐 → 아이콘은 absolute, 글은 그대로 흐르게 */
.dy-soft .dy-bars li { display: block; padding-left: 58px; }
.dy-soft .dy-bars li::before { position: absolute; left: 20px; top: calc(16px + (1.7em - 24px) / 2); margin-top: 0; }
@media (max-width: 719.98px) { .dy-soft .dy-bars li { padding-left: 46px; } .dy-soft .dy-bars li::before { left: 14px; top: calc(14px + (1.7em - 22px) / 2); margin-top: 0; } }
/* 404 일러스트 — 김앤케이와 같은 크기(2026-12-02) */
.t-404 .nf-ill { margin: 0 auto clamp(8px, 1.2vw, 14px); max-width: min(240px, 62vw); }
.t-404 .nf-ill img { display: block; width: 100%; height: auto; }
/* 404 — 헤더가 늘 고정(덧씌움)이 되어 일러스트 윗부분이 가려짐 → 헤더 높이만큼 더 띄움(2026-12-02) */
.t-404 main .page-head { padding-top: calc(72px + 8px) !important; }
@media (max-width: 899.98px) { .t-404 main .page-head { padding-top: calc(64px + 8px) !important; } }
/* ══ 배포 전 디자인 검수 반영(2026-12-02) ══ */
/* PC 오른쪽 퀵바 캡슐 자리 비우기 — 캡슐 오른쪽 여백 + 폭 98px + 띄움 16px, 좌우 같은 폭으로 비워 가운데 유지(헤더는 그대로) */
@media (min-width: 1025px) {
  main, .sc-ft1 {
    --lq-safe: calc(clamp(14px, 2.2vw, 40px) + 114px);
    --wrap: min(1320px, calc(100vw - 2 * var(--lq-safe)));
    --sc-container: calc(var(--wrap) + 2 * var(--gutter));
  }
  main #related-guides > .wrap { max-width: min(1680px, calc(100vw - 2 * var(--lq-safe))) !important; }
}
/* 문의 띠 "진료 문의" 제목 — 다른 제목처럼 명조 */
.sc-l3 .sc-l3__h { font-family: var(--ff-serif); font-weight: 600; letter-spacing: -.02em; }
/* 좁은 폰 안내 카드 제목 — 붙여 둔 덩어리가 칸 밖으로 넘치지 않게 */
@media (max-width: 480px) { .sc-gc__t .nw { white-space: normal; word-break: keep-all; } } /* 2026-12-02 재검수: break-all은 낱말 중간에서 쪼개져 keep-all로 */
/* 다듬기 */
#peels-h { text-wrap: balance; }
.ft__privacy { display: inline-block; padding-block: 10px; }
.tf .table-wrap { overscroll-behavior-x: contain; }
/* ══ 전체 재검수 반영(2026-12-02) ══ */
/* 분야 페이지 폰 안내 카드 — 2열(161px)이라 제목·설명이 쪼개짐 → ABOUT·404와 같은 가로 밀기 카드 */
@media (max-width: 899.98px) {
  .t-article #related-guides .sc-gc__list { display: flex !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-left: var(--gutter); }
  .t-article #related-guides .sc-gc__list > li { flex: 0 0 min(76%, 300px) !important; width: auto !important; grid-column: auto !important; justify-self: auto !important; scroll-snap-align: start; }
}
/* 안내 카드 설명 — 줄 수 제한으로 문장 끝이 잘리지 않게(높이는 같은 줄 칸이 맞춰 줌) */
#related-guides .sc-gc__d { display: block !important; height: auto !important; -webkit-line-clamp: unset !important; line-clamp: none; overflow: visible !important; }
/* 메인 히어로 문구 — 밝은 조명 띠 위에서도 읽히게 그림자 */
.bdi__sub { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .35); }
/* 분야 페이지 진료 안내·FAQ 위아래 여백 — 주의사항과 같은 리듬 */
.t-article main #related-guides.sec { padding-block: clamp(80px, 9vw, 129.6px) !important; }
.t-article main #faq.sec { padding-block: clamp(80px, 9vw, 129.6px) !important; }
/* <<< yq.css */
