
/* =======================================================================
 *  의료진 소개 (/doctors) — 광교365리움치과병원
 *  디자인: Figma node 835-9191 (PC) / 835-32063 (Tablet) / 835-31559 (Mobile)
 *  토큰: point #5E2C7B(탭 활성), point2 #A8599E(카드 강조), Pretendard
 * ======================================================================= */

/* webp <picture> 래퍼는 박스를 만들지 않고 통과 → 기존 img 레이아웃 규칙 그대로 적용(시프트 없음) */
.doctors-page picture, .doctor-detail-page picture { display: contents; }

.doctors-page {
  --dp-point:    #5e2c7b;
  --dp-point2:   #a8599e;
  --dp-warm:     #78716c;
  --dp-grey39:   #636363;
  --dp-line:     #e8ebeb;
  --dp-card-line:#e7e5e4;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: #222;
  letter-spacing: -0.3px;
}
.doctors-page *, .doctors-page *::before, .doctors-page *::after { box-sizing: border-box; }
/* bootstrap a:hover{underline} 등 테마 밑줄 제거 — content 링크는 모든 상태에서 밑줄 없음 */
.doctors-page a, .doctors-page a:link, .doctors-page a:visited,
.doctors-page a:hover, .doctors-page a:focus, .doctors-page a:active { text-decoration: none; }

.dp-container { max-width: 1480px; margin: 0 auto; padding: 0 20px; }

/* ---------- HERO ---------- */
.dp-hero {
  position: relative; height: 500px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 80% 52% at 50% 15%, #fff 0%, #eee 58%, #ddd 100%);
}
.dp-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.doctors-page .dp-hero__fg-layer { position: absolute; inset: 0; display: block; }
.dp-hero__fg-layer { z-index: 1; }
.dp-hero__fg-layer img { display: block; width: 100%; height: 100%; max-width: none; }
.dp-hero__fg-layer img { object-fit: contain; object-position: center; }
.dp-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.5); }
.dp-hero__inner { position: relative; z-index: 3; text-align: center; padding: 0 20px; max-width: 1340px; }
.dp-hero__label {
  margin: 0 0 20px; color: #fff; opacity: .8;
  font-size: 22px; font-weight: 500; letter-spacing: 2.2px;
}
.dp-hero__title {
  margin: 0; color: #fff;
  font-size: 64px; font-weight: 800; line-height: 1.3; letter-spacing: -1.92px;
  /* 한글 어절 단위 줄바꿈 — 좁은 폭(태블릿/모바일)에서 '365리움치과병원'이 음절 중간에서
     끊기지 않고 Figma처럼 통째로 다음 줄로 내려가게 함 */
  word-break: keep-all;
}

/* ---------- 브레드크럼은 테마 공통 컨트롤(sitemap.php / #site_config) 재사용 ---------- */

/* ---------- INTRO ---------- */
.dp-intro { padding: 80px 0 36px; text-align: center; }
/* 반응형 줄바꿈 토글: dp-br-pt=PC/태블릿용(기본 표시), dp-br-m=모바일용(기본 숨김) */
.dp-br-m { display: none; }

/* ---------- STICKY SCROLL-SPY TABS ---------- */
/* 테마 래퍼 #s007{overflow:hidden}이 position:sticky를 무력화함.
   doctors.css는 의료진 페이지에서만 로드되므로 여기서만 가로는 clip(가로스크롤 방지 유지)·
   세로는 visible로 교체한다. overflow:clip은 스크롤 컨테이너를 만들지 않아 sticky가 복원된다. */
