@import url("../mega-menu.css?v=20261022-policy-text");

:root {
  --blue: #123a72;
  --brand: #1756ae;
  --ink: #171717;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: #fff; font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif; line-height: 1.6; word-break: keep-all; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
.section-inner { width: min(calc(100% - 80px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -80px; padding: 10px 16px; background: #fff; color: #111; }
.skip-link:focus { top: 16px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: #fff; box-shadow: 0 1px rgba(0,0,0,.12); }
.utility-bar { height: 108px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 64px; }
.brand img { width: 292px; height: 62px; object-fit: contain; }
.search-pill { width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.utility-actions { justify-self: end; display: flex; align-items: center; gap: 42px; color: #111; font-size: 17px; white-space: nowrap; }
.language { display: flex; align-items: center; gap: 7px; padding: 8px 14px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 24px; font-size: 15px; }
.language-flag { width: 29px; height: 20px; object-fit: cover; }
.language-chevron { color: #777; }
.menu-toggle { width: 42px; height: 42px; padding: 9px 6px; background: transparent; border: 0; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: #777; transition: .25s ease; }
.main-nav { height: 90px; display: flex; align-items: center; justify-content: center; gap: clamp(34px, 5vw, 96px); padding: 0 30px; overflow: hidden; font-size: 21px; font-weight: 700; transition: height .28s cubic-bezier(.22,.78,.28,1), opacity .18s ease; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -13px; height: 2px; background: var(--brand); transition: .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { left: 0; right: 0; }

@media (min-width: 801px) {
  .site-header.is-nav-collapsed:not(:hover):not(:focus-within) .main-nav { height: 0; opacity: 0; pointer-events: none; }
}

.doctor-hero { position: relative; min-height: 790px; display: flex; align-items: center; color: #fff; background: url("../assets/subpages/hospital/hospital-hero.png") center / cover no-repeat; }
.doctor-hero-shade { position: absolute; inset: 0; background: rgba(20,19,18,.38); }
.doctor-hero-inner { position: relative; z-index: 1; top: -45px; width: min(calc(100% - 80px), 1000px); margin: 0 auto; text-align: center; text-shadow: 0 2px 15px rgba(0,0,0,.23); }
.breadcrumb { margin: 0 0 24px; font-size: 16px; }
.breadcrumb span { margin: 0 4px; }
.doctor-hero h1 { margin: 0 0 34px; font-family: "Noto Serif KR", Georgia, serif; font-size: clamp(52px, 3.35vw, 64px); font-weight: 400; letter-spacing: -.04em; line-height: 1.2; }
.doctor-hero h2 { margin: 0 0 26px; font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.doctor-hero-description { margin: 0; font-size: 18px; line-height: 1.55; }
.doctor-subnav { position: absolute; z-index: 2; left: 50%; bottom: 80px; width: min(calc(100% - 80px), 1135px); min-height: 96px; display: grid; grid-template-columns: 1.28fr 1fr 1.32fr .78fr 1.08fr; overflow: hidden; color: rgba(255,255,255,.78); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.9); border-radius: 17px; backdrop-filter: blur(5px); transform: translateX(-50%); }
.doctor-subnav a { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 21px; font-weight: 600; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.doctor-subnav a:hover, .doctor-subnav a:focus-visible, .doctor-subnav a[aria-current="page"] { color: #fff; }
.doctor-subnav a:hover, .doctor-subnav a:focus-visible { background: rgba(255,255,255,.08); }
.doctor-subnav a[aria-current="page"]::after { content: ""; position: absolute; right: 28px; bottom: 19px; left: 28px; height: 4px; border-radius: 2px; background: #fff; }

.doctor-profile { min-height: 1110px; padding: 142px 0 138px; background: #fff; }
.doctor-profile-grid { display: grid; grid-template-columns: 555px minmax(0, 1fr); align-items: center; gap: 100px; }
.doctor-portrait { margin: 0; align-self: center; box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.doctor-portrait picture { display: block; }
@media (min-width: 801px) {
  .doctor-portrait picture img { aspect-ratio: 555 / 828; object-fit: cover; object-position: center top; }
}
.doctor-profile-copy { position: relative; min-height: 760px; padding: 18px 0 0; }
.profile-watermark { position: absolute; z-index: 0; top: -135px; right: -70px; width: 620px; height: 620px; background: url("../assets/logo-symbol-outline.svg") center / contain no-repeat; opacity: .2; }
.doctor-profile-copy > *:not(.profile-watermark) { position: relative; z-index: 1; }
.doctor-specialty { margin: 0 0 10px; color: var(--brand); font-size: 23.4px; font-weight: 700; }
.doctor-name-row { display: flex; align-items: baseline; gap: 26px; }
.doctor-name-row h2 { margin: 0; font-family: "Noto Serif KR", Georgia, serif; font-size: 39px; font-weight: 600; letter-spacing: -.04em; }
.doctor-name-row span { color: var(--brand); font-size: 23.4px; font-weight: 700; }
blockquote { margin: 70px 0 74px; }
.quote-mark { display: block; height: 44px; font-family: Georgia, serif; font-size: 74px; font-weight: 700; line-height: 1; }
blockquote p { margin: 8px 0 0; font-size: 18px; line-height: 1.55; }
.career-block h3, .experience-part h3 { margin: 0; padding-bottom: 17px; border-bottom: 1px solid #3766b3; font-size: 28px; font-weight: 700; }
.career-block ul { margin: 22px 0 0; padding: 0; list-style: none; font-size: 18px; line-height: 1.7; }
.career-block li::before { content: "▷"; margin-right: 8px; color: #111; }

.doctor-experience { min-height: 1000px; padding: 110px 0; background: #f4f4f4; }
.experience-grid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; align-items: center; gap: 110px; }
.experience-copy h2 { margin: 0 0 70px; font-size: 43px; line-height: 1.25; letter-spacing: -.04em; }
.experience-part h3 { font-size: 27px; }
.experience-part > p { margin: 27px 0; font-size: 18px; line-height: 1.75; }
.experience-part ol { margin: 0; padding: 0; list-style: none; counter-reset: experience; font-size: 18px; line-height: 1.75; }
.experience-part ol li { counter-increment: experience; }
.experience-part ol li::before { content: "(" counter(experience) ") "; }
.surgery-photo { margin: 0; }

.doctor-system { color: #fff; background: #123764; }
.doctor-system-grid { display: grid; grid-template-columns: 53.2% 14.1% 14.1% 18.6%; grid-template-rows: repeat(2, clamp(300px, 20.32vw, 390px)); }
.doctor-system-intro { position: relative; grid-area: 1 / 1 / 3 / 2; overflow: hidden; padding: clamp(95px, 7.3vw, 140px) 48px 48px clamp(100px, 18.85vw, 362px); }
.doctor-system-intro-copy { position: relative; z-index: 1; }
.doctor-system-intro h2 { margin: 0 0 24px; font-size: clamp(32px, 2.08vw, 40px); line-height: 1.18; letter-spacing: -.04em; }
.doctor-system-intro p { margin: 0; font-size: clamp(16px, 1.04vw, 20px); line-height: 1.75; }
.doctor-system-watermark { position: absolute; left: clamp(100px, 18.75vw, 360px); bottom: -32px; width: clamp(430px, 32.3vw, 620px); aspect-ratio: 1; background: url("../assets/subpages/doctors/doctor-system-logo.png") center / contain no-repeat; opacity: .25; }
.doctor-system-story { grid-area: 1 / 2 / 2 / 3; display: grid; place-items: center; padding: 28px 18px; text-align: center; }
.doctor-system-story h3 { margin: 0; font-family: "Noto Serif KR", Georgia, serif; font-size: clamp(28px, 1.98vw, 38px); font-weight: 500; line-height: 1.35; letter-spacing: -.045em; }
.doctor-system-photo { margin: 0; overflow: hidden; }
.doctor-system-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-system-photo-listening { grid-area: 1 / 3 / 2 / 4; }
.doctor-system-photo-procedure { grid-area: 2 / 2 / 3 / 3; }
.doctor-system-detail { grid-area: 2 / 3 / 3 / 4; display: grid; place-items: center; padding: 26px 16px; text-align: center; }
.doctor-system-detail p { margin: 0; font-size: clamp(15px, .94vw, 18px); line-height: 1.95; }
.doctor-system-fill { grid-area: 1 / 4 / 3 / 5; }
.doctor-system-story, .doctor-system-photo-listening, .doctor-system-photo-procedure, .doctor-system-detail, .doctor-system-fill { border-left: 1px solid rgba(255,255,255,.55); }

.eyebrow { margin: 0 0 18px; font-size: 20px; font-weight: 500; }
.eyebrow::before { content: "("; margin-right: 8px; }
.eyebrow::after { content: ")"; margin-left: 8px; }

.site-footer { display: flex; align-items: center; min-height: 410px; padding: 48px 0; color: #fff; background: #123764; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 742px) 360px; align-items: center; justify-content: space-between; gap: 100px; }
.footer-meta nav { display: flex; justify-content: space-between; margin-bottom: 20px; padding: 0 0 24px; border-bottom: 1px solid rgba(255,255,255,.72); font-size: 17px; font-weight: 700; }
.footer-info { display: grid; grid-template-columns: 280px 1fr; gap: 65px; }
.footer-address { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; line-height: 1.7; }
.footer-address strong { margin-bottom: 2px; font-size: 16px; }
.footer-address address { font-style: normal; }
.footer-policy { display: flex; gap: 34px; margin-top: 56px; font-size: 16px; font-weight: 700; }
.footer-contact p { margin: 0 0 7px; font-size: 14px; line-height: 1.45; }
.footer-logo { justify-self: end; width: 320px; }

@media (max-width: 1500px) {
  .utility-bar { height: 76px; padding-inline: 40px; }
  .brand img { width: 220px; height: 49px; }
  .utility-actions { gap: 27px; font-size: 13px; }
  .main-nav { height: 68px; font-size: 17px; }
  .doctor-hero { min-height: 620px; }
  .doctor-hero-inner { top: -32px; }
  .doctor-subnav { bottom: 50px; min-height: 78px; }
  .doctor-subnav a { font-size: 17px; }
  .doctor-subnav a[aria-current="page"]::after { bottom: 14px; }
}

@media (max-width: 1100px) {
  .main-nav { gap: 55px; }
  .doctor-profile-grid, .experience-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 55px; }
  .doctor-portrait, .surgery-photo { width: 100%; }
  .doctor-system-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(2, minmax(300px, 42vw)); }
  .doctor-system-intro { grid-area: 1 / 1 / 2 / 3; min-height: 520px; padding: 90px 10vw; }
  .doctor-system-watermark { left: auto; right: 5vw; width: 460px; }
  .doctor-system-story { grid-area: 2 / 1 / 3 / 2; }
  .doctor-system-photo-listening { grid-area: 2 / 2 / 3 / 3; }
  .doctor-system-photo-procedure { grid-area: 3 / 1 / 4 / 2; }
  .doctor-system-detail { grid-area: 3 / 2 / 4 / 3; }
  .doctor-system-story, .doctor-system-photo-procedure { border-left: 0; }
  .doctor-system-fill { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 55px; }
  .footer-logo { justify-self: start; width: 250px; }
}

@media (max-width: 800px) {
  .section-inner { width: min(calc(100% - 40px), var(--max)); }
  .utility-bar { height: 64px; display: flex; justify-content: space-between; padding: 0 20px; }
  .brand img { width: 160px; height: auto; }
  .search-pill, .utility-actions > a, .language { display: none; }
  .main-nav { position: fixed; z-index: 60; inset: 64px 0 0; height: auto; display: grid; align-content: center; gap: 34px; color: #fff; background: rgba(16,54,101,.97); transform: translateX(100%); transition: transform .3s ease; }
  body.menu-open .main-nav { transform: translateX(0); }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .doctor-hero { min-height: 650px; background-position: 58% center; }
  .doctor-hero-inner { top: -50px; width: calc(100% - 40px); margin-top: 0; }
  .doctor-hero h1 { font-size: 43px; }
  .doctor-hero h2 { font-size: 23px; }
  .doctor-hero-description { font-size: 15px; }
  .doctor-hero-description br { display: none; }
  .doctor-subnav { bottom: 28px; width: calc(100% - 40px); min-height: 68px; display: flex; justify-content: flex-start; overflow-x: auto; border-radius: 12px; }
  .doctor-subnav a { min-width: max-content; padding: 0 22px; font-size: 14px; }
  .doctor-subnav a[aria-current="page"]::after { right: 22px; bottom: 10px; left: 22px; height: 3px; }
  .doctor-profile, .doctor-experience { min-height: auto; padding: 82px 0; }
  .doctor-profile-grid, .experience-grid { grid-template-columns: 1fr; gap: 55px; }
  .doctor-portrait { width: min(100%, 520px); margin-inline: auto; }
  .doctor-profile-copy { min-height: 0; }
  .profile-watermark { top: -35px; right: 0; width: 330px; height: 330px; }
  .doctor-name-row h2 { font-size: 39px; }
  blockquote { margin: 52px 0; }
  .experience-copy h2 { margin-bottom: 50px; font-size: 35px; }
  .surgery-photo { width: min(100%, 520px); margin-inline: auto; }
  .doctor-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto repeat(2, clamp(210px, 58vw, 350px)); }
  .doctor-system-intro { grid-area: auto; grid-column: 1 / -1; min-height: 0; padding: 42px 24px 46px; }
  .doctor-system-intro p br { display: none; }
  .doctor-system-watermark { right: -70px; bottom: -25px; width: 390px; }
  .doctor-system-story, .doctor-system-photo-listening, .doctor-system-photo-procedure, .doctor-system-detail { grid-area: auto; min-height: 0; }
  .doctor-system-story { padding: 16px 10px; }
  .doctor-system-story h3 { font-size: clamp(22px, 5vw, 34px); }
  .doctor-system-detail { padding: 12px; }
  .doctor-system-detail p { font-size: clamp(11px, 3vw, 15px); line-height: 1.65; }
  .doctor-system-photo { aspect-ratio: auto; }
  .doctor-system-story, .doctor-system-photo-listening, .doctor-system-photo-procedure, .doctor-system-detail { border-left: 0; }
  .footer-info { grid-template-columns: 1fr; gap: 34px; }
  .footer-policy { margin-top: 30px; }
}

@media (max-width: 520px) {
  .doctor-hero { min-height: 610px; }
  .breadcrumb { font-size: 13px; }
  .doctor-hero h1 { font-size: 37px; }
  .doctor-hero h2 { font-size: 20px; }
  .doctor-specialty { font-size: 19.5px; }
  blockquote p, .career-block ul, .experience-part > p, .experience-part ol { font-size: 15px; }
  .career-block h3, .experience-part h3 { font-size: 23px; }
  .footer-meta nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
