@charset "utf-8";
/* ═══════════════════════════════════════════════════════════
   연세내일치과 아현 — common.css
   토큰 · 리셋 · 헤더 · 푸터 · 퀵메뉴 · 공용 컴포넌트
   ═══════════════════════════════════════════════════════════ */

/* ───────── 토큰 ───────── */
:root {
  /* Brand — 기존 로고에서 추출한 실제 값 (#235093) */
  --brand:        #235093;
  --brand-dark:   #1A3D71;
  --brand-deep:   #0E2547;   /* 히어로·푸터 배경 */
  --brand-deeper: #081729;
  --brand-light:  #3A6DBB;
  --brand-pale:   #EDF2FA;
  --brand-line:   #C9D8EE;

  /* Neutral */
  --white:    #FFFFFF;
  --gray-50:  #F8F9FB;
  --gray-100: #EFF1F5;
  --gray-200: #DFE3EA;
  --gray-300: #C4CAD4;
  --gray-400: #97A0AE;
  --gray-500: #6B7484;
  --gray-600: #4A5261;
  --gray-700: #2E3542;
  --gray-900: #171B23;

  /* Typography */
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          system-ui, 'Malgun Gothic', sans-serif;

  /* Layout */
  --max-w: 1280px;
  --pad-x: 40px;
  --header-h: 84px;
  --header-h-sm: 64px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ───────── 리셋 ───────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* 공백 없는 중국어·일본어가 컨테이너를 넘치지 않게. break-word는 flex/grid에서 무력 */
  overflow-wrap: anywhere;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.35; letter-spacing: -0.035em; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* 스크린리더 전용 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 본문 바로가기 */
.skip-link {
  position: absolute; left: 50%; top: -100px; z-index: 2000;
  transform: translateX(-50%);
  padding: 12px 24px; background: var(--brand); color: #fff;
  border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ───────── 레이아웃 유틸 ───────── */
.inner { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

.section { padding: 120px 0; }
.section--tight { padding: 88px 0; }
.section--pale { background: var(--gray-50); }
.section--brand { background: var(--brand-deep); color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--brand); text-transform: uppercase;
  margin-bottom: 18px;
}
.section--brand .eyebrow { color: var(--brand-light); }

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--gray-900);
  margin-bottom: 20px;
}
.section--brand .section-title { color: var(--white); }