#s007 { overflow-x: clip; overflow-y: visible; }
.dp-tabs { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.dp-tabs__list { display: flex; list-style: none; margin: 0; padding: 0; }
.dp-tabs__item { flex: 1 1 0; min-width: 0; }
.dp-tab {
  display: flex; align-items: center; justify-content: center;
  height: 66px; padding: 16px 20px;
  font-size: 24px; font-weight: 500; line-height: 1.4; letter-spacing: -1.2px;
  color: var(--dp-warm); background: #fff;
  border: 1px solid var(--dp-line); border-left: none;
  text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
/* 테마 style.css의 a:link(하늘색 #84c4e2)가 specificity로 이기므로 :link로 덮어 Figma 회색 고정 */
.dp-tab:link, .dp-tab:visited { color: var(--dp-warm); }
.dp-tabs__item:first-child .dp-tab { border-left: 1px solid var(--dp-line); }
.dp-tab.is-active, .dp-tab.is-active:link, .dp-tab.is-active:visited { background: var(--dp-point); color: #fff; border-color: var(--dp-line); }

/* ---------- CENTER SECTIONS ---------- */
.dp-sections { padding: 36px 0 100px; }
.dp-center { padding-top: 60px; }
.dp-center:first-child { padding-top: 24px; }
.dp-center__head { margin-bottom: 28px; }
.dp-center__title { position: relative; padding-left: 18px; margin: 0 0 5px; color: var(--dp-point); font-size: 40px; font-weight: 700; line-height: 1.5; letter-spacing: -0.5px; }
.dp-center__title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 28px; background: var(--dp-point); }
.dp-center__desc { margin: 0; color: var(--dp-warm); font-size: 21px; font-weight: 400; line-height: 1.48; letter-spacing: -0.63px; }

/* ---------- DOCTOR CARDS ---------- */
.dp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.dp-card__link {
  position: relative;
  display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 20px;
  align-items: stretch; height: 400px; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px var(--dp-card-line); border-radius: 30px;
  text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s;
}
.dp-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid var(--dp-card-line); border-radius: inherit; pointer-events: none; }
.dp-card__link:hover { box-shadow: inset 0 0 0 1px var(--dp-card-line), 0 14px 34px rgba(94,44,123,.10); transform: translateY(-2px); }
.dp-card__profile { display: contents; }
.dp-card__photo { grid-column: 1; grid-row: 1 / 3; width: 320px; height: 400px; overflow: hidden; }
.dp-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dp-card__identity { grid-column: 2; grid-row: 1; min-width: 0; padding: 40px 18px 0 0; }
.dp-card__body { grid-column: 2; grid-row: 2; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 0 18px 40px 0; }
.dp-card__subtitle { margin: 0 0 12px; color: var(--dp-point2); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.72px; }
.dp-card__name { margin: 0 0 18px; display: flex; align-items: flex-end; gap: 8px; color: #111; font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -1.5px; }
.dp-card__role { color: var(--dp-grey39); font-size: 21px; font-weight: 500; line-height: 1.5; letter-spacing: -0.84px; }
.dp-card__divider { display: none; }
.dp-card__career { list-style: none; margin: 0; padding: 0; }
.dp-card__career li { margin-bottom: 6px; color: var(--dp-warm); font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -0.68px; }
.dp-card__career li:last-child { margin-bottom: 0; }
/* 긴 약력 항목(29자+)은 자간을 더 좁혀 한 줄 유지 (예: 백원경 …치과교정과 레지던트) */
.dp-card__career li.dp-tight { letter-spacing: -1.3px; }
/* PC에선 태블릿용 축약 약력(career_t) 숨김 → 풀 약력만 표시 */
.dp-card__career.dp-career--t { display: none; }
.dp-card__more {
  align-self: flex-start; margin-top: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 20px; border: 1px solid var(--dp-point2); border-radius: 8px;
  color: var(--dp-point2); font-size: 14px; line-height: 1.5;
}
.dp-card__more i { font-size: 16px; }

/* 카드 브랜드 워터마크(eum 심볼) — 전 브레이크포인트(PC/태블릿/모바일) 카드 우하단 코너에
   은은하게 흘려보냄. 콘텐츠(사진·본문)는 z-index:1로 워터마크 위에. */
.dp-card__photo, .dp-card__identity, .dp-card__body { position: relative; z-index: 1; }
/* Figma: image46 워터마크 214×214(1:1 정사각, object-cover), 카드 우하단 경계로 살짝 넘쳐 잘림.
   에셋 자체가 연회색 reum 워터마크라 추가 필터/투명도 보정은 하지 않음. */
.dp-card__wm { position: absolute; right: -6px; bottom: -26px; z-index: 0; width: 214px; height: 214px; opacity: 1; filter: none; pointer-events: none; }
.dp-card__wm img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* ---------- FAQ ---------- */
.dp-faq { padding: 130px 0 130px; }
.dp-faq__inner { width: 100%; max-width: 1340px; margin: 0 auto; display: flex; flex-direction: column; gap: 60px; }
.dp-faq__head { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.dp-faq__eyebrow { margin: 0; color: var(--dp-point2); font-size: 24px; font-weight: 700; line-height: 30px; letter-spacing: -0.72px; word-break: keep-all; }
.dp-faq__title { margin: 0; color: #1c1917; font-size: 56px; font-weight: 800; line-height: 1.3; letter-spacing: -1.68px; word-break: keep-all; white-space: nowrap; }
.dp-faq__title span { display: inline; font-weight: 400; }
.dp-faq__title strong { display: inline; font-weight: 800; }
.dp-faq__title strong::before { content: " "; }
.dp-faq__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.dp-faq__item { overflow: hidden; background: #fff; }
.dp-faq__question {
  margin: 0; display: flex; align-items: center; gap: 10px;
  padding: 15px 25px; border-top: 2px solid var(--dp-point);
  background: rgba(94,44,123,.07); color: var(--dp-point);
  font-size: 21px; font-weight: 700; line-height: 31px; letter-spacing: -1.05px;
}
.dp-faq__question span { flex: 0 0 24px; width: 24px; }
.dp-faq__question em { min-width: 0; font-style: normal; word-break: keep-all; }
.dp-faq__answer {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 25px; background: rgba(247,247,247,.5);
  color: #6f6a64; font-size: 17px; font-weight: 400; line-height: 1.12; letter-spacing: -0.51px;
}
.dp-faq__answer::before {
  content: ""; flex: 0 0 24px; width: 24px; height: 24px;
  border-left: 2px solid rgba(0,0,0,.52); border-bottom: 2px solid rgba(0,0,0,.52);
  border-radius: 0 0 0 3px; margin-top: 1px;
}
.dp-faq__answer p { flex: 1 1 auto; min-width: 0; margin: 0; color: inherit; word-break: keep-all; }

.doctors-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =======================================================================
 *  반응형 — 큰 카드는 1200px↑. 그 이하(태블릿/모바일)는 Card_Profile_Mobile 콤팩트.
 *  사이트 컨벤션 브레이크포인트(768/991/1199) 기반: 1199 / 767 분기
 * ======================================================================= */

/* ---- 태블릿(≤1199, 기준 Figma 768px node 835-32063) ---- */
@media (max-width: 1199px) {
  /* 콘텐츠 좌우 인셋 40px (Figma 탭·섹션 기준) */
  .dp-container { padding: 0 40px; }

  /* 인트로 — Figma는 768 풀폭 기준. desc 3줄(br) 유지 위해 거의 풀블리드 */
  .dp-intro { padding: 60px 0 80px; }
  .dp-intro .dp-container { max-width: none; padding: 0 8px; }

  /* 스티키 탭바 — 6탭, 3열 × 2행, 각 55px, 21px medium */
  .dp-tabs__list { flex-wrap: wrap; }
  .dp-tabs__item { flex: 0 0 33.3333%; }
  .dp-tab { height: 55px; padding: 12px 16px; font-size: 21px; font-weight: 500; line-height: 31px; letter-spacing: -0.84px; border-top: none; }
  .dp-tabs__item:nth-child(-n+3) .dp-tab { border-top: 1px solid var(--dp-line); }
  .dp-tabs__item:nth-child(3n+1) .dp-tab { border-left: 1px solid var(--dp-line); }

  /* 센터 섹션 간격 (Figma 섹션 p-40 → 사이 80 / item_text→cards 30) */
  .dp-sections { padding: 0 0 40px; }
  .dp-center { padding-top: 80px; }
  .dp-center:first-child { padding-top: 40px; }
  .dp-center__head { margin-bottom: 30px; }
  .dp-center__title { font-size: 30px; letter-spacing: -0.45px; }
  .dp-center__desc { font-size: 17px; letter-spacing: -0.68px; }

  /* Figma Doctor_Card_Profile — tablet/mobile 공용 334~335 × 322 카드 */
  .dp-cards { grid-template-columns: repeat(2, minmax(0, 334px)); justify-content: center; gap: 20px; }
  .dp-card__link {
    display: flex; flex-direction: column; align-items: stretch; column-gap: 0;
    grid-template-columns: none; grid-template-rows: none;
    min-height: 322px; height: auto; padding: 0; border-radius: 20px; box-shadow: inset 0 0 0 0.8px var(--dp-card-line);
  }
  .dp-card__profile { display: flex; align-items: flex-start; flex: 0 0 118px; width: 100%; padding: 0 10px; }
  .dp-card__photo {
    grid-column: auto; grid-row: auto; flex: 0 0 110px; width: 110px; height: 110px;
    margin: 8px 0 0; padding: 0; align-self: flex-start; border-radius: 0; background: transparent;
    display: block; overflow: hidden;
  }
  .dp-card__photo img { width: 110px; height: 110px; object-fit: cover; object-position: top center; }
  .dp-card__identity {
    grid-column: auto; grid-row: auto; flex: 1 1 auto; width: auto; min-width: 0;
    padding: 16px 16px 16px 8px; align-self: stretch; overflow: hidden;
  }
  .dp-card__subtitle { margin: 0 0 6px; font-size: 13px; line-height: normal; letter-spacing: -0.39px; }
  .dp-card__name { margin: 0; font-size: 23px; gap: 4px; line-height: 1.3; letter-spacing: -0.45px; }
  .dp-card__role { font-size: 15px; line-height: 1.5; letter-spacing: -0.6px; }
  .dp-card__divider { display: block; flex: 0 0 0; width: calc(100% - 32px); margin: 0 auto; border-top: 1px solid #f5f5f4; }
  .dp-card__body {
    grid-column: auto; grid-row: auto; position: relative; z-index: 1;
    flex: 1 1 auto; width: 100%; min-width: 0;
    justify-content: flex-start; gap: 20px; padding: 16px 20px 20px; overflow: hidden;
  }
  .dp-card__career { margin: 0; }
  .dp-card__career li {
    width: 100%; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; line-height: normal; letter-spacing: -0.52px;
  }
  .dp-card__more { align-self: flex-start; margin-top: 0; padding: 8px 16px; font-size: 13px; border-width: 0.8px; border-radius: 6px; letter-spacing: -0.52px; gap: 3px; }
  .dp-card__more i { font-size: 13px; line-height: 1; }

  /* 워터마크 — Figma image 46: 131×131, 우하단에서 살짝 잘리도록 배치 */
  .dp-card__wm { width: 131px; height: 131px; right: -28px; bottom: 0; opacity: 1; filter: none; }

  .dp-faq { padding: 40px 0 130px; }
  .dp-faq__inner { max-width: 688px; gap: 60px; }
  .dp-faq__eyebrow { font-size: 24px; line-height: 30px; letter-spacing: -0.72px; }
  .dp-faq__title { font-size: 56px; letter-spacing: -1.68px; white-space: normal; }
  .dp-faq__title span, .dp-faq__title strong { display: block; }
  .dp-faq__title strong::before { content: ""; }
  .dp-faq__answer { line-height: normal; }
  .dp-faq__answer br { display: none; }
}

/* ---- 태블릿 전용(768~1199) footer ---- */
@media (min-width: 768px) and (max-width: 1199px) {
  /* 하단 고정 상담폼(bform≈161px)이 footer(기본 padding-bottom:130px !important)를 가림 → 여백 키움 */
  body:has(#doctorsPage) #footer { padding-bottom: 180px !important; }
}

/* ---- 모바일(≤767, 기준 Figma 375px node 835-31559) ---- */
@media (max-width: 767px) {
  /* 좌우 인셋 20px */
  .dp-container { padding: 0 20px; }

  /* 히어로 320 / 타이틀 32 / 라벨 14 */
  .dp-hero { height: 320px; }
  .dp-hero__inner { padding: 0 15px; }
  .dp-hero__label { margin: 0 0 20px; font-size: 14px; font-weight: 500; letter-spacing: 1.4px; white-space: nowrap; }
  .dp-hero__title { font-size: 32px; letter-spacing: -0.96px; }

  /* 인트로 — eyebrow 17 / head 28(ExtraBold 800) / desc 15(opacity .7), 20px 패딩 */
  .dp-intro { padding: 46px 0 60px; }
  .dp-intro .dp-container { padding: 0 20px; }   /* 태블릿 8px(동일 specificity)를 뒤 순서로 덮음 */
  /* 줄바꿈 스왑: 모바일 ON / PC·태블릿 OFF */
  .dp-br-m { display: inline; }
  .dp-br-pt { display: none; }

  /* 탭 — Figma 모바일 375 기준: 풀폭, 47px, 15px, 좌우 16px */
  .dp-tabs .dp-container { padding: 0; }
  .dp-tab { height: 47px; padding: 12px 16px; font-size: 15px; line-height: 1.5; letter-spacing: -0.6px; }
  .dp-tabs__item:nth-child(n+4) { margin-top: -1px; }

  /* 센터 섹션 — title 20 / desc 15 / bar 28 */
  .dp-sections { padding: 0 0 40px; }
  .dp-center { padding-top: 50px; }
  .dp-center:first-child { padding-top: 30px; }
  .dp-center__head { margin-bottom: 20px; }
  .dp-center__title { padding-left: 10px; font-size: 20px; letter-spacing: -1px; }
  .dp-center__desc { font-size: 15px; font-weight: 400; letter-spacing: -0.45px; }

  /* 카드 — 1열 풀폭 (내부는 태블릿 Card_Profile_Mobile 상속) */
  .dp-cards { grid-template-columns: 1fr; gap: 10px; }

  .dp-faq { padding: 30px 0 80px; }
  .dp-faq__inner { gap: 40px; }
  .dp-faq__head { gap: 18px; }
  .dp-faq__eyebrow { font-size: 14px; line-height: 1.4; letter-spacing: -0.42px; }
  .dp-faq__title { font-size: 26px; letter-spacing: -0.78px; }
  .dp-faq__list { gap: 14px; }
  .dp-faq__question { align-items: flex-start; padding: 12px 14px; font-size: 15px; line-height: 1.45; letter-spacing: -0.6px; }
  .dp-faq__question span { flex-basis: 18px; width: 18px; }
  .dp-faq__answer { gap: 8px; padding: 14px; font-size: 13px; line-height: 1.55; letter-spacing: -0.39px; }
  .dp-faq__answer::before { flex-basis: 16px; width: 16px; height: 16px; border-width: 1.5px; margin-top: 2px; }

}
