/* 365자인한의원 — 단일 스타일시트(빌드 틀: 서울365추나관한의원에서 복사, 2026-12-03). 옛 머리말: (빌드 틀: 수월한의원에서 복사, 2026-11-23).
   색: 기획안 지정 — 메인 청록 #5DB0AF(아이콘·강조선), 버튼 #226763(흰 글자), 글자 #263735, 보조 바탕 민트(기획안 #EEF7F6을 흰색과 1.12:1 이상 되게 한 단계 짙게 — site-build 9).
   글꼴: Pretendard 하나 (fonts.css). 명조·손글씨 금지.
   섹션 배경: 빌드가 white → ivory → white … 로 번갈아 넣고 FAQ는 sand. 카드는 섹션과 반대 톤.
   레이아웃 흔들림 금지: 이미지·빈 자리는 aspect-ratio/width·height로 자리 고정, 버튼은 min-width 고정. */

:root {
  --deep-950: #11302e;   /* 푸터 */
  --deep-900: #17423f;   /* 상단 띠 */
  --deep-800: #226763;   /* 기본 짙은 바탕·버튼 — 기획안 버튼 색 */
  --deep-700: #2b7d78;
  --deep-500: #1f6460;   /* 밝은 바탕 위 강조 글자 (흰색·민트 틴트 위 4.5:1 이상) */
  --accent-300: #d4eeed;   /* 짙은 바탕 위 밝은 강조 */
  --accent-400: #8fd3d1;  /* 짙은 바탕 위 강조 글자·버튼 — 메인 청록 밝힌 값 */
  --accent-500: #5db0af;  /* 기획안 메인 색 — 아이콘·강조선(글자에는 쓰지 않음) */
  --white: #ffffff;
  --ivory: #eef7f6;       /* 고객 지정 보조 바탕(decisions 12). 샘플 원래 주석: 민트 틴트 — 2026-11-24 사용자 "섹션 배경 너무 진해"로 옅게(옛 #e5f2f0) */
  --sand: #f0f7f5;        /* FAQ·강조 섹션 — 한 단계 짙은 민트(2026-11-24 옅게, 옛 #d6ebe8) */
  --ink: #263735;         /* 본문 글자 — 기획안 지정 */
  --muted: #4b5d5b;       /* 보조 글자 */
  --on-dark: #f3faf9;
  --on-dark-muted: #c3dcd9;
  --line: #cfe2df;
  --slot: rgba(34, 103, 99, .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(14, 36, 35, .86) 0%, rgba(14, 36, 35, .74) 45%, rgba(14, 36, 35, .30) 100%),
    linear-gradient(0deg, rgba(14, 36, 35, .50) 0%, rgba(14, 36, 35, 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(143, 211, 209, .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(143, 211, 209, .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(14, 36, 35, .86) 0%, rgba(14, 36, 35, .76) 60%, rgba(14, 36, 35, .36) 100%), /* 글 칸 오른쪽 끝(58%)까지 .76 이상 — lead 대비 4.5:1은 design-lint가 잰다 */
  linear-gradient(0deg, rgba(14, 36, 35, .5) 0%, rgba(14, 36, 35, 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(14, 36, 35, .76) 0%, rgba(14, 36, 35, .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(216, 203, 182, .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(34, 103, 99, .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(216, 203, 182, .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(216, 203, 182, .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(17, 48, 46, .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(17, 48, 46, .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(17, 48, 46, .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(14, 36, 35, .76) 0%, rgba(14, 36, 35, .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(17, 48, 46, .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(17, 48, 46, .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) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.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(14, 36, 35, .76) 0%, rgba(14, 36, 35, .84) 100%); }
  .page-head-photo::after { background: linear-gradient(180deg, rgba(14, 36, 35, .76) 0%, rgba(14, 36, 35, .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·강조) 바탕 위 본문 링크 — 강조 갈색(#85622b)은 샌드 대비 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(93, 176, 175, .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: #eef7f6; 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(17, 48, 46, .05), 0 3px 10px rgba(34, 103, 99, .06);
  --shadow-md: 0 2px 4px rgba(17, 48, 46, .04), 0 12px 28px rgba(34, 103, 99, .11);
  --shadow-lg: 0 4px 8px rgba(17, 48, 46, .05), 0 22px 46px rgba(34, 103, 99, .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(34, 103, 99, .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(34, 103, 99, .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(143, 211, 209, .28); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(143, 211, 209, .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(34, 103, 99, .16); box-shadow: none; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.link-card:hover, .link-card:focus-within { background-color: #eef7f6; border-color: rgba(93, 176, 175, .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(17, 48, 46, .32); border: 1px solid rgba(143, 211, 209, .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(143, 211, 209, .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(143, 211, 209, .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(143, 211, 209, .14), transparent 70%),
  radial-gradient(600px 340px at 96% 100%, rgba(200, 155, 86, .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(34, 103, 99, .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(93, 176, 175, .25)); }
.steps li:last-child::after { display: none; }
.steps li::before { z-index: 1; box-shadow: 0 0 0 4px rgba(93, 176, 175, .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(17, 48, 46, .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(93, 176, 175, .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(34, 103, 99, .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(93, 176, 175, .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(17, 48, 46, .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(34, 103, 99, .28);
  --sc-shadow-rgb: 34, 103, 99;
  --sc-shadow-deep-rgb: 17, 48, 46;
  --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: 226, 192, 138;          /* = --sc-accent(#e2bd73) */
  --sc-overlay-rgb: 24, 18, 12;           /* 사진 위 막 = 거의 무채색 짙은 먹색(청록 한 방울) — 테마색 막이면 사진이 초록으로 뭉개짐(사용자 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) 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) */
/* 푸터 로고 — 짙은 바탕 위 흰 판(로고 원본이 짙은 글자) */
.sc-ft1__logo img { width: 230px; height: auto; } /* 글자를 흰색으로 바꾼 로고(logo-white) — 갈색 바탕 위에 흰 상자 없이 (사용자 지정 2026-10-22) */
/* 원장 카드 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(34, 103, 99, .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(10, 28, 27, .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(34, 103, 99, .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(10, 28, 27, .38); }
  .sc-qb--qb2 .sc-qb__t[data-qb="call"]:hover { box-shadow: 0 12px 28px rgba(10, 28, 27, .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); }

/* 오시는 길 지도(카카오 외부 이미지) — 한 칸으로 쌓이는 화면에서 이미지가 오기 전 폭 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(14, 24, 26, .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-25 푸터 정보 줄 — 폰에서는 구분선 없이 한 줄에 한 항목(긴 주소 뒤 구분선만 혼자 줄을 차지하던 것) */
@media (max-width: 767.98px) {
  .sc-ft1__legal { display: block; }
  .sc-ft1__legal > span { display: block; }
  .sc-ft1__legal > span:not(:last-child)::after { display: none; }
}
/* 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: #1f6460는 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 #0a5f86 흰색 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, #1f6460) 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, #1f6460); }

/* 소개 #care: 관리 기준 목록 왼쪽 + "한약 처방" 카드 오른쪽 (사용자 지시 2026-11-02 "한약처방 카드를 오른쪽으로 배치해"). 900px 미만은 위아래 그대로 */
@media (min-width: 900px) {
  #care .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; }
}

/* 스크롤 등장 모양을 요소 종류마다 다르게 (site.js kind(), 사용자 지시 2026-11-03 "스크롤 내릴때 생기는 방식이 너무 일정해. 조금씩 다르게").
   투명도·transform만 바꿔 레이아웃은 그대로. .rv.in(클래스 2개)이 이 규칙(1개)보다 앞서 transform: none으로 돌아온다 */
.rv--head { transform: translateY(12px); transition-duration: .55s, .55s; }
.rv--card { transform: translateY(30px) scale(.965); transition-duration: .75s, .75s; }
.rv--zoom { transform: scale(.95); transition-duration: 1s, 1.1s; transition-timing-function: ease, cubic-bezier(.22, 1, .36, 1); }
/* FAQ는 위에서 아래로 펼쳐지듯 드러난다(사용자 2026-11-03 "faq애니메이션 이상하다 다른거로해줘" — 8px 올라오기는 떨려 보였다). clip-path만 바꿔 자리는 그대로, 다 드러난 뒤에는 그림자가 잘리지 않게 바깥으로 넓힌다 */
.rv--soft, .sc-faq__item.rv--soft { transform: none; clip-path: inset(0 0 100% 0); transition: opacity .5s ease, clip-path .7s cubic-bezier(.22, 1, .36, 1), background-color .3s, box-shadow .3s; } /* sc.css의 .sc-faq__item transition(배경·그림자)이 등장 transition을 덮어써 FAQ가 움직임 없이 툭 나타났다 — 둘 다 쓴다 */
.rv--soft.in { clip-path: inset(-40px); }
@media (prefers-reduced-motion: reduce) { .rv--soft { clip-path: none; } }
.rv--step, .rv--left, .rv--right { transform: translateY(20px); }
@media (min-width: 900px) {
  /* 옆으로 들어오는 움직임은 넓은 화면에서만 — 좁은 화면은 가로 스크롤이 생기지 않게 위로만 */
  .rv--step, .rv--left { transform: translateX(-32px); }
  .rv--right { transform: translateX(32px); }
}
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--card { 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(34, 103, 99, .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(34, 103, 99, .18), 0 0 0 1px rgba(34, 103, 99, .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(34, 103, 99, .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 { font-size: 30px; }
  .sc-h2 .sc-hero__btns { margin-top: 22px; }
}
/* R-06 360~389px: 부제가 두 줄로 접혀 둘째 버튼이 하단 바 뒤로 가지 않게 부제·리드 글자를 한 단계 줄인다 */
@media (max-width: 389.98px) {
  .sc-h2 .sc-h2__title > span { 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: #0e2a28; 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(34, 103, 99, .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(34, 103, 99, .06), 0 12px 32px -20px rgba(34, 103, 99, .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(34, 103, 99, .08), 0 22px 44px -22px rgba(34, 103, 99, .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: #5DB0AF; }

/* 틴트 섹션에 한지 결 — 아주 옅게(글자 대비에 영향 없게 ::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처럼 테마색", "[] 템플릿으로")
   참고 사이트처럼 제목 전체를 진한 테마색, 윗줄(가늘게)은 한 단계 밝은 테마색. 괄호는 메인 청록 #5DB0AF. 글자 대비: #3f8f8d/#f3f9f8 3.9:1(큰 글자 3:1 이상) */
.sc-tt--hd7 { --sc-tt-br: #d3ebea; --sc-tt-br-w: clamp(8px, .8vw, 12px); margin-bottom: clamp(28px, 3.5vw, 44px); } /* 괄호 더 두껍고 연하게(2026-11-24 — 옛 #5DB0AF·4~6px → 6~9px → 8~12px) */
.sc-tt--hd7 .sc-tt__h { color: #226763; margin: 0; }
.sc-tt--hd7 .sc-tt__pre { color: #2b7673; } /* 가는 윗줄은 큰 글자로 안 쳐서 4.5:1 필요 — #2b7673은 흰 5.3·틴트 5.0·진한 틴트 4.75 */
.sc-tt--hd7 .sc-tt__em { color: #226763; }
/* 분할 섹션(글 | 사진)의 괄호 제목도 가운데(사용자 지정 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: #226763; } /* 카드 소제목도 까만색 대신 테마색(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(13, 38, 36, .74); }
@media (max-width: 899.98px) { :root { --hdx-top-h: 36px; --hdx-bar-h: 60px; } }
.hdx-top { position: relative; z-index: 45; color: #a9c4c1; 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: #e8f1f0; }
.hdx-top__l1 b, .hdx-top__cta b { color: var(--accent-400); font-weight: 700; }
.hdx-top__l2 { font-size: 13px; color: #b5cdca; 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: 38px; }
.hdx-top__cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #e8f1f0; 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: #0d2624; 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: #f1f6f5; 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: 34px; }
@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(13, 38, 36, .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: #cfe0dd; 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: #d4e5e2; 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(10, 18, 19, .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(10, 18, 19, .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: #0e2a28; 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 이상(#2b7673 5.3 → #0d302e). 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: #2b7673; 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: #276f6c; }
.sc-steps--chev > .sc-step:nth-child(3) { --c: #1f5e5b; }
.sc-steps--chev > .sc-step:nth-child(4) { --c: #184d4a; }
.sc-steps--chev > .sc-step:nth-child(5) { --c: #113c3a; }
.sc-steps--chev > .sc-step:nth-child(6) { --c: #0d302e; }
.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: #c6dedb; }
.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, #263735); 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 · 틴트 #f7fbfa 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: #226763; }
#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: #7fc0be; --tc: #11302e; --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: #a9d6d4; --tc: #11302e; }
.hx > .hx__item:nth-child(3) { --c: #94b9b6; --tc: #11302e; }
.hx > .hx__item:nth-child(4) { --c: #d3eae8; --tc: #11302e; } /* 육각형 색 연하게(2026-11-24 — 옛 #226763·#5DB0AF·#263735·#cfe6e4, 글자는 모두 짙은 색) */
.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: #3b4f4d; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx__ic { width: 16px; height: 16px; flex: none; fill: none; stroke: #3f8f8d; 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).
   #3a8986은 흰 바탕 4.2:1 — 19px 굵은 글자(큰 글자 기준 3:1) 통과 */
#inpatient .fit-card > p:first-child { color: #3a8986; 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(243, 250, 249); } /* 하위 머리 리드 문장을 메인 히어로 리드와 같은 흰색으로(사용자 지정 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(61, 40, 24, .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(61, 40, 24, .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: #d3c6b2; transition: background-color .2s; }
.tv__dot.is-on::before { background: var(--deep-500); }
.sec:not(.bg-white) .tv__dot:not(.is-on)::before { background: #c9b99f; }
@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 #cfe3e1; background: #fff; color: #226763; box-shadow: 0 2px 6px rgba(34, 103, 99, .12); }
.sc-js .tv .tv__btn:hover { background: #226763; color: #fff; border-color: #226763; }
.sc-js .tv .tv__dots { margin-top: 0; }
.tv__dot.is-on::before { background: #226763; }
.tv__dot::before, .sec:not(.bg-white) .tv__dot:not(.is-on)::before { background: #cfe3e1; }
.sc-js .tv .tv__track > .tv__slide.is-center .tv__card { box-shadow: 0 6px 16px rgba(34, 103, 99, .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(34, 103, 99, .06), 0 10px 28px -18px rgba(34, 103, 99, .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: #3a8986; font-variant-numeric: tabular-nums; }
.sc-gc__body::after { content: ""; position: absolute; left: 52px; top: 31px; width: 28px; height: 2px; border-radius: 2px; background: #cfe3e1; }
.sc-gc__t { display: block; font-size: 18px; font-weight: 700; line-height: 1.45; color: #226763; 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 #bfdedc; border-radius: 999px; background: #fff; color: #226763; 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(34, 103, 99, .08), 0 20px 40px -22px rgba(34, 103, 99, .45); }
  .sc-gc__card:hover .sc-gc__more { background: #226763; border-color: #226763; color: #fff; }
}
.sc-gc__card:focus-visible .sc-gc__more { background: #226763; border-color: #226763; 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). 이름 칸은 가장 긴 "토요일·공휴일"에 맞춘다 */
.sc-ft1__contact { display: grid; grid-template-columns: auto max-content 1fr; column-gap: 10px; align-items: center; }
.sc-ft1__contact > li { display: contents; }
.sc-ft1__contact > li > * { min-height: 34px; display: flex; align-items: center; }
.sc-ft1__contact > li > .sc-ic { min-height: 0; }
.sc-ft1__contact .sc-ft1__k { min-width: 0; }
.sc-ft1__contact a { min-height: 44px; }
/* 입원실 페이지 첫 섹션 문장과 아래 사진 사이 여백 넓힘(사용자 지정 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 #dcebe9; border-radius: 16px; background: #f7fbfa; font-size: 18px; line-height: 1.7; color: #3b4f4d; 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(34, 103, 99, .35); }
#traffic-accident .prose > p::after { content: ""; position: absolute; left: 44px; top: 44px; width: 28px; height: 28px; background: #226763;
  -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: #2b7673; }
#traffic-accident .law p { margin: 0; padding: 24px 26px; border-radius: 14px; border-left: 4px solid #8fd3d1; background: #fff; box-shadow: 0 1px 2px rgba(34, 103, 99, .06), 0 10px 26px -18px rgba(34, 103, 99, .35); font-size: 15px; line-height: 1.75; color: #666; }
#traffic-accident .law p + p { margin-top: 0; }
/* 근거가 한 줄뿐이면 반쪽 칸에 혼자 남지 않게 가로를 다 쓴다(2026-11-26 병실료 조문 줄을 뺀 뒤) */
#traffic-accident .law p:only-child { grid-column: 1 / -1; }
#traffic-accident .law cite { display: block; margin-bottom: 8px; font-size: 16px; line-height: 1.5; color: #226763; }
#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 #e3efed; 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: #f3f9f8; 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(93, 176, 175, .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: #eef1f1; color: var(--muted); }
table.hours .hr-off td { color: #b0412a; 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: #f3f9f8; }
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 #9fcfcd; border-radius: 8px; vertical-align: 3px;
  background: #fff; color: #226763; font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; box-shadow: 0 1px 2px rgba(34, 103, 99, .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: #226763; background: linear-gradient(135deg, #226763, #17423f); color: #fff; box-shadow: 0 4px 10px -4px rgba(23, 66, 63, .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:is(:nth-child(2), :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"); }
table.hours .hr-lunch .hr-tag { border-color: #d6dedd; background: #fff; color: #5f6f6d; 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-home #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-home #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, #eef7f6 0%, #d9eeec 100%); aspect-ratio: auto; height: auto; }
.t-home #doctor .profile-photo img, .t-home #doctor .profile-photo > img.is-portrait { position: static !important; display: block; width: 100%; max-width: 420px; height: auto !important; aspect-ratio: 960 / 955 !important; object-fit: contain !important; object-position: 50% 100% !important; transform: none !important; border-radius: 0 !important; mix-blend-mode: multiply; }
.t-home #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(23, 66, 63, .45); color: #17423f; font-size: 16px; font-weight: 800; letter-spacing: .02em; white-space: pre; }
.t-home #doctor .profile-panel { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 0; border: 0; background: none; box-shadow: none; }
.t-home #doctor .profile-body { position: relative; padding: 4px 0 0 22px; border-left: 3px solid #8fd3d1; }
.t-home #doctor .profile-body p { margin: 0; font-size: 18px; line-height: 1.8; color: #3b4f4d; }
.t-home #doctor .profile-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.t-home #doctor .profile-col { padding: 22px 20px 20px; border: 1px solid #dcebe9; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(34, 103, 99, .05), 0 10px 26px -20px rgba(34, 103, 99, .4); }
.t-home #doctor .profile-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #226763; }
.t-home #doctor .profile-label::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #e8f4f3 var(--lab-ico) center / 18px no-repeat; }
.t-home #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='%23226763' 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-home #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='%23226763' 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-home #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='%23226763' 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-home #doctor .profile-col ul { margin: 0; padding: 0; list-style: none; }
.t-home #doctor .profile-col li { position: relative; margin: 0; padding: 5px 0 5px 14px; font-size: 15px; line-height: 1.55; color: #4a5c5a; word-break: keep-all; }
.t-home #doctor .profile-col li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: #5DB0AF; }
.t-home #doctor .profile-col li + li { border-top: 1px dashed #e3efed; }
@media (max-width: 1099.98px) { .t-home #doctor .profile-cols { grid-template-columns: 1fr; } }
@media (max-width: 899.98px) {
  .t-home #doctor .profile { grid-template-columns: 1fr; }
  .t-home #doctor .profile-photo { max-width: 420px; width: 100%; margin-inline: auto; }
}
/* 사진 판 = 사진 배경색(#f2f2f2)과 같게 — 사진 테두리 사각형이 보이지 않게. 약력 카드 2열(학력·학회 / 경력 넓게) */
.t-home #doctor .profile-photo { background: #f2f2f2; padding: 24px 24px 0; }
.t-home #doctor .profile-photo img, .t-home #doctor .profile-photo > img.is-portrait { mix-blend-mode: normal; }
@media (min-width: 1100px) {
  .t-home #doctor .profile-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-home #doctor .profile-col:nth-child(3) { grid-column: 1 / -1; }
}
/* 이름 띠는 사진 아래(팔)를 가리지 않게 왼쪽 위로 */
.t-home #doctor .profile-photo::after { left: 20px; top: 20px; bottom: auto; transform: none; }

/* 소개 약력 사진: 허리까지 나온 doctor-park-3(흰 바탕)로 바꿔 판도 흰색, 이름 띠 삭제(사용자 지정 2026-11-24) */
.t-home #doctor .profile-photo { background: #fff; border: 1px solid #e3efed; }
.t-home #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(17, 48, 46, .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). 네이버 초록 #03C75A·흰 글자, 카카오 노랑 #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: #03C75A; 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: #03C75A; }
.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(34, 103, 99, .22);
  box-shadow: 0 2px 6px rgba(17, 48, 46, .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(34, 103, 99, .22); border-bottom: 1px solid rgba(34, 103, 99, .22); transform: translateX(-50%) rotate(45deg); }
/* 사이트 기본 버튼(.btn:not(...) 청록 그라디언트)보다 앞서게 — 서비스 고유 색은 바뀌면 안 된다 */
a.btn.map-btn.map-btn--naver:is(*, :hover, :focus-visible) { background: #03C75A; 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: #02B350; }
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: #03C75A !important; }
a.btn.map-btn--naver:hover, a.btn.map-btn--naver:focus-visible { background-color: #02B350 !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: #03c75a; }

/* 퀵바 칸마다 실제 앱 아이콘 색(사용자 지정 2026-11-24 "각 아이콘들 색을 실제 아이콘으로 해서 색을 다르게") —
   전화 = 전화 앱 초록, 길찾기(네이버 지도) = 흰 바탕 + 네이버 초록 핀, 카카오맵 = 카카오 노랑 + 짙은 갈색 핀, 진료시간 = 사이트 청록, 블로그 = 네이버 초록 "blog" */
.sc-qc a[data-qb="call"]  { --cg: #34c759; --cgon: #fff; --sh: rgba(52, 199, 89, .4); }
.sc-qc a[data-qb="place"] { --cg: #fff; --cgon: #03c75a; --sh: rgba(3, 199, 90, .3); }
.sc-qc a[data-qb="place"] .sc-qc__chip { box-shadow: inset 0 0 0 2px #03c75a; }
.sc-qc a[data-qb="kakao"] { --cg: #fee500; --cgon: #3c1e1e; --sh: rgba(254, 229, 0, .5); }
.sc-qc a[data-qb="hours"] { --cg: #226763; --cgon: #fff; --sh: rgba(34, 103, 99, .35); }
.sc-qc a[data-qb="blog"]  { --cg: #03c75a; --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: #03c75a; --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: #5db0af; --cgon: #fff; --sh: rgba(93, 176, 175, .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: #e8f4f3; color: #226763; 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: #226763; }
#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칸에, 긴 전화 버튼은 둘째 줄 전체 폭에(두 칸에 넣으면 번호가 칸을 넘친다) */
/* 365자인한의원: 버튼 2개라 샘플(3개용) 배치 대신 한 줄에 하나씩, 전화 버튼 먼저(디자인 검수 R-06) */
@media (max-width: 599.98px) {
  .sc-hero.sc-h2 .sc-hero__btns > .sc-hero__btn { grid-column: 1 / -1; }
  .sc-hero.sc-h2 .sc-hero__btns > .sc-hero__btn[href^="tel:"] { order: -1 !important; }
}
@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(17, 48, 46, .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)); }

/* ── 365자인한의원(2026-12-03) ── */
/* 소제목 카드(.sub) 안 단계 카드 제목 — .sub p 글자색이 덮어 청록 바탕에 회색이 되던 것(대비 부족) 흰 글자로 */
.sec .sub .sc-steps--chev .sc-step__t, .sec .sub-body .sc-steps--chev .sc-step__t { color: #fff; }
/* 진료 카드 3장 — 기획안 "PC 3열, 모바일 1열": 공용 부품의 모바일 가로 넘김 대신 세로 한 줄씩. 좁은 화면은 썸네일 왼쪽·글 오른쪽 가로 카드로 높이를 줄인다(썸네일 1:1 그대로 — 글자가 잘리지 않게) */
@media (max-width: 599.98px) {
  #related-guides .sc-gc__list { display: grid !important; grid-template-columns: 1fr !important; grid-auto-flow: row !important; overflow: visible !important; scroll-snap-type: none !important; gap: 16px; padding-bottom: 0; }
  #related-guides .sc-gc__list > li { flex: none; width: auto; }
  #related-guides .sc-gc__card { flex-direction: row; align-items: stretch; }
  #related-guides .sc-gc__img { flex: 0 0 38%; aspect-ratio: 1 / 1; }
  #related-guides .sc-gc__body { padding: 16px 18px; gap: 6px; }
}
/* 개인정보처리방침·404의 카드 4장(메인 + 진료 3) — 넓은 화면은 한 줄 4열로(3열이면 한 장이 홀로 남음) */
@media (min-width: 1100px) { #related-guides .sc-gc__list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 디자인 검수(2026-12-03) */
/* R-31 좁은 화면 가로형 카드는 글 칸이 좁아 소개 문장을 3줄까지 */
@media (max-width: 599.98px) { #related-guides .sc-gc__d { height: auto; display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: none; } #related-guides .sc-gc__img { flex-basis: 34%; } } /* 한 줄에 한 장이라 카드끼리 높이를 맞출 필요가 없음 — 문장 전체를 보인다 */
/* R-33 600~899폭은 세로형 카드 3열(4장이면 2열) — 가로형 글 칸이 비던 것 */
@media (min-width: 600px) and (max-width: 899.98px) {
  #related-guides .sc-gc__list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-flow: row !important; overflow: visible !important; scroll-snap-type: none !important; gap: 16px; padding-bottom: 0; }
  #related-guides .sc-gc__list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #related-guides .sc-gc__list > li { flex: none; width: auto; grid-column: auto !important; }
  #related-guides .sc-gc__body { padding: 16px 18px 18px; }
  #related-guides .sc-gc__d { height: auto; min-height: calc(1.6em * 3); display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: none; } /* 3열 좁은 칸에서 2줄 고정이면 잘림 — 3줄 자리를 잡고 전부 보인다 */
}
/* R-26 헤더에 전화 버튼이 보이는 폭(900px~)에서는 퀵바 전화 칸을 숨긴다 — 같은 CTA 두 곳 고정 */
@media (min-width: 900px) { .sc-qc li:has(> a[data-qb="call"]) { display: none; } }
/* R-15 900~1023폭 헤더 윗줄 요일별 상세 시간이 로고에 붙어 숨긴다(첫 줄 요약은 남음) */
@media (min-width: 900px) and (max-width: 1023.98px) { .hdx-top__l2 { display: none; } }
/* 메인 첫 히어로는 한 화면에 꽉 차게(사용자 지정 2026-12-04). 헤더가 히어로 위에 겹치므로 화면 높이 그대로,
   1279px 이하는 아래 고정 퀵바(8+58+10px + 안전 영역)만큼 뺀다. 글이 더 길면 그만큼만 늘어난다. svh라 폰 주소창이 접혀도 높이가 흔들리지 않는다 */
main .sc-hero.sc-h2 { min-height: 100vh; min-height: 100svh; }
@media (max-width: 1279.98px) {
  main .sc-hero.sc-h2 { min-height: calc(100vh - 76px - env(safe-area-inset-bottom)); min-height: calc(100svh - 76px - env(safe-area-inset-bottom)); }
}
/* 글 상자는 바닥 정렬(부품 기본)이면 화면을 키운 만큼 아래로 처져서, 헤더(PC 148px·폰 96px) 아래 남는 공간의 가운데에 둔다(사용자 지정 2026-12-04 "너무 아래쪽에 있어") */
main .sc-hero.sc-h2 { align-items: center; }
main .sc-hero.sc-h2 .sc-h2__in { padding-block: 148px clamp(56px, 18svh, 200px); } /* 아래 여백을 크게 줘서 가운데보다 조금 위로(사용자 "조금더 올려"). 낮은 화면(1280×720)에서 한 화면을 넘지 않게 화면 높이에 맞춤 */
@media (max-width: 899.98px) { main .sc-hero.sc-h2 .sc-h2__in { padding-block: 96px 96px; } }
@media (min-width: 900px) and (max-height: 820px) { main .sc-hero.sc-h2 .sc-h2__in { padding-bottom: 72px; } } /* 낮은 데스크톱은 글이 화면을 거의 채워 올릴 여유가 없다 — 한 화면 안에 들어가게만 */
/* 윗줄 한 줄 소개는 조금 크게, 제목은 한 단계 가늘게(사용자 지정 2026-12-04) */
main .sc-hero.sc-h2 .sc-h2__tag { font-size: 20px; }
@media (max-width: 599.98px) { main .sc-hero.sc-h2 .sc-h2__tag { font-size: 17px; } }
main .sc-hero.sc-h2 .sc-h2__title { font-weight: 600; } /* 800 → 700 → 600(사용자 "하나만 더 내려봐") */
/* 히어로 전화 버튼 — 경희린 메인 "대표번호" 버튼 모양(공용 B5), 색은 테마색(사용자 지정 2026-12-04, 앞서 지정한 검은 글자를 대신함).
   흰 알약 + 테마색 원 안 흰 아이콘 + 작은 이름 줄(회색) + 테마색 번호. 폰에서는 이전 버튼처럼 한 줄을 꽉 채운다 */
main .sc-h2 .sc-b5 { color: var(--sc-brand); font-weight: 700; }
main .sc-h2 .sc-b5__tx { font-size: 18px; }
main .sc-h2 .sc-b5__tx small { font-size: 13px; font-weight: 600; color: var(--sc-muted); }
@media (max-width: 599.98px) { main .sc-h2 .sc-b5 { width: 100%; } }
/* 899px 이하는 아래 고정 퀵바에 전화 칸이 있어 히어로 전화 버튼은 숨긴다(사용자 지정 2026-12-04 "모바일에선 버튼 없어도될듯. 아래 퀵바에 있잖아"). 900px 이상은 퀵바 전화 칸이 숨으므로(R-26) 히어로 버튼을 둔다 */
@media (max-width: 899.98px) { main .sc-hero.sc-h2 .sc-hero__btns { display: none !important; } } /* 위 R-03 규칙이 display:grid !important라 같이 !important */
/* 호버·포커스 때 테마색 테두리를 두르지 않는다(사용자 지정 2026-12-04 "호버했을때 테두리 생기는거 별로다") — 평소 옅은 테두리 그대로 + 살짝 뜨는 그림자만 */
main .sc-h2 .sc-b5:hover, main .sc-h2 .sc-b5:focus-visible { box-shadow: inset 0 0 0 1.5px var(--sc-line-strong), 0 10px 24px rgba(10, 18, 19, .28); }
/* 호버 때 약간의 임팩트(사용자 지정 2026-12-04) — 버튼이 조금 더 뜨고, 아이콘 원이 커지며 전화기가 한 번 흔들린다. 크기는 transform만이라 자리는 그대로 */
main .sc-h2 .sc-b5 { transition: transform .3s var(--sc-ease), box-shadow .3s var(--sc-ease); }
main .sc-h2 .sc-b5:hover, main .sc-h2 .sc-b5:focus-visible { transform: translateY(-3px); }
main .sc-h2 .sc-b5:hover .sc-b5__ic, main .sc-h2 .sc-b5:focus-visible .sc-b5__ic { background: var(--sc-brand-2); transform: scale(1.1); }
main .sc-h2 .sc-b5:hover .sc-b5__ic .sc-ic, main .sc-h2 .sc-b5:focus-visible .sc-b5__ic .sc-ic { animation: jain-ring .6s var(--sc-ease) 1; }
@keyframes jain-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(13deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  main .sc-h2 .sc-b5:hover, main .sc-h2 .sc-b5:focus-visible, main .sc-h2 .sc-b5:hover .sc-b5__ic { transform: none; }
  main .sc-h2 .sc-b5:hover .sc-b5__ic .sc-ic { animation: none; }
}

/* ══ 섹션 제목 — 반듯한방병원 방식(사용자 지정 2026-12-04 "폰트와 볼드 크기, 두줄인걸 그대로, [] 필요없어") ══
   Noto Serif KR 26px(모바일 20px) · 줄 간격 1.54 · 윗줄 400 + 아랫줄 600 · 두 줄 같은 색. 글꼴 파일은 섹션 제목 글자만(OFL, tools/serif-fonts/src) */
@font-face { font-family: "Noto Serif KR TT"; src: url("../fonts/serif-ko-tt.woff2?v=f0939b94") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
.sc-tt--hd7::before, .sc-tt--hd7::after, :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; border: 0 !important; }
.sc-tt--hd7 { padding-inline: 0 !important; }
main h2.sc-tt__h, main h2.sc-tt__h * { font-family: "Noto Serif KR TT", "Noto Serif KR", var(--font) !important; letter-spacing: -.01em !important; }
main h2.sc-tt__h { font-size: clamp(20px, 1.85vw, 26px) !important; line-height: 1.54 !important; font-weight: 600 !important; color: var(--deep-800, #226763); }
main h2.sc-tt__h .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; }
main h2.sc-tt__h .sc-tt__em { display: block !important; font-size: 1em !important; line-height: 1.54 !important; font-weight: 600 !important; color: inherit !important; }
.sc-l3 h2.sc-tt__h, .band h2.sc-tt__h { color: #fff; }

/* 흰색이 아닌 섹션 배경을 더 옅게(사용자 지정 2026-12-04 — 고객 지정 #EEF7F6보다 옅게). 카드 안 바탕(--ivory)은 그대로 */
section.bg-ivory, section.sc-sec--tint { background-color: #f6fbfa; --sec-bg: #f6fbfa; }
.sc-sec--tint::after { opacity: .1; }

/* 섹션 제목·안내 카드 글자에 초록 쓰지 않음(사용자 지정 2026-12-04 "이런 텍스트들 초록색 사용하지마") — 반듯과 같은 짙은 먹색 #2a2a2a.
   "자세히 보기" 테두리·호버 채움도 초록 대신 먹색 계열. 어두운 띠 위 제목은 흰색 그대로 */
main h2.sc-tt__h { color: #2a2a2a !important; }
.sc-l3 h2.sc-tt__h, .band h2.sc-tt__h { color: #fff !important; }
.sc-gc__t { color: #2a2a2a !important; }
.sc-gc__more { color: #2a2a2a !important; border-color: #d6d6d6 !important; }
.sc-gc__card:hover .sc-gc__more, .sc-gc__card:focus-visible .sc-gc__more { background: #2a2a2a !important; border-color: #2a2a2a !important; color: #fff !important; }

/* 글자색·굵기 반듯한방병원 메인과 같게(사용자 지정 2026-12-04 "수원 피부관리·리프팅 / 반듯한방병원 피부 클리닉 / 겉으로 드러나는… 이것과 동일한 폰트색, 볼드",
   "가장 하위의 본문내용은 '정품 정량의 반듯한 진료를 약속드립니다'와 같은 색과 폰트") — 반듯 실측값
   · 제목 윗줄 = 반듯 첫 화면 작은 줄: 400 · #5c5550   · 제목 아랫줄·카드 제목 = 반듯 큰 제목: 600 · #2a2a2a
   · 카드 한 줄 설명 = 반듯 첫 화면 설명: 500 · #3c3c3c   · 본문 = 반듯 .pf__sub: Pretendard 400 · #665a51 */
main h2.sc-tt__h .sc-tt__pre { color: #5c5550 !important; font-weight: 400 !important; }
main h2.sc-tt__h .sc-tt__em { color: #2a2a2a !important; font-weight: 600 !important; }
.sc-gc__t { color: #2a2a2a !important; font-weight: 600 !important; }
.sc-gc__d { color: #3c3c3c !important; font-weight: 500 !important; }
main .sec:not(.sc-l3) :is(.prose p, .fit-card p, .card-body > p, .sub p:not(.sc-step__t), .sc-faq__a p, .sc-faq__in p, .steps p, #doctor p, .hours-table td, table td):not(.tl4__t) { color: #665a51 !important; font-family: var(--font, Pretendard), sans-serif; font-weight: 400 !important; }
/* 카드 소제목(목과 어깨 등)·안내 카드 번호도 초록 대신 같은 기준 — 아이콘·단계 상자(청록 바탕)는 그대로 */
main .sec :is(.sub h3, .sub-head h3) { color: #2a2a2a !important; font-weight: 600 !important; }
.sc-gc__body::before { color: #5c5550 !important; }
.sc-gc__body::after { background: #e2ddd8 !important; }

/* ══ 안내 카드 — 넓은 사진 카드(사용자 지정 2026-12-04 "WIDTH를 많이 차지해서 꽉 찬 디자인", 레퍼런스 ever-smile.kr 특화교정·스페셜 프로그램) ══
   본문 폭보다 넓게(최대 1600px), 카드 사이 간격 좁게, 실사를 카드 가득 + 아래쪽 어두운 그라데이션 위에 한 줄 설명·굵은 제목·자세히 보기.
   예전 판형(사진 아래 연한 판·번호·가로형 모바일) 규칙은 #related-guides.gc-ph로 덮는다 */
#related-guides.gc-ph > .wrap { max-width: calc(1600px + 2 * var(--gutter)); }
#related-guides.gc-ph .sc-gc__list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-flow: row !important; gap: 16px !important; overflow: visible !important; scroll-snap-type: none !important; padding: 0 !important; margin: 0 !important; }
#related-guides.gc-ph .sc-gc__list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
#related-guides.gc-ph .sc-gc__list > li { width: auto; flex: none; grid-column: auto !important; transform: none; }
#related-guides.gc-ph .sc-gc__card { position: relative; display: block !important; height: auto; aspect-ratio: 5 / 6; border-radius: 6px; overflow: hidden; background: #1d2322; box-shadow: none !important; border: 0; transform: none !important; isolation: isolate; }
#related-guides.gc-ph .sc-gc__img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; flex: none !important; margin: 0; z-index: -2; }
#related-guides.gc-ph .sc-gc__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease, cubic-bezier(.22,1,.36,1)); }
#related-guides.gc-ph .sc-gc__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 20, 20, .05) 30%, rgba(18, 20, 20, .42) 58%, rgba(18, 20, 20, .82) 100%); transition: background-color .4s; }
#related-guides.gc-ph .sc-gc__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: clamp(24px, 2.6vw, 44px); background: none !important; }
#related-guides.gc-ph .sc-gc__body::before, #related-guides.gc-ph .sc-gc__body::after { content: none !important; display: none !important; }
#related-guides.gc-ph .sc-gc__d { order: 1; display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; -webkit-line-clamp: unset !important; margin: 0 0 8px !important; font-size: clamp(15px, 1.05vw, 17px) !important; line-height: 1.55 !important; font-weight: 500 !important; color: rgba(255, 255, 255, .86) !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
#related-guides.gc-ph .sc-gc__t { order: 2; margin: 0 !important; font-size: clamp(24px, 2vw, 34px) !important; line-height: 1.3 !important; font-weight: 700 !important; letter-spacing: -.02em; color: #fff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
#related-guides.gc-ph .sc-gc__more { order: 3; margin-top: 22px !important; min-height: 40px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .7) !important; border-radius: 999px; background: transparent !important; color: #fff !important; font-size: 14px; font-weight: 600; }
@media (hover: hover) {
  #related-guides.gc-ph .sc-gc__card:hover .sc-gc__img img { transform: scale(1.05); }
  #related-guides.gc-ph .sc-gc__card:hover .sc-gc__more { background: #fff !important; border-color: #fff !important; color: #2a2a2a !important; }
}
#related-guides.gc-ph .sc-gc__card:focus-visible { outline: 3px solid #2a2a2a; outline-offset: 3px; }
#related-guides.gc-ph .sc-gc__card:focus-visible .sc-gc__more { background: #fff !important; border-color: #fff !important; color: #2a2a2a !important; }
@media (prefers-reduced-motion: reduce) { #related-guides.gc-ph .sc-gc__img img { transition: none; } #related-guides.gc-ph .sc-gc__card:hover .sc-gc__img img { transform: none; } }
/* 태블릿: 3장은 3열 세로형, 4장은 2열 */
@media (max-width: 1099.98px) {
  #related-guides.gc-ph .sc-gc__list:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #related-guides.gc-ph .sc-gc__list:has(> li:nth-child(4):last-child) .sc-gc__card { aspect-ratio: 4 / 3; }
}
@media (max-width: 899.98px) { #related-guides.gc-ph .sc-gc__card { aspect-ratio: 3 / 4; } #related-guides.gc-ph .sc-gc__body { padding: 20px; } #related-guides.gc-ph .sc-gc__t { font-size: 22px !important; } #related-guides.gc-ph .sc-gc__more { margin-top: 16px !important; } }
/* 폰: 한 줄에 한 장, 가로로 넓은 사진 */
@media (max-width: 767.98px) {
  #related-guides.gc-ph .sc-gc__list, #related-guides.gc-ph .sc-gc__list:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr !important; gap: 12px !important; }
  #related-guides.gc-ph .sc-gc__card, #related-guides.gc-ph .sc-gc__list:has(> li:nth-child(4):last-child) .sc-gc__card { aspect-ratio: 16 / 11; }
  #related-guides.gc-ph .sc-gc__t { font-size: 24px !important; }
}
/* 사진 카드 다듬기 — 글자 쪽 어두운 막을 조금 더(밝은 벽 사진에서도 흰 글자가 읽히게), 오른쪽 세로 퀵바(1280px 이상) 자리만큼 양옆 여백 */
#related-guides.gc-ph .sc-gc__card::after { background: linear-gradient(180deg, rgba(18, 20, 20, .08) 25%, rgba(18, 20, 20, .5) 52%, rgba(18, 20, 20, .86) 100%); }
@media (max-width: 767.98px) { #related-guides.gc-ph .sc-gc__card::after { background: linear-gradient(180deg, rgba(18, 20, 20, .2) 0, rgba(18, 20, 20, .58) 40%, rgba(18, 20, 20, .86) 100%); } }
@media (min-width: 1280px) { #related-guides.gc-ph > .wrap { padding-inline: max(var(--gutter), 120px); max-width: calc(1600px + 240px); } }
/* 통증 섹션 사진 카드 — 세로 카드(사진 위·글 아래) 한 줄 4장(사용자 지정 2026-12-04 "이런 카드들 세로로 넣는게 좋을듯").
   4번째 카드(평일 저녁·주말 진료)만 글이 길어 옆 칸 아래가 비는 것은 그대로 둔다(design-lint 21 의도). 카드 높이는 같게, 글은 위에서부터 */
@media (min-width: 900px) { #pain .subs:has(> .sub-media) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px; } }
@media (min-width: 768px) and (max-width: 899.98px) { #pain .subs:has(> .sub-media) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; } #pain .subs > .sub.sub-media { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr; } #pain .subs > .sub.sub-media .card-media { min-height: 0; aspect-ratio: 3 / 2; } #pain .subs > .sub.sub-media .card-body { align-self: start; } }
/* 진료 섹션(교통사고·통증·추나)도 안내 카드 줄과 같은 폭(사용자 지정 2026-12-04 "이런 섹션들 width를 월평동 한의원 진료 안내 이정도로 늘려") */
:is(#traffic-accident, #pain, #chuna) > .wrap { max-width: calc(1600px + 2 * var(--gutter)); }
@media (min-width: 1280px) { :is(#traffic-accident, #pain, #chuna) > .wrap { padding-inline: max(var(--gutter), 120px); max-width: calc(1600px + 240px); } }
/* 교통사고·통증 사진 카드 — 사진 위에 글을 얹는 카드(에버스마일식, 사용자 지정 2026-12-04 "이미지 카드 안에 텍스트를 같이 넣는식으로").
   통증 4번째 카드의 긴 문장은 섹션 소개 글로 옮겨 카드에는 제목만(사용자 "이런 텍스트까진 넣을필욘 없을듯"). 안내 카드(#related-guides.gc-ph)와 같은 표현 */
:is(#traffic-accident, #pain) .subs:has(> .sub-media) { display: grid !important; grid-template-columns: repeat(var(--ov-cols, 3), minmax(0, 1fr)) !important; gap: 16px !important; }
#pain .subs:has(> .sub-media) { --ov-cols: 4; }
:is(#traffic-accident, #pain) .subs > .sub:not(.sub-media) { grid-column: 1 / -1; }
:is(#traffic-accident, #pain) .subs > .sub.sub-media { position: relative !important; display: block !important; aspect-ratio: 4 / 5; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; overflow: hidden; isolation: isolate; background: #2a2a2a; box-shadow: none !important; }
:is(#traffic-accident, #pain) .subs > .sub.sub-media .card-media { position: absolute !important; inset: 0; aspect-ratio: auto !important; min-height: 0 !important; height: 100% !important; border-radius: 0 !important; margin: 0 !important; }
:is(#traffic-accident, #pain) .subs > .sub.sub-media .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
:is(#traffic-accident, #pain) .subs > .sub.sub-media:hover .card-media img { transform: scale(1.05); }
:is(#traffic-accident, #pain) .subs > .sub.sub-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.78) 100%); }
:is(#traffic-accident, #pain) .subs > .sub.sub-media .card-body { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2.2vw, 32px) !important; background: none !important; align-self: auto !important; }
main .sec :is(#traffic-accident, #pain) .subs > .sub.sub-media .card-body h3,
:is(#traffic-accident, #pain) .subs > .sub.sub-media .card-body h3 { color: #fff !important; font-weight: 700 !important; font-size: clamp(20px, 1.6vw, 26px) !important; line-height: 1.35; margin: 0 0 10px !important; }
:is(#traffic-accident, #pain) .subs > .sub.sub-media .card-body h3::after { display: none !important; }
main .sec:not(.sc-l3) :is(#traffic-accident, #pain) .subs > .sub.sub-media .card-body p,
#traffic-accident .subs > .sub.sub-media .card-body p, #pain .subs > .sub.sub-media .card-body p { color: rgba(255,255,255,.88) !important; font-weight: 400 !important; font-size: 15px; line-height: 1.65; margin: 0 !important; }
@media (max-width: 1099.98px) { #pain .subs:has(> .sub-media) { --ov-cols: 2; } }
@media (max-width: 899.98px) { #traffic-accident .subs:has(> .sub-media) { --ov-cols: 2; } :is(#traffic-accident, #pain) .subs > .sub.sub-media { aspect-ratio: 4 / 5; } }
@media (max-width: 767.98px) { :is(#traffic-accident, #pain) .subs:has(> .sub-media) { --ov-cols: 1; } :is(#traffic-accident, #pain) .subs > .sub.sub-media { aspect-ratio: 16 / 11; } :is(#traffic-accident, #pain) .subs > .sub.sub-media::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.82) 100%); } }
/* 메인 히어로 사진 두 장 — 좀 더 천천히(사용자 지정 2026-12-04). 부품 기본 12초(한 장 6초) → 20초(한 장 10초). 둘째 장 시작은 주기의 절반 앞. 움직임 줄이기 설정에서는 부품 규칙대로 멈춘다 */
main .sc-h2__slide:first-child:nth-last-child(2),
main .sc-h2__slide:first-child:nth-last-child(2) ~ .sc-h2__slide,
main .sc-h2__slide:first-child:nth-last-child(2) img,
main .sc-h2__slide:first-child:nth-last-child(2) ~ .sc-h2__slide img { animation-duration: 20s; }
main .sc-h2__slide:first-child:nth-last-child(2) ~ .sc-h2__slide { animation-delay: -10s; }
/* 진료 안내 카드 폭 줄임(사용자 지정 2026-12-04 "이미지들이 너무크다. 컨테이너 width좀 줄여봐") — 카드 묶음 최대 1340px(한 장 약 435px) — 1080px은 "너무 줄였어, 전에꺼랑 중간" → 1600과 1080의 중간. 앞서 넓힌 1600px을 대신한다 */
#related-guides.gc-ph > .wrap { max-width: calc(1340px + 2 * var(--gutter)); }
@media (min-width: 1280px) { #related-guides.gc-ph > .wrap { max-width: calc(1340px + 240px); } }
/* 안내 카드 제목 아래 감성 한 줄(사용자 지정 2026-12-04) — 다른 섹션 본문과 같은 색·굵기 */
#related-guides .sc-gc__lead { margin: 14px auto 0; text-align: center; color: #665a51; font-weight: 400; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; word-break: keep-all; }
#related-guides .sc-gc__lead + .sc-gc__list { margin-top: clamp(28px, 3vw, 44px); }
#related-guides .wrap > h2 { margin-bottom: 0 !important; }
#related-guides .sc-gc__lead { margin-top: 14px !important; margin-bottom: 0 !important; }
#related-guides .sc-gc__lead + .sc-gc__list { margin-top: clamp(32px, 3.2vw, 48px) !important; }
#related-guides .sc-tt:has(+ .sc-gc__lead) { margin-bottom: 0 !important; padding-bottom: 0 !important; }
/* 진료 안내 카드 제목 굵기 한 단계 낮춤(사용자 지정 2026-12-04 "볼드 좀 내려") */
#related-guides.gc-ph .sc-gc__t { font-weight: 500 !important; } /* 700 → 600 → 500(사용자 "볼드좀만 내려" 두 번) */
/* 진료 안내 카드 호버 — ever-smile.kr "특화된 교정" 카드 방식(사용자 지정 2026-12-04): 평소엔 제목만 가운데, 호버하면 사진이 어두워지고
   가는 흰 액자가 나타나며 제목 위로 한 줄 설명이 펼쳐진다. 마우스가 있는 900px 이상만 — 터치 화면은 호버가 없어 지금처럼 설명이 늘 보인다.
   설명은 grid-template-rows 0fr→1fr로 접었다 펴서 카드 크기는 그대로(layout-stability) */
@media (hover: hover) and (min-width: 900px) {
  #related-guides.gc-ph .sc-gc__body { top: 50%; bottom: auto; left: 0; right: 0; transform: translateY(-50%); display: grid !important; grid-template-rows: 0fr auto; justify-items: center; text-align: center; padding: 0 48px; transition: grid-template-rows .45s var(--ease); } /* 내용 높이만큼만 — 카드 가운데 */
  #related-guides.gc-ph .sc-gc__d { order: 0; grid-row: 1; overflow: hidden !important; min-height: 0 !important; margin: 0 !important; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .45s var(--ease); }
  #related-guides.gc-ph .sc-gc__t { grid-row: 2; }
  /* 평소 흰 제목 + 어두운 막 .4, 호버 때 막 .62(사용자 지정 2026-12-04 "그냥 아까처럼 흰색으로 하고 가운데" — 먹색 제목·위쪽 배치는 되돌림) */
  #related-guides.gc-ph .sc-gc__card::after { background: rgba(18, 20, 20, .4) !important; transition: background-color .45s var(--ease); }
  #related-guides.gc-ph .sc-gc__card::before { content: "" !important; display: block !important; position: absolute; inset: 24px; z-index: 0; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none; opacity: 0; transform: scale(1.04); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  #related-guides.gc-ph .sc-gc__card:is(:hover, :focus-visible) .sc-gc__body { grid-template-rows: 1fr auto; }
  #related-guides.gc-ph .sc-gc__card:is(:hover, :focus-visible) .sc-gc__d { opacity: 1; transform: none; padding-bottom: 10px; }
  #related-guides.gc-ph .sc-gc__card:is(:hover, :focus-visible)::after { background: rgba(18, 20, 20, .62) !important; }
  #related-guides.gc-ph .sc-gc__card:is(:hover, :focus-visible)::before { opacity: 1; transform: none; }
}
@media (hover: hover) and (min-width: 900px) and (prefers-reduced-motion: reduce) {
  #related-guides.gc-ph .sc-gc__body, #related-guides.gc-ph .sc-gc__d, #related-guides.gc-ph .sc-gc__card::before { transition: opacity .2s; transform: none; }
}
/* 섹션 제목 아래 한 줄(sc-tt__sub) — 안내 카드 제목 아래 한 줄과 같은 모양(사용자 지정 2026-12-04) */
main .sc-tt--sub { display: flex; flex-direction: column; align-items: center; }
main .sc-tt--sub.sc-tt--start { align-items: center; }
main .sc-tt__sub { margin: 14px 0 0 !important; text-align: center; color: #665a51; font-weight: 400; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; word-break: keep-all; }
/* 소개·원장·진료시간·오시는 길·FAQ도 안내 카드 섹션과 같은 폭(사용자 지정 2026-12-04 "아래 섹션들도 이 섹션의 width 정도로") */
:is(#about, #doctor, #hours, #location, #faq) > .wrap { max-width: calc(1600px + 2 * var(--gutter)); }
@media (min-width: 1280px) { :is(#about, #doctor, #hours, #location, #faq) > .wrap { padding-inline: max(var(--gutter), 120px); max-width: calc(1600px + 240px); } }
/* 소개 사진 2장 — 넓어진 폭에서 세로로 너무 길어지지 않게 4:3(사진 원본 비율) */
@media (min-width: 900px) { #about .sc-car__card { aspect-ratio: 4 / 3 !important; height: auto !important; } #about .sc-car__card img { width: 100%; height: 100% !important; aspect-ratio: auto; object-fit: cover; } }
/* 교통사고 소개 글 — 옆 실사를 뺀 뒤(사용자 지정 2026-12-04 "섹션들에 실사는 둘러보기, 히어로 제외하고 사용하지마") 반쪽 상자로 남지 않게 추나·통증 소개 글과 같은 글 한 단으로 */
#traffic-accident .prose:has(> p:only-child) { display: block; }
#traffic-accident .prose > p:only-child { padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; font-weight: 400; color: #665a51; }
#traffic-accident .prose > p:only-child::before, #traffic-accident .prose > p:only-child::after { display: none; }
/* 모든 섹션 내용 폭 = 안내 카드 줄의 실제 폭(넓은 화면 1340px)으로 통일(사용자 지정 2026-12-04 "월평동 한의원 진료 안내 … 섹션의 width로 맞춰").
   앞서 1600px로 잡은 섹션들이 1920 화면에서 안내 카드(1340px)보다 넓게 보였다 */
@media (min-width: 1280px) { :is(#related-guides, #traffic-accident, #pain, #chuna, #about, #doctor, #hours, #location, #faq) > .wrap { max-width: calc(1340px + 240px) !important; padding-inline: 120px !important; } }
/* 흰색이 아닌 섹션 배경 더 연하게(사용자 지정 2026-12-04 "흰색이 아닌 섹션 배경들 좀더 연하게") — #f6fbfa → #fafdfc, 바탕 무늬도 더 옅게 */
section.bg-ivory, section.sc-sec--tint { background-color: #fafdfc !important; --sec-bg: #fafdfc; }
.sc-sec--tint::after { opacity: .06 !important; }
/* 교통사고 소개 글 가운데 정렬(사용자 지정 2026-12-04) — 긴 줄이 화면 끝까지 퍼지지 않게 폭을 좁힌다 */
#traffic-accident .prose:has(> p:only-child) { max-width: 46em; margin-inline: auto; text-align: center; }
/* 원장 섹션 — 제너리스의원 메인 대표원장(.dy) 틀(사용자 지정 2026-12-04 "generlessclinic.co.kr … 섹션처럼 구성. 약력 학회활동 대신 인사말").
   값은 dermatology/generlessclinic.co.kr style.css .dy 그대로, 사진 칸 바탕만 이 사이트 틴트 */
#doctor .dy { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: center; margin-top: clamp(36px, 4vw, 56px); }
#doctor .dy__ph { position: relative; margin: 0; aspect-ratio: 734 / 844; background: #eef4f3; overflow: hidden; isolation: isolate; }
#doctor .dy__ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 20%; border-radius: 0; }
#doctor .dy__info { padding: 0 0 0 clamp(36px, 5vw, 96px); text-align: left; }
#doctor .dy__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#doctor .dy__name { margin: 0; font-size: clamp(34px, 3.3vw, 48px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: #2a2a2a; }
#doctor .dy__pos { margin-left: 4px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.01em; }
#doctor .dy__line { height: 1px; margin: clamp(36px, 4.4vw, 64px) 0; background: #cdc8c1; }
#doctor .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; }
#doctor .dy__greet p { margin: 0 0 14px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.85; color: #665a51 !important; font-weight: 400; word-break: keep-all; }
#doctor .dy__greet p:last-child { margin-bottom: 0; }
@media (max-width: 899.98px) {
  #doctor .dy { grid-template-columns: 1fr; }
  #doctor .dy__ph { width: 100%; max-width: 420px; margin-inline: auto; }
  #doctor .dy__info { padding: clamp(24px, 6vw, 36px) 0 0; }
  #doctor .dy__line { margin: 22px 0 28px; }
  #doctor .dy__tag { margin-bottom: 18px; min-width: 84px; padding: 4px 20px; }
}
/* 스크롤 등장 — 제너리스 site.js·style.css .rv 그대로: 사진은 왼쪽 80px에서, 이름·선·인사말은 아래 70px에서 차례로(1.2초) */
.rv.rv--dyl { transform: translateX(-80px); transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(.22, .8, .3, 1); }
.rv.rv--dyup { transform: translateY(70px); transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(.22, .8, .3, 1); }
.rv.rv--dyl.in, .rv.rv--dyup.in { opacity: 1; transform: none; }
@media (max-width: 899.98px) { .rv.rv--dyl { transform: translateY(70px); } }
/* 원장 이름·꼬리표는 <p>라 사이트 공통 본문 p 색·굵기(!important)에 덮였다 — 제너리스 값으로 되돌림 */
#doctor .dy__name { font-weight: 700 !important; color: #2a2a2a !important; font-size: clamp(34px, 3.3vw, 48px) !important; line-height: 1.25 !important; margin: 0 !important; }
#doctor .dy__pos { font-weight: 600 !important; color: #2a2a2a !important; }
#doctor .dy__tag { color: #3c3c3c !important; font-weight: 400 !important; }
/* 줄 2863 본문 일괄 규칙(main .sec:not(.sc-l3) :is(#doctor p …))보다 우선순위가 높아야 이긴다 */
main #doctor.sec:not(.sc-l3) p.dy__name { font-weight: 700 !important; color: #2a2a2a !important; font-size: clamp(34px, 3.3vw, 48px) !important; line-height: 1.25 !important; margin: 0 !important; }
main #doctor.sec:not(.sc-l3) p.dy__tag { color: #3c3c3c !important; font-weight: 400 !important; font-size: clamp(16px, 1.25vw, 18px) !important; margin: 0 0 26px !important; }
@media (max-width: 899.98px) { main #doctor.sec:not(.sc-l3) p.dy__tag { margin-bottom: 18px !important; } }
/* 원장 이름 글꼴 = 제너리스 이하연 대표원장과 같게(사용자 지정 2026-12-04): 명조(제목용 Noto Serif KR 부분 글꼴 — 김성중 원장 글자는 #doctor h2에 있어 포함됨) 600, 48/30px(폰 34/22px), #2a2a2a */
main #doctor.sec:not(.sc-l3) p.dy__name, main #doctor.sec:not(.sc-l3) p.dy__name .dy__pos { font-family: "Noto Serif KR TT", "Noto Serif KR", AppleMyungjo, serif !important; font-weight: 600 !important; color: #2a2a2a !important; }
main #doctor.sec:not(.sc-l3) p.dy__name { letter-spacing: -.02em !important; }
main #doctor.sec:not(.sc-l3) p.dy__name .dy__pos { letter-spacing: -.01em !important; }
/* 섹션 머리(키워드 줄·제목·아래 문장) 글자 조금씩 키움(사용자 지정 2026-12-04 "이런 섹션 위에있는것들 폰트 조금씩 키워봐") — 제목 26→30px(폰 20→23px), 문장 17→19px(폰 15→16px) */
main .sec h2.sc-tt__h { font-size: clamp(24px, 2.1vw, 30px) !important; }
@media (max-width: 599.98px) { main .sec .sc-tt--hd7 h2.sc-tt__h, main .sec .sc-tt--hd7 h2.sc-tt__h .sc-tt__pre { font-size: 23px !important; } main .sec .sc-tt--hd7 h2.sc-tt__h .sc-tt__pre { font-size: 1em !important; } }
main .sec .sc-tt__sub, #related-guides .sc-gc__lead { font-size: clamp(16px, 1.25vw, 19px) !important; }
/* 교통사고 진료 흐름 4단계 — 자생한방병원 교통사고 진료 절차(P07) 모양(사용자 지정 2026-12-04). 세로선 + 번호 동그라미 + STEP 테두리 알약 + 단계 이름,
   아래 옅은 민트 상자(흰 카드 안이라)에 선 아이콘 + 설명. STEP·번호·아이콘은 테마색, 단계 이름·설명 글자는 초록 없이(사용자 지정) */
.tl4 { position: relative; list-style: none; margin: 32px 0 0; padding: 0; }
.tl4__i { position: relative; margin: 0; padding: 0 0 30px 56px; }
.tl4__i:last-child { padding-bottom: 0; }
.tl4__i::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: -2px; width: 2px; background: #dcefed; }
.tl4__i:last-child::before { display: none; }
.tl4__dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e6f3f2; color: #226763; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl4__i:first-child .tl4__dot { background: #226763; color: #fff; }
.tl4__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 36px; margin-bottom: 14px; }
.tl4__n { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border: 1px solid #226763; border-radius: 6px; color: #226763; font-size: 15px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
main .sec:not(.sc-l3) .tl4 p.tl4__t { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700 !important; color: #2a2a2a !important; }
.tl4__box { display: flex; align-items: center; gap: 24px; min-height: 108px; padding: 22px 32px; border-radius: 12px; background: #f1f7f6; }
.tl4__ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; } /* P07처럼 두 톤 그림을 상자 위에 바로(흰 칸 없음) */
.tl4__ic svg { width: 64px; height: 64px; }
main .tl4 .tl4__d { margin: 0; font-size: 16px; line-height: 1.7; color: #665a51 !important; word-break: keep-all; }
@media (max-width: 599.98px) {
  .tl4__i { padding: 0 0 24px 46px; }
  .tl4__i::before { left: 14px; top: 30px; }
  .tl4__dot { width: 30px; height: 30px; font-size: 13px; }
  .tl4__head { min-height: 30px; margin-bottom: 10px; }
  .tl4__n { height: 28px; padding: 0 9px; font-size: 13px; }
  main .sec:not(.sc-l3) .tl4 p.tl4__t { font-size: 17px; }
  .tl4__box { gap: 14px; min-height: 0; padding: 16px; }
  .tl4__ic, .tl4__ic svg { width: 48px; height: 48px; }
  main .tl4 .tl4__d { font-size: 15px; line-height: 1.6; }
}
/* 원장 사진 벽을 섹션 바탕(#fafdfc)으로 바꿔(사용자 지정 2026-12-04 "테마색에 녹아들도록, 배경 딱히 안보여도돼") 사진 칸 바탕도 같은 색 — 사진 테두리가 보이지 않게 */
#doctor .dy__ph { background: #fafdfc !important; }
/* 섹션에 녹아들게(사용자 지정 2026-12-04 "섹션에 녹아들게") — 사진 벽은 흰색으로 만들고 multiply로 겹쳐 섹션 바탕색·바탕 무늬가 그대로 비치게. 사진 칸 바탕·isolation 없앰 */
#doctor .dy__ph { background: transparent !important; isolation: auto !important; }
#doctor .dy__ph img { mix-blend-mode: multiply; }

/* ── 진료시간·오시는 길 — 엘앤더슨(landerson.kr) 모양(사용자 지정 2026-12-04 "엘앤더슨처럼"). 모양은 그대로, 색만 테마 청록(#226763·#5db0af) ── */
@font-face { font-family: "Cormorant Sincerity"; src: url("../fonts/cormorant-italic-deco.woff2") format("woff2"); font-style: italic; font-weight: 300 700; font-display: swap; } /* 엘앤더슨 워터마크 글꼴(Cormorant Italic, OFL) 그대로 — Visit·Always Near 글자가 들어 있다 */
.sc-sec:has(> .wrap > .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: #5db0af; opacity: .2; white-space: nowrap; pointer-events: none; user-select: none; }
#hours .wm-head::before { font-size: clamp(48px, 6.2vw, 92px); }
main .wm-head .wm-head__h { position: relative; margin: 0; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.4; font-weight: 600 !important; 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; }
.wm-head__h .h2-sub, .wm-head__h .h2-main { display: block; }
main .wm-head__h .h2-sub { font-size: max(16px, .56em); font-weight: 500 !important; color: #4f6664; margin-bottom: 10px; }
.wm-head__sub { margin: 14px 0 0; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: #4f6664; word-break: keep-all; }
@media (max-width: 899.98px) { .wm-head::before { top: -40px; font-size: clamp(52px, 15vw, 84px); } #hours .wm-head::before { font-size: clamp(44px, 12vw, 72px); } }

/* 오시는 길 — 넓은 지도 + 지도 위 길찾기 알약 + 핀 주소 + 아이콘 이름 칸 표 */
#location .loc-dy { margin-top: 36px; }
.loc-map { position: relative; background: #e6f1ef; border-radius: 14px; overflow: hidden; }
.loc-map__link { display: block; }
.loc-map__link img { display: block; width: 100%; height: auto; aspect-ratio: 1276 / 532; 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(23, 66, 63, .92); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(23, 66, 63, .22); transition: background-color .3s cubic-bezier(.22, 1, .36, 1); }
.loc-map__btn:hover, .loc-map__btn:focus-visible { background: #226763; color: #fff; }
.loc-map__btn:focus-visible { outline: 2px solid #12302e; outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(23, 66, 63, .22); }
.loc-map__ic { display: inline-flex; }
.loc-map__ic--naver { color: #03c75a; }
.loc-map__ic--kakao { color: #fee500; }
.loc-map__ic--kakao svg { width: 18px; height: 18px; }
.loc-map__ic--kakao circle { fill: #17423f; }
.loc-ic { flex: none; color: #226763; }
.loc-addr { display: flex; align-items: center; gap: 12px; margin: 44px 0 22px; font-size: 22px; font-weight: 600; color: #1d2c2a; 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 #a9d2cf; 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 #a9d2cf; padding: 22px 0; vertical-align: middle; text-align: left; }
.loc-table col.loc-col-k { width: 300px; }
main .loc-table tbody tr > th { padding-left: 40px; background: #e6f3f2; font-size: 18px; font-weight: 600; color: #17423f; white-space: nowrap; }
.loc-table th > * { vertical-align: middle; }
.loc-table th span { margin-left: 14px; }
main .loc-table tbody tr > td { padding-left: 44px; padding-right: 20px; background: #fff; font-size: 17px; font-weight: 400; color: #3d5250; line-height: 1.6; word-break: keep-all; }
.loc-table .loc-tel { color: inherit; font-weight: 600; text-decoration: none; }
.loc-table .loc-tel:hover { color: #226763; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023.98px) {
  .loc-table col.loc-col-k { width: 220px; }
  main .loc-table tbody tr > th { padding-left: 24px; font-size: 16px; }
  main .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: #e6f1ef; }
  .loc-map__link img { aspect-ratio: 796 / 556; }
  .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%; }
  main .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; }
  main .loc-table tbody tr > td { padding: 12px 16px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .loc-map__btn { transition: none; } }

/* 진료시간 — 짙은 청록 린넨 사진 바탕(엘앤더슨 갈색 린넨과 같은 원본 ck-yaytg127753을 테마색으로 입힘) + 왼쪽 흰 제목·문단, 오른쪽 반투명 표 */
.t-home #hours { position: relative; background: #163432 url(/assets/img/stock-bg-linen-teal-960.webp) center / cover no-repeat; color: #d3e6e3; }
@media (min-width: 900px) { .t-home #hours { background-image: url(/assets/img/stock-bg-linen-teal.webp); } }
.t-home #hours::before, .t-home #hours::after { content: none; }
.t-home #hours .wm-head .wm-head__h, .t-home #hours .h2-main { color: #fff; }
.t-home #hours .wm-head__h .h2-sub, .t-home #hours .wm-head__sub { color: #dcebe8; }
.t-home #hours .wm-head::before { color: #8fd3d1; opacity: .22; }
body.t-home main #hours#hours :is(.prose p, .prose p *) { color: #d3e6e3 !important; } body.t-home main #hours#hours table.hours td { color: #eaf5f3 !important; } /* 본문 글자색 규칙(:is 안 #doctor p — ID 수준)보다 세게 */
.t-home #hours .wrap:has(> .hours-box) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .t-home #hours .wrap:has(> .hours-box) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr; column-gap: clamp(40px, 5vw, 88px); align-items: center; }
  .t-home #hours .wrap > .wm-head { grid-column: 1; grid-row: 1; margin-bottom: 0; align-self: end; }
  .t-home #hours .wrap > .prose { grid-column: 1; grid-row: 2; align-self: start; margin-top: 20px; }
  .t-home #hours .wrap > .hours-box { grid-column: 2; grid-row: 1 / span 2; }
}
.t-home #hours table.hours { border-radius: 16px; overflow: hidden; background: rgba(6, 22, 21, .42); border: 1px solid rgba(143, 211, 209, .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(143, 211, 209, .22); }
.t-home #hours table.hours tbody th, .t-home main #hours table.hours tbody tr > th { background: rgba(143, 211, 209, .12); color: #c4ebe8; font-weight: 500; }
.t-home #hours table.hours td, .t-home #hours table.hours tbody tr > td { background: transparent; color: #eaf5f3; font-weight: 400; }
.t-home #hours table.hours .hr-time { color: #fff; font-weight: 500; }
.t-home #hours table.hours .hr-lunch td { color: #d3e6e3; }
.t-home #hours .hr-tag { background: rgba(143, 211, 209, .16); border: 1px solid rgba(143, 211, 209, .45); color: #e3f6f4; box-shadow: none; }
/* 마지막 단계(STEP 04)도 4번 동그라미 아래로 줄이 내려가게(사용자 지정 2026-12-04 "4 아래로도 줄 이어지도록") — 그 단계 설명 칸 끝까지 */
.tl4__i:last-child::before { display: block; bottom: 0; }
/* ── 소개 섹션 사진 캐러셀 — 제너리스의원 메인 둘러보기(.gl) 그대로(사용자 지정 2026-12-04 "제너리스의원과 동일한 캐러셀 디자인, 모바일·데스크탑 모두").
   값은 dermatology/generlessclinic.co.kr style.css .gl 최종값, 바탕·점·테두리 색만 이 사이트 청록 계열. 폭은 섹션 내용 폭(1340px)에 맞춤 */
#about .gl { position: relative; margin-top: clamp(32px, 4vw, 56px); margin-bottom: 44px; }
.gl__stage { position: relative; background: #e6f3f2; }
.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 #226763; outline-offset: 3px; }
.gl__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.gl__card { margin: 0; aspect-ratio: 1476 / 703; overflow: hidden; background: #e6f3f2; }
.gl__card img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; -webkit-user-drag: none; user-select: none; }
.gl__btn, .gl__thumbs, .gl__dots { display: none; }
.sc-js .gl__track { display: block; aspect-ratio: 1476 / 703; 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__card { height: 100%; aspect-ratio: auto; }
/* 바뀔 때 나가는 사진(is-prev)은 아래 그대로, 새 사진이 1.2초 동안 위로 겹치며 살짝 확대에서 제자리로 */
.sc-js .gl__slide.is-prev { z-index: 1; opacity: 1; visibility: visible; transition: none; }
.sc-js .gl__slide.is-on { z-index: 2; opacity: 1; visibility: visible; 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); }
/* PC 썸네일 줄 — 큰 사진 아래 끝에 반쯤 걸치게(183×88, 고른 것 흰 3px 테두리) */
.sc-js .gl__thumbs { position: absolute; z-index: 3; left: 50%; bottom: -44px; transform: translateX(-50%); display: flex; align-items: flex-start; justify-content: center; gap: 12px; height: 88px; width: auto; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.gl__thumbs li { flex: 0 1 183px; width: 183px; height: 88px; min-width: 0; margin: 0; padding: 0; }
.gl__th { display: block; width: 100%; height: 88px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); background: #e6f3f2; overflow: hidden; cursor: pointer; box-sizing: border-box; transition: border-color .3s, border-width .3s; }
.gl__th img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; 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 #226763; outline-offset: 3px; }
@media (max-width: 1024px) {
  #about .gl { margin-bottom: 0; }
  .gl__card, .sc-js .gl__track { aspect-ratio: 4 / 3; }
  .sc-js .gl__card { 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(34, 103, 99, .2); border-radius: 50%; background: rgba(255, 255, 255, .85); color: #226763; 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; }
}
/* 1024px 이하 — dyderm식: 가운데 74% 한 장 + 양옆 앞뒤 사진이 작게 비침 + 점(숫자 없음). 900~1024px 양옆 화살표 버튼 대신 이 모양(사용자 지정 2026-12-04) */
@media (max-width: 1024px) {
  #about .gl { --glw: 92vw; width: var(--glw); margin-inline: calc((100% - var(--glw)) / 2); }
  .sc-js .gl__stage { background: none; overflow: hidden; }
  .sc-js .gl__track { aspect-ratio: auto; height: calc(var(--glw) * .74 * 2 / 3); overflow: visible; }
  .sc-js .gl__slide { left: 13%; right: auto; width: 74%; opacity: 0; visibility: hidden; transform: scale(.82); transition: transform .55s cubic-bezier(.4, 0, .2, 1), left .55s cubic-bezier(.4, 0, .2, 1), opacity .55s ease, visibility 0s linear .55s; }
  .sc-js .gl__slide.is-prev:not(.is-on):not(.gl-l):not(.gl-r) { opacity: 0; visibility: hidden; }
  .sc-js .gl__slide.is-on { z-index: 2; opacity: 1; visibility: visible; transform: none; transition: transform .55s cubic-bezier(.4, 0, .2, 1), left .55s cubic-bezier(.4, 0, .2, 1), opacity .55s ease, visibility 0s; box-shadow: 0 12px 28px rgba(34, 103, 99, .18); }
  .sc-js .gl__slide.gl-l, .sc-js .gl__slide.gl-r { z-index: 1; opacity: 1; visibility: visible; transition: transform .55s cubic-bezier(.4, 0, .2, 1), left .55s cubic-bezier(.4, 0, .2, 1), opacity .55s ease, visibility 0s; }
  .sc-js .gl__slide.gl-l { left: -64%; transform-origin: 100% 50%; }
  .sc-js .gl__slide.gl-r { left: 90%; transform-origin: 0 50%; }
  .sc-js .gl__slide .gl__card { height: 100%; aspect-ratio: auto; }
  .sc-js .gl__slide .gl__card img { width: 100%; height: 100%; object-fit: cover; }
  .sc-js .gl__btn, .sc-js .gl__thumbs { display: none !important; }
  .sc-js .gl__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .gl__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #cfe3e1; cursor: pointer; transition: background-color .3s; }
  .gl__dot.is-on { background: #226763; }
  .gl__dot:focus-visible { outline: 2px solid #226763; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) { .sc-js .gl__slide, .sc-js .gl__slide.is-on, .sc-js .gl__slide.gl-l, .sc-js .gl__slide.gl-r, .gl__th, .gl__th img { transition: none; } .sc-js .gl__slide .gl__card img, .sc-js .gl__slide.is-on .gl__card img { transform: none; transition: none; } }
/* 간판 사진(4:3)은 넓은 PC 틀에서 가운데만 남아 "자인한의원" 글자가 잘렸다 — 아래쪽(글자)을 보이게 */
@media (min-width: 1025px) { #about .gl__card img[src*="/sign-1"] { object-position: 50% 78%; } }

/* ══ 메인 중간 인용 띠 #promise — generlessclinic.co.kr 띠 모양(사용자 지정 2026-12-04, 원장 소개 다음). 사진 보관함 B01 한약재 꾸러미(ck-tip114t007918, 클립아트코리아) — CSS 장식 배경이라 og·ItemList와 무관.
   문구는 감성 문구 은행(정성부부한의원 "사고 이후의 일상까지, 정성으로 함께하겠습니다.") */
.t-home #promise { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; aspect-ratio: 3840 / 1100; padding: clamp(56px, 6vw, 96px) 0 !important; background: #2a3634 url(/assets/img/stock-band-herbal-960.webp) center / cover no-repeat !important; text-align: center; overflow: hidden; }
@media (min-width: 960px) { .t-home #promise { background-image: url(/assets/img/stock-band-herbal.webp) !important; } }
.t-home #promise::before { content: "" !important; display: block !important; position: absolute; inset: 0; background: rgba(20, 34, 33, .5); }
.t-home #promise::after { content: none !important; }
.t-home #promise > .wrap { position: relative; z-index: 1; width: 100%; }
.t-home #promise .sc-tt { margin: 0 auto !important; padding: 0 !important; }
.t-home #promise h2 { margin: 0 !important; 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, .t-home #promise h2 .sc-tt__em { display: block; color: #fff !important; font-weight: 400 !important; font-size: 1em !important; }
.t-home #promise h2::before, .t-home #promise h2::after, .t-home #promise .sc-tt::before, .t-home #promise .sc-tt::after { content: none !important; display: none !important; }
@media (max-width: 767.98px) { .t-home #promise { aspect-ratio: auto; height: 280px; padding: 0 !important; } }
/* 진료 흐름 — 바깥 민트 카드 없애고 단계마다 따로 놓인 상자(사용자 지정 2026-12-04 "초록배경 없애고 process-refs P07처럼, 카드 따로따로").
   P07(자생한방병원 교통사고 절차): 흰 바탕 위 단계별 연회색 상자(#f3f4f6 계열) · 왼쪽 번호 동그라미와 세로줄 · STEP 테두리 꼬리표 */
main .sec .subs > .sub:has(.tl4) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
main .sec .sub:has(.tl4) .tl4__box { background: #f3f5f5 !important; }
main .sec .sub:has(.tl4) .tl4__ic { background: transparent !important; }  /* P07처럼 아이콘 뒤 흰 칸 없이 */
/* 진료 흐름 카드 위 여백 — 위 사진 카드 줄과 붙어 보여서(사용자 지정 2026-12-04 "위에 여백좀") */
#traffic-accident .sub:has(.tl4) { margin-top: clamp(40px, 5vw, 72px); }
/* 통증 소개 글도 사진 없이 가운데 정렬(사용자 지정 2026-12-04 "오른쪽 사진 제거하고 중앙정렬") — 교통사고 소개 글과 같은 모양 */
#pain .prose:has(> p:only-child) { max-width: 46em; margin-inline: auto; text-align: center; }

/* 통증 부위 카드 4장 — 엘앤더슨 숲치료 "하루" 지그재그(사진·글 좌우 번갈아, 사용자 지정 2026-12-04) */
main #pain.sec:not(.sc-l3) .subs { display: grid !important; grid-template-columns: 1fr !important; gap: clamp(56px, 7vw, 110px) !important; margin-top: clamp(40px, 4.5vw, 64px) !important; }
main #pain.sec:not(.sc-l3) .subs > .sub.sub-media { display: grid !important; grid-template-columns: 1fr 1fr !important; align-items: center !important; gap: clamp(28px, 3.2vw, 46px) !important; max-width: none !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; transform: none !important; }
main #pain.sec:not(.sc-l3) .sub-media .card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/9.4; object-fit: cover; border-radius: 0 !important; }
main #pain.sec:not(.sc-l3) .sub-media .card-body { padding: 0 clamp(0px, 3vw, 46px) !important; background: transparent !important; }
main #pain.sec:not(.sc-l3) .subs > .sub-media:nth-child(even) .card-media { order: 2; }
main #pain.sec:not(.sc-l3) .subs > .sub-media:nth-child(even) .card-body { text-align: right; }
main #pain.sec:not(.sc-l3) .sub-media .card-body h3 { margin: 0 !important; font-size: clamp(19px, 1.6vw, 23px) !important; font-weight: 700 !important; color: #222 !important; }
main #pain.sec:not(.sc-l3) .sub-media .card-body p { margin: 16px 0 0 !important; font-size: clamp(15.5px, 1.1vw, 17px) !important; line-height: 1.85 !important; color: #666 !important; word-break: keep-all; }
@media (max-width: 899.98px) {
  main #pain.sec:not(.sc-l3) .subs > .sub.sub-media { grid-template-columns: 1fr !important; gap: 20px !important; }
  main #pain.sec:not(.sc-l3) .subs > .sub-media:nth-child(even) .card-media { order: 0; }
  main #pain.sec:not(.sc-l3) .subs > .sub-media:nth-child(even) .card-body { text-align: left; }
  main #pain.sec:not(.sc-l3) .sub-media .card-body { padding: 0 !important; }
}

/* 교통사고 사진 카드 3장 — 엘앤더슨 숲치료 "가까운 쉼터" 원형 사진 3열(사용자 지정 2026-12-04). 진료 흐름 블록은 아래 한 줄 전체 */
main #traffic-accident.sec:not(.sc-l3) .subs { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 40px clamp(20px, 3vw, 48px) !important; }
main #traffic-accident.sec:not(.sc-l3) .subs > .sub:not(.sub-media) { grid-column: 1 / -1; }
main #traffic-accident.sec:not(.sc-l3) .subs > .sub.sub-media { display: block !important; text-align: center; max-width: none !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; transform: none !important; }
main #traffic-accident.sec:not(.sc-l3) .sub-media .card-media { width: 100%; max-width: 380px; margin-inline: auto; border-radius: 50%; overflow: hidden; }
main #traffic-accident.sec:not(.sc-l3) .sub-media .card-media img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 50% !important; }
main #traffic-accident.sec:not(.sc-l3) .sub-media .card-body { padding: 0 !important; background: transparent !important; }
main #traffic-accident.sec:not(.sc-l3) .sub-media .card-body h3 { margin: 26px 0 0 !important; font-size: clamp(18px, 1.5vw, 22px) !important; font-weight: 700 !important; color: #222 !important; }
main #traffic-accident.sec:not(.sc-l3) .sub-media .card-body p { margin: 12px auto 0 !important; max-width: 30em; font-size: clamp(15px, 1.05vw, 16.5px) !important; line-height: 1.8 !important; color: #666 !important; word-break: keep-all; }
@media (max-width: 899.98px) {
  main #traffic-accident.sec:not(.sc-l3) .subs { grid-template-columns: 1fr !important; }
  main #traffic-accident.sec:not(.sc-l3) .subs > .sub.sub-media { max-width: 360px !important; margin-inline: auto; width: 100%; }
}
/* 위 두 배치에서 기존 "사진 위 글자" 카드(절대 위치 + 어두운 그라데이션)를 끈다 */
main :is(#pain, #traffic-accident).sec:not(.sc-l3) .subs > .sub.sub-media { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; overflow: visible !important; }
main :is(#pain, #traffic-accident).sec:not(.sc-l3) .subs > .sub.sub-media::after, main :is(#pain, #traffic-accident).sec:not(.sc-l3) .subs > .sub.sub-media::before { content: none !important; display: none !important; }
main :is(#pain, #traffic-accident).sec:not(.sc-l3) .sub-media .card-media, main :is(#pain, #traffic-accident).sec:not(.sc-l3) .sub-media .card-body { position: static !important; inset: auto !important; height: auto !important; }
main :is(#pain, #traffic-accident).sec:not(.sc-l3) .sub-media .card-media img { position: static !important; height: auto !important; transform: none !important; }
/* 지그재그·원형 줄을 제목 글 칸(좌우 60px 안쪽)과 맞춤 — 진료 흐름 블록은 원래 폭 그대로 */
@media (min-width: 1280px) {
  main :is(#pain, #traffic-accident).sec:not(.sc-l3) .subs:has(> .sub-media) { padding-inline: 60px !important; }
  main #traffic-accident.sec:not(.sc-l3) .subs > .sub:not(.sub-media) { margin-inline: -60px !important; }
}

/* 길찾기 버튼 — 네이버·카카오 실제 브랜드 바탕색(사용자 지정 2026-12-04) */
.loc-map__btn[href*="map.naver.com"] { background: #03c75a; color: #fff; box-shadow: 0 6px 18px rgba(3, 199, 90, .28); }
.loc-map__btn[href*="map.naver.com"]:hover, .loc-map__btn[href*="map.naver.com"]:focus-visible { background: #02b350; color: #fff; }
.loc-map__btn[href*="map.naver.com"] .loc-map__ic--naver { color: #fff; }
.loc-map__btn[href*="map.kakao.com"] { background: #fee500; color: #191919; box-shadow: 0 6px 18px rgba(60, 50, 0, .2); }
.loc-map__btn[href*="map.kakao.com"]:hover, .loc-map__btn[href*="map.kakao.com"]:focus-visible { background: #f5dc00; color: #191919; }
.loc-map__btn[href*="map.kakao.com"] .loc-map__ic--kakao { color: #191919; }
.loc-map__btn[href*="map.kakao.com"] .loc-map__ic--kakao circle { fill: #fee500; }
@media (max-width: 719.98px) { .loc-map__btn[href*="map.naver.com"], .loc-map__btn[href*="map.kakao.com"] { box-shadow: none; } }

/* 진료시간과 오시는 길 한 섹션 — 제너리스의원 hours-loc 모양(사용자 지정 2026-12-04). 왼쪽 시간표 + 길찾기 알약, 오른쪽 지도, 아래 주소·안내 표 */
#location .sc-tt { text-align: center; }
#location .wrap > .prose { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
#location .wrap > .prose p { margin: 0; color: #4a5b59; }
#location .hm { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); width: 100%; max-width: 1080px; margin-inline: auto; }
#location .hm-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#location .hm .hours-box { flex: 1 1 auto; margin: 0 !important; max-width: none !important; width: 100%; border: 1px solid #cfe5e3; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -24px rgba(34, 103, 99, .35); }
#location .hm .hours-box::after { display: none; }
#location .hm .hours-box .table-wrap { height: 100%; }
#location .hm table.hours { width: 100%; height: 100%; border-collapse: collapse; }
#location .hm table.hours thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#location .hm table.hours tbody th { width: 36%; padding: 22px 24px; background: #eef7f6; color: #263735; font-weight: 600; text-align: left; border: 0; border-bottom: 1px solid #dcefed; }
#location .hm table.hours tbody td { padding: 22px 24px; background: #fff; color: #263735; border: 0; border-bottom: 1px solid #dcefed; }
#location .hm table.hours tbody tr:last-child > * { border-bottom: 0; }
#location .hm .hr-time { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
#location .hm-btns { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; white-space: nowrap; }
#location .hm-btns .loc-map__btn { justify-content: center; height: 54px; padding: 0 16px; box-shadow: none; }
#location .hm-box { overflow: hidden; border-radius: 16px; border: 1px solid #cfe5e3; box-shadow: 0 18px 40px -24px rgba(34, 103, 99, .35); background: #e9f1f0; }
#location .hm-map { display: block; position: relative; height: 100%; aspect-ratio: 794 / 954; }
#location .hm-map picture, #location .hm-map img { display: block; width: 100%; height: 100%; }
#location .hm-map img { position: absolute; inset: 0; object-fit: cover; object-position: 50% 50%; }
#location .hm-map:focus-visible { outline: 3px solid #226763; outline-offset: 3px; }
@media (min-width: 900px) {
  #location .hm { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; }
  #location .hm-map { aspect-ratio: auto; min-height: 460px; }
}
@media (max-width: 719.98px) {
  #location .hm-box { border: 0; box-shadow: none; border-radius: 12px; }
  #location .hm .hours-box { box-shadow: none; }
  #location .hm table.hours tbody th, #location .hm table.hours tbody td { padding: 16px; }
  #location .hm .hr-time { font-size: 16px; }
}
@media (max-width: 379.98px) { #location .hm-btns { gap: 8px; } #location .hm-btns .loc-map__btn { padding: 0 8px; gap: 5px; font-size: 14px; } }
#location .hm + .loc-dy { width: 100%; max-width: 1080px; margin: clamp(36px, 4vw, 48px) auto 0; }

@media (max-width: 379.98px) { #location .hm table.hours tbody th, #location .hm table.hours tbody td { padding: 14px 12px; } #location .hm table.hours tbody th { width: 34%; } #location .hm .hr-tag { white-space: normal; } }

/* 추나 안내 순서 3단계 — 가까이한의원 진단 프로세스(P01) 모양, 사이트 청록으로(사용자 지정 2026-12-04) */
main .sec .subs > .sub:has(.pk3) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
.pk3 { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pk3__i { --pk: #36827f; position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 34px 36px 130px; border-radius: 14px; background: var(--pk); border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 36px -24px rgba(34, 103, 99, .55); color: #fff; }
.pk3__i:nth-child(2) { --pk: #2e7572; }
.pk3__i:nth-child(3) { --pk: #266865; }
main .sec:not(.sc-l3) .pk3__n { display: block; margin: 0; font-family: "Noto Serif KR TT", "Noto Serif KR", serif; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .82) !important; }
main .sec:not(.sc-l3) p.pk3__t { margin: 14px 0 0 !important; font-size: clamp(21px, 1.75vw, 26px) !important; font-weight: 700 !important; line-height: 1.4 !important; color: #fff !important; word-break: keep-all; }
main .sec:not(.sc-l3) p.pk3__d { margin: 20px 0 0 !important; font-size: 16px !important; line-height: 1.85 !important; color: rgba(255, 255, 255, .92) !important; word-break: keep-all; max-width: 22em; }
.pk3__ic { position: absolute; right: 30px; bottom: 30px; width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.pk3__ic svg { width: 54px; height: 54px; display: block; }
/* 카드 사이 둥근 이음매 — 앞 카드 색 반원이 다음 카드 쪽으로 볼록, 가운데 흰 점 */
.pk3__jn { position: absolute; z-index: 2; top: 50%; right: -24px; width: 32px; height: 52px; margin-top: -26px; border-radius: 0 26px 26px 0; background: var(--pk); border: 1px solid rgba(255, 255, 255, .28); border-left: 0; }
.pk3__jn::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; }
@media (max-width: 1023.98px) {
  .pk3__i { padding: 30px 26px 124px; }
  .pk3__ic { right: 22px; bottom: 22px; width: 84px; height: 84px; }
  .pk3__ic svg { width: 46px; height: 46px; }
}
@media (max-width: 767.98px) {
  .pk3 { grid-template-columns: 1fr; gap: 16px; }
  .pk3__i { min-height: 0; padding: 26px 24px 26px; padding-right: 116px; }
  .pk3__ic { right: 20px; bottom: auto; top: 50%; margin-top: -40px; width: 80px; height: 80px; }
  .pk3__ic svg { width: 44px; height: 44px; }
  .pk3__jn { top: auto; bottom: -24px; right: auto; left: 50%; width: 52px; height: 32px; margin: 0 0 0 -26px; border-radius: 0 0 26px 26px; border: 1px solid rgba(255, 255, 255, .28); border-top: 0; }
}
main #chuna.sec:not(.sc-l3) .pk3 > li.pk3__i { margin: 0 !important; align-self: stretch; }
main #chuna.sec:not(.sc-l3) .pk3__i span.pk3__n { color: rgba(255, 255, 255, .82) !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__t { color: #fff !important; font-weight: 700 !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__d { color: rgba(255, 255, 255, .92) !important; font-weight: 400 !important; }
.pk3__ic { background: #f3faf9; border: 0; box-shadow: 0 0 0 7px rgba(255, 255, 255, .16); }
/* 척추·관절 통증 카드 — 정사각형 원본(1254×1254)이 16:9.4 틀에서 위아래 40%가 잘려 확대돼 보여 원본 비율 그대로 전부 보이게(사용자 지정 2026-12-04 "이미지 너무 확대된듯. 전체적으로 좀 보이게") */
main #pain.sec:not(.sc-l3) .sub-media .card-media img[width="1254"][height="1254"] { aspect-ratio: 1 / 1; }
.pk3__i { --pk: #317a77; }
.pk3__i:nth-child(2) { --pk: #2b706d; }
.pk3__i:nth-child(3) { --pk: #246663; }
main #chuna.sec:not(.sc-l3) .pk3__i span.pk3__n { color: rgba(255, 255, 255, .96) !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__d { color: #fff !important; }
/* 추나 3단계 카드 — 진한 청록 → P01처럼 옅은 유리 톤, 세 장 같은 색(사용자 "너무 색이 진해", "왼쪽으로 갈수록 더 밝아지네" 2026-12-04) */
.pk3__i, .pk3__i:nth-child(2), .pk3__i:nth-child(3) { --pk: #cde8e5; }
.pk3__i { overflow: visible; border: 1px solid #b4dad6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 36px -26px rgba(34, 103, 99, .35); isolation: isolate; }
.pk3__i::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.pk3__jn { border-color: #b4dad6; }
.pk3__jn::after { background: #5DB0AF; }
main #chuna.sec:not(.sc-l3) .pk3__i span.pk3__n { color: #2f6f6c !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__t { color: #173f3d !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__d { color: #2f4d4b !important; }
.pk3__ic { background: #fff; box-shadow: 0 0 0 7px rgba(255, 255, 255, .45); }

/* 추나 3단계 — P01 카드 생김새 그대로(사용자 "카드들 생긴거 그대로 가져와. 지금 너무 달라" 2026-12-04)
   중간 밝기 반투명 톤 + 옅은 테두리·빛, 오른쪽 가장자리가 부드럽게 볼록한 이음매 안 점, 흰 글, 얇은 테두리 원 안 한 색 아이콘. 세 장 같은 색 */
.pk3 { gap: 18px; }
.pk3__i, .pk3__i:nth-child(2), .pk3__i:nth-child(3) { --pk: #6fadaa; }
.pk3__i { min-height: 400px; padding: 40px 40px 140px; border-radius: 16px; background: var(--pk); border: 1px solid rgba(232, 248, 246, .75); box-shadow: 0 0 18px -4px rgba(176, 226, 222, .9), 0 22px 40px -28px rgba(20, 70, 67, .55); isolation: isolate; overflow: visible; }
.pk3__i::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, 0) 60%); pointer-events: none; }
main #chuna.sec:not(.sc-l3) .pk3__i span.pk3__n { font-family: "Noto Serif KR TT", "Noto Serif KR", Georgia, serif; font-size: 17px; font-weight: 400; letter-spacing: 0; color: #fff !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__t { margin-top: 16px !important; font-size: clamp(22px, 2vw, 30px) !important; font-weight: 700 !important; color: #fff !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__d { margin-top: 26px !important; font-size: 16.5px !important; line-height: 1.85 !important; color: #fff !important; font-weight: 500 !important; max-width: 24em; }
.pk3__ic { --pa: #f3fbfa; --pb: #4d9491; --pc: #6fadaa; right: 32px; bottom: 30px; width: 96px; height: 96px; background: transparent; border: 1px solid rgba(243, 251, 250, .8); box-shadow: none; }
.pk3__ic svg { width: 52px; height: 52px; }
/* 볼록 이음매 — 카드 색과 같은 면, 어깨가 부드럽게 휘는 테두리, 가운데 밝은 점 */
.pk3__jn { top: 50%; right: -33px; width: 34px; height: 96px; margin-top: -48px; border: 0; border-radius: 0; background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 96'%3E%3Cpath fill='%236fadaa' d='M0 0C0 16 4 22 10 27A22 22 0 0 1 10 69C4 74 0 80 0 96Z'/%3E%3Cpath fill='none' stroke='%23e8f8f6' stroke-opacity='.75' stroke-width='1' d='M.5 0C.5 16 4.5 22 10.5 27A22 22 0 0 1 10.5 69C4.5 74 .5 80 .5 96'/%3E%3C/svg%3E"); }
.pk3__jn::after { top: 50%; left: 10px; width: 15px; height: 15px; margin: -7.5px 0 0 0; background: #f3fbfa; }
@media (max-width: 1023.98px) {
  .pk3__i { min-height: 380px; padding: 32px 28px 130px; }
}
@media (max-width: 767.98px) {
  .pk3 { gap: 20px; }
  .pk3__i { min-height: 0; padding: 28px 116px 30px 26px; }
  .pk3__ic { right: 20px; bottom: auto; top: 50%; margin-top: -40px; width: 80px; height: 80px; }
  .pk3__ic svg { width: 44px; height: 44px; }
  .pk3__jn { top: auto; right: auto; bottom: -65px; left: 50%; width: 34px; height: 96px; margin: 0 0 0 -17px; transform: rotate(90deg); transform-origin: 50% 50%; }
  .pk3__jn { bottom: -65px; }
}
/* 이음매가 다음 카드에 가려지지 않게 — 간격 = 이음매 깊이, 앞 카드가 위 */
.pk3 { gap: 30px; }
.pk3__i:nth-child(1) { z-index: 3; } .pk3__i:nth-child(2) { z-index: 2; } .pk3__i:nth-child(3) { z-index: 1; }
.pk3__jn { right: -29px; width: 30px; height: 96px; margin-top: -48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 96'%3E%3Cpath fill='%236fadaa' d='M0 0C0 16 3 22 8 27A22 22 0 0 1 8 69C3 74 0 80 0 96Z'/%3E%3Cpath fill='none' stroke='%23e8f8f6' stroke-opacity='.75' stroke-width='1' d='M.5 0C.5 16 3.5 22 8.5 27A22 22 0 0 1 8.5 69C3.5 74 .5 80 .5 96'/%3E%3C/svg%3E"); }
.pk3__jn::after { left: 6px; }
@media (max-width: 767.98px) {
  .pk3 { gap: 30px; }
  .pk3__jn { top: auto; right: auto; left: 50%; bottom: -62px; width: 30px; height: 96px; margin: 0 0 0 -15px; transform: rotate(90deg); }
}
/* 진료시간 표 — 배지 없이 시간 아래 점심시간 글자(제너리스 hr-sub), 표는 가로 스크롤 없이 칸 안에(사용자 지정 2026-12-04) */
#location .table-wrap, #location .loc-table { overflow: visible !important; }
#location .hm table.hours { table-layout: fixed; }
#location .hm .hr-time { display: block; }
#location .hm .hr-sub { display: block; margin-top: 6px; font-size: 14px; color: #566866; font-variant-numeric: tabular-nums; }
@media (max-width: 379.98px) { #location .hm .hr-sub { font-size: 13px; } }
/* 지하철 호선 뱃지 — 제너리스 sub-b 모양, 대전 도시철도 1호선 색(사용자 지정 2026-12-04) */
.sub-b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 5px; border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1; color: #fff; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.sub-b::before { content: attr(data-n); }
.sub-b--dj1 { background: #007448; }
/* 전화번호 밑줄 없이(사용자 지정 2026-12-04) */
#location .loc-tel, #location .loc-tel:hover { text-decoration: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ===== 추나 3단계 — 가까이한의원 진단 프로세스(sub0301 .sec03) CSS 수치 그대로, 갈색 톤만 사이트 청록으로(사용자 "완전 똑같이 가져와서 톤과 아이콘만 바꾸라니까" 2026-12-04)
   원본: 카드 높이 400·반경 20·안쪽 32/40·간격 15, 배경 반투명 .6(1→3장 진해짐), 오른쪽 그림자 4.78px, 볼록 이음매 62×140(right -29), 아이콘 원 96(bottom 30·right 37), 제목 34/600·설명 18, 짙은 물결 바탕 띠 위 흰 글 ===== */
main #chuna .subs > .sub:has(.pk3) { position: relative; isolation: isolate; padding: clamp(72px, 8vw, 120px) 0 !important; margin-top: clamp(40px, 5vw, 72px); text-align: center; }
main #chuna .subs > .sub:has(.pk3)::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: radial-gradient(140% 90% at 15% -10%, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 55%), radial-gradient(120% 80% at 95% 110%, rgba(20, 50, 49, .22), rgba(20, 50, 49, 0) 60%), linear-gradient(172deg, #6c8d8c 0%, #668786 45%, #5f7f7e 100%); }
main #chuna .sub:has(.pk3) .sub-ico { display: none !important; }
main #chuna .sub:has(.pk3) .sub-head { justify-content: center; }
main #chuna.sec:not(.sc-l3) .sub:has(.pk3) h3 { margin: 0 !important; font-size: clamp(26px, 2.6vw, 38px) !important; font-weight: 500 !important; color: #fff !important; letter-spacing: -.02em; }
main #chuna.sec:not(.sc-l3) .sub:has(.pk3) .card-body > p:not([class]) { margin: 18px auto 0 !important; max-width: 46em; color: rgba(255, 255, 255, .88) !important; }
main #chuna .pk3 { display: flex !important; gap: 0 !important; margin: clamp(48px, 6vw, 90px) 0 0 !important; text-align: left; }
main #chuna .pk3 > li.pk3__i { --pc: #83bcbb; flex: 438 1 0; min-width: 0; min-height: 0; height: 400px; margin: 0 !important; padding: 32px 24px 0 40px; border-radius: 20px; background: rgba(150, 223, 222, .6); border: 1px solid #9ef2f1; box-shadow: 4.78px 0 4.78px 0 #5bb9b7; z-index: 2; color: #fff; isolation: auto; overflow: visible; }
main #chuna .pk3 > li.pk3__i:nth-child(2) { --pc: #71b0af; background: rgba(120, 203, 202, .6); box-shadow: 4.78px 0 4.78px 0 #579493; z-index: 1; margin-left: 15px !important; }
main #chuna .pk3 > li.pk3__i:nth-child(3) { --pc: #5f9e9d; flex-basis: 0; flex-grow: 410; padding-left: 28px; background: rgba(93, 177, 176, .6); border-color: #86e3e1; box-shadow: 4.78px 0 4.78px 0 #528483; z-index: 0; margin-left: 15px !important; }
main #chuna .pk3 > li.pk3__i::before { content: none; display: none; }
main #chuna.sec:not(.sc-l3) .pk3__i span.pk3__n { display: block; margin: 0 0 10px; font-family: "Cormorant Garamond", "Noto Serif KR TT", Georgia, serif; font-size: 20px; font-weight: 400; line-height: 1; letter-spacing: 0; color: #fff !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__t { margin: 0 0 20px !important; font-size: clamp(24px, 2.36vw, 34px) !important; font-weight: 600 !important; line-height: 1.35 !important; color: #fff !important; }
main #chuna.sec:not(.sc-l3) .pk3__i p.pk3__d { margin: 0 !important; max-width: none; font-size: clamp(16px, 1.25vw, 18px) !important; line-height: 1.7 !important; font-weight: 400 !important; color: #fff !important; }
main #chuna .pk3__ic { --pa: #cffcfb; --pb: #4e8f8d; position: absolute; top: auto; right: 37px; bottom: 30px; margin: 0; width: 96px; height: 96px; border-radius: 50%; border: 1px solid #cffcfb; background: transparent; box-shadow: none; display: flex; align-items: center; justify-content: center; }
main #chuna .pk3__ic svg { width: 50px; height: 50px; }
main #chuna .pk3__jn { position: absolute; z-index: 3; top: calc(50% - 70px); right: -29px; bottom: auto; left: auto; width: 62px; height: 140px; margin: 0; border: 0; border-radius: 0; transform: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 140'%3E%3Cpath fill='%2383bcbb' d='M0 0H33.5V20C33.5 32 61 40 61 70S33.5 108 33.5 120V140H0Z'/%3E%3Cpath fill='none' stroke='%239ef2f1' d='M33.5 0V20C33.5 32 61 40 61 70S33.5 108 33.5 120V140'/%3E%3Ccircle fill='%23cffcfb' cx='33.5' cy='70' r='7.5'/%3E%3C/svg%3E") no-repeat 0 0 / 62px 140px; }
main #chuna .pk3__i:nth-child(2) .pk3__jn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 140'%3E%3Cpath fill='%2371b0af' d='M0 0H33.5V20C33.5 32 61 40 61 70S33.5 108 33.5 120V140H0Z'/%3E%3Cpath fill='none' stroke='%239ef2f1' d='M33.5 0V20C33.5 32 61 40 61 70S33.5 108 33.5 120V140'/%3E%3Ccircle fill='%23cffcfb' cx='33.5' cy='70' r='7.5'/%3E%3C/svg%3E"); }
main #chuna .pk3__jn::after { content: none; display: none; }
@media (max-width: 1023.98px) {
  main #chuna .pk3 > li.pk3__i { height: 420px; padding: 28px 18px 0 26px; }
  main #chuna .pk3__ic { right: 22px; bottom: 22px; width: 80px; height: 80px; }
  main #chuna .pk3__ic svg { width: 42px; height: 42px; }
}
@media (max-width: 767.98px) {
  main #chuna .pk3 { flex-direction: column; }
  main #chuna .pk3 > li.pk3__i, main #chuna .pk3 > li.pk3__i:nth-child(n) { flex: none; height: auto; min-height: 210px; padding: 26px 120px 30px 24px; margin-left: 0 !important; }
  main #chuna .pk3 > li.pk3__i:nth-child(n+2) { margin-top: 15px !important; }
  main #chuna .pk3__ic { top: 50%; bottom: auto; right: 22px; margin-top: -40px; }
  main #chuna .pk3__jn { top: auto; right: auto; left: 50%; bottom: -68px; margin-left: -31px; transform: rotate(90deg); }
}
main #chuna.sec:not(.sc-l3) .pk3 > li.pk3__i:nth-child(n+2) { margin-left: 15px !important; }
@media (max-width: 767.98px) { main #chuna.sec:not(.sc-l3) .pk3 > li.pk3__i:nth-child(n+2) { margin-left: 0 !important; margin-top: 15px !important; } }
/* 진료시간 표 흰 여백 제거(사용자 지정 2026-12-04) — 옛 .hours 위 여백 8px이 상자 안 위쪽 흰 띠를 만들고 아래 줄을 8px 잘랐다. 표 자체 테두리·둥근 모서리도 상자 테두리 안에서 흰 테를 한 겹 더 만들어 뺀다 */
#location .hm table.hours { margin: 0 !important; border: 0; border-radius: 0; }
/* 추나 안내 순서 — 바탕 띠 제거, 제목·설명 원래대로, 카드만 P01 모양(사용자 "섹션 배경 제거해. 원래 없었잖아. 밑에 카드만 냅둬" 2026-12-04)
   띠 위에서 보이던 카드 색(반투명 .6 합성 결과)을 불투명 값으로 고정해 밝은 바탕에서도 같은 톤 */
main #chuna .subs > .sub:has(.pk3) { padding: 0 !important; margin-top: 0; text-align: left; isolation: auto; }
main #chuna .subs > .sub:has(.pk3)::before { content: none !important; display: none !important; }
main #chuna .sub:has(.pk3) .sub-ico { display: inline-flex !important; }
main #chuna .sub:has(.pk3) .sub-head { justify-content: flex-start; }
main #chuna.sec:not(.sc-l3) .sub:has(.pk3) h3 { margin: 0 !important; font-size: revert !important; font-weight: revert !important; color: revert !important; letter-spacing: revert; }
main #chuna.sec:not(.sc-l3) .sub:has(.pk3) .card-body > p:not([class]) { margin: revert !important; max-width: none; color: #665a51 !important; }
main #chuna .pk3 { margin-top: clamp(28px, 3.5vw, 48px) !important; }
main #chuna .pk3 > li.pk3__i { background: #83bcbb; }
main #chuna .pk3 > li.pk3__i:nth-child(2) { background: #71b0af; }
main #chuna .pk3 > li.pk3__i:nth-child(3) { background: #61a09f; }
/* 히어로 윗줄 "교통사고 후유증부터 일상 속 통증까지" 굵기 한 단계 낮춤 700 → 600(사용자 지정 2026-12-04 "볼드 하나 내려") */
main .sc-hero.sc-h2 .sc-h2__tag { font-weight: 600 !important; }
/* 진료문의 띠 — 미장 벽 질감이 보이게 막을 옅은 짙은 청록으로(사용자 "진료문의는 배경으로 질감같은거" 2026-12-04) */
.sc-l3::after { background: linear-gradient(90deg, rgba(14, 44, 42, .78) 0%, rgba(18, 56, 54, .55) 55%, rgba(22, 66, 63, .4) 100%) !important; }
.sc-l3 .sc-l3__bg { object-position: center center; }
/* 진료시간 옆 지도: 큰 지도 한 장을 원래 크기 그대로 가운데만 보여 준다 — 화면 폭이 달라도 지도 글자 크기가 같다(사용자 지정 2026-12-04) */
#location .hm-map img { object-fit: none; object-position: 50% 50%; }
/* 핀 위 업체 이름표 — 카카오 그림 속 이름표(흰 바탕·회색 테두리·검은 글자 약 12px, 90×22)와 같은 모양으로 글자만 키워 그 위에 덮는다(사용자 지정 2026-12-04 "색 바꾸지 말고 크기만"). 위치: 지도 가운데 기준 x -2px, 카카오 이름표 아래 끝 y -53px(898×1098 이미지에서 잼) */
#location .hm-pin { position: absolute; left: calc(50% - 2px); top: calc(50% - 51px); transform: translate(-50%, -100%); padding: 4px 11px; border: 1px solid #adada9; border-radius: 8px; background: #fff; color: #000; font-size: 15px; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; }
/* 추나 소개 글 가운데 정렬 + 두 줄(사용자 지정 2026-12-04) — 교통사고·통증 소개 글과 같은 폭 */
#chuna .prose:has(> p:only-child) { max-width: 62em !important; margin-inline: auto; text-align: center; }
#chuna .prose:has(> p:only-child) > p { max-width: none !important; }
/* 추나 안내 순서 카드 — 아이콘을 빼서(사용자 지정 2026-12-04) 아이콘 자리였던 아래·오른쪽 여백을 줄임 */
main #chuna .pk3 > li.pk3__i { height: auto !important; min-height: 280px !important; padding-bottom: 40px !important; }
@media (max-width: 899.98px) { main #chuna .pk3 > li.pk3__i, main #chuna .pk3 > li.pk3__i:nth-child(n) { min-height: 0 !important; padding-right: 24px !important; } }
/* 진료 문의 띠 버튼(사용자 지정 2026-12-04) — 대표번호는 히어로 전화 버튼과 같은 원형 아이콘, 길찾기는 오시는 길 지도 옆 네이버 길찾기 버튼 그대로 */
.sc-l3__btn--tel { padding-left: 7px; }
.sc-l3__btn--tel .sc-b5__ic { width: 38px; height: 38px; margin-right: 2px; }
.sc-l3__btn--tel .sc-b5__ic .sc-ic { width: 20px; height: 20px; }
.sc-l3__act .sc-l3__map { height: auto; min-height: 52px; align-self: stretch; }
@media (max-width: 559px) { .sc-l3__act .sc-l3__map { width: 100%; justify-content: center; } }

/* 추나 안내 순서 3단계 — 함소아한의원 교통사고 치료 절차 카드 그대로(사용자 지정 2026-12-04 "R065 이거로 카드만 수정해").
   원본 값: 카드 사이 20px, 흰 바탕 1px 테두리 #eee 반경 10px, 안쪽 50px, 아이콘 60px, Step 18px(강조색)·설명 16px, 위 간격 20px. 섹션 바탕이 옅은 청록이라 테두리만 청록 쪽으로 */
main .sec .subs > .sub:has(.hs4) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
main .sec .subs > .sub:has(.hs4)::before { content: none !important; }
main .sec .hs4 { list-style: none; display: flex; gap: 20px; margin: clamp(28px, 3.5vw, 44px) 0 0; padding: 0; }
main .sec .hs4 > li.hs4__i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 50px 30px; border: 1px solid #e1ecea; border-radius: 10px; background: #fff; text-align: center; }
.hs4__ic { display: block; width: 60px; height: 60px; }
.hs4__ic svg { display: block; width: 60px; height: 60px; }
.hs4__n { display: block; margin-top: 20px; font-size: 18px; line-height: 1.4; color: #226763; font-variant-numeric: tabular-nums; }
main #chuna.sec:not(.sc-l3) .hs4 p.hs4__t { margin: 10px 0 0 !important; font-size: 18px !important; line-height: 1.45; font-weight: 700 !important; color: #222 !important; word-break: keep-all; }
main #chuna.sec:not(.sc-l3) .hs4 p.hs4__d { margin: 20px 0 0 !important; font-size: 16px !important; line-height: 1.65; font-weight: 400 !important; color: #444 !important; word-break: keep-all; }
@media (max-width: 1023.98px) { main .sec .hs4 > li.hs4__i { padding: 40px 20px; } }
@media (max-width: 767.98px) {
  main .sec .hs4 { flex-direction: column; max-width: 480px; margin-inline: auto; }
  main .sec .hs4 > li.hs4__i { flex: none; }
}
@media (max-width: 599.98px) {
  main .sec .hs4 { gap: 10px; }
  main .sec .hs4 > li.hs4__i { flex-basis: 100%; padding: 25px; border-radius: 5px; }
  .hs4__ic, .hs4__ic svg { width: 50px; height: 50px; }
}
/* 하단 "진료 문의" 띠 버튼 — 대표번호는 흰 바탕, 네이버 길찾기는 지도 옆 버튼과 똑같이(흰 글자·초록 번짐 그림자 없음) (사용자 지정 2026-12-04) */
.sc-l3 .sc-l3__btn--tel, .sc-l3 .sc-l3__btn--tel:hover, .sc-l3 .sc-l3__btn--tel:focus-visible { background: #fff !important; color: #1d3836 !important; }
.sc-l3 .sc-l3__btn--tel b { color: #1d3836 !important; }
.sc-l3 .sc-l3__btn--tel .sc-b5__ic { background: #1d3836 !important; color: #fff !important; } /* 히어로 전화 문의 버튼과 같은 색(사용자 지정 2026-12-04) */

/* 푸터 배경 — Pexels 7795827(리드 디퓨저·초·나무 쟁반)을 dyderm.com 푸터 색감(#0c0b0a 바탕, 평균 밝기 약 9%)으로 어둡게 가공해 오른쪽에 둠
   (사용자 지정 2026-12-04 "D07 이거로 더 어둡게", "dyderm 푸터의 색감처럼"). 원본은 D:/stock-images/common/section-bg/dark-still-life/ */
footer.sc-ft1 { background: #0c0b0a url("/assets/img/stock-ft-diffuser.webp") no-repeat right center / cover !important; }
@media (max-width: 899.98px) { footer.sc-ft1 { background-image: linear-gradient(rgba(12,11,10,.6), rgba(12,11,10,.6)), url("/assets/img/stock-ft-diffuser-800.webp") !important; background-position: center, 72% bottom !important; background-size: auto, auto 70% !important; } }
/* 푸터 두 칸(병원 · 연락처) — 진료 안내·바로가기·채널 칸을 뺐다(사용자 지정 2026-12-04) */
@media (min-width: 640px) { .sc-ft1__grid { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 1080px) { .sc-ft1__grid { grid-template-columns: minmax(0, 1fr) auto; } }
.sc-ft1__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.sc-ft1__copy .sc-ft1__privacy { font-weight: 700; color: rgba(255, 255, 255, .9); }
.sc-ft1__tag .nb { white-space: nowrap; } /* "평일 야간진료"가 폰에서 가운데서 꺾이지 않게 */
/* 푸터는 테마색(청록) 없이 흰색·회색만, 배경 사진은 더 어둡게(사용자 지정 2026-12-04) */
footer.sc-ft1 { --sc-accent: rgba(255, 255, 255, .78); --sc-accent-rgb: 255, 255, 255; background: linear-gradient(rgba(8, 8, 8, .55), rgba(8, 8, 8, .55)), #0c0b0a url("/assets/img/stock-ft-diffuser.webp") no-repeat right center / cover !important; }
@media (max-width: 899.98px) { footer.sc-ft1 { background-image: linear-gradient(rgba(8, 8, 8, .78), rgba(8, 8, 8, .78)), url("/assets/img/stock-ft-diffuser-800.webp") !important; } }
footer.sc-ft1 .sc-ft1__h { color: rgba(255, 255, 255, .9); }
footer.sc-ft1 .sc-ic { color: rgba(255, 255, 255, .6); }
footer.sc-ft1 .sc-ft1__contact a:hover, footer.sc-ft1 .sc-ft1__contact a:focus-visible { color: #fff; }
footer.sc-ft1 :focus-visible { outline-color: #fff; }
/* 푸터 링크는 마우스를 올려도 밑줄 없이 글자만 밝아진다(사용자 지정 2026-12-04 "개인정보처리방침 같은 링크 밑줄 생기지 않게") */
footer.sc-ft1 a, footer.sc-ft1 a:hover, footer.sc-ft1 a:focus-visible { text-decoration: none !important; }
footer.sc-ft1 a:hover, footer.sc-ft1 a:focus-visible { color: #fff !important; }
/* 개인정보처리방침 링크는 옆 저작권 글자와 같은 크기·굵기·색(사용자 지정 2026-12-04) */
footer.sc-ft1 .sc-ft1__copy .sc-ft1__privacy { font-size: inherit; font-weight: 400; color: inherit; }
/* 푸터 글자색 — 청록 기운이 섞인 기본 글자(#c3dcd9)·흰 글자(#f3faf9)를 순수 흰색·회색으로(사용자 지정 2026-12-04 "흰색이나 회색만") */
footer.sc-ft1 { --sc-on-dark: #fff; --sc-on-dark-muted: rgba(255, 255, 255, .72); --sc-on-dark-rgb: 255, 255, 255; color: rgba(255, 255, 255, .72); }
footer.sc-ft1 :is(.sc-ft1__tag, .sc-ft1__tag *, .sc-ft1__tnum, .sc-ft1__contact a) { color: #fff; }
footer.sc-ft1 .sc-ft1__logo { color: #fff; }
/* 히어로 전화 문의 버튼 — 테마색 #226763보다 어둡게, 상단 메뉴 띠 색 정도(사용자 지정 2026-12-04 "navbar색 정도") */
main .sc-h2__tel .sc-b5__ic { background: #1d3836 !important; }
main .sc-h2__tel, main .sc-h2__tel b, main .sc-h2__tel .sc-b5__tx { color: #1d3836 !important; }
main .sc-h2__tel .sc-b5__tx small { color: #3d5452 !important; }
/* 교통사고 진료 흐름 블록 폭 줄임 — 한 줄 설명뿐이라 1340px까지 퍼지면 상자가 비어 보인다(사용자 지정 2026-12-04) */
main #traffic-accident.sec:not(.sc-l3) .subs > .sub:has(.tl4) { width: 100%; max-width: 880px !important; margin-inline: auto !important; justify-self: center; } /* 위 -60px 넓힘 규칙(같은 섹션 .sub)보다 세게 — 블록 자체를 가운데로 */
/* 추나 주의사항 — 사진·상자 없이 글만(사용자 지정 2026-12-04 "이미지 제거, 텍스트로만, 카드 제거") */
#chuna .sub:has(.sub-ico .sc-ic path[d^="M6 16V11"]) { padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin-top: clamp(40px, 5vw, 64px); }
#chuna .sub:has(.sub-ico .sc-ic path[d^="M6 16V11"]) .card-body { padding: 0 !important; }
#chuna .sub:has(.sub-ico .sc-ic path[d^="M6 16V11"]) .sub-ico { display: none; }

/* 하단 "진료 문의" 띠 — 질감 사진·어두운 막을 빼고 테마 옅은 민트 단색(사용자 지정 2026-12-04 "배경색 별로다. 테마에 어울리는 색으로 … 무늬도 없는게").
   바로 위 FAQ가 흰 바탕이라 흰색이면 경계가 사라져 보조 바탕 #EEF7F6. 글자는 짙은 색. 대표번호 버튼은 히어로와 같은 흰 바탕·#1d3836 그대로 */
aside.sc-l3 { background: #d4e9e6 !important; color: #263735 !important; }
aside.sc-l3::before, aside.sc-l3::after { content: none !important; display: none !important; }
aside.sc-l3 .sc-l3__lbl { color: #226763 !important; }
aside.sc-l3 .sc-l3__h { color: #263735 !important; }
aside.sc-l3 .sc-l3__p, aside.sc-l3 .sc-l3__meta, aside.sc-l3 .sc-l3__meta li { color: #4a5c5a !important; }
aside.sc-l3 .sc-l3__meta .sc-ic { color: #3f9f9d !important; }

/* 추나 주의사항 제목 아이콘 — 네모 배경 없이 선 아이콘만, 방패 + 느낌표(짙은 청록 선 + 옅은 청록 면 하나, 안내 순서 카드 아이콘과 같은 그림체)
   (사용자 지정 2026-12-04 "왼쪽 아이콘 배경 제거하고 아이콘도 다른 세련된거로"). 글만 두는 상자 없는 모양은 다른 세션 규칙을 .sub--note에도 그대로 */
#chuna .sub.sub--note { padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin-top: clamp(40px, 5vw, 64px); }
#chuna .sub.sub--note .card-body { padding: 0 !important; }
#chuna .sub.sub--note .sub-head { display: flex; align-items: center; gap: 12px; }
#chuna .sub.sub--note .sub-ico.note-ico { display: inline-flex !important; width: 40px; height: 40px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
#chuna .sub.sub--note .sub-ico.note-ico::before, #chuna .sub.sub--note .sub-ico.note-ico::after { content: none !important; }
#chuna .sub.sub--note .note-ico svg { width: 40px; height: 40px; }
aside.sc-l3 :focus-visible { outline-color: #226763 !important; } /* 민트 바탕에서 포커스 표시 대비 3:1 넘게 */
/* 폰 퀵바 — 제너리스의원 lq 방식(사용자 지정 2026-12-04): 아래 띠는 전화 한 칸(번호까지) 폭 전체, 길찾기·진료시간은 띠 위 오른쪽 + 단추로 펼침. 맨 위로 단추는 왼쪽으로 옮김 */
.sc-qc__more, .sc-qc__num { display: none; }
@media (max-width: 899.98px) {
  body .sc-qc--qc4 .sc-qc__list { display: flex; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  body .sc-qc--qc4 .sc-qc__list > li:has(> a[data-qb="call"]) { flex: 1 1 auto; }
  body .sc-qc--qc4 a[data-qb="call"] { flex-direction: row; gap: 8px; width: 100%; height: 52px; border-radius: 14px; background: #226763; color: #fff; }
  body .sc-qc--qc4 a[data-qb="call"] .sc-qc__chip { width: auto; height: auto; background: none; box-shadow: none; animation: none; }
  body .sc-qc--qc4 a[data-qb="call"] .sc-ic { width: 20px; height: 20px; color: #fff; }
  body .sc-qc--qc4 a[data-qb="call"] .sc-qc__lb, .sc-qc__num { font-size: 16px; font-weight: 600; color: #fff; }
  .sc-qc__num { display: inline; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
  /* 펼침 단추와 펼쳐지는 두 칸 — 띠 위 오른쪽에 세로로 */
  .sc-qc__more { position: absolute; right: 14px; bottom: calc(100% + 14px); display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #226763; color: #fff; box-shadow: 0 6px 18px rgba(23, 66, 63, .28); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .sc-qc__more .sc-ic { width: 24px; height: 24px; transition: transform .25s ease; }
  .sc-qc.is-open .sc-qc__more .sc-ic { transform: rotate(45deg); }
  body .sc-qc--qc4 .sc-qc__list > li:has(> a:is([data-qb="place"], [data-qb="hours"])) { position: absolute; right: 14px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  body .sc-qc--qc4 .sc-qc__list > li:has(> a[data-qb="hours"]) { bottom: calc(100% + 14px + 66px); }
  body .sc-qc--qc4 .sc-qc__list > li:has(> a[data-qb="place"]) { bottom: calc(100% + 14px + 132px); }
  body .sc-qc--qc4.is-open .sc-qc__list > li:has(> a:is([data-qb="place"], [data-qb="hours"])) { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  body .sc-qc--qc4 a:is([data-qb="place"], [data-qb="hours"]) { width: 56px; height: 56px; gap: 2px; border-radius: 50%; background: var(--cg); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
  body .sc-qc--qc4 a:is([data-qb="place"], [data-qb="hours"]) .sc-qc__chip { width: auto; height: auto; background: none; box-shadow: none; color: #fff; }
  body .sc-qc--qc4 a:is([data-qb="place"], [data-qb="hours"]) .sc-ic { width: 20px; height: 20px; }
  body .sc-qc--qc4 a:is([data-qb="place"], [data-qb="hours"]) .sc-qc__lb { font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: #fff; }
  .sc-hd.sc-mm-open ~ .sc-qc { z-index: 40; }
  body .sc-qc--qc4 .sc-qc__top { right: auto; left: 12px; }
}
@media (max-width: 899.98px) and (prefers-reduced-motion: reduce) { .sc-qc__more .sc-ic, body .sc-qc--qc4 .sc-qc__list > li { transition: none !important; } }
@media (max-width: 899.98px) {
  body .sc-qc--qc4 .sc-qc__list > li:has(> a:is([data-qb="place"], [data-qb="hours"])) { width: 56px; }
  body .sc-qc--qc4 .sc-qc__list > li > a.sc-qc__t:is([data-qb="place"], [data-qb="hours"]) { width: 56px; padding: 0; }
  body .sc-qc--qc4 .sc-qc__top { bottom: calc(100% + 20px); } /* + 단추(56px)와 가운데 높이 맞춤 */
}
/* 폰 퀵바 색 — 스크롤 뒤 내비게이션 바(rgba(13,38,36,.74), 밝은 본문 위에서 보이는 색 약 #4a5d5b)와 같게. 전화 띠·+ 단추·진료시간·길찾기 모두(사용자 지정 2026-12-04 "너무 밝다, navbar 색 정도로, 길찾기도") */
@media (max-width: 899.98px) {
  body .sc-qc--qc4 a[data-qb="call"], .sc-qc__more, body .sc-qc--qc4 a:is([data-qb="place"], [data-qb="hours"]) { background: #3a6259; } /* 2026-12-04 "너무 회색톤, 녹색톤 더" — #4a5d5b보다 초록 쪽으로 */
  .sc-qc__more { box-shadow: 0 6px 18px rgba(13, 38, 36, .3); }
}
/* 펼친 길찾기·진료시간은 흰 바탕 + 녹색 아이콘·글자 — 제너리스의원처럼(사용자 지정 2026-12-04). 전화 띠·+ 단추는 #3a6259 그대로 */
@media (max-width: 899.98px) {
  body .sc-qc--qc4 a:is([data-qb="place"], [data-qb="hours"]) { background: #fff; color: #3a6259; box-shadow: 0 4px 14px rgba(13, 38, 36, .18); }
  body .sc-qc--qc4 a:is([data-qb="place"], [data-qb="hours"]) :is(.sc-qc__chip, .sc-qc__lb) { color: #3a6259; }
}

/* 전체 검수 뒤 수정(사용자 지정 2026-12-04 "1,2,3 수정해 … 나머지는 수정해") */
/* 모바일 맨 아래 흰 띠 — 퀵바 바탕을 비워 알약만 뜨게 하고, 퀵바 자리 여백은 body 대신 어두운 푸터 안쪽에 둔다(design R-07·R-17) */
@media (max-width: 899.98px) {
  body.sc-qc-space--qc4 { padding-bottom: 0 !important; }
  body .sc-qc--qc4 { background: transparent !important; box-shadow: none !important; }
  body.sc-qc-space--qc4 footer.sc-ft1 { padding-bottom: calc(32px + 76px + env(safe-area-inset-bottom)) !important; }
}
/* 추나 안내 순서 카드 — 768~899px에서 3열이 너무 좁아(칸 약 215px) 세로 쌓기 기준을 899px로(design R-31) */
@media (max-width: 899.98px) {
  main .sec .hs4 { flex-direction: column; max-width: 520px !important; margin-inline: auto !important; }
  main .sec .hs4 > li.hs4__i { flex: none; }
}
/* 둘러보기 넘김 점 — 보이는 점(9px)은 그대로, 누르는 자리만 25×29px로(design R-23) */
.gl__dots { gap: 16px !important; }
.gl__dot { position: relative; }
.gl__dot::before { content: ""; position: absolute; inset: -10px -8px; }
/* 히어로 윗줄 — 320px에서 "통증까지"만 떨어지지 않게 줄 균형 + 아주 좁은 폭은 글자를 조금 줄임(design R-25) */
main .sc-hero.sc-h2 .sc-h2__tag { text-wrap: balance; }
@media (max-width: 359.98px) { main .sc-hero.sc-h2 .sc-h2__tag { font-size: 15.5px; } }
/* 누를 때 파란 터치 표시·글자 선택·배경 변화·테두리 없애기(사용자 지정 2026-12-04, site-build 22번 — 기준 bandeutskin.kr yq.css, 제너리스의원 같은 절). 키보드 포커스 표시(:focus-visible)는 그대로(접근성) */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, [role="button"], [tabindex] { -webkit-tap-highlight-color: transparent; }
:is(.sc-qc, .sc-qc *, .sc-mm-burger, .sc-mm-burger *, label[for="sc-mm-toggle"], .sc-mm, .sc-mm *, .sc-dd__btn, .sc-hd__nav *, .gl__nav, .gl__dots *, .gl__thumbs *, .sc-faq summary) { -webkit-user-select: none; user-select: none; }
:is(a, button, summary, label, [tabindex], input[type="checkbox"]):focus:not(:focus-visible) { outline: none; }
/* 햄버거·X — 터치 뒤 남는 :hover·:active 배경, 숨은 체크박스가 터치에도 :focus-visible이 되어 생기는 테두리까지 끔 */
.sc-hd .sc-mm-burger, .sc-hd .sc-mm-burger:hover, .sc-hd .sc-mm-burger:active, .sc-hd.hdx .sc-mm-burger:hover, .sc-mm-toggle:checked ~ .sc-hd__in .sc-mm-burger, .sc-hd.hdx .sc-mm-toggle:focus-visible ~ .sc-hd__in .sc-mm-burger { background: transparent !important; box-shadow: none !important; }
.sc-hd .sc-mm-burger, .sc-hd .sc-mm-burger:focus, .sc-hd .sc-mm-burger:focus-visible, .sc-mm-toggle:focus-visible ~ .sc-hd__in .sc-mm-burger { outline: none !important; border-color: transparent !important; }
/* 터치 화면에서는 :hover가 누른 뒤에도 남아 배경·그림자·위치가 바뀐 채로 보인다 — 퀵바 단추는 hover 효과를 끈다 */
@media (hover: none) {
  .sc-qc .sc-qc__t:hover, .sc-qc .sc-qc__t:active, .sc-qc__more:hover, .sc-qc__more:active { transform: none !important; filter: none !important; }
  .sc-qc .sc-qc__t:hover .sc-qc__chip, .sc-qc .sc-qc__t:active .sc-qc__chip { transform: none !important; }
}
@media (max-width: 899.98px) { .sc-qc :is(.sc-qc__t, .sc-qc__more):focus:not(:focus-visible) { outline: none !important; } }

/* 모바일 히어로 글 간격 — 윗줄·제목·소개·시간이 붙어 보여 사이를 넓힘(사용자 지정 2026-12-04 "모바일에서 너무 따닥따닥 붙어있는 느낌")
   전: 윗줄→제목 12px, 제목→소개 14px, 소개 줄 높이 28px, 소개→시간 약 10px */
@media (max-width: 599.98px) {
  main .sc-hero.sc-h2 .sc-h2__title { margin-top: 18px !important; line-height: 1.25 !important; }
  main .sc-hero.sc-h2 .sc-h2__lead { margin-top: 22px !important; line-height: 1.9 !important; }
  main .sc-hero.sc-h2 .sc-h2__facts { margin-top: 26px !important; row-gap: 10px !important; }
}

/* ══ 스크롤 등장 — 반듯·제너리스와 같은 모양(사용자 지정 2026-12-04 "반듯, 제너리스처럼 컴포넌트들이 부드럽게 생기도록").
   generlessclinic.co.kr style.css .rv 그대로: 아래 70px에서 1.2초, 좌우 칸은 80px 옆에서, 사진은 1.08배에서 가라앉음, 깔린 장식은 투명도만.
   차례 지연(0·.2·.35·.5·.65·.8·.95초)과 고르는 규칙은 site.js. 투명도·transform만이라 자리 밀림 없음 */
.rv, .rv.rv--head, .rv.rv--card, .rv.rv--zoom, .rv.rv--step, .rv.rv--left, .rv.rv--right { opacity: 0; transform: translateY(70px); transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(.22, .8, .3, 1); clip-path: none; }
.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; }
.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; }
.rv.in, .rv.rv--l.in, .rv.rv--r.in, .rv.rv--z.in { opacity: 1; transform: none; }
.sc-gc__list > .rv { transition: opacity .75s ease-out, transform .75s cubic-bezier(.22, .8, .3, 1); }
@media (max-width: 899.98px) { .sc-gc__list > .rv { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv, .rv.rv--l, .rv.rv--r, .rv.rv--z { opacity: 1; transform: none; transition: none; } }

/* ══ 메인 첫 화면 인트로 — 제너리스 lx-* 움직임: 글이 흐림에서 차례로 떠오르고(0.2~1.0초), 사진은 다 받은 뒤 2.4초에 걸쳐 스며들고(site.js .is-bg-ready),
   헤더는 위에서, 퀵바는 마지막에. 글자는 처음부터 HTML에 있고 투명도·위치만 바꿔 자리 밀림 없음. JS 없거나 움직임 줄이기면 꺼짐 */
@media (prefers-reduced-motion: no-preference) {
  .sc-js .t-home .sc-hero.sc-h2 { background-color: #1e2f2d; } /* 사진이 깔리기 전 바탕 — 흰 글자가 읽히는 짙은 청록 */
  .sc-js .t-home .sc-hero.sc-h2 .sc-h2__tag { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) 1.9s both; }
  .sc-js .t-home .sc-hero.sc-h2 .sc-h2__title { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) 2.05s both; }
  .sc-js .t-home .sc-hero.sc-h2 .sc-h2__lead { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) 2.25s both; }
  .sc-js .t-home .sc-hero.sc-h2 .sc-h2__facts { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) 2.4s both; }
  .sc-js .t-home .sc-hero.sc-h2 .sc-hero__btns { animation: lx-rise 1.3s cubic-bezier(.22,1,.36,1) 2.5s both; }
  .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; }
  .sc-js .t-home .hdx-top { animation: lx-fade 1.6s cubic-bezier(.25, .8, .35, 1) 2.7s backwards; } /* 윗줄(진료 안내·로고·전화)도 헤더와 함께 — 가운데 큰 로고와 겹쳐 보이지 않게 */
  .sc-js .t-home .sc-hd { animation: lx-fade 1.6s cubic-bezier(.25, .8, .35, 1) 2.7s backwards; } /* 투명도만 — transform 애니메이션은 헤더 안 고정(fixed) 모바일 메뉴의 기준을 헤더로 바꿔 가로 스크롤을 만든다 */
  .sc-js .t-home .lq { animation: bd-qb 1.6s cubic-bezier(.25, .8, .35, 1) 2.7s backwards; } /* 투명도 + translate 속성만 — 세로 가운데 transform(translateY(-50%))을 덮지 않아 다 나온 뒤 자리가 바뀌지 않는다(사용자 2026-12-04 "퀵바가 생겼다가 위치가 바뀌네") */
}
@keyframes lx-rise { from { opacity: 0; filter: blur(8px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes lx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lx-down { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes bd-qb { from { opacity: 0; translate: 10px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes lx-qb { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes lx-show { to { opacity: 1; } }

/* 교통사고 원형 사진·통증 지그재그 사진 — 마우스를 올리면 사진만 살짝 확대(사용자 지정 2026-12-04 "호버했을때 임팩트 살짝만").
   칸 크기는 그대로, 넘치는 부분은 사진 칸 안에서 잘림 */
main :is(#pain, #traffic-accident).sec:not(.sc-l3) .sub-media .card-media { overflow: hidden; }
main :is(#pain, #traffic-accident).sec:not(.sc-l3) .sub-media .card-media img { transition: transform .9s cubic-bezier(.22, 1, .36, 1), filter .9s ease !important; }
@media (hover: hover) {
  main :is(#pain, #traffic-accident).sec:not(.sc-l3) .sub-media:hover .card-media img { transform: scale(1.05) !important; filter: brightness(1.04) saturate(1.05); }
}
/* 폰 퀵바 단추 — 테마색 #226763보다 어둡게, 상단 메뉴 띠·전화 문의 버튼 색 #1d3836(사용자 지정 2026-12-04 "navbar색과 비슷하게 좀더 어둡게"). 길찾기는 네이버 초록 그대로 */
@media (max-width: 899.98px) {
  body .sc-qc--qc4 a[data-qb="call"] { background: #132b29 !important; }
  .sc-qc__more { background: #132b29 !important; box-shadow: 0 6px 18px rgba(13, 38, 36, .32) !important; }
  body .sc-qc--qc4 a[data-qb="hours"] { --cg: #132b29; }
}
main { overflow-x: clip; } /* 옆에서 들어오는 칸(rv--l·rv--r)이 등장하는 동안 가로 스크롤을 만들지 않게 — 제너리스와 같게(clip은 sticky를 깨지 않는다) */

/* ══ 퀵바 — 제너리스의원(generlessclinic.co.kr style.css .lq) 규칙 그대로, 색만 자인 청록(#226763·#1d3836, 진료시간 아이콘 #3f9f9d) (사용자 지정 2026-12-04) ══ */
/* 퀵바 — 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: #fff; color: #1d3836; border-radius: 10px; box-shadow: 0 4px 15px rgba(13, 38, 36, .1); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, color .25s ease; }
.lq__a:hover { color: #226763; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(13, 38, 36, .18); }
.lq__a:focus-visible, .lq__toggle:focus-visible { outline: 2px solid #5DB0AF; 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(13, 38, 36, .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: #226763; color: #fff; box-shadow: 0 4px 16px rgba(13, 38, 36, .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; }
}

/* ══ 퀵바 — 김앤케이(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(18, 38, 36, .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: #226763; 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: #3f9f9d; }
  .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: #226763; }
  .lq__a[data-qb="hours"] { color: #3f9f9d; }
  .lq__toggle { background: #226763; }
}
/* 모바일 퀵바 — 김앤케이(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(13, 38, 36, .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: #226763; 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; }
}

/* ══ 메인 첫 화면 로고 — 제너리스의원 .bdi와 같은 움직임(사용자 지정 2026-12-04 "첫화면 랜더했을때 효과도 제너리스랑 동일하게, 로고같은거 띄우고")
   흰 로고가 흐림에서 또렷하게 스르륵(0~0.9초) → 잠시 머문 뒤 사라지고(1.7~2.4초) → 히어로 글이 차례로 떠오름(1.9초~) → 헤더·퀵바가 함께 스며듦(2.7초~).
   제너리스는 히어로에 글이 없어 로고가 남지만, 이 사이트는 같은 자리에 H1·소개 글이 있어 로고가 비켜 준다. JS가 .bdi-run을 붙일 때만 보이고, 없거나 움직임 줄이기면 로고 없이 처음부터 글이 보인다 */
.bdi { display: none; }
.sc-js .t-home .bdi-run .bdi { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; pointer-events: none; padding-top: 72px; animation: bdiOut .7s ease 1.7s forwards; }
.bdi__logo { display: block; width: clamp(180px, 15vw, 240px); height: auto; }
.sc-js .t-home .bdi-run .bdi__logo { animation: bdiLogo .9s cubic-bezier(.25, .8, .35, 1) 0s both; }
@keyframes bdiLogo { 0% { opacity: 0; transform: scale(.97); filter: blur(8px); } 60% { filter: blur(0); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bdiOut { to { opacity: 0; visibility: hidden; } }
@media (max-width: 899.98px) { .sc-js .t-home .bdi-run .bdi { padding-top: 64px; } .bdi__logo { width: 168px; } }

/* 교통사고 원형 사진·통증 지그재그 카드 — 레이아웃 규칙의 transform: none !important가 등장 움직임을 지워 툭 나타나던 것(사용자 2026-12-04 "이 이미지랑 순서도 마찬가지").
   :is(.sec[id], #_)로 id 수준 우선순위. 지연(transition-delay)은 site.js가 칸마다 넣으므로 longhand만 덮는다 */
main :is(.sec[id], #_) .subs > .sub.sub-media.rv { transition-property: opacity, transform !important; transition-duration: 1.2s, 1.2s !important; transition-timing-function: ease-out, cubic-bezier(.22, .8, .3, 1) !important; }
main :is(.sec[id], #_) .subs > .sub.sub-media.rv:not(.in) { transform: translateY(70px) !important; }
main :is(.sec[id], #_) .subs > .sub.sub-media.rv.rv--l:not(.in) { transform: translateX(-80px) !important; }
main :is(.sec[id], #_) .subs > .sub.sub-media.rv.rv--r:not(.in) { transform: translateX(80px) !important; }
main :is(.sec[id], #_) .subs > .sub.sub-media.rv.rv--z:not(.in) { transform: scale(1.08) !important; }
@media (prefers-reduced-motion: reduce) { main :is(.sec[id], #_) .subs > .sub.sub-media.rv:not(.in) { transform: none !important; } }
/* 메뉴·퀵바 앵커로 섹션에 오면 헤더 아래 여백을 원래의 1/3 정도로(사용자 지정 2026-12-04 "너무 위에 여백이 남게 이동, 1/3 정도만") — 섹션 위 안쪽 여백 clamp(72px, 10vw, 136px)의 2/3만큼 더 내려 세운다. 1280px: 148→약 50px, 390px: 84→약 28px */
main section.sec[id] { scroll-margin-top: calc(var(--header-h) + 4px - clamp(48px, 6.667vw, 90.67px)); }
/* 폰 퀵바(lq) 전화 띠·+ 단추 — 테마색보다 어둡게, 상단 메뉴 띠 색 정도 #132b29(사용자 지정 2026-12-04 "모바일 퀵바 좀더 어둡게 navbar색처럼") */
@media (max-width: 899.98px) {
  .lq__item:nth-child(1) .lq__a { background: #132b29 !important; }
  .lq__toggle { background: #132b29 !important; }
}
/* 메뉴로 섹션에 올 때 원형·지그재그 사진 카드도 다른 칸처럼 "순간 숨김 → 차례로 등장"(사용자 지정 2026-12-04 "교통사고 후유증 메뉴 눌렀을 때 세 이미지 카드가 이상하게 뜬다, 스크롤 내릴 때와 동일하게"). 위 .sub-media.rv의 transition !important가 site.js가 숨기는 순간 넣는 인라인 transition: none을 이겨, 보이던 카드가 1.2초 동안 사라지는 모습이 보였다 */
main :is(.sec[id], #_) .subs > .sub.sub-media.rv[style*="transition: none"] { transition: none !important; }

/* 진료 문의 띠 전화 상담 버튼 — 흰 바탕이 민트 띠 위에서 어색해(사용자 지정 2026-12-04 "배경이 너무 하얘서 어색, 버튼 색 디자인 바꿔봐")
   테마 버튼색 #226763 바탕 + 흰 글자, 아이콘은 흰 원 안 청록. 마우스를 올리면 한 단계 짙게(#1d3836) */
.sc-l3 .sc-l3__btn--tel, .sc-l3 .sc-l3__btn--tel:focus-visible { background: #226763 !important; color: #fff !important; box-shadow: 0 8px 20px -8px rgba(13, 38, 36, .45) !important; border-color: transparent !important; }
.sc-l3 .sc-l3__btn--tel:hover { background: #1d3836 !important; color: #fff !important; }
.sc-l3 .sc-l3__btn--tel b { color: #fff !important; }
.sc-l3 .sc-l3__btn--tel .sc-b5__ic { background: #fff !important; color: #226763 !important; }
.sc-l3 .sc-l3__btn--tel:focus-visible { outline: 2px solid #1d3836 !important; outline-offset: 3px; }

/* 네이버 길찾기 버튼 — 초록 바탕 대신 흰 바탕 + 초록 테두리·아이콘·글자(사용자 지정 2026-12-04 "배경이 연두색보다 아이콘 색과 텍스트가 연두색인게 나은듯").
   아이콘은 네이버 초록 #03c75a, 글자는 흰 바탕 대비 4.5:1을 넘는 짙은 초록 #00843a */
.loc-map__btn[href*="map.naver.com"], .loc-map__btn[href*="map.naver.com"]:focus-visible { background: #fff !important; color: #00843a !important; box-shadow: inset 0 0 0 1.5px #03c75a, 0 6px 18px rgba(3, 199, 90, .12) !important; }
.loc-map__btn[href*="map.naver.com"]:hover { background: #f1fbf5 !important; color: #00843a !important; }
.loc-map__btn[href*="map.naver.com"] .loc-map__ic--naver { color: #03c75a !important; }
@media (max-width: 719.98px) { .loc-map__btn[href*="map.naver.com"] { box-shadow: inset 0 0 0 1.5px #03c75a !important; } }

/* 메인 히어로 높이 — 퀵바를 제너리스 .lq로 바꾸며(2026-12-04) 아래 고정 띠가 899px 이하·높이 64px(6+52+6)로 바뀌었다.
   옛 값(1279px 이하 76px 빼기)이 남아 900~1279px은 76px, 폰은 12px만큼 히어로 아래가 비었다(사용자 "모바일부터 특정 데스크탑 해상도까지 메인히어로 이미지가 꽉 안차") */
@media (max-width: 1279.98px) {
  main .sc-hero.sc-h2 { min-height: 100vh; min-height: 100svh; }
}
@media (max-width: 899.98px) {
  main .sc-hero.sc-h2 { min-height: calc(100vh - 64px - env(safe-area-inset-bottom)); min-height: calc(100svh - 64px - env(safe-area-inset-bottom)); }
}
/* 폰 퀵바 펼침 길찾기·진료시간 단추 — 흰 바탕 그대로, 아이콘·글자만 퀵바 색 #132b29(사용자 지정 2026-12-04 "배경은 흰색으로 하고 글자랑 아이콘") */
@media (max-width: 899.98px) {
  .lq__item:nth-child(n+2) .lq__a { color: #132b29 !important; }
  .lq__item:nth-child(n+2) .lq__a :is(.lq__ico, .lq__ic, .lq__lb) { color: #132b29 !important; }
}
/* + 단추는 1024px까지 보이므로 900~1024 구간도 같은 색(사용자 지적 2026-12-04 "920픽셀정도에서 + 버튼 색이 바뀜") */
@media (max-width: 1024px) { .lq__toggle { background: #132b29 !important; } }
/* 900~1024px(+ 단추로 펼치는 구간)도 폰과 같은 색 — 전화 칸은 #132b29 바탕·흰 글자, 길찾기·진료시간은 흰 바탕·#132b29 아이콘(사용자 지정 2026-12-04 "모바일버전의 색이 맞는거야") */
@media (min-width: 900px) and (max-width: 1024px) {
  .lq__item:nth-child(1) .lq__a { background: #132b29 !important; color: #fff !important; }
  .lq__item:nth-child(1) .lq__a :is(.lq__ico, .lq__ic, .lq__lb) { color: #fff !important; }
  .lq__item:nth-child(n+2) .lq__a, .lq__item:nth-child(n+2) .lq__a :is(.lq__ico, .lq__ic, .lq__lb) { color: #132b29 !important; }
}

/* 모바일(899px 이하)은 아래 전화 띠 퀵바와 윗줄·헤더(메뉴)가 처음부터 그 자리에 — 로고·히어로 글만 차례로 나타난다(사용자 지정 2026-12-04 "제너리스처럼 모바일퀵바랑 메뉴는 처음부터 있게") */
@media (max-width: 899.98px) {
  html.sc-js body.t-home :is(.hdx-top, .sc-hd, .lq, .lq__item) { animation: none !important; }
}
/* 네이버 길찾기 hover — 초록 테두리는 그대로 두고 살짝 떠오르며 그림자만 조금 진하게(사용자 지정 2026-12-04 "테두리 사라지게 하지 말고 살짝의 임팩트만") */
.loc-map__btn[href*="map.naver.com"] { transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1), background-color .3s; }
@media (hover: hover) { .loc-map__btn[href*="map.naver.com"]:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px #03c75a, 0 10px 22px rgba(3, 199, 90, .22) !important; } }
@media (prefers-reduced-motion: reduce) { .loc-map__btn[href*="map.naver.com"]:hover { transform: none; } }

/* 첫 페이지에서만 윗줄·헤더·퀵바 등장 효과 — 같은 창에서 다시 열거나 다른 페이지로 옮기면(sessionStorage jain-seen → html.sc-seen) 처음부터 그 자리에(제너리스 bd-seen과 같게, 사용자 지정 2026-12-04 "렌더링 순서 제너리스랑 동일하게") */
html.sc-js.sc-seen body :is(.hdx-top, .sc-hd, .lq, .lq__item) { animation: none !important; }