.section-lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--gray-500);
  max-width: 62ch;
}
.section--brand .section-lead { color: rgba(255,255,255,.72); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 32px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border: 1px solid var(--gray-300); color: var(--gray-700); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--light:hover { background: #fff; color: var(--brand-deep); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }

/* ───────── 콘텐츠 이미지 ─────────
   .ph 플레이스홀더가 있던 자리에 들어가므로 같은 비율·라운딩을 유지한다. */
.split-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.treat-card img   { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px;
  transition: transform .5s var(--ease);
}
.gallery figure { overflow: hidden; border-radius: 12px; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  margin-top: 10px;
  font-size: 14px; font-weight: 600; color: var(--gray-500);
  text-align: center;
}

/* ───────── 이미지 플레이스홀더 ───────── */
/* 실사진 확보 전 자리표시. data-ph 값이 화면에 라벨로 뜹니다.
   교체 시 이 div를 <img src alt>로 바꾸고 alt를 반드시 채울 것. */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, var(--brand-pale) 0%, #DCE6F5 50%, var(--brand-pale) 100%);
  color: var(--brand);
  overflow: hidden;
  isolation: isolate;
}
.ph::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(35,80,147,.05) 0 12px, transparent 12px 24px);
}
.ph::after {
  content: attr(data-ph);
  display: block;
  padding: 12px 18px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
  color: var(--brand);
  background: rgba(255,255,255,.72);
  border: 1px dashed var(--brand-line);
  border-radius: 8px;
  max-width: 88%;
}
.ph--dark {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #14335C 50%, var(--brand-deeper) 100%);
}
.ph--dark::before { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 12px, transparent 12px 24px); }
.ph--dark::after { color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.ph--r { border-radius: 14px; }

/* ───────── 스크롤 등장 ───────── */
/* 주의: 필터·페이지네이션으로 새로 생기는 요소에는 걸지 말 것.
   opacity:0인 채 남아 목록이 비어 보이는 사고가 난다. */
/* 숨김은 html.js 스코프에서만. JS가 로드되지 않거나 IntersectionObserver가
   동작하지 않는 환경에서 본문이 통째로 사라지는 것을 막는다. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   헤더
   ═══════════════════════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* 투명(메인 히어로 위) / 솔리드 */
.header.is-transparent { background: transparent; }
.header.is-solid {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 rgba(14,37,71,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  font-size: 21px; font-weight: 800; letter-spacing: -.045em;
  color: var(--brand-deep);
  transition: color .35s var(--ease);
}
.logo-mark em { font-style: normal; color: var(--brand); }
.header.is-transparent .logo-mark { color: #fff; }
.header.is-transparent .logo-mark em { color: #fff; opacity: .75; }

/* 벡터 로고 — 히어로 위(투명 헤더)에서는 흰색 판으로 바꾼다 */
.logo-img { display: block; height: 34px; width: auto; }
.logo-img--white { display: none; }
.header.is-transparent .logo-img--color { display: none; }
.header.is-transparent .logo-img--white { display: block; }
@media (max-width: 768px) { .logo-img { height: 28px; } }

/* GNB */
.gnb { display: flex; height: 100%; }
.gnb > li > a {
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 24px;
  font-size: 16px; font-weight: 600;
  color: var(--gray-700);
  transition: color .25s var(--ease);
}
.header.is-transparent .gnb > li > a { color: rgba(255,255,255,.92); }
.gnb > li > a:hover,
.gnb > li.is-active > a { color: var(--brand); }
.header.is-transparent .gnb > li > a:hover { color: #fff; }

.header-util { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-tel {
  display: flex; flex-direction: column; line-height: 1.25;
  font-weight: 800; color: var(--brand-deep);
}
.header-tel span { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--gray-400); }
.header-tel strong { font-size: 19px; letter-spacing: -.02em; }
.header.is-transparent .header-tel { color: #fff; }
.header.is-transparent .header-tel span { color: rgba(255,255,255,.6); }

/* 메가메뉴 */
.mega {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 20px 40px rgba(14,37,71,.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.header.is-mega-open .mega { max-height: 420px; }
.mega-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px var(--pad-x) 48px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
}
.mega-col-title {
  font-size: 15px; font-weight: 700; color: var(--brand);
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.mega-col li + li { margin-top: 10px; }
.mega-col a {
  font-size: 14.5px; color: var(--gray-500);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.mega-col a:hover { color: var(--brand); padding-left: 5px; }

/* 모바일 토글 */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.header.is-transparent .nav-toggle span { background: #fff; }
body.is-nav-open .nav-toggle span { background: var(--gray-700); }
body.is-nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.is-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 모바일 드로어 */
.drawer {
  position: fixed; inset: 0; z-index: 999;
  background: #fff;
  padding: calc(var(--header-h-sm) + 20px) 24px 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
body.is-nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer-group + .drawer-group { border-top: 1px solid var(--gray-100); }
.drawer-group > a,
.drawer-group > .drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; font-size: 17px; font-weight: 700; color: var(--gray-900);
  width: 100%;
}
.drawer-head::after {
  content: ''; width: 9px; height: 9px;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
}
.drawer-group.is-open .drawer-head::after { transform: rotate(-135deg) translateY(-2px); }
.drawer-sub { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.drawer-group.is-open .drawer-sub { max-height: 520px; }
.drawer-sub li a { display: block; padding: 12px 4px 12px 14px; font-size: 15px; color: var(--gray-500); }
.drawer-sub { padding-bottom: 10px; }
.drawer-cta { display: flex; gap: 10px; margin-top: 28px; }
.drawer-cta .btn { flex: 1; }

/* ═══════════════════════════════════════════════════════════
   서브 페이지 상단
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #16375F 55%, var(--brand-deeper) 100%);
  color: #fff;
  margin-top: 0;
  padding-top: var(--header-h);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 16px; }

/* breadcrumb */
.breadcrumb { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; height: 52px; font-size: 13px; color: var(--gray-400); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--gray-300); }
.breadcrumb li:last-child { color: var(--gray-600); font-weight: 600; }

/* 서브 탭 */
.subtab { border-bottom: 1px solid var(--gray-200); background: #fff; position: sticky; top: var(--header-h); z-index: 900; }
.subtab-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subtab-list::-webkit-scrollbar { display: none; }
.subtab-list a {
  display: block; padding: 18px 20px; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--gray-500);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.subtab-list a:hover { color: var(--brand); }
.subtab-list a.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   FAQ (AEO — 화면에 반드시 노출)
   ═══════════════════════════════════════════════════════════ */
.faq-list { border-top: 1px solid var(--gray-900); }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 26px 44px 26px 0;
  position: relative;
  font-size: clamp(16px, 1.5vw, 18px); font-weight: 700; color: var(--gray-900);
}
.faq-q::before { content: 'Q'; color: var(--brand); font-weight: 800; flex-shrink: 0; }
.faq-q::after {
  content: ''; position: absolute; right: 8px; top: 34px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.is-open .faq-a { max-height: 640px; }
.faq-a-inner {
  display: flex; gap: 14px;
  padding: 0 44px 28px 0;
  color: var(--gray-500); font-size: 15.5px;
}
.faq-a-inner::before { content: 'A'; color: var(--gray-300); font-weight: 800; flex-shrink: 0; }
.faq-a-inner p + p { margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════
   의료광고 주의문구
   ═══════════════════════════════════════════════════════════ */
.med-notice {
  background: var(--gray-50);
  border-left: 3px solid var(--brand-line);
  padding: 22px 26px;
  font-size: 14px; color: var(--gray-500); line-height: 1.75;
  border-radius: 0 8px 8px 0;
}
.med-notice strong { display: block; margin-bottom: 6px; color: var(--gray-700); font-size: 14.5px; }

/* ═══════════════════════════════════════════════════════════
   푸터
   ═══════════════════════════════════════════════════════════ */
.footer { background: var(--brand-deeper); color: rgba(255,255,255,.62); padding: 72px 0 40px; font-size: 14px; }
/* 브랜드 1칸 + 링크 3칸을 한 격자에 둔다.
   flex + space-between 으로 두면 링크 묶음이 오른쪽 끝에 몰려 가운데가 비어 어색했다. */
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-mark { color: #fff; font-size: 22px; }
.footer-brand .footer-logo { height: 38px; margin-bottom: 4px; }
.footer-brand .logo-mark em { color: var(--brand-light); }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.8; }
/* 자신은 칸을 차지하지 않고 자식 3개가 각각 격자 칸에 들어가게 한다 */
.footer-links { display: contents; }
.footer-links h3 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-info { padding-top: 32px; line-height: 1.9; }
.footer-info dl { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-info dt { font-weight: 600; color: rgba(255,255,255,.42); }
.footer-info dd { margin-right: 12px; }
.footer-bottom { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.38); }
.footer-policy { display: flex; gap: 18px; }
.footer-policy a { color: rgba(255,255,255,.62); }
.footer-updated { font-size: 12.5px; }

/* ═══════════════════════════════════════════════════════════
   퀵 / 하단 고정 바
   ═══════════════════════════════════════════════════════════ */
/* 채널별 고유 색상 — 사용자가 아이콘만 보고 무엇인지 알 수 있게 한다 */
:root {
  --naver: #03C75A;
  --kakao: #FEE500;
  --kakao-fg: #191600;
}

.quick {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

.quick-item {
  display: flex; align-items: center; justify-content: flex-end;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14,37,71,.16), 0 1px 3px rgba(14,37,71,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quick-item:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,37,71,.22); }

/* 라벨 — 평소엔 접혀 있다가 호버·포커스 시 왼쪽으로 펼쳐진다 */
.quick-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0;
  font-size: 14px; font-weight: 700; letter-spacing: -.03em;
  transition: max-width .38s var(--ease), opacity .28s var(--ease), padding .38s var(--ease);
}
.quick-item:hover .quick-label,
.quick-item:focus-visible .quick-label { max-width: 160px; opacity: 1; padding: 0 4px 0 20px; }

.quick-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.quick-icon svg { width: 24px; height: 24px; }

/* 전화 — 브랜드 컬러 */
.quick-item--tel { background: var(--brand); color: #fff; }
.quick-item--tel:hover { background: var(--brand-dark); }

/* 네이버 예약 — 네이버 그린 */
.quick-item--naver { background: var(--naver); color: #fff; }
.quick-item--naver .quick-icon svg { width: 21px; height: 21px; }

/* 카카오톡 — 카카오 옐로 (아이콘·글자는 어두운 갈색) */
.quick-item--kakao { background: var(--kakao); color: var(--kakao-fg); }

/* 인스타그램 — 브랜드 그라디언트 */
.quick-item--insta { background: linear-gradient(45deg, #F9CE34 4%, #EE2A7B 47%, #6228D7 96%); color: #fff; }
.quick-item--insta:hover { filter: brightness(1.06); }
.quick-item--insta .quick-icon svg { width: 22px; height: 22px; }

/* 오시는 길 · 맨 위로 — 흰 바탕에 브랜드 컬러 */
.quick-item--map,
.quick-item--top { color: var(--brand-deep); }
.quick-item--map .quick-icon,
.quick-item--top .quick-icon { color: var(--brand); }
.quick-item--map:hover { background: var(--brand-pale); }
.quick-item--top:hover { background: var(--brand-pale); }

.quick-top {
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quick.is-scrolled .quick-top { opacity: 1; visibility: visible; }

/* 모바일 하단 바 */
.mobile-bar { display: none; }

/* ───────── 오시는 길 약도 ─────────
   지도 API 대신 OSM 실측 좌표로 그린 SVG. 글자가 <text> 라 검색·AI 가 읽고 확대해도 안 깨진다.
   도면은 tools/build-map.mjs 가 만든다 — _partials/map.svg.html 을 직접 고치지 말 것. */
.wayfind { margin: 0 0 28px; }
.wayfind-svg {
  display: block;
  width: 100%; max-width: 440px; height: auto; margin: 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
}
.wf-street { stroke: #EEF1F5; }
.wf-road   { stroke: #DCE2EA; }

/* 도로 위에 얹히는 글자는 흰 테두리를 둘러 읽히게 한다.
   paint-order 로 '테두리 → 글자' 순서를 정해야 글자가 테두리에 먹히지 않는다. */
.wayfind-svg text {
  paint-order: stroke fill;
  stroke: #fff; stroke-width: 3px; stroke-linejoin: round;
}
/* ⚠️ .wayfind-svg text 보다 명시도가 높아야 테두리가 실제로 꺼진다.
   클래스만 쓰면(0,1,0 < 0,1,1) 흰 테두리가 남아 흰 글자가 뭉개진다 — 실제로 겪음. */
.wayfind-svg .wf-card-r, .wayfind-svg .wf-line-no { stroke: none; }
.wf-line-no { font-size: 15px; font-weight: 800; fill: #fff; }

.wf-exit-on  { font-size: 13px; font-weight: 800; fill: var(--brand); letter-spacing: -.03em; }
.wf-exit-off { font-size: 11.5px; font-weight: 600; fill: #8494A7; letter-spacing: -.03em; }
.wf-station  { font-size: 13px; font-weight: 800; fill: #0A6E37; letter-spacing: -.02em; }
.wf-roadname { font-size: 11.5px; font-weight: 700; fill: #A7B0BC; }
/* 주변 랜드마크 이름 — 도로명보다 진하게 두되 병원·역보다는 약하게 */
.wf-place-t { font-size: 11px; font-weight: 600; fill: #7A8798; letter-spacing: -.03em; }
.wf-card-t   { font-size: 16px; font-weight: 800; fill: var(--brand); letter-spacing: -.035em; }
.wf-card-r   { font-size: 11.5px; font-weight: 700; fill: #fff; letter-spacing: -.02em; }
.wf-card-b   { font-size: 12.5px; font-weight: 700; fill: var(--gray-900); letter-spacing: -.02em; }
.wf-north    { font-size: 10.5px; font-weight: 700; fill: var(--brand); }

.wayfind-cap {
  margin-top: 14px; font-size: 14.5px; color: var(--gray-500); text-align: center;
  line-height: 1.75;
}
.wayfind-cap b { color: var(--gray-900); font-weight: 700; }

/* 어두운 화면에서도 도면은 흰 바탕을 유지한다 — 지도는 밝은 바탕이 읽기 쉽다 */
@media (prefers-color-scheme: dark) {
  .wayfind-svg { border-color: rgba(255,255,255,.14); }
}

/* 진료시간 표의 부연 꼬리표 — 「토요일 점심시간 없음」 등
   🔴 메인(index)과 서브(intro·special) 양쪽에서 쓰므로 반드시 common.css 에 둔다.
      main.css 나 sub.css 한쪽에만 넣으면 반대쪽에서 안 먹는다(약도 CSS 사고와 같은 함정). */
.hours-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 999px; background: #EEF2F7; color: #6B7A8D;
  font-size: 12px; font-weight: 600; letter-spacing: -.02em;
  vertical-align: middle; white-space: nowrap;
}
