@charset "UTF-8";
/* ==========================================================================
   여수제일병원 — 메인 시안 v3
   레퍼런스: 아산충무병원(asancm.co.kr) 구조 문법
   - 히어로에 성과/인증을 박고
   - 전화번호 입력식 '빠른예약' 바를 히어로에 겹침 (현 jeilhp.com 방식과 동일)
   - 우측 플로팅 퀵바 + 통합검색 + 아이콘 퀵메뉴 + 실제 콘텐츠(소식/건강정보)
   컬러: 병원 공식 CI(#1E2187 남색 / #009041 그린 / #E50013 레드)
        + 홈페이지 지정 팔레트, WCAG 미달분은 보정색으로 대체
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css");

:root {
  /* 브랜드 */
  --navy:        #1E2188;
  --navy-deep:   #141a63;
  --navy-ink:    #0E1140;
  --green:       #009041;   /* CI 그린 — 면적/장식 */
  --green-cta:   #007A37;   /* 버튼 (흰글씨 5.47:1) */
  --green-dark:  #00632C;
  --red:         #E50013;   /* CI 레드 — 장식 */
  --red-em:      #D4181D;   /* 응급 텍스트/버튼 (5.32:1) */
  --sky:         #0089DD;   /* 지정색 — 장식 전용 */
  --sky-text:    #00679F;   /* 텍스트용 보정 (6.10:1) */

  /* 중립 */
  --ink:         #16181D;
  --text:        #43464E;
  --text-mute:   #6B6F7A;
  --line:        #E1E4EA;
  --line-2:      #CDD2DB;
  --bg-soft:     #F5F7FA;
  --bg-tint:     #EEF3FA;
  --white:       #fff;

  /* 우측 플로팅(폭 62px + 여백 18px)이 본문을 덮지 않도록 여유를 둔 폭 */
  --wrap: 1240px;
  --r: 6px;
}

html { font-size: 106.25%; }              /* 17px 기준 */
html[data-fontsize="large"]  { font-size: 118.75%; }  /* 19px */
html[data-fontsize="xlarge"] { font-size: 131.25%; }  /* 21px */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

h1,h2,h3,h4 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.35; letter-spacing: -.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.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; }
/* 옆으로 미는 탭 · 메뉴 안의 숨김 글자가 줄 밖(페이지 기준)에 자리 잡아 모바일 페이지 폭을 넓히지 않게(10/13 장례식장 '(새 창)') */
.lnb__a { position: relative; }

.skip-link {
  position:absolute; left:50%; top:-80px; transform:translateX(-50%); z-index:999;
  background:var(--navy); color:#fff; padding:.8rem 1.5rem; font-weight:700;
}
.skip-link:focus { top:.5rem; }

/* ==========================================================================
   헤더
   ========================================================================== */
.hd {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.hd__in { display: flex; align-items: center; gap: 1.5rem; height: 84px; }

.hd__logo { flex-shrink: 0; }
.hd__logo img { width: 232px; height: auto; }

/* GNB — 중앙 정렬 (여수전남병원 방식) */
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb__list { display: flex; gap: .55rem; }
.gnb__a {
  display: flex; align-items: center; height: 84px; padding: 0 1.85rem;
  font-size: 1.14rem; font-weight: 800; color: var(--ink); letter-spacing: -.025em;
  position: relative; white-space: nowrap;
}
.gnb__a { transition: color .16s ease; }
.gnb__a::after {
  content:""; position:absolute; left:1.55rem; right:1.55rem; bottom:22px; height:3px;
  background: var(--green-cta); transform: scaleX(0); transition: transform .2s;
}
/* 글자 크게(19/21px)에서는 메뉴가 헤더 폭을 넘치므로 여백만 줄인다 */
html[data-fontsize="large"]  .gnb__a { padding: 0 1.1rem; }
html[data-fontsize="xlarge"] .gnb__a { padding: 0 .8rem; }
html[data-fontsize="xlarge"] .gnb__list { gap: .3rem; }
/* 올리거나 고르면 글자색까지 바뀌도록 */
.gnb__i:hover .gnb__a,
.gnb__a:focus-visible { color: var(--green-cta); }
.gnb__i:hover .gnb__a::after,
.gnb__a:focus-visible::after { transform: scaleX(1); }

/* 현재 보고 있는 메뉴 */
.gnb__a.is-active { color: var(--navy); }
.gnb__a.is-active::after { transform: scaleX(1); background: var(--navy); }

.hd__util { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   메가메뉴 — 어느 항목에 올려도 5개 컬럼이 한 번에 펼쳐진다
   -------------------------------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(20,26,99,.10);
  overflow: hidden;
  max-height: 0; opacity: 0; visibility: hidden;
  transition: max-height .28s ease, opacity .2s ease, visibility .28s;
}
/* 열린 뒤에는 overflow 를 풀어야 3뎁스 패널이 잘리지 않는다 */
.hd:hover .mega,
.hd:focus-within .mega,
.mega.is-open { max-height: 520px; opacity: 1; visibility: visible; overflow: visible; }

.mega__in {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 2rem 0 2.4rem;
}
/* 항목 배경이 컬럼 폭을 꽉 채우도록 좌우 여백은 항목 쪽에 준다 */
.mega__col {
  padding: 0; border-right: 1px solid var(--line);
  transition: background-color .16s ease;
}
.mega__col:last-child { border-right: 0; }

.mega__h {
  font-size: 1.1rem; font-weight: 800; color: var(--navy);
  padding-bottom: .8rem; margin: 0 1.5rem .5rem; border-bottom: 2px solid var(--navy);
  transition: color .16s ease, border-color .16s ease;
}

.mega__list > li { position: relative; border-bottom: 1px solid #F0F2F6; }
.mega__list > li:last-child { border-bottom: 0; }

.mega__list > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .78rem 1.5rem;
  font-size: 1.02rem; font-weight: 600; color: var(--text);
  transition: background-color .14s ease, color .14s ease;
}

/* 하위가 있는 항목 표시 */
.mega__list > li.has-sub > a::after {
  content: ""; width: 6px; height: 6px; flex-shrink: 0; margin-right: 3px;
  border-right: 2px solid #A7AEBA; border-top: 2px solid #A7AEBA;
  transform: rotate(45deg);
}

/* 선택 — 항목 전체를 남색으로 채운다 */
.mega__list > li:hover > a,
.mega__list > li:focus-within > a {
  background: var(--navy); color: #fff; font-weight: 800;
}
.mega__list > li:hover > a::after,
.mega__list > li:focus-within > a::after { border-color: #fff; }

/* 3뎁스 — 항목 우측에 남색 패널로 펼쳐진다 */
.d3 {
  display: none; position: absolute; left: 100%; top: 0; z-index: 5;
  min-width: 230px; padding: .7rem 0;
  background: var(--navy); min-height: 100%;
}
.mega__list > li.has-sub:hover > .d3,
.mega__list > li.has-sub:focus-within > .d3 { display: block; }

.d3 li { border: 0; }
.d3 a {
  display: block; padding: .62rem 1.5rem;
  font-size: .99rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.d3 a:hover, .d3 a:focus-visible { background: rgba(255,255,255,.14); text-decoration: underline; }

/* 마지막 컬럼은 오른쪽이 막히므로 왼쪽으로 편다 */
.mega__col:last-child .d3 { left: auto; right: 100%; }

/* '진료과 안내' 3뎁스 = 각 진료과 20개 — 한 줄로 두면 800px 이라 위에서 아래로 10개씩 두 줄(왼쪽 내과·외과계, 오른쪽 전문·검사·검진) */
.mega__list > li.has-sub:hover > .d3.d3--depts,
.mega__list > li.has-sub:focus-within > .d3.d3--depts {
  display: grid; grid-template-rows: repeat(10, auto); grid-auto-flow: column; grid-auto-columns: minmax(180px, auto);
}
.d3.d3--depts { padding: .45rem 0; }
.d3--depts a { padding: .34rem 1.4rem; line-height: 1.5; }   /* 20개가 흰 메뉴판 높이 안에 들어오게 */

/* 상단에서 올린 메뉴에 해당하는 컬럼을 짚어준다 */
.mega__col.is-hl .mega__h { color: var(--green-cta); border-bottom-color: var(--green-cta); }

.hd__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); border-radius: var(--r);
}
.hd__icon:hover { background: var(--bg-soft); }
.hd__icon svg { width: 24px; height: 24px; }

/* 글자크기 */
.fs { display: flex; align-items: center; gap: .3rem; margin-left: .4rem;
      padding-left: .7rem; border-left: 1px solid var(--line); }
.fs__t { font-size: .78rem; color: var(--text-mute); font-weight: 600; }
.fs__b {
  min-width: 32px; height: 30px; border: 1px solid var(--line-2); background: #fff;
  color: var(--ink); font-weight: 800; border-radius: 3px; line-height: 1;
}
.fs__b:hover { border-color: var(--navy); }
.fs__b[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.fs__b--a { font-size: .78rem; } .fs__b--b { font-size: .92rem; } .fs__b--c { font-size: 1.06rem; }

/* ==========================================================================
   히어로 — 실사진 배경 + 다크 오버레이
   ========================================================================== */
.hero {
  position: relative; background: #EDF1F8; overflow: hidden;
  min-height: 680px;
}

.hslide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hslide.on { opacity: 1; }
.hslide__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* 밝은 톤 : 흰 베일을 좌측에 깔고 글자는 남색으로 */
.hslide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.93) 34%,
    rgba(255,255,255,.66) 56%,
    rgba(255,255,255,.22) 78%,
    rgba(255,255,255,0) 100%);
}
/* 켄번즈 — 아주 느린 확대 */
.hslide.on .hslide__img { animation: kb 14s ease-out both; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__in {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  min-height: 680px; padding: 4.5rem 0 10rem;
}

.slide { display: none; max-width: 40rem; }
.slide.on { display: block; animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to { opacity:1; transform:none; } }

/* 라벨은 배지 박스도 상태 점도 쓰지 않는다 — 텍스트로만 */
.slide__tag {
  display: inline-block;
  font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em;
  color: var(--green-cta);
}
.slide__tag--em { color: var(--red-em); }

.slide__bar { width: 48px; height: 5px; background: var(--green); margin: 1.5rem 0 1.1rem; border-radius: 3px; }

.slide__title {
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.7rem);
  line-height: 1.22; letter-spacing: -.045em; color: var(--ink);
}
.slide__title em { font-style: normal; color: var(--navy); }
.slide__title .nv { color: var(--navy); }

.slide__desc {
  margin-top: 1.3rem; font-size: 1.12rem; line-height: 1.75;
  color: var(--text); max-width: 30em;
}

.slide__btn {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.9rem; height: 54px; padding: 0 1.8rem;
  background: var(--navy); border: 0;
  border-radius: 4px; color: #fff; font-size: 1.05rem; font-weight: 800;
}
.slide__btn:hover { background: var(--navy-deep); }
.slide__btn svg { width: 17px; height: 17px; }

/* 슬라이드 컨트롤 */
/* 빠른예약 바(히어로에 -68px 겹침) 위로 올려 충돌 방지 */
.hero__ctrl {
  position: absolute; left: 0; bottom: 5.8rem; z-index: 3;
  display: flex; align-items: center; gap: 1rem;
}
.hero__arrow {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.9);
  border-radius: 50%; color: var(--navy);
}
.hero__arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero__arrow svg { width: 18px; height: 18px; }
.hero__count { font-size: 1rem; font-weight: 700; color: var(--text-mute); letter-spacing: .05em; }
.hero__count b { color: var(--navy); font-size: 1.16rem; }

.hero__dots { display: flex; gap: 8px; margin-left: .4rem; }
.hero__dot {
  width: 30px; height: 4px; border: 0; padding: 0; border-radius: 2px;
  background: var(--line-2);
}
.hero__dot[aria-current="true"] { background: var(--navy); width: 48px; }

/* --------------------------------------------------------------------------
   히어로 B안 — 사진 대신 인증 그래픽 (hero-b.html)
   -------------------------------------------------------------------------- */
.hero--gfx {
  background:
    radial-gradient(900px 620px at 78% 42%, #E9F0FA 0%, rgba(233,240,250,0) 70%),
    linear-gradient(180deg, #FBFCFE 0%, #F1F5FA 100%);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero--gfx .hero__in {
  display: grid; grid-template-columns: 1.06fr .94fr;
  align-items: center; gap: 2.5rem;
}
.hero--gfx .hero__copy { position: relative; z-index: 2; }
.hero--gfx .slide { max-width: none; }
/* A안은 히어로 하단에 띄우지만, B안에서는 글 흐름 안에 둔다 */
.hero--gfx .hero__ctrl { position: static; margin-top: 2.2rem; }

.hero__vis { position: relative; z-index: 2; display: grid; place-items: center; min-height: 380px; }
.hv { display: none; text-align: center; }
.hv.on { display: block; animation: fadeUp .55s .06s ease both; }

.medal {
  width: clamp(200px, 21vw, 278px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(30, 33, 136, .18));
}
.hv__cap { margin-top: 1.5rem; font-size: 1.14rem; color: var(--text); }
.hv__cap strong { color: var(--navy); font-weight: 800; }

/* A등급 */
.grade {
  display: inline-flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: 2rem 3.2rem 1.6rem;
  background: #fff; border: 3px solid var(--red-em); border-radius: 14px;
  box-shadow: 0 18px 42px rgba(212, 24, 29, .15);
}
.grade__label { font-size: 1rem; font-weight: 800; color: var(--red-em); letter-spacing: -.02em; }
.grade__mark {
  font-size: clamp(4.4rem, 7vw, 6.6rem); font-weight: 800; color: var(--ink);
  line-height: 1; letter-spacing: -.05em;
}
.grade__sub { font-size: 1.24rem; font-weight: 800; color: var(--ink); }

/* 규모 숫자 */
.figures { display: grid; gap: .9rem; }
.figure {
  display: flex; align-items: baseline; justify-content: center; gap: .6rem;
  padding: 1.05rem 1.5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 22px rgba(20, 26, 99, .07);
}
.figure__n {
  font-size: 2.6rem; font-weight: 800; color: var(--navy);
  line-height: 1; letter-spacing: -.035em;
}
.figure__u { font-size: 1.02rem; font-weight: 700; color: var(--text); }

/* --------------------------------------------------------------------------
   히어로 C안 — 실사진 카드 + 인증 배지 겹침 (hero-c.html)
   -------------------------------------------------------------------------- */
.hero--mix {
  background:
    radial-gradient(880px 600px at 74% 44%, #E9F0FA 0%, rgba(233,240,250,0) 72%),
    linear-gradient(180deg, #FBFCFE 0%, #F1F5FA 100%);
}
/* 사진은 우측을 꽉 채우고(풀블리드), 글은 좌측에 */
.hero--mix .hero__in { display: block; }
.hero--mix .hero__copy { position: relative; z-index: 3; max-width: 37%; }
.hero--mix .slide { max-width: none; }
.hero--mix .hero__ctrl { position: static; margin-top: 2.2rem; }
/* 슬라이드 넷을 한 칸에 겹쳐 가장 긴 문구 높이로 고정 — 넘길 때 히어로 높이 · 제목 위치가 출렁이지 않게.
   안 보이는 슬라이드는 visibility 로 숨겨 display:none 처럼 초점 · 읽기에서 빠진다 */
.hero--mix .hero__copy { display: grid; }
.hero--mix .slide { grid-area: 1 / 1; display: block; visibility: hidden; }
.hero--mix .slide.on { visibility: visible; }
.hero--mix .hero__ctrl { grid-area: 2 / 1; }

.hero--mix .hero__vis {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 62%; min-height: 0; z-index: 1; display: block;
}
/* 넓은 창: 사진이 본문 폭(--wrap 1240px) 끝에서 잘리지 않고 화면 오른쪽 끝까지 간다.
   (예전엔 창이 약 1290px 보다 넓으면 사진 오른쪽이 딱 끊겨 경계선이 보였다 — 2026-09-29 사용자 지적)
   왼쪽 시작점(본문의 38%)은 그대로. 스크롤 막대 폭만큼 더 나간 부분은 .hero 의 overflow:hidden 이 자른다 */
@media (min-width: 1081px) {
  .hero--mix .hero__vis { left: 38%; right: calc(50% - 50vw); width: auto; }
  /* 빠른 예약 칸이 첫 화면에 다 보이게 히어로 아랫단 160 → 112px(10/8 사용자 '살짝 올려' — 1920×923 창에서 칸 아래 21px 가 잘렸다).
     칸은 그대로 히어로 끝에 68px 걸친다 */
  .hero--mix .hero__in { padding-bottom: 7rem; }
}
.hero--mix .hv { display: none; position: absolute; inset: 0; text-align: left; }
.hero--mix .hv.on { display: block; animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 네 방향 경계를 배경색으로 녹여 잘린 티를 없앤다 */
.hero--mix .hero__vis::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg,  #F4F7FB 0%, rgba(244,247,251,.62) 9%, rgba(244,247,251,0) 26%),
    linear-gradient(180deg, rgba(244,247,251,.85) 0%, rgba(244,247,251,0) 12%),
    linear-gradient(0deg,   rgba(244,247,251,.9) 0%, rgba(244,247,251,0) 14%);
}

.shot { margin: 0; height: 100%; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot--top img { object-position: 50% 0; }   /* 상단에 문구가 든 정사각 이미지: 위를 살리고 아래를 자른다 */

/* 인증 도장 — 가로 중앙, 세로는 하늘과 건물이 만나는 높이까지 내린다 */
.stamp {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%, -50%);
  width: clamp(248px, 24vw, 356px);
  filter: drop-shadow(0 22px 42px rgba(20, 26, 99, .34));
}
.stamp svg,
.stamp img { width: 100%; height: auto; display: block; }
/* 4번 슬라이드 인증마크 — 1번 도장처럼 사진 가운데, 크기는 조금 작게 (2026-09-26 사용자: 아래쪽은 너무 낮다) */
.stamp--cert { width: clamp(200px, 19vw, 276px); }
/* 4번 슬라이드 — 사진 대신 금메달 한 장(사용자 시안 히어로4 오른쪽, 투명 배경이라 히어로 바탕에 그대로 얹는다) */
.hero--mix .hv--medal.on { display: grid; place-items: center; }
/* 사진 가장자리를 녹이는 덮개는 사진이 없으면 옅은 네모 판으로 보인다 → 넓은 화면의 메달 화면에서는 끈다
   (좁은 화면은 그림을 글 뒤에 흐리게 까는 덮개라 다른 슬라이드와 같게 둔다) */
@media (min-width: 1081px) {
  .hero--mix .hero__vis:has(.hv--medal.on)::after { display: none; }
}
.medal4 { width: auto; height: min(90%, 640px); max-width: 94%; object-fit: contain; }

/* 이미지 배지(생성물)를 쓰는 경우 — 카드 껍데기 없이 이미지만 */
.chip--img {
  background: none; border: 0; box-shadow: none; padding: 0;
  top: 30%; left: 57%;
  transform: translate(-50%, -18%);
  width: clamp(236px, 22.5vw, 338px);
}

.chip--img img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 16px 30px rgba(20, 26, 99, .28));
}

/* 4번 히어로 수치 문구 — 사진 위 상단 중앙, 배경 없이 글자만 */
.big {
  position: absolute; top: 5%; left: 50%; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.6rem 3.4rem 1.7rem; white-space: nowrap;
}
/* 문구가 놓이는 사진 윗부분을 흰색으로 부드럽게 눌러 준다(만들어 주신 시안의 흰 상단부와 같은 구성, 경계 없음) */
.shot--veil::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 26%, rgba(255,255,255,.45) 44%, rgba(255,255,255,0) 60%);
}
.shot--veil { position: relative; }
.big__label { font-size: clamp(1.15rem, .9rem + .8vw, 1.6rem); font-weight: 800; color: var(--green-cta); letter-spacing: -.02em; }
.big__mark { font-size: clamp(3.6rem, 2.4rem + 3.6vw, 6.4rem); font-weight: 800; color: var(--navy-ink); line-height: 1.05; letter-spacing: -.05em; margin-top: .1rem; }
.big__mark em { font-style: normal; font-size: .42em; margin-left: .1em; letter-spacing: -.03em; }
.big__note { margin-top: .55rem; padding-top: .55rem; border-top: 2px solid rgba(0,122,55,.55); font-size: clamp(1.05rem, .85rem + .7vw, 1.45rem); font-weight: 700; color: #2C2F38; letter-spacing: -.01em; }
@media (max-width: 1080px) { .big { display: none; } }

/* 수치 배지 — 도장과 같은 자리(가로 중앙·상단) */
.chip {
  position: absolute; top: 7%; left: 50%; z-index: 3;
  transform: translateX(-50%);
  align-items: center; text-align: center;
  display: inline-flex; flex-direction: column; gap: .1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border-top: 5px solid var(--navy);
  box-shadow: 0 18px 40px rgba(20, 26, 99, .22);
}
.chip--em { border-top-color: var(--red-em); }

.chip__label { font-size: .92rem; font-weight: 800; color: var(--navy); }
.chip--em .chip__label { color: var(--red-em); }
.chip__mark {
  font-size: 2.9rem; font-weight: 800; color: var(--ink);
  line-height: 1.05; letter-spacing: -.04em;
}
.chip__mark em { font-style: normal; font-size: .42em; margin-left: .18em; letter-spacing: -.02em; }
.chip__note { margin-top: .2rem; font-size: .92rem; font-weight: 600; color: var(--text-mute); }

/* 유리 배지 이미지 — 심장검사실 쪽. 아래 글로우까지 사진 안에 들어오도록 올려 둔다 */
.chip--glassimg {
  background: none; border: 0; box-shadow: none; padding: 0;
  top: 50%; left: auto; right: 8%;
  transform: translateY(-50%);
  width: clamp(236px, 23vw, 344px);
}
.chip--glassimg img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 34px rgba(8, 12, 40, .34));
}

/* 유리 배지(CSS 버전) — 뒤 사진이 비치도록 */
.chip--glass {
  top: auto; bottom: 16%; left: auto; right: 6%;
  transform: none;
  align-items: flex-start; text-align: left;
  padding: 1.25rem 1.8rem 1.35rem;
  border: 1.5px solid rgba(255,255,255,.5);
  border-top: 1.5px solid rgba(255,255,255,.72);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14,18,58,.52) 0%, rgba(14,18,58,.34) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 18px 44px rgba(8, 12, 40, .34),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.12);
}
.chip--glass .chip__label {
  color: #FFD9DA; font-weight: 800;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.chip--glass .chip__mark {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.chip--glass .chip__mark em { color: rgba(255,255,255,.92); }
.chip--glass .chip__note {
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ==========================================================================
   빠른예약 바 (히어로에 겹침)
   ========================================================================== */
.qbook {
  position: relative; z-index: 5;
  margin-top: -68px; margin-bottom: 3.2rem;
}
/* 가로만 살짝 좁히고 세로는 원래 크기 유지 (좌우 중앙 고정) */
.qbook { max-width: 1080px; margin-left: auto; margin-right: auto; }

.qbook__in {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 2px solid var(--green); border-radius: 100px;
  padding: .75rem .9rem .75rem 2rem;
  box-shadow: 0 14px 40px rgba(20,26,99,.13);
}
.qbook__label {
  display: flex; align-items: center; gap: .7rem;
  font-size: 1.1rem; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.qbook__label::before { content:""; width: 26px; height: 4px; background: var(--green); border-radius: 2px; }

.qbook__field { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.qbook__field svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.qbook__input {
  flex: 1; min-width: 0; height: 52px; border: 0; background: none;
  font-size: 1.06rem; color: var(--ink); font-weight: 600;
}
.qbook__input::placeholder { color: #9AA0AC; font-weight: 500; }

.qbook__go {
  display: inline-flex; align-items: center; gap: .5rem; height: 54px; padding: 0 1.8rem;
  background: var(--green-cta); color: #fff; border: 0; border-radius: 100px;
  font-size: 1.06rem; font-weight: 800; white-space: nowrap;
}
.qbook__go:hover { background: var(--green-dark); }

.qbook__alt {
  display: inline-flex; align-items: center; gap: .55rem; height: 54px; padding: 0 1.5rem;
  border: 1px solid var(--line-2); border-radius: 100px; background: #fff;
  font-size: 1.02rem; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.qbook__alt:hover { border-color: var(--navy); color: var(--navy); }
.qbook__alt svg { width: 19px; height: 19px; }
.qbook__alt--a svg { color: var(--navy); }
.qbook__alt--b svg { color: var(--red-em); }
/* 컬러 픽토(2026-09-26 사용자 시안 — scripts/make_qbook_pictos.py) */
.qbook__ico { width: 26px; height: 26px; flex-shrink: 0; }

.qbook__note { margin: .7rem 0 0 1.7rem; font-size: .88rem; color: var(--text-mute); }

/* ==========================================================================
   우측 플로팅 퀵바
   ========================================================================== */
.side {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 6px; box-shadow: 0 8px 28px rgba(20,26,99,.12);
}
.side__i {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy); position: relative;
}
.side__i:hover { background: var(--navy); color: #fff; }
.side__i svg { width: 23px; height: 23px; }
.side__i--em { color: var(--red-em); }
.side__i--em:hover { background: var(--red-em); color: #fff; }
/* 툴팁 */
.side__i::after {
  content: attr(data-label);
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  background: var(--navy-ink); color: #fff; font-size: .86rem; font-weight: 700;
  padding: .4rem .7rem; border-radius: 4px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.side__i:hover::after { opacity: 1; }

/* ==========================================================================
   섹션 공통 + 워터마크
   ========================================================================== */
.sec { position: relative; padding: clamp(3.4rem, 5vw, 5.2rem) 0; overflow: hidden; }
.sec--soft { background: var(--bg-soft); }

.sec__mark {
  position: absolute; left: 50%; transform: translateX(calc(-50% + var(--drift, 0vw))); top: 1.1rem;   /* --drift: app.js 13-3 */
  font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 800;
  color: rgba(30,33,136,.038); letter-spacing: .08em; text-align: center;
  white-space: nowrap; pointer-events: none; user-select: none; line-height: 1;
}

.sec__head { position: relative; text-align: center; margin-bottom: 2.4rem; padding-top: 1.4rem; }
.sec__eyebrow {
  display: inline-block; font-size: .86rem; font-weight: 800; letter-spacing: .14em;
  color: var(--green-cta); margin-bottom: .5rem;
}
.sec__title { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); }
.sec__title b { color: var(--navy); }
.sec__sub { margin-top: .75rem; font-size: 1.06rem; color: var(--text-mute); }

.sec__head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  text-align: left; gap: 1rem; flex-wrap: wrap; padding-top: 2rem;
}

.more {
  display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1.2rem;
  border: 1px solid var(--line-2); border-radius: 100px; background: #fff;
  font-size: .95rem; font-weight: 700; color: var(--ink);
}
.more:hover { border-color: var(--navy); color: var(--navy); }

/* ==========================================================================
   통합검색 + 퀵메뉴
   ========================================================================== */
.find__box {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  max-width: 860px; margin: 0 auto;
  background: #fff; border: 2px solid var(--navy); border-radius: 100px;
  padding: .5rem .5rem .5rem 1.8rem;
  box-shadow: 0 10px 30px rgba(20,26,99,.10);
}
.find__input {
  flex: 1; min-width: 0; height: 56px; border: 0; background: none;
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.find__input::placeholder { color: #98A0AE; font-weight: 500; }
.find__btn {
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0;
}
.find__btn:hover { background: var(--navy-deep); }
.find__btn svg { width: 24px; height: 24px; }

.qmenu {
  position: relative;
  display: grid; grid-template-columns: repeat(8, 1fr);
  margin-top: 2.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 26px rgba(20,26,99,.07);
  overflow: hidden;
}
.qmenu__i {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; padding: 1.7rem .5rem 1.5rem;
  border-right: 1px solid var(--line); text-align: center;
}
.qmenu__i:last-child { border-right: 0; }
.qmenu__i:hover { background: var(--bg-tint); }
.qmenu__i svg { width: 34px; height: 34px; color: var(--green-cta); }
.qmenu__i--em svg { color: var(--red-em); }
.qmenu__t { font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }

/* ==========================================================================
   병원소식
   ========================================================================== */
/* 왼쪽 = 카드 4건 + 그 아래 '지난 소식' 목록, 오른쪽 진료시간 카드가 두 줄에 걸쳐 목록이 남은 높이를 채운다 */
.news__grid { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto 1fr; column-gap: 1.6rem; row-gap: 1rem; }
.news__list { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.news__grid > .hours { grid-column: 2; grid-row: 1 / span 2; }
.news__more {
  grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-width: 0;   /* 한 줄 제목이 칸 폭을 밀어내지 않게 */
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .25rem 1.2rem;
}
.news__more li { flex: 1; display: flex; border-bottom: 1px solid var(--line); }
.news__more li:last-child { border-bottom: 0; }
.nmore { flex: 1; min-width: 0; min-height: 50px; display: flex; align-items: center; gap: .5rem; }
.nmore .nitem__cat { margin: 0; flex-shrink: 0; }
.nmore__t { flex: 1; min-width: 0; margin-left: .15rem; font-size: 1rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmore:hover .nmore__t { color: var(--navy); text-decoration: underline; }
.nmore__d { flex-shrink: 0; margin-left: .6rem; font-size: .86rem; color: var(--text-mute); }

.nitem {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem;
}
.nitem:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(20,26,99,.09); }
.nitem__thumb {
  width: 96px; height: 76px; flex-shrink: 0; border-radius: 5px;
  background: linear-gradient(135deg, #E8EEF8, #D8E3F2);
  display: grid; place-items: center; color: var(--navy);
  font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.35; padding: .3rem;
}
.nitem__body { min-width: 0; }
.nitem__cat {
  display: inline-block; font-size: .76rem; font-weight: 800; color: var(--green-cta);
  background: #EAF6EF; padding: .1rem .45rem; border-radius: 3px; margin-bottom: .35rem;
}
.nitem__t {
  font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nitem__d { margin-top: .35rem; font-size: .86rem; color: var(--text-mute); }

/* 진료시간 카드 */
.hours {
  background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy);
  border-radius: 8px; padding: 1.6rem 1.6rem 1.4rem;
}
.hours__t { font-size: 1.25rem; margin-bottom: .2rem; }
.hours__today { font-size: .9rem; color: var(--text-mute); font-weight: 600; }
/* 상태 점 대신 좌측 굵은 선 + 배경색으로 구분 */
.hours__state {
  display: block; margin-top: .9rem;
  padding: .6rem .95rem; border-radius: 0 4px 4px 0;
  font-size: .98rem; font-weight: 800; border-left: 4px solid currentColor;
}
.hours__state.on  { background: #EAF6EF; color: var(--green-dark); }
.hours__state.off { background: #F1F2F5; color: var(--text); }

.hours__rows { margin-top: 1.1rem; }
.hrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .66rem 0; border-bottom: 1px solid #EEF0F4; font-size: 1rem;
}
.hrow:last-child { border-bottom: 0; }
.hrow__d { font-weight: 700; color: var(--ink); }
.hrow__t { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.hrow.is-today { background: #F3FAF6; margin-inline: -1.6rem; padding-inline: 1.6rem; border-bottom-color: #DCEEE4; }
.hrow.is-today .hrow__d::after {
  content:"오늘"; margin-left: .45rem; background: var(--green-cta); color: #fff;
  font-size: .7rem; font-weight: 800; padding: .1rem .38rem; border-radius: 3px; vertical-align: .1em;
}
.hrow--off .hrow__t { color: var(--text-mute); }
.hrow--lunch .hrow__t { color: var(--text-mute); font-weight: 700; }

.hours__em {
  margin-top: 1rem; padding: .9rem 1rem; background: #FEF4F4;
  border-left: 4px solid var(--red-em); border-radius: 0 4px 4px 0;
}
.hours__em b { color: var(--red-em); }
.hours__em-n { display: block; font-size: 1.32rem; font-weight: 800; color: var(--ink); margin-top: .15rem; }

/* ==========================================================================
   진료과
   ========================================================================== */
.dept { position: relative; }
.dept__row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: start;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.dept__row:last-child { border-bottom: 1px solid var(--line); }
.dept__h { font-size: 1.14rem; color: var(--navy); padding-top: .35rem; }
.dept__h span { display: block; margin-top: .2rem; font-size: .84rem; font-weight: 600; color: var(--text-mute); }
.dept__items { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.dept__items--all { margin-top: .4rem; }   /* 묶음 제목 없이 진료과 20곳 한 격자(2026-09-29 병원 요청) */
/* 불릿 점 대신 우측 화살표 — 누를 수 있다는 걸 명확히 (시니어 조작성) */
.dept__i {
  display: flex; align-items: center; justify-content: space-between; gap: .55rem;
  min-height: 58px; padding: .7rem 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 5px;
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
}
.dept__i::after {
  content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-right: 2px;
  border-right: 2px solid var(--line-2); border-top: 2px solid var(--line-2);
  transform: rotate(45deg);
}
.dept__i:hover { border-color: var(--navy); background: var(--bg-tint); color: var(--navy); }
.dept__i:hover::after { border-color: var(--navy); }

/* ==========================================================================
   전문센터
   ========================================================================== */
.ctr {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.08fr;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(20,26,99,.07);
}
.ctr__vis { position: relative; min-height: 420px; background: var(--navy-ink); }
.ctr__pic {
  margin: 0; position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.ctr__pic.is-on { opacity: 1; visibility: visible; }
.ctr__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ctr__body { padding: 2rem 2.2rem 2.2rem; }

.ctr__tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; flex-wrap: wrap; }
.ctr__tab {
  padding: .8rem 1.1rem; border: 0; background: none;
  font-size: 1.04rem; font-weight: 700; color: var(--text-mute);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.ctr__tab:hover { color: var(--navy); }
.ctr__tab.is-on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 800; }

.ctr__panel { display: none; }
.ctr__panel.is-on { display: block; animation: fadeUp .35s ease both; }

.ctr__kicker { font-size: .92rem; font-weight: 700; color: var(--green-cta); }
.ctr__name { font-size: 1.85rem; margin: .4rem 0 .9rem; letter-spacing: -.04em; }
.ctr__desc { font-size: 1.06rem; line-height: 1.8; color: var(--text); }

.ctr__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.4rem;
  margin: 1.5rem 0 0; padding-top: .4rem;
}
.ctr__list li {
  padding: .72rem .2rem; border-bottom: 1px solid var(--line);
  font-size: 1rem; font-weight: 700; color: var(--ink);
}

.ctr__more {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  margin-top: 1.7rem; min-height: 52px; padding: 0 2rem;
  background: var(--navy); color: #fff; border-radius: 4px;
  font-size: 1.04rem; font-weight: 800;
}
.ctr__more:hover { background: var(--navy-deep); }
.ctr__more svg { width: 17px; height: 17px; }

/* ==========================================================================
   건강정보 카드
   ========================================================================== */
.hcards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

.hcard {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.hcard:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(20,26,99,.10); }

.hcard__vis {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 158px; padding: 1.4rem 1.3rem; color: #fff;
}
.hcard--a .hcard__vis { background: linear-gradient(135deg, #1E2188, #2C31B4); }
.hcard--b .hcard__vis { background: linear-gradient(135deg, #00679F, #0089DD); }
.hcard--c .hcard__vis { background: linear-gradient(135deg, #A81F14, #D4181D); }
.hcard--d .hcard__vis { background: linear-gradient(135deg, #00632C, #009041); }

.hcard__kicker { font-size: .84rem; font-weight: 700; opacity: .88; letter-spacing: .02em; }
.hcard__big {
  margin-top: .3rem; font-size: 1.62rem; font-weight: 800;
  line-height: 1.28; letter-spacing: -.035em;
}

.hcard__body { padding: 1.1rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.hcard__cat {
  align-self: flex-start; font-size: .78rem; font-weight: 800; color: var(--green-cta);
  background: #EAF6EF; padding: .12rem .5rem; border-radius: 3px;
}
.hcard__t { font-size: 1.04rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.hcard__d { font-size: .88rem; color: var(--text-mute); }

/* ==========================================================================
   오시는 길
   ========================================================================== */
.visit { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; }

.visit__map {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #EAF0F8, #DCE6F3);
  min-height: 460px;
}

/* 오시는 길 지도(네이버 기본 · 구글 대체) — 지도는 .nmap__canvas 에 app.js 가 그린다 */
.nmap { position: relative; }
.nmap__canvas { position: absolute; inset: 0; }
.nmap__canvas iframe { width: 100%; height: 100%; border: 0; display: block; }
/* 주소 옆 '네이버 지도에서 보기' — 지도 위에 얹으면 지도 자체 정보창을 가려서 주소 줄에 둔다 */
.vmap {
  display: flex; width: fit-content; align-items: center; height: 38px; margin-top: .55rem; padding: 0 .85rem;
  border: 2px solid var(--green-cta); border-radius: 4px;
  font-size: .94rem; font-weight: 800; color: var(--green-cta);
}
.vmap:hover { background: var(--green-cta); color: #fff; }
.vmaps { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.vmaps .vmap { margin-top: 0; }

.visit__info { display: grid; gap: 1rem; align-content: start; }

.vcard {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.5rem;
}
.vcard--em { border-color: #F3C9CB; background: #FFFAFA; }

.vcard__t {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.16rem; margin-bottom: 1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.vcard__ico {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-tint); color: var(--navy); display: grid; place-items: center;
}
.vcard__ico svg { width: 19px; height: 19px; }
.vcard--em .vcard__t { border-bottom-color: #F3C9CB; color: var(--red-em); }
.vcard--em .vcard__ico { background: #FDE9EA; color: var(--red-em); }

.vrow {
  display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem;
  margin: 0; padding: .55rem 0; font-size: 1rem;
}
.vrow dt { font-weight: 800; color: var(--navy); }
.vrow dd { margin: 0; color: var(--text); line-height: 1.65; }
.vrow dd strong { color: var(--ink); font-weight: 800; }

.vtel { font-size: 1.14rem; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--sky); }
.vtel:hover { border-bottom-color: var(--navy); }
.vtel--em { color: var(--red-em); border-bottom-color: #F3A0A3; }
.vmute { font-size: .9rem; color: var(--text-mute); }

.vtext { font-size: 1rem; line-height: 1.75; color: var(--text); }
.vtext strong { color: var(--ink); font-weight: 800; }
.vnote { margin-top: .6rem; font-size: .88rem; color: var(--text-mute); }

.vbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  margin-top: 1rem; width: 100%; min-height: 54px; padding: 0 1.2rem;
  background: var(--red-em); color: #fff; border-radius: 5px;
  font-size: 1.05rem; font-weight: 800;
}
.vbtn:hover { background: #B31217; }
.vbtn svg { width: 18px; height: 18px; }

/* ==========================================================================
   의료진 프로필
   ========================================================================== */
.doctors { position: relative; overflow: hidden; }

/* 배경에 병원 내부가 흐릿하게 비치도록 */
.doc__bg { position: absolute; inset: 0; z-index: 0; }
.doc__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(16px) brightness(1.3) saturate(.55);
  transform: scale(1.12);
}
.doc__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(246,249,253,.94) 0%, rgba(246,249,253,.88) 100%);
}
.doctors > .wrap { position: relative; z-index: 1; }

.doc__tabs {
  position: relative; display: flex; gap: .3rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-2); margin-bottom: 2rem;
}
.doc__tab {
  padding: .85rem 1.4rem; border: 0; background: none;
  font-size: 1.06rem; font-weight: 700; color: var(--text-mute);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.doc__tab:hover { color: var(--navy); }
.doc__tab.is-on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 800; }

.doc__panel { display: none; }
.doc__panel.is-on { display: block; animation: fadeUp .35s ease both; }

.doc__summary {
  font-size: 1.06rem; line-height: 1.8; color: var(--text);
  margin-bottom: 1.6rem; padding-left: .9rem; border-left: 4px solid var(--green);
}

/* 의료진 선택 칩 */
.dsel { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.dsel__b {
  display: inline-flex; align-items: baseline; gap: .4rem;
  padding: .62rem 1.15rem; border: 1px solid var(--line-2); background: #fff;
  border-radius: 100px; font-size: 1.04rem; font-weight: 700; color: var(--ink);
}
.dsel__b span { font-size: .8em; font-weight: 600; color: var(--text-mute); }
.dsel__b:hover { border-color: var(--navy); color: var(--navy); }
.dsel__b.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.dsel__b.is-on span { color: rgba(255,255,255,.78); }

/* 의료진 상세 — 좌 정보 / 우 사진 */
.dpro { display: none; }
.dpro.is-on {
  display: grid; grid-template-columns: minmax(0, 1fr) 470px;
  gap: 2rem; align-items: end;
  animation: fadeUp .35s ease both;
}
.dpro__info { min-width: 0; padding-bottom: .5rem; }

.dpro__role { font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.dpro__name {
  margin: .35rem 0 2rem;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.7rem);
  letter-spacing: -.045em; color: var(--ink);
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
}
.dpro__name span { font-size: .42em; font-weight: 700; color: var(--text-mute); letter-spacing: -.01em; }

.dpro__h { font-size: 1.22rem; font-weight: 800; color: var(--navy); margin-bottom: .9rem; }
.dpro__spec {
  font-size: 1.08rem; line-height: 1.8; color: var(--ink);
  margin-bottom: 2.2rem;
}

.dpro__photo { margin: 0; align-self: end; }
.dpro__photo img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 34px rgba(20, 26, 99, .16));
}

/* 각진 진료일정표 */
.sched { width: 100%; border-collapse: collapse; background: #fff; font-size: 1rem; }
.sched th, .sched td {
  border: 1px solid var(--line-2); padding: .78rem .5rem; text-align: center;
}
.sched thead th {
  background: var(--navy); color: #fff; font-weight: 800; letter-spacing: -.01em;
}
.sched tbody th { background: var(--bg-soft); color: var(--ink); font-weight: 800; width: 5.6rem; }
.sched td.on  { color: var(--navy); font-weight: 700; }
.sched td.ex  { color: var(--green-cta); font-weight: 700; }
.sched td.off { color: #A7AEBA; }
.sched__etc td {
  text-align: left; padding-left: 1.1rem;
  color: var(--text-mute); font-size: .95rem; font-weight: 600;
}

/* 사진 자리 */
.doc__photo {
  display: grid; place-items: center; align-content: center; gap: .5rem;
  aspect-ratio: 3 / 4; padding: 2rem; text-align: center;
  background: linear-gradient(160deg, #F3F7FC 0%, #E6EDF7 100%);
  border: 2px dashed var(--line-2); border-radius: 4px;
  color: var(--text-mute);
}
.doc__photo svg { width: 64px; height: 64px; color: var(--navy); opacity: .32; }
.doc__photo strong { font-size: 1.08rem; color: var(--navy); }
.doc__photo span { font-size: .9rem; }

/* ==========================================================================
   성과
   ========================================================================== */
.ach { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #0F1450 100%); color: #fff; }
.ach .sec__mark { color: rgba(255,255,255,.055); }
.ach__head { position: relative; text-align: center; margin-bottom: 2.6rem; }
.ach__eyebrow { font-size: .86rem; font-weight: 800; letter-spacing: .18em; color: #8EE5B4; }
.ach__title { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); margin-top: .6rem; }
.ach__sub { margin-top: .8rem; color: #C3C8EA; font-size: 1.04rem; }

.ach__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.acard {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.17);
  border-radius: 8px; padding: 1.7rem 1.4rem; text-align: center;
  backdrop-filter: blur(4px);
}
.acard__mark {
  width: 62px; height: 62px; margin: 0 auto .9rem; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35);
  display: grid; place-items: center; color: #fff;
}
.acard__mark svg { width: 28px; height: 28px; }
.acard__t { color: #fff; font-size: 1.14rem; margin-bottom: .45rem; }
.acard__d { font-size: .94rem; color: #C3C8EA; line-height: 1.65; }

/* ==========================================================================
   푸터
   ========================================================================== */
.ft { background: var(--navy-ink); color: #A9AECC; padding: 3rem 0 2rem; }
.ft__top {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.13);
}
.ft__logo { background: #fff; padding: .8rem 1.1rem; border-radius: 6px; display: inline-block; }
.ft__logo img { width: 214px; }
.ft__tel-l { font-size: .84rem; color: #8B90B4; font-weight: 700; letter-spacing: .04em; }
.ft__tel-n { display: block; font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-top: .1rem; }
.ft__tel-sub { margin-top: .7rem; font-size: .92rem; line-height: 1.8; }
.ft__tel-sub b { color: #fff; }

.ft__h { font-size: 1.02rem; color: #fff; margin-bottom: .7rem; }
.ft__rows { font-size: .95rem; line-height: 1.9; }
.ft__rows b { color: #fff; font-weight: 700; }

.ft__links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 1.5rem 0 1.1rem; font-size: .92rem; }
.ft__links a:hover { color: #fff; text-decoration: underline; }
.ft__links a.em { color: #fff; font-weight: 700; }

.ft__info { font-size: .9rem; line-height: 1.85; color: #8B90B4; }
.ft__copy { margin-top: .8rem; font-size: .85rem; color: #757AA0; }

/* ==========================================================================
   반응형
   ========================================================================== */
/* 모바일 하단 바 기본값 — 미디어쿼리보다 반드시 앞에 둘 것.
   (같은 명시도에서는 나중 규칙이 이기므로 뒤에 두면 display:grid 가 덮어써진다) */
.mbar { display: none; }

/* 본문 폭 + 플로팅이 동시에 들어갈 여유가 없으면 플로팅을 감춘다 */
@media (max-width: 1419px) {
  .side { display: none; }
}

@media (max-width: 1280px) {
  .qmenu { grid-template-columns: repeat(4, 1fr); }
  .qmenu__i:nth-child(4n) { border-right: 0; }
  .qmenu__i:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .dept__items { grid-template-columns: repeat(4, 1fr); }
  .side { display: none; }
  .hd__in { gap: 1rem; }
  .gnb__a { padding: 0 1.15rem; font-size: 1.04rem; }
  .hd__logo img { width: 200px; }
  .mega__col { padding: 0 1rem; }
}

@media (max-width: 1080px) {
  .hero, .hero__in { min-height: 520px; }
  .hero__in { padding: 3.2rem 0 7.5rem; }
  .hero--gfx .hero__in { grid-template-columns: 1fr; gap: 2rem; }
  .hero__vis { min-height: 0; }
  .medal { width: 200px; }
  /* 좁은 화면: 사진을 배경으로 깔고 글을 그 위에 */
  .hero--mix .hero__copy { max-width: none; }
  .hero--mix .hero__vis { width: 100%; opacity: .26; }
  .hero--mix .hero__vis::after {
    background: linear-gradient(180deg, rgba(244,247,251,.82) 0%, rgba(244,247,251,.9) 100%);
  }
  .stamp { top: 20px; left: 50%; transform: translateX(-50%); width: 116px; }
  .chip  { top: 24px; left: 50%; transform: translateX(-50%); padding: .85rem 1.2rem; }
  .chip__mark { font-size: 2.2rem; }
  .qbook { max-width: none; }
  .hcards { grid-template-columns: repeat(2, 1fr); }
  .dpro.is-on { grid-template-columns: minmax(0, 1fr) 360px; }
  .ctr { grid-template-columns: 1fr; }
  .ctr__vis { min-height: 260px; }
  .ctr__body { padding: 1.6rem 1.5rem 1.8rem; }
  .visit { grid-template-columns: 1fr; }
  .visit__map { min-height: 300px; }
  .news__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .news__list, .news__more, .news__grid > .hours { grid-column: auto; grid-row: auto; }
  .ach__grid { grid-template-columns: repeat(2, 1fr); }
  .ft__top { grid-template-columns: 1fr 1fr; }
  /* 좁은 화면에서는 겹치면 슬라이드 컨트롤을 가리므로 히어로 아래로 내린다 */
  .qbook { margin-top: 1.2rem; }
  .hero__ctrl { bottom: 2.4rem; }
  .qbook__in { flex-wrap: wrap; border-radius: 14px; padding: 1rem; }
  .qbook__field { order: 2; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 0 1rem; }
  .qbook__go { order: 3; flex: 1; }
  .qbook__alt { order: 4; flex: 1; }
  .qbook__label { order: 1; width: 100%; }
  .qbook__note { margin-left: 0; }
}

/* 1099px 이하: 로고·메뉴·글자크기 버튼이 한 줄에 안 들어가 헤더가 옆으로 넘친다(861px에서 238px)
   → GNB 는 감추고 전체메뉴(☰)로 연다. 올림·포커스로 여는 건 끄되 ☰로 연 상태(.is-open)는 숨기지 않는다
   (예전 규칙은 ☰ 버튼 포커스 → .hd:focus-within 이 .is-open 을 이겨 모바일 메뉴가 안 열렸다) */
@media (max-width: 1099px) {
  .gnb { display: none; }
  .hd:hover .mega:not(.is-open), .hd:focus-within .mega:not(.is-open) { max-height: 0; opacity: 0; visibility: hidden; }
  .hd__util { margin-left: auto; }
}

@media (max-width: 860px) {
  .hd__in { height: 68px; }
  .hd__logo img { width: 190px; }
  .fs { display: none; }
  /* 모바일 메뉴는 화면 안에서 스크롤. .hd .mega.is-open 이어야 데스크톱 .hd:focus-within .mega(520px·넘침 표시)를 이긴다 */
  .hd .mega.is-open { max-height: 78vh; overflow-y: auto; }
  .mega__in { grid-template-columns: 1fr 1fr; padding: 1.2rem 0 1.6rem; }
  .mega__col { padding: .6rem .9rem; border-right: 0; }
  .mega__h { font-size: 1.02rem; padding-bottom: .55rem; margin: 0 .3rem .3rem; }
  .mega__list > li > a { padding: .6rem .3rem; font-size: .98rem; }
  .dept__row { grid-template-columns: 1fr; gap: .8rem; }
  .dpro.is-on { grid-template-columns: 1fr; gap: 1.2rem; }
  .dpro__photo { max-width: 300px; margin-inline: auto; }
  .dsel__b { font-size: .98rem; padding: .55rem .95rem; }
  .sched { font-size: .94rem; }
  .sched th, .sched td { padding: .6rem .25rem; }
  .sched tbody th { width: 4.2rem; }
  .doc__tab { padding: .7rem 1rem; font-size: 1rem; }
  .dept__h { padding-top: 0; }
  .dept__items { grid-template-columns: repeat(2, 1fr); }
  .news__list { grid-template-columns: 1fr; }
  .sec__head--row { flex-direction: column; align-items: flex-start; }
  body { padding-bottom: 64px; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    box-shadow: 0 -3px 14px rgba(0,0,0,.17);
  }
  .mbar__b {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 64px; background: var(--navy); color: #fff;
    font-size: .98rem; font-weight: 800; border-right: 1px solid rgba(255,255,255,.16);
  }
  .mbar__b:last-child { border-right: 0; }
  .mbar__b svg { width: 19px; height: 19px; }
  .mbar__b--em { background: var(--red-em); }
  .mbar__b--gr { background: var(--green-cta); }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 1.7rem); }
  /* 지난 소식: 분류·날짜는 첫 줄, 제목은 둘째 줄 전체 폭 */
  .nmore { flex-wrap: wrap; row-gap: .3rem; padding: .7rem 0; }
  .nmore__t { order: 3; flex-basis: 100%; margin-left: 0; }
  .nmore__d { margin-left: auto; }
  .qmenu { grid-template-columns: repeat(2, 1fr); }
  .qmenu__i:nth-child(2n) { border-right: 0; }
  .qmenu__i { border-bottom: 1px solid var(--line); }
  .dept__items { grid-template-columns: 1fr; }
  /* 진료과 20곳(메인): 한 줄에 하나씩이면 화면 4장 길이(1653px)였다(사용자 10/6) → 한 상자 안 2칸 표(821px). 20곳 모두 · 묶음 제목 없음 그대로(병원 9/29).
     마지막 줄 아래선은 nth-last-child(-n+2) 로 지운다 — 짝수(20곳) 기준 */
  .dept__items--all { grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
  .dept__items--all .dept__i {
    min-height: 52px; padding: .5rem .4rem; border: 0; border-radius: 0; border-bottom: 1px solid var(--line);
    justify-content: center; text-align: center; font-size: 1rem; letter-spacing: -.02em;
  }
  .dept__items--all .dept__i:nth-child(odd) { border-right: 1px solid var(--line); }
  .dept__items--all .dept__i:nth-last-child(-n+2) { border-bottom: 0; }
  .dept__items--all .dept__i::after { display: none; }
  .dept__items--all .dept__i:hover, .dept__items--all .dept__i:active { border-color: var(--line); background: var(--bg-tint); color: var(--navy); }
  .dept__items--all .dept__i:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
  .ach__grid { grid-template-columns: 1fr; }
  .ft__top { grid-template-columns: 1fr; }
  .hcards { grid-template-columns: 1fr; }
  .ctr__list { grid-template-columns: 1fr; }
  .ctr__tab { padding: .7rem .8rem; font-size: .96rem; }
  .hero, .hero__in { min-height: 460px; }
  .hero__ctrl { bottom: 2.6rem; }
  .hero__dots { display: none; }
  .vrow { grid-template-columns: 1fr; gap: .1rem; }
  .qbook__go, .qbook__alt { width: 100%; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   의료진 '자세히 보기' (학력·경력 / 학회·활동)
   ========================================================================== */
.dpro__more {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.3rem;
  height: 46px; padding: 0 1.3rem; border: 2px solid var(--navy); border-radius: 4px;
  background: #fff; color: var(--navy); font-size: 1rem; font-weight: 800;
}
.dpro__more:hover { background: var(--navy); color: #fff; }
.dpro__more svg { width: 16px; height: 16px; transition: transform .2s; }
.dpro__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.dpro__detail {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem;
  margin-top: 1.6rem; padding: 1.6rem 1.8rem 1.8rem;
  background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--navy);
  animation: fadeUp .3s ease both;
}
.dpro__detail[hidden] { display: none; }
.dpro__dcol .dpro__h { margin-bottom: .6rem; font-size: 1.1rem; }
.dpro__dcol li {
  position: relative; padding: .3rem 0 .3rem 1rem;
  font-size: 1.02rem; line-height: 1.65; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.dpro__dcol li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 5px; height: 5px; background: var(--navy); }
.dpro__dcol li:last-child { border-bottom: 0; }

/* ==========================================================================
   병원 둘러보기
   ========================================================================== */
.tour__tabs {
  display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center;
  border-bottom: 1px solid var(--line-2); margin-bottom: 1.8rem;
}
.tour__tab {
  padding: .8rem 1.4rem; border: 0; background: none;
  font-size: 1.06rem; font-weight: 700; color: var(--text-mute);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tour__tab:hover { color: var(--navy); }
.tour__tab.is-on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 800; }

.tour__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tcard {
  display: block; padding: 0; text-align: left; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 4px 14px rgba(20, 26, 99, .05);
}
.tcard.is-hidden { display: none; }
.tcard__pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-tint); }
.tcard__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tcard:hover .tcard__pic img { transform: scale(1.04); }
.tcard:hover { border-color: var(--navy); }
.tcard__body { display: block; padding: .85rem 1rem 1rem; }
.tcard__loc { display: block; font-size: .9rem; font-weight: 800; color: var(--green-cta); letter-spacing: -.01em; }
.tcard__t { display: block; margin-top: .15rem; font-size: 1.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.tour__foot { text-align: center; margin-top: 1.8rem; }
.tour__more { height: 50px; padding: 0 1.6rem; font-size: 1.02rem; }
.tour__more b { color: var(--navy); }
.tour__more svg { transition: transform .2s; }
.tour__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 라이트박스 */
.lb { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(10, 12, 40, .84); }
.lb__in { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; }
.lb__fig { margin: 0; max-width: min(1200px, 92vw); }
.lb__img { width: 100%; max-height: 74vh; object-fit: contain; background: #000; border-radius: 4px; }
.lb__cap {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  margin-top: .9rem; color: #fff; font-size: 1.1rem;
}
.lb__loc { color: #8EE5B4; font-weight: 800; }
.lb__t { font-weight: 800; font-size: 1.3rem; }
.lb__n { margin-left: auto; font-style: normal; color: rgba(255,255,255,.7); font-size: 1rem; font-weight: 700; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lb__nav:hover { background: var(--navy); }
.lb__nav svg { width: 28px; height: 28px; }
.lb__nav--prev { left: 1.2rem; }
.lb__nav--next { right: 1.2rem; }
.lb__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  display: inline-flex; align-items: center; gap: .4rem; height: 48px; padding: 0 1.1rem;
  border: 0; border-radius: 4px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 800;
}
.lb__close svg { width: 18px; height: 18px; }

/* ==========================================================================
   연혁 타임라인
   ========================================================================== */
.hist__eras {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-2); margin-bottom: 2.2rem; background: #fff;
}
.hist__era {
  padding: 1rem .6rem 1.05rem; border: 0; border-right: 1px solid var(--line-2);
  background: #fff; text-align: center; line-height: 1.35;
}
.hist__era:last-child { border-right: 0; }
.hist__era b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.hist__era span { display: block; margin-top: .25rem; font-size: .94rem; font-weight: 700; color: var(--text-mute); }
.hist__era:hover { background: var(--bg-tint); }
.hist__era.is-on { background: var(--navy); }
.hist__era.is-on b, .hist__era.is-on span { color: #fff; }

.hist__panel { display: none; }
.hist__panel.is-on {
  display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 2.6rem;
  align-items: start; animation: fadeUp .35s ease both;
}
.hist__fig { position: relative; margin: 0; }
.hist__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--bg-tint); }
.hist__fig figcaption { margin-top: .7rem; font-size: .98rem; color: var(--text-mute); font-weight: 600; }
.hist__yr {
  position: absolute; left: 0; top: 0; z-index: 1;
  padding: .45rem 1rem; background: var(--navy); color: #fff;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; border-radius: var(--r) 0 var(--r) 0;
}
.hist__range { font-size: 1rem; font-weight: 800; color: var(--green-cta); letter-spacing: .02em; }
.hist__title { font-size: 1.75rem; margin: .3rem 0 .7rem; letter-spacing: -.04em; }
.hist__desc { font-size: 1.06rem; line-height: 1.8; color: var(--text); }

.hist__tl { margin: 1.5rem 0 0; padding-left: 1.7rem; border-left: 2px solid var(--line-2); }
.hist__ev { position: relative; padding: .1rem 0 1.1rem; }
.hist__ev:last-child { padding-bottom: .3rem; }
.hist__ev::before {
  content: ""; position: absolute; left: calc(-1.7rem - 8px); top: .55rem;
  width: 14px; height: 14px; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2);
}
.hist__ev time { display: block; font-size: 1.02rem; font-weight: 800; color: var(--navy); }
.hist__ev strong { display: block; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.4; }
.hist__ev small { display: block; margin-top: .15rem; font-size: .98rem; color: var(--text-mute); font-weight: 600; }

.hist__all {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.5rem;
  height: 46px; padding: 0 1.3rem; border: 2px solid var(--navy); border-radius: 4px;
  background: #fff; color: var(--navy); font-size: 1rem; font-weight: 800;
}
.hist__all b { font-weight: 800; }
.hist__all:hover { background: var(--navy); color: #fff; }
.hist__all svg { width: 16px; height: 16px; transition: transform .2s; }
.hist__all[aria-expanded="true"] svg { transform: rotate(180deg); }
.hist__full { margin-top: 1.2rem; animation: fadeUp .3s ease both; }
.hist__full[hidden] { display: none; }
.hist__tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 1rem; }
.hist__tbl th, .hist__tbl td { border: 1px solid var(--line-2); padding: .62rem .8rem; text-align: left; vertical-align: top; }
.hist__tbl thead th { background: var(--navy); color: #fff; font-weight: 800; }
.hist__tbl tbody th { width: 5.2rem; background: var(--bg-soft); color: var(--navy); font-weight: 800; }
.hist__tbl td:nth-child(2) { width: 4.2rem; white-space: nowrap; color: var(--text-mute); font-weight: 700; }
.hist__tbl td span { display: block; font-size: .94rem; color: var(--text-mute); }
.hist__tbl tr.hist__ft td:last-child { font-weight: 800; color: var(--ink); }

@media (max-width: 1080px) {
  .tour__grid { grid-template-columns: repeat(3, 1fr); }
  .hist__panel.is-on { grid-template-columns: 1fr; gap: 1.6rem; }
  .hist__fig { max-width: 640px; }
}
@media (max-width: 860px) {
  .tour__grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .tour__tab { padding: .7rem .9rem; font-size: 1rem; }
  .hist__eras { grid-template-columns: repeat(3, 1fr); }
  .hist__era { border-bottom: 1px solid var(--line-2); }
  .hist__era:nth-child(3n) { border-right: 0; }
  .hist__era:nth-child(3) ~ .hist__era { border-bottom: 0; }
  .hist__era b { font-size: 1.08rem; }
  .hist__era span { font-size: .86rem; }
  .dpro__detail { grid-template-columns: 1fr; padding: 1.2rem 1.1rem 1.3rem; }
  .lb__nav { width: 48px; height: 48px; }
  .lb__nav--prev { left: .4rem; } .lb__nav--next { right: .4rem; }
  .lb__cap { font-size: 1rem; } .lb__t { font-size: 1.12rem; }
}
@media (max-width: 560px) {
  .tour__grid { grid-template-columns: 1fr 1fr; }
  .tcard__t { font-size: 1rem; }
  .hist__eras { grid-template-columns: 1fr 1fr; }
  .hist__era:nth-child(3n) { border-right: 1px solid var(--line-2); }
  .hist__era:nth-child(2n) { border-right: 0; }
  .hist__era:nth-child(3) ~ .hist__era { border-bottom: 1px solid var(--line-2); }
  .hist__era:last-child { border-bottom: 0; }
  .hist__tbl th, .hist__tbl td { padding: .5rem .5rem; font-size: .94rem; }
}

/* ==========================================================================
   서브페이지 공통 — 페이지 타이틀 띠
   ========================================================================== */
.pg { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 2.2rem 0 2rem; }
.pg__crumb { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--text-mute); font-weight: 600; }
.pg__crumb a:hover { color: var(--navy); }
.pg__crumb b { color: var(--navy); font-weight: 800; }
.pg__title { margin-top: .6rem; font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem); color: var(--ink); }
.pg__sub { margin-top: .4rem; font-size: 1.06rem; color: var(--text-mute); }

/* 메인 소식 카드 — 실제 썸네일 */
.nitem__thumb--img { padding: 0; overflow: hidden; }
.nitem__thumb--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nitem__cat--n { background: var(--navy); color: #fff; margin-right: .3rem; }

/* ==========================================================================
   병원소식 목록 (news.html)
   ========================================================================== */
.nl { padding-top: 2.4rem; }
.nl__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.nl__tabs { display: flex; flex-wrap: wrap; gap: .2rem; }
.nl__tab {
  padding: .8rem 1.1rem; border: 0; background: none; margin-bottom: -1px;
  font-size: 1.04rem; font-weight: 700; color: var(--text-mute); border-bottom: 3px solid transparent;
}
.nl__tab b { font-weight: 700; font-size: .88em; color: #98A0AE; margin-left: .15rem; }
.nl__tab:hover { color: var(--navy); }
.nl__tab.is-on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 800; }
.nl__tab.is-on b { color: var(--navy); }
.nl__search { display: flex; align-items: center; margin-bottom: .6rem; border: 2px solid var(--navy); border-radius: 100px; background: #fff; padding: 0 .3rem 0 1.1rem; }
.nl__q { width: 240px; height: 46px; border: 0; background: none; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.nl__q::placeholder { color: #98A0AE; font-weight: 500; }
.nl__qb { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.nl__qb svg { width: 20px; height: 20px; }
.nl__count { margin: 1.2rem 0 1rem; font-size: 1rem; color: var(--text-mute); font-weight: 600; }
.nl__count b { color: var(--navy); }
.nl__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.3rem; }
.ncard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 4px 14px rgba(20, 26, 99, .05); }
.ncard:hover { border-color: var(--navy); box-shadow: 0 8px 22px rgba(20, 26, 99, .1); }
.ncard__a { display: block; }
.ncard__pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.ncard__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ncard:hover .ncard__pic img { transform: scale(1.04); }
.ncard__nopic { display: grid; place-items: center; height: 100%; font-weight: 800; color: var(--navy); opacity: .5; }
.ncard__body { display: block; padding: 1rem 1.1rem 1.15rem; }
.ncard__t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: .5rem; font-size: 1.12rem; font-weight: 800; color: var(--ink); line-height: 1.45; letter-spacing: -.02em; min-height: 3.2em;
}
.ncard__d { display: block; margin-top: .5rem; font-size: .92rem; color: var(--text-mute); font-weight: 600; }
.nl__empty { padding: 3rem 0; text-align: center; color: var(--text-mute); font-size: 1.06rem; }
.nl__pages { display: flex; justify-content: center; gap: .3rem; margin-top: 2.2rem; flex-wrap: wrap; }
.nl__pg {
  min-width: 46px; height: 46px; padding: 0 .6rem; border: 1px solid var(--line-2); border-radius: 4px; background: #fff;
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
}
.nl__pg:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.nl__pg.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.nl__pg:disabled { color: #C3C8D2; cursor: default; }

/* ==========================================================================
   게시글 상세 (news-<id>.html)
   ========================================================================== */
.nv { padding-top: 2.4rem; }
.wrap--post { max-width: 960px; }
.post__head { padding-bottom: 1.3rem; border-bottom: 2px solid var(--navy); }
.post__cats { display: flex; gap: .3rem; }
.post__title { margin-top: .7rem; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.4; letter-spacing: -.03em; }
.post__meta { margin-top: .7rem; font-size: .98rem; color: var(--text-mute); font-weight: 600; }
.post__meta b { color: var(--ink); }
.post__meta span { margin: 0 .35rem; color: var(--line-2); }
.post__body { padding: 1.8rem 0 1.2rem; font-size: 1.08rem; line-height: 1.9; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
.post__body p { margin: 0 0 1rem; }
.post__body img { max-width: 100%; height: auto; margin: .3rem 0; border-radius: 4px; }
.post__body strong { color: var(--ink); }
.post__body a { color: var(--sky-text); text-decoration: underline; }
.post__body table { border-collapse: collapse; max-width: 100%; margin: 1rem 0; }
.post__body td, .post__body th { border: 1px solid var(--line-2); padding: .5rem .7rem; }
.post__body ul, .post__body ol { padding-left: 1.4rem; list-style: disc; margin: 0 0 1rem; }
.post__body ol { list-style: decimal; }
.post__files { margin-top: 1rem; padding: 1.1rem 1.3rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); }
.post__files h2 { font-size: 1.02rem; color: var(--navy); margin-bottom: .5rem; }
.post__files h2 b { color: var(--green-cta); }
.post__files li a { display: flex; gap: .6rem; align-items: baseline; padding: .3rem 0; font-size: .98rem; font-weight: 600; color: var(--ink); }
.post__files li a:hover { color: var(--navy); text-decoration: underline; }
.post__files li a span { font-size: .88rem; color: var(--text-mute); font-weight: 600; }
.post__src { margin-top: 1rem; font-size: .96rem; color: var(--text-mute); }
.post__src a { color: var(--sky-text); text-decoration: underline; }
.post__foot { margin-top: 2rem; }
.post__nav { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.post__nav-i { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem .4rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.post__nav-i:last-child { border-bottom: 0; }
.post__nav-i span { font-weight: 800; color: var(--navy); }
.post__nav-i b { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__nav-i em { font-style: normal; font-size: .92rem; color: var(--text-mute); font-weight: 600; }
.post__nav-i.is-none span { color: var(--text-mute); }
.post__nav-i.is-none b { color: #A7AEBA; font-weight: 600; }
a.post__nav-i:hover b { color: var(--navy); text-decoration: underline; }
.post__btns { display: flex; gap: .6rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.post__list, .btn-line {
  display: inline-flex; align-items: center; height: 50px; padding: 0 1.6rem; border-radius: 4px;
  font-size: 1.02rem; font-weight: 800;
}
.post__list { background: var(--navy); color: #fff; }
.post__list:hover { background: var(--navy-deep); }
/* 외부 사이트 바로가기(장례식장 등) */
.btn-line { gap: .45rem; border: 2px solid var(--line-2); color: var(--text); background: #fff; }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn-line svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 1080px) { .nl__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .nl__bar { flex-direction: column; align-items: stretch; }
  .nl__search { align-self: stretch; margin: .6rem 0 .8rem; }
  .nl__q { width: 100%; flex: 1; }
  .nl__tab { padding: .7rem .8rem; font-size: .98rem; }
  .post__nav-i { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .post__nav-i em { display: none; }
}
@media (max-width: 560px) {
  .nl__grid { grid-template-columns: 1fr; gap: 1rem; }
  .ncard__t { min-height: 0; }
  .pg { padding: 1.6rem 0 1.4rem; }
}

/* ==========================================================================
   서브페이지 공통 — 하위 메뉴(LNB) + 원문 이전 본문(.legacy)
   ========================================================================== */
.lnb { background: #fff; border-bottom: 1px solid var(--line-2); position: sticky; top: 84px; z-index: 40; }
.lnb__in { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.lnb__in::-webkit-scrollbar { display: none; }
.lnb__a {
  flex-shrink: 0; padding: 1rem 1.1rem .95rem; font-size: 1.02rem; font-weight: 700; color: var(--text-mute);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.lnb__a:hover { color: var(--navy); }
.lnb__a.is-on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 800; }
/* 항목이 많은 하위 메뉴(진료과 20곳, 2026-09-29) — 한 줄에 다 안 들어가 '소아청소년과' 뒤가 잘려 안 보였다.
   넓은 화면은 칸이 맞는 격자로 모두 보이게: 기본 글자 10칸 × 2줄, 창이 좁거나 글자를 키우면 5칸 × 4줄
   (가장 긴 이름 '정신건강의학과' 7자가 한 칸에 들어가는 폭 기준). 여러 줄이 붙어 따라오면 화면을 너무 가려 붙임은 푼다.
   좁은 화면은 (모든 하위 메뉴) 옆으로 밀되, 더 있을 때만 오른쪽 끝을 흐리게 한다(app.js 17 이 .is-more 를 붙였다 뗀다) */
@media (min-width: 861px) {
  .lnb--many { position: static; padding: 1.5rem 0; }
  .lnb--many .lnb__in {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: visible;
    border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2);
  }
  .lnb--many .lnb__a {
    display: flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .5rem .3rem;
    border: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-align: center; font-size: .98rem;
  }
  .lnb--many .lnb__a:hover { background: var(--bg-soft); }
  .lnb--many .lnb__a.is-on { background: var(--navy); color: #fff; }
}
@media (min-width: 1200px) {
  html:not([data-fontsize]) .lnb--many .lnb__in { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lnb::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 1px; width: 3rem; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%); transition: opacity .2s;
  }
  .lnb.is-more::after { opacity: 1; }
}

.sub { padding-top: 2.6rem; }
.legacy { font-size: 1.06rem; line-height: 1.85; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
.legacy > * + * { margin-top: 1rem; }
.legacy h2 { font-size: 1.5rem; color: var(--ink); margin: 2.2rem 0 1rem; }
.legacy h3 {
  font-size: 1.32rem; color: var(--navy); margin: 2.2rem 0 .9rem; padding-left: .8rem;
  border-left: 4px solid var(--navy); line-height: 1.35;
}
.legacy h3:first-child, .legacy .lpanel > h3:first-child { margin-top: .4rem; }
.legacy h4 { font-size: 1.14rem; color: var(--ink); margin: 1.4rem 0 .5rem; }
.legacy p { margin: 0 0 .6rem; }
.legacy ul, .legacy ol { margin: 0 0 1rem; padding-left: 0; }
.legacy li { padding: .15rem 0; }
.legacy strong, .legacy b { color: var(--ink); }
.legacy a { color: var(--sky-text); text-decoration: underline; }
.legacy img { max-width: 100%; height: auto; border-radius: 4px; }
.legacy pre { white-space: pre-wrap; font-family: inherit; margin: 0; }
.legacy table { width: 100%; border-collapse: collapse; background: #fff; font-size: 1rem; margin: .6rem 0 1.4rem; }
/* 표는 가로·세로 가운데가 기본. 긴 문장·목록 열과 문서틀 표는 생성 스크립트가 .tl 을 붙인다(align_tables) */
.legacy th, .legacy td { border: 1px solid var(--line-2); padding: .7rem .8rem; vertical-align: middle; text-align: center; }
.legacy .tl { text-align: left; }
/* .legacy 의 overflow-wrap:anywhere 는 표 칸 최소폭을 한 글자로 줄여 "진단의학검/사"처럼 끊는다 → 넓은 화면의 짧은 칸은 단어 단위.
   모바일은 표가 화면 폭에 들어가야 하므로 anywhere 유지 */
@media (min-width: 861px) { .legacy th, .legacy td:not(.tl) { overflow-wrap: break-word; } }
.legacy thead th, .legacy tr:first-child th { background: var(--navy); color: #fff; font-weight: 800; }
.legacy tbody th { background: var(--bg-soft); color: var(--ink); font-weight: 800; }
.legacy thead + tbody tr:first-child th { background: var(--bg-soft); color: var(--ink); }   /* 머리줄(thead)이 따로 있으면 본문 첫 줄은 머리줄 색이 아니다(10/13 업무분장 · 수술실 CCTV 표) */
.tbl-scroll { overflow-x: auto; }
.legacy__go { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: center; }
.legacy .lead { font-size: 1.06rem; color: var(--text); }
.legacy .notice { padding: 1rem 1.2rem; background: #FFF6E5; border: 1px solid #F1D7A0; border-radius: var(--r); color: #6B4A00; }

/* 원문 탭 */
.ltabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 2px solid var(--navy); margin: 0 0 1.6rem !important; padding: 0; list-style: none; }
.ltabs li { padding: 0; }
.ltab {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.4rem;
  background: var(--bg-soft); border: 1px solid var(--line-2); border-bottom: 0;
  font-size: 1.04rem; font-weight: 700; color: var(--text) !important; text-decoration: none !important; cursor: pointer;
}
.ltab:hover { color: var(--navy) !important; }
.ltab.is-on { background: var(--navy); border-color: var(--navy); color: #fff !important; }
.lpanel { display: none; }
.lpanel.is-on { display: block; animation: fadeUp .3s ease both; }
.ltabs--wrap { border-bottom: 0; margin: 0 !important; }
.ltabs--wrap .ltab { border-bottom: 1px solid var(--line-2); border-radius: 4px; min-height: 42px; padding: 0 1rem; font-size: .96rem; }

/* 진료과 목록 */
.dlist__h { font-size: 1.3rem !important; color: var(--navy) !important; margin: 2rem 0 .9rem !important; }
.dlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dlist__i { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none !important; color: var(--text) !important; }
.dlist__i:hover { border-color: var(--navy); box-shadow: 0 6px 18px rgba(20, 26, 99, .08); }
.dlist__i b { font-size: 1.2rem; color: var(--ink); }
.dlist__i span { font-size: .95rem; line-height: 1.6; color: var(--text-mute); }
.dlist__i em { font-style: normal; font-size: .9rem; font-weight: 800; color: var(--green-cta); margin-top: auto; }

/* 비급여 */
.ubar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; justify-content: space-between; }
.uq { height: 46px; min-width: 260px; padding: 0 1rem; border: 2px solid var(--navy); border-radius: 100px; font-size: 1rem; }
.ucount { font-weight: 700; color: var(--text-mute); }
.utbl td.u-cost { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.utbl td.u-name { font-weight: 700; color: var(--ink); }
.utbl td.u-name, .utbl td:nth-child(5) { text-align: left; overflow-wrap: anywhere; }   /* 항목·비고는 긴 글 — 띄어쓰기 없는 긴 이름이 표를 상자보다 넓게 밀지 않게(10/14 '표가 잘려 보임') */
.utbl td:nth-child(3), .utbl td:nth-child(6) { white-space: nowrap; }   /* 코드·적용일이 중간에서 끊기지 않게 */

/* 폼(예약·고객의 소리) */
/* SSL 전(http) 온라인 접수 잠시 쉼 안내(2026-10-14) */
.rclosed { max-width: 720px; margin: 1rem 0 1.4rem; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--navy); border-radius: var(--r); line-height: 1.7; }
.rclosed p { margin: 0 0 .4rem; }
.rclosed__t { font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.rclosed__tel a { display: inline-flex; align-items: center; min-height: 48px; margin-top: .3rem; padding: 0 1.4rem; border-radius: 100px; background: var(--green-cta); color: #fff !important; font-size: 1.08rem; font-weight: 800; text-decoration: none !important; }
.rform { max-width: 720px; padding: 1.6rem 1.8rem; background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--navy); border-radius: var(--r); }
.rform__row { display: flex; align-items: center; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.rform__row--top { align-items: flex-start; }
.rform__row > label:first-child, .rform__l { width: 7rem; font-weight: 800; color: var(--ink); }
.rform input[type=text], .rform input:not([type]), .rform input[type=tel], .rform textarea {
  flex: 1; min-width: 200px; height: 50px; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 4px; font-size: 1.04rem; font-family: inherit;
}
.rform textarea { height: auto; padding: .8rem 1rem; }
.rchk { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; }
.rchk input { width: 20px; height: 20px; accent-color: var(--navy); }
.rform__agree { margin-top: .8rem; padding: 1rem 1.1rem; background: var(--bg-soft); border-radius: 4px; font-size: .95rem; }
.rform__agree ul { margin: .3rem 0 .6rem; }
.rform__go { margin-top: 1.1rem; height: 56px; padding: 0 2.2rem; border: 0; border-radius: 4px; background: var(--green-cta); color: #fff; font-size: 1.1rem; font-weight: 800; }
/* 자체 예약 신청(2026-10-07 아프닥 대신 · app.js 4절) — 고르는 칸 · 오전/오후 · 결과 · 조회 표 · 빠른 예약 동의 창 */
.rform select, .rform input[type=date] {
  flex: 1; min-width: 200px; height: 50px; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 1.04rem; font-family: inherit; color: var(--ink);
}
.rform select:disabled { background: var(--bg-soft); color: var(--text-mute); }
.rseg { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.rseg .rchk { min-height: 44px; }
.rseg .rchk:has(input:disabled) { opacity: .45; cursor: not-allowed; }   /* 토요일 오후처럼 고를 수 없는 칸 */
.rform__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }   /* 로봇만 채우는 숨은 칸 */
.rform__msg { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 4px; background: #EAF5EE; color: #0F4D2A; font-weight: 700; line-height: 1.6; }
.rform__msg.is-err { background: #FDECEC; color: #8A1C1C; }
.rform__go:disabled { opacity: .6; cursor: progress; }
.rdone { max-width: 720px; padding: 1.6rem 1.8rem; background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--green-cta); border-radius: var(--r); line-height: 1.75; }
.rdone:focus { outline: none; }
.rdone__t { margin: 0 0 .4rem; font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.rdone__no { margin: 0 0 .8rem; font-size: 1.1rem; }
.rdone__no b { margin-left: .3rem; padding: .15rem .6rem; border-radius: 4px; background: var(--bg-soft); font-size: 1.25rem; letter-spacing: .04em; color: var(--navy); }
.rlist { margin-top: 1.2rem; overflow-x: auto; }
.rlist__none { margin: 0; color: var(--text-mute); }
.rlist__t { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .98rem; }
.rlist__t th, .rlist__t td { padding: .6rem .5rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.rlist__t th { background: var(--bg-soft); font-weight: 800; color: var(--ink); }
.rlist__x { min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-weight: 700; cursor: pointer; }
.qdlg { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(14, 17, 64, .35); }
.qdlg::backdrop { background: rgba(14, 17, 64, .45); }
.qdlg__in { display: grid; gap: .8rem; padding: 1.4rem 1.4rem 1.2rem; }
.qdlg__t { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.qdlg__t:focus { outline: none; }   /* 창을 열 때 제목으로 옮겨 둔 초점(누를 것이 아니라 테두리는 빼고, 화면 읽기는 제목부터) */
.qdlg__lead { margin: 0; line-height: 1.6; }
.qdlg__lead b { color: var(--navy); }
.qdlg__f { display: grid; gap: .3rem; font-weight: 700; }
.qdlg__f input { height: 48px; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: 4px; font-size: 1.02rem; font-family: inherit; }
.qdlg__agree { padding: .7rem .9rem; border-radius: 4px; background: var(--bg-soft); font-size: .92rem; line-height: 1.6; }
.qdlg__agree summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.qdlg__agree ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.qdlg__acts { display: flex; justify-content: flex-end; gap: .5rem; }
.qdlg__no, .qdlg__go { min-height: 48px; padding: 0 1.2rem; border-radius: 4px; font-size: 1.02rem; font-weight: 800; cursor: pointer; }
.qdlg__no { border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.qdlg__go { border: 0; background: var(--green-cta); color: #fff; }
.qdlg__go:disabled { opacity: .6; cursor: progress; }
.qdlg .rform__msg { margin: 0; }
.btbl td:first-child { width: 6rem; }
.btbl td:nth-child(2) { text-align: left; }   /* 게시판 제목 */

/* 장례식장 */
.fbox { padding: 1.4rem 1.6rem; background: var(--bg-soft); border-left: 4px solid var(--navy); }
.fbox__msg { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.fbox__tel a { font-size: 1.8rem; font-weight: 800; color: var(--navy) !important; text-decoration: none !important; margin-right: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .5rem 1rem !important; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; }

@media (max-width: 1080px) {
  .dlist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .lnb { top: 68px; }
  .legacy table { font-size: .94rem; }
  .legacy th, .legacy td { padding: .55rem .5rem; }
  .ltab { min-height: 44px; padding: 0 .9rem; font-size: .96rem; }
}
@media (max-width: 560px) {
  .dlist { grid-template-columns: 1fr; }
  .rform { padding: 1.2rem 1rem; }
  .rform__row > label:first-child, .rform__l { width: 100%; }
  .uq { min-width: 0; width: 100%; }
}

.gmap { aspect-ratio: 16 / 8; min-height: 300px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--bg-tint); }
.gmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.gmap__links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem !important; }
.gmap__links a { display: inline-flex; align-items: center; height: 46px; padding: 0 1.2rem; border: 2px solid var(--navy); border-radius: 4px; color: var(--navy) !important; font-weight: 800; text-decoration: none !important; }
.gmap__links a.is-main { background: var(--green-cta); border-color: var(--green-cta); color: #fff !important; }   /* 기본 지도 = 네이버 */

/* ==========================================================================
   진료과 페이지 — 바로가기 · 전문분야 · 다른 진료과
   ========================================================================== */
.dnav { background: #fff; border-bottom: 1px solid var(--line); }
.dnav__in { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; padding: 1.1rem 0; }
.dnav .more { height: 46px; padding: 0 1.4rem; font-size: 1rem; }
.dfields__h { text-align: center; font-size: 1.2rem; color: var(--navy); margin: .4rem 0 .6rem; }
.dfields {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .1rem 1.4rem;
  max-width: 980px; margin: 0 auto; padding-top: .4rem;
}
.dfields li { padding: .72rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.dnext { padding-top: 2.6rem; }
/* 버튼이 여러 개(전문센터 '다른 센터' 3개)여도 붙지 않게 — 사이가 공백 없이 이어져 있어 flex gap 으로 띄운다 */
.dnext__all { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }
@media (max-width: 860px) { .dfields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dfields { grid-template-columns: 1fr; } .dnav .more { height: 42px; padding: 0 1rem; } }

/* ==========================================================================
   전문센터 페이지(center-*.html) — 메인 부품(.ctr · .ach/.acard · .tcard · .nitem · 의료진 탭)을 그대로 쓰고
   아래는 그 변형과 센터 전용 칸만
   ========================================================================== */
.cbtns { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.7rem; }
.cbtns .ctr__more { margin-top: 0; }
.cbtns .btn-line { min-height: 52px; }
.cem { margin-top: 1.2rem; }

/* 진료 분야 — 성과 띠(.ach)의 카드를 3열로, 카드 안에 항목 목록 */
.ach__grid.ach__grid--3 { grid-template-columns: repeat(3, 1fr); }
.acard__list { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: .4rem; text-align: left; }
.acard__list li { position: relative; padding-left: 1rem; font-size: .98rem; line-height: 1.6; color: #E6E8F7; }
.acard__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #8EE5B4; }

/* 검사 안내 */
.cexam { display: grid; gap: .9rem; }
.cexam__row { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.cexam__h { font-size: 1.08rem; color: var(--navy); }

/* 진료 체계 · 장비 */
.cfeat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.cfeat--3 { grid-template-columns: repeat(3, 1fr); }
.cfeat__i { padding: 1.5rem 1.6rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 8px; }
.cfeat__t { font-size: 1.16rem; color: var(--ink); }
.cfeat__d { margin-top: .55rem; font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.cfeat__src { margin-top: .8rem; }
.cfeat__src a { font-weight: 800; color: var(--sky-text); text-decoration: underline; }

/* 홍보영상 */
.cvideo { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.cvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1080px) {
  .ach__grid.ach__grid--3, .cfeat--3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cfeat { grid-template-columns: 1fr; }
  .cexam__row { grid-template-columns: 1fr; gap: .6rem; }
}
.tour__grid > figure.tcard { margin: 0; }   /* 센터 페이지 시설 사진(figure) — 브라우저 기본 좌우 여백 제거 */
/* 전문센터 진료 분야 — 진료과 픽토(흰색). 세부(스텐트·척추 마디)가 보이게 메인 성과 카드보다 크게 */
.ach__grid--3 .acard__mark { width: 80px; height: 80px; }
.acard__mark img { width: 52px; height: 52px; object-fit: contain; display: block; }

/* ==========================================================================
   옛 본문 정리(scripts/legacy_tidy.py) — ◆·ㆍ·①② 표기와 글자 박힌 그림을 바꾼 결과
   ========================================================================== */
.legacy h4.lsub { margin: 1.5rem 0 .55rem; font-size: 1.12rem; font-weight: 800; color: var(--navy); }
.legacy h4.lsub:first-child { margin-top: .2rem; }
.legacy .ldots > li { position: relative; padding: .2rem 0 .2rem 1.05rem; }
.legacy .ldots > li::before { content: ""; position: absolute; left: .2rem; top: 1.02em; width: 5px; height: 5px; border-radius: 50%; background: var(--green-cta); }
.legacy .lnum { margin: .2rem 0 .8rem; }
.legacy .lnum > li { padding: .15rem 0; }
.legacy .ldots .lnum { margin: .3rem 0 .2rem; }
.legacy .lcont { display: block; margin-left: 1.35em; font-size: .98rem; color: var(--text-mute); }
.legacy .lnote { font-size: .96rem; color: var(--text-mute); }
.legacy .lnav { display: flex; flex-wrap: wrap; gap: .5rem; }
.legacy .lnav .more { color: var(--ink); text-decoration: none; }

/* 그림 → 표(행: 이름 + 칩) */
.legacy .cexam { margin: .6rem 0 1.4rem; }
.legacy .chips { margin: 0; }
.cexam__h span { display: block; margin-top: .1rem; font-size: .86rem; font-weight: 700; color: var(--green-cta); }
.cexam__sub { margin: 0 0 .55rem !important; color: var(--text); }
.cexam__sub + .chips, .chips + .cexam__sub { margin-top: .5rem; }
.chips li small { display: block; font-size: .82rem; font-weight: 700; color: var(--green-cta); }
.chips--flow { gap: .5rem 1.8rem; align-items: center; }
.chips--flow li { position: relative; }
.chips--flow li + li::before { content: "→"; position: absolute; left: -1.35rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--sky-text); }

/* 순서(특수검진 검진순서) */
.lsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: .8rem 0 1.4rem !important; }
.lsteps li { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem !important; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.lsteps b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .88rem; }

/* 병원소개 미션·비전·핵심가치 */
.lmission__h { margin: 1.6rem 0 .8rem !important; font-size: 1.22rem; font-weight: 800; color: var(--navy); }
.lmission__h:first-child { margin-top: .2rem !important; }
.lmission__h span { margin-left: .45rem; font-size: .88rem; letter-spacing: .08em; color: var(--green-cta); }
.lmission__q { margin: 0 !important; padding: 1.6rem 1.8rem; background: var(--navy); color: #fff; border-radius: 8px; font-size: 1.16rem; font-weight: 700; line-height: 1.75; text-align: center; }
.legacy .cfeat__t { margin: 0; }

@media (max-width: 860px) {
  .lsteps { grid-template-columns: repeat(2, 1fr); }
}
.chips li.is-hl { background: var(--navy); border-color: var(--navy); color: #fff; }   /* 원문에서 강조된 항목(단일공 복강경 등) */
.cexam__h { font-weight: 800; }
.legacy .ltitle { display: block; margin-top: .9rem; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.legacy img.lfig { display: block; max-width: min(100%, 720px); margin: .4rem auto 1rem; }
.gmap { width: 100%; }   /* aspect-ratio + min-height 조합이 좁은 화면에서 폭을 600px 로 늘리던 것 방지 */

/* ==========================================================================
   수련교육부 (training.html · training-mission.html · training-org.html) — scripts/build_training.py
   글은 병원 자료 원문, 색은 사이트 토큰(남색 = 기본 · 초록 = 강조)만
   ========================================================================== */
.tpage .tsub { margin-bottom: 2.8rem !important; }
.teyebrow { margin: 0; font-size: .86rem; font-weight: 800; letter-spacing: .18em; color: var(--green-cta); }
.tpage h2, .tpage h3 { word-break: keep-all; }
.tpage p, .tpage li { word-break: keep-all; }

/* 인사말 — 사진 + 편지 */
.tgreet { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.6rem); align-items: center; }
.tgreet__photo { margin: 0; }
.tgreet__pic {
  position: relative; display: block; aspect-ratio: 20 / 23; overflow: hidden; border-radius: 10px;
  background: radial-gradient(120% 90% at 50% 18%, #fff 0%, var(--bg-tint) 58%, #D8E2F2 100%);
}
.tgreet__pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--navy) 0 72%, var(--green) 72% 100%); }
.tgreet__pic img { position: absolute; left: 50%; bottom: 0; width: 94%; height: auto; transform: translateX(-50%); }
.tgreet__photo figcaption { display: flex; align-items: baseline; gap: .6rem; margin-top: 1rem; }
.tgreet__photo figcaption span { font-size: 1rem; font-weight: 700; color: var(--text-mute); }
.tgreet__photo figcaption b { font-size: 1.42rem; font-weight: 800; color: var(--ink); letter-spacing: .04em; }
.tgreet__body::before { content: ""; display: block; width: 48px; height: 5px; margin-bottom: 1.3rem; background: var(--green); border-radius: 3px; }
.tgreet__lead { margin: .7rem 0 1.6rem; font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.9rem); line-height: 1.3; letter-spacing: -.045em; color: var(--navy-ink); }
.tgreet__p { margin: 0; font-size: 1.14rem; line-height: 1.95; color: var(--text); }
.tgreet__p + .tgreet__p { margin-top: 1.1rem; }
.tgreet__p em { font-style: normal; font-weight: 800; color: var(--navy); background: linear-gradient(transparent 60%, #D9F1E3 60%); }
.tgreet__p--key { font-weight: 800; color: var(--ink); }

/* 약속 셋 */
.tmotto { color: var(--navy-ink); }
.tprom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.tprom__i { position: relative; padding: 2.1rem 1.8rem 2.2rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tprom__i::before { content: ""; position: absolute; top: -1px; left: 1.8rem; width: 56px; height: 4px; background: var(--navy); }
.tprom__n { display: block; font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--green); }
.tprom__t { margin-top: 1.1rem; font-size: 1.3rem; color: var(--ink); }
.tprom__d { margin: .75rem 0 0; font-size: 1.05rem; line-height: 1.85; color: var(--text); }

/* 맺음 + 서명 */
.tclose { max-width: 46rem; margin: 0 auto; text-align: center; }
.tclose__p { margin: 0; font-size: clamp(1.2rem, 1rem + .6vw, 1.46rem); font-weight: 700; line-height: 1.85; color: var(--ink); }
.tsign { display: inline-flex; align-items: baseline; gap: .7rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 2px solid var(--navy); }
.tsign span { font-size: 1.04rem; font-weight: 700; color: var(--text-mute); }
.tsign b { font-size: 1.55rem; font-weight: 800; letter-spacing: .14em; color: var(--navy-ink); }

/* 미션 · 비전 */
.tmis {
  position: relative; overflow: hidden; border-radius: 12px; color: #fff;
  padding: clamp(2.2rem, 4vw, 3.6rem) clamp(1.6rem, 4.5vw, 3.8rem);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #0F1450 100%);
}
.tmis::after {
  content: "MISSION"; position: absolute; right: -.06em; bottom: -.3em; pointer-events: none;
  font-size: clamp(5rem, 12vw, 10.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: rgba(255, 255, 255, .05);
}
.tmis__eyebrow { position: relative; margin: 0; font-size: .9rem; font-weight: 800; letter-spacing: .2em; color: #8EE5B4; }
.tmis__t { position: relative; margin-top: .8rem; color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem); line-height: 1.35; letter-spacing: -.045em; }
.tmis__d { position: relative; max-width: 52rem; margin: 1.15rem 0 0; font-size: 1.12rem; line-height: 1.9; color: #D4D8F2; }
.tvis {
  margin-top: 1.4rem; border-radius: 12px; background: var(--bg-soft);
  border: 1px solid var(--line); border-left: 6px solid var(--green);
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.6rem, 4.5vw, 3.8rem);
}
.tvis__q { margin: .7rem 0 0; font-size: clamp(1.35rem, 1.05rem + 1vw, 1.95rem); font-weight: 800; line-height: 1.5; letter-spacing: -.035em; color: var(--navy-ink); }

/* 핵심가치 다섯 */
.tval { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tval__i { padding: 1.9rem 1.3rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.tval__n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.12rem; font-weight: 800; }
.tval__t { margin-top: 1rem; font-size: 1.32rem; color: var(--navy-ink); }
.tval__d { margin: .65rem 0 0; font-size: 1.02rem; line-height: 1.75; color: var(--text); }

/* 5대 목표 */
.tgoal { max-width: 62rem; margin: 0 auto; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.tgoal__i { display: grid; grid-template-columns: 4.6rem minmax(0, 15rem) minmax(0, 1fr); align-items: center; gap: 1.2rem; padding: 1.35rem .4rem; border-bottom: 1px solid var(--line); }
.tgoal__n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--green); }
.tgoal__t { font-size: 1.22rem; color: var(--ink); }
.tgoal__d { margin: 0; font-size: 1.07rem; line-height: 1.75; color: var(--text); }

/* 조직도 — 병원장 → (수련교육위원회) → 수련교육부 → 두 팀 */
.torg { max-width: 62rem; margin: 0 auto; }
.torg__top { display: flex; flex-direction: column; align-items: center; }
.torg__node { margin: 0; min-width: 12.5rem; padding: 1rem 1.6rem; border-radius: 8px; text-align: center; font-size: 1.16rem; font-weight: 800; }
.torg__node--head { background: var(--navy); color: #fff; }
.torg__node--dept { background: var(--sky-text); color: #fff; }
.torg__stem { position: relative; width: 2px; height: 3.8rem; background: var(--line-2); }
.torg__stem::after { content: ""; position: absolute; left: 2px; top: 50%; width: 3.2rem; border-top: 2px dashed var(--line-2); }
.torg__node--side {
  position: absolute; top: 50%; left: calc(100% + 3.2rem); transform: translateY(-50%);
  min-width: 0; white-space: nowrap; padding: .7rem 1.2rem; font-size: 1rem; font-weight: 700;
  color: var(--text); background: #fff; border: 2px dashed var(--line-2);
}
.torg__teams { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 0; padding: 3.2rem 0 0; list-style: none; }
.torg__teams::before { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: 1.6rem; background: var(--line-2); }
.torg__teams::after { content: ""; position: absolute; top: 1.6rem; left: calc(25% - .5rem); right: calc(25% - .5rem); height: 2px; background: var(--line-2); }
.torg__team { position: relative; padding: 1.6rem 1.7rem 1.7rem; background: #fff; border: 2px solid var(--navy); border-radius: 10px; }
.torg__team::before { content: ""; position: absolute; top: calc(-1.6rem - 2px); left: calc(50% - 1px); width: 2px; height: 1.6rem; background: var(--line-2); }
.torg__team--b { border-color: var(--green); }
.torg__tn { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); font-size: 1.24rem; color: var(--ink); }
.torg__tn::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); }
.torg__team--b .torg__tn::before { background: var(--green); }
.torg__duty { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.torg__duty li { position: relative; padding-left: 1.05rem; font-size: 1.04rem; line-height: 1.65; color: var(--text); }
.torg__duty li::before { content: ""; position: absolute; left: .15rem; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-mute); }
.torg__subs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.2rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.torg__subs li { padding: .65rem .8rem; border-radius: 6px; background: var(--bg-tint); text-align: center; font-size: 1rem; font-weight: 800; color: var(--navy); }

/* 주요 직무 카드 */
.tduty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tedu { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.tduty__i, .tedu__i { padding: 1.9rem 1.7rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tedu__i { border-left: 6px solid var(--navy); }
.tedu__i--b { border-left-color: var(--green); }
.tduty__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bg-tint); color: var(--navy); }
.tedu__i--b .tduty__ico { background: #E2F3E9; color: var(--green-cta); }
.tduty__ico svg { width: 28px; height: 28px; }
.tduty__t { margin: 1.1rem 0 .9rem; font-size: 1.24rem; color: var(--ink); }
.tcheck { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.tcheck li { position: relative; padding-left: 1.75rem; font-size: 1.03rem; line-height: 1.65; color: var(--text); }
.tcheck li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007A37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tcheck b { font-weight: 800; color: var(--navy); }

@media (max-width: 1080px) {
  .tval { grid-template-columns: repeat(3, 1fr); }
  .tduty { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tgreet { grid-template-columns: 1fr; }
  .tgreet__photo { width: 100%; max-width: 340px; margin: 0 auto; }
  .tprom, .tedu { grid-template-columns: 1fr; }
  .tval { grid-template-columns: repeat(2, 1fr); }
  .tgoal__i { grid-template-columns: 3.2rem minmax(0, 1fr); gap: .3rem 1rem; align-items: start; }
  .tgoal__n { font-size: 1.6rem; line-height: 1.3; }
  .tgoal__d { grid-column: 2; }
  .torg__teams { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 1.6rem; }
  .torg__teams::after, .torg__team::before { display: none; }
  .torg__stem::after { width: 1.4rem; }
  .torg__node--side { left: calc(100% + 1.4rem); padding: .6rem .9rem; font-size: .96rem; }
}
@media (max-width: 560px) {
  .tval { grid-template-columns: 1fr; }
  .tmis::after { font-size: 4.2rem; }
}

/* 예약 폼 아래 안내 글(app.js 4절) */
.rform__hint { margin: .9rem 0 0; font-size: .96rem; line-height: 1.7; color: var(--text-mute); }
.qbook__note a { color: inherit; text-decoration: none; }

/* 진료일정(app.js 11절 · data/schedules.json) — 표는 기존 .sched 그대로, 아래에 기준월 · 휴진 요약 · 월간 달력 */
.sched td.chk { color: #A15C07; font-weight: 700; }
.sched__more { margin-top: .7rem; }
.sched__base { margin: 0; font-size: .9rem; color: var(--text-mute); }
.sched__chg { margin: .45rem 0 0; font-size: .98rem; line-height: 1.75; color: var(--text); }
.sched__chg b { margin-right: .5rem; color: var(--navy); font-weight: 800; }
.sched__month { margin-top: .4rem; }
.sched__month summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: .98rem; font-weight: 800; color: var(--navy); }
.smonth { width: 100%; min-width: 420px; border-collapse: collapse; table-layout: fixed; font-size: .84rem; background: #fff; }
.smonth th, .smonth td { padding: .35rem .15rem; border: 1px solid var(--line); text-align: center; vertical-align: top; }
.smonth thead th { background: var(--bg-soft); font-weight: 800; color: var(--ink); }
.smonth td b { display: block; font-size: .8rem; font-weight: 700; color: var(--text-mute); }
.smonth td span { display: block; line-height: 1.35; word-break: keep-all; }
.smonth td.is-empty { background: var(--bg-soft); }
.smonth .on { color: var(--navy); font-weight: 700; }
.smonth .ex { color: var(--green-cta); font-weight: 700; }
.smonth .off { color: #A7AEBA; }
.smonth .chk { color: #A15C07; font-weight: 700; }
.smonth__key { margin: .4rem 0 0; font-size: .84rem; color: var(--text-mute); }
/* 칸 이름 글자색(관리 콘솔 '칸 이름 색', 10/14) — 진료과 달력 · 진료일정표 · 안내 도우미가 같이 쓴다 */
.smonth .c-red, .wsch__v.c-red { color: #D41F2C; font-weight: 700; }
.smonth .c-navy, .wsch__v.c-navy { color: var(--navy); font-weight: 700; }
.smonth .c-green, .wsch__v.c-green { color: #007A37; font-weight: 700; }
.smonth .c-orange, .wsch__v.c-orange { color: #C25E00; font-weight: 700; }
.smonth .c-blue, .wsch__v.c-blue { color: #1F6FD1; font-weight: 700; }
.smonth .c-gray, .wsch__v.c-gray { color: #9AA1AD; }
.cb-st.c-red { background: #FDECEC; color: #D41F2C; }
.cb-st.c-navy { background: #E8EDFB; color: var(--navy); }
.cb-st.c-green { background: #E5F3EB; color: #007A37; }
.cb-st.c-orange { background: #FFF3E0; color: #C25E00; }
.cb-st.c-blue { background: #E7F0FC; color: #1F6FD1; }
.cb-st.c-gray { background: #F0F1F4; color: #6B6F7A; }
/* 오전 · 오후가 같은 날은 두 줄 높이의 가운데(10/14) */
.smonth td span.one { display: flex; align-items: center; justify-content: center; min-height: 2.7em; }

.snotes { margin: 0 0 1.2rem; padding: .95rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 8px; }
.snotes__h { margin: 0 0 .35rem; font-weight: 800; color: var(--ink); }
.snotes__h span { margin-left: .4rem; font-size: .88rem; font-weight: 700; color: var(--green-cta); }
.snotes ul { margin: 0; padding-left: 1.1rem; }
.snotes li { font-size: .98rem; line-height: 1.7; color: var(--text); }

/* 모바일 점검(2026-09-26, 117쪽 × 폭 360 · 390) — 누르는 칸 44px · 13px 미만 글자 · 소식 본문 소제목
   모양은 그대로 두고 누르는 범위만 넓힌다(밑줄 · 배경이 있는 링크는 보이지 않는 ::after 로) */
.nitem__cat { font-size: .8rem; }
.post__body h1, .post__body h2, .post__body h3, .post__body h4, .post__body h5, .post__body h6 {
  margin: 1.7rem 0 .6rem; font-size: 1.18rem; font-weight: 800; line-height: 1.55; color: var(--ink);
}
.vtel, .pg__crumb a { position: relative; }
.vtel::after, .pg__crumb a::after { content: ""; position: absolute; inset: -10px -6px; }
@media (max-width: 860px) {
  .ft__links { gap: 0 1.2rem; }
  .ft__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .vmap { height: 44px; }
  .hours__em-n { min-height: 44px; display: flex; align-items: center; }
  .rchk { min-height: 44px; }
  /* 오시는 길 전화 링크: 줄 사이가 좁아 넓힌 영역이 옆 줄에 가린다 → 링크 자체를 44px, 밑줄은 글자 밑줄로(모양 유지) */
  .vtel { display: inline-block; padding: .62rem 0; border-bottom: 0; text-decoration: underline 2px var(--sky); text-underline-offset: 6px; }
  .vtel--em { text-decoration-color: #F3A0A3; }
  .vtel::after { content: none; }
  .post__files a { min-height: 44px; }
}

/* 메인 공지 팝업(app.js 12절 · data/popups.json) — 사이트 토큰(남색 머리 띠 · 초록 버튼 · 8px) · 누르는 칸 52px */
.pops {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; background: rgba(14, 17, 64, .55); animation: fadeIn .25s ease both;
}
.pops__row { display: flex; align-items: flex-start; gap: 16px; max-width: 100%; }
.pop {
  display: flex; flex-direction: column; width: min(380px, 30vw); max-height: calc(100vh - 48px);
  background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 44px rgba(14, 17, 64, .35);
}
.pop__img { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pop__img img { display: block; width: 100%; height: auto; }
.pop__txt { flex: 1 1 auto; overflow-y: auto; padding-bottom: 1.4rem; }
.pop__eb { margin: 0; padding: .75rem 1.25rem; background: var(--navy); color: #fff; font-size: .92rem; font-weight: 800; letter-spacing: .08em; }
.pop__t { margin: 1.15rem 1.25rem 0; font-size: 1.32rem; line-height: 1.42; color: var(--ink); word-break: keep-all; }
.pop__b { margin: .75rem 1.25rem 0; font-size: 1.05rem; line-height: 1.8; color: var(--text); white-space: pre-line; word-break: keep-all; }
.pop__go {
  display: inline-flex; align-items: center; min-height: 48px; margin: 1.1rem 1.25rem 0; padding: 0 1.3rem;
  border-radius: 6px; background: var(--green-cta); color: #fff; font-weight: 800; text-decoration: none;
}
.pop__go:hover { background: var(--green-dark); }
.pop__bar { flex: none; display: flex; border-top: 1px solid var(--line); }
.pop__bar button { flex: 1; min-height: 52px; padding: 0 .8rem; border: 0; background: #fff; font-size: 1rem; font-weight: 700; color: var(--text); cursor: pointer; }
.pop__bar button + button { border-left: 1px solid var(--line); }
.pop__bar .pop__close { color: var(--navy); font-weight: 800; }
.pop__bar button:hover { background: var(--bg-soft); }
.pops__hint, .pops__pv { margin: 0; color: #fff; font-size: .95rem; font-weight: 700; text-align: center; }
.pops__hint { display: none; order: -1; }
.pops:focus { outline: none; }
@media (max-width: 760px) {
  .pops { padding: 16px 0; }
  .pops__row { width: 100%; padding: 0 16px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .pop { flex: 0 0 calc(100vw - 32px); width: auto; max-height: calc(100vh - 96px); scroll-snap-align: center; }
  .pops__hint { display: block; }
}
@media (prefers-reduced-motion: reduce) { .pops { animation: none; } }

/* ==========================================================================
   스크롤 연출(app.js 13절) — 절제된 움직임. JS 가 '처음 화면 밖' 요소에만 data-rv 를 붙이고 나타난 뒤 지운다.
   어르신 방문이 많은 병원이라 거리는 짧게(20px) · 감속은 느리게(0.9초) · 튕김/회전/큰 확대 없음
   ========================================================================== */
.rv-on [data-rv=""] {
  opacity: 0; transform: translate3d(0, 20px, 0);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--rv-d, 0ms);
}
.rv-on [data-rv=""].is-in { opacity: 1; transform: none; }
/* 사진: 가장자리에서 안쪽으로 걷히는 가림막 + 살짝 당겨져 있던 사진이 제자리로 */
.rv-on [data-rv="img"] { clip-path: inset(7% 7% 7% 7%); transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1); }
.rv-on [data-rv="img"] img { transform: scale(1.08); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.rv-on [data-rv="img"].is-in { clip-path: inset(0 0 0 0); }
.rv-on [data-rv="img"].is-in img { transform: none; }
@media (max-width: 760px) { .rv-on [data-rv=""] { transform: translate3d(0, 14px, 0); } }

/* 헤더: 내려가면 그림자 한 겹 */
.hd { transition: box-shadow .3s ease; }
.hd.is-scrolled { box-shadow: 0 6px 24px rgba(20, 26, 99, .07); }

/* 숫자 세기(app.js 13-2) — 자릿수가 바뀌어도 글자 폭이 흔들리지 않게 */
.cnt { font-variant-numeric: tabular-nums; }

/* 손끝 반응 — 살짝만 */
.qmenu__i svg { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.qmenu__i:hover svg { transform: translateY(-3px); }
.nitem__thumb--img img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.nitem:hover .nitem__thumb--img img { transform: scale(1.05); }
.acard { transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .35s ease, border-color .35s ease; }
.acard:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }

@media print {
  .rv-on [data-rv] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .rv-on [data-rv] img { transform: none !important; }
}

/* ==========================================================================
   안내 도우미(챗봇) — app.js 14절(호출 단추) · chatbot.js(창). 어르신 기준: 글자 16px 이상 · 누름 칸 44px · 좁은 화면은 전체 화면
   ========================================================================== */
.cbl {
  position: fixed; right: 24px; bottom: max(24px, min(18vh, calc(50vh - 242px), 170px)); z-index: 170;
  /* 더 위로(사용자 10/2 · 10/3) — 화면 높이의 18%(최대 170px), 단 가운데 뜬 오른쪽 빠른메뉴(높이 약 348px) 아래 12px 보다 위로는 안 간다 */
  display: inline-flex; align-items: center; gap: .5rem;
  height: 56px; padding: 0 1.35rem 0 1.1rem; border: 0; border-radius: 100px;
  background: var(--navy); color: #fff; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(20, 26, 99, .28); cursor: pointer;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .2s ease;
}
.cbl svg { width: 24px; height: 24px; flex-shrink: 0; }
.cbl:hover { background: var(--navy-deep); transform: translateY(-2px); }
.cbl:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.cbl { transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .2s ease, opacity .25s ease; }
.cb-open .cbl { display: none; }

.cb {
  position: fixed; right: 24px; bottom: 24px; z-index: 180;
  width: 400px; height: min(660px, calc(100vh - 118px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(14, 17, 64, .24);
  animation: fadeUp .25s ease both;
}
.cb[hidden] { display: none; }
.cb:focus { outline: none; }
.cb__hd { display: flex; align-items: center; gap: .75rem; padding: .95rem 1rem .95rem 1.1rem; background: var(--navy-ink); color: #fff; flex-shrink: 0; }
.cb__av { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.cb__av svg { width: 22px; height: 22px; }
.cb__who { flex: 1; min-width: 0; }
.cb__t { font-size: 1.06rem; font-weight: 800; line-height: 1.3; color: #fff; }
.cb__s { font-size: .84rem; color: rgba(255, 255, 255, .78); margin-top: .1rem; }
.cb__x { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.cb__x svg { width: 22px; height: 22px; }
.cb__x:hover { background: rgba(255, 255, 255, .2); }

.cb__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem .9rem; background: var(--bg-soft); display: flex; flex-direction: column; gap: .7rem; }
.cb__log:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.cb-m { display: flex; }
.cb-m--user { justify-content: flex-end; }
.cb-b { max-width: 94%; padding: .8rem .95rem; border-radius: 14px; font-size: 1rem; line-height: 1.6; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.cb-m--bot .cb-b { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.cb-m--user .cb-b { background: var(--navy); color: #fff; border-top-right-radius: 4px; font-weight: 600; }
.cb-p + .cb-p, .cb-p + .cb-tags, .cb-tags + .cb-p { margin-top: .45rem; }
.cb-h { font-size: 1.06rem; font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.cb-h--em { color: var(--red-em); }
.cb-sub { font-size: .88rem; font-weight: 700; color: var(--text-mute); margin-left: .2rem; }
.cb-ul { display: grid; gap: .4rem; }
.cb-ul li { position: relative; padding-left: .9rem; font-size: .97rem; }
.cb-ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.cb-note { margin-top: .5rem; font-size: .88rem; line-height: 1.55; color: var(--text-mute); }
.cb-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.cb-tags span { font-size: .84rem; padding: .18rem .55rem; border-radius: 100px; background: var(--bg-tint); color: var(--navy); }

.cb-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.cb-a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem; border-radius: 10px;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-size: .95rem; font-weight: 800; text-decoration: none; line-height: 1.3;
}
.cb-a:hover { background: var(--bg-tint); }
.cb-a--tel { border-color: var(--green-cta); background: var(--green-cta); color: #fff; }
.cb-a--tel:hover { background: var(--green-dark); }
.cb-a--em { border-color: var(--red-em); background: var(--red-em); color: #fff; }
.cb-a--em:hover { background: #B01418; }
.cb-em .cb-acts { margin-top: .55rem; }
.cb-em > .cb-a { margin-top: .4rem; }

.cb-st { display: inline-block; font-size: .86rem; font-weight: 800; padding: .08rem .5rem; border-radius: 6px; margin: .15rem .3rem 0 0; }
.cb-st.on { background: #E8EDFB; color: var(--navy); }
.cb-st.ex { background: #E5F3EB; color: var(--green-cta); }
.cb-st.off { background: #F0F1F4; color: #6B6F7A; }
.cb-st.chk { background: #FFF3E0; color: #A15C07; }
.cb-memo { display: block; font-size: .86rem; color: var(--text-mute); margin-top: .15rem; }
.cb-docs { display: grid; gap: .45rem; margin-top: .35rem; }
.cb-docs li { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; }
.cb-docs a { font-weight: 800; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: .3rem; min-height: 28px; }
.cb-docs a:hover { color: var(--navy); text-decoration: underline; }
.cb-docs small { font-size: .86rem; font-weight: 600; color: var(--text-mute); }
.cb-sts { display: block; }
.cb-price { display: grid; gap: .35rem; margin-top: .2rem; }
.cb-price li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.cb-price li:last-child { border-bottom: 0; }
.cb-pn { font-size: .95rem; }
.cb-pn small { display: block; font-size: .82rem; color: var(--text-mute); }
.cb-price b { white-space: nowrap; color: var(--navy); font-size: .97rem; }
.cb-sym { display: grid; gap: .45rem; margin-top: .45rem; }
.cb-sym li { padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 10px; }
.cb-sym a { color: var(--navy); font-size: 1.02rem; text-decoration: none; }
.cb-sym a:hover { text-decoration: underline; }
.cb-sym small { display: block; font-size: .86rem; color: var(--text-mute); margin-top: .1rem; }

.cb__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .65rem .8rem; max-height: 132px; overflow-y: auto; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.cb-c {
  min-height: 44px; padding: 0 .95rem; border: 1px solid var(--line-2); border-radius: 100px; background: #fff;
  font-size: .95rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.cb-c:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-tint); }
.cb-c:focus-visible, .cb-a:focus-visible, .cb__x:focus-visible, .cb__send:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cb__in { display: flex; gap: .45rem; padding: .7rem .8rem .5rem; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.cb__in input { flex: 1; min-width: 0; height: 50px; padding: 0 .95rem; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 1rem; color: var(--ink); background: #fff; }
.cb__in input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 33, 136, .12); }
.cb__send { width: 50px; height: 50px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.cb__send svg { width: 22px; height: 22px; }
.cb__send:hover { background: var(--navy-deep); }
.cb__foot { padding: 0 .9rem .7rem; font-size: .82rem; line-height: 1.5; color: var(--text-mute); background: #fff; flex-shrink: 0; }
.cb__foot a { color: var(--red-em); font-weight: 800; }

@media (max-width: 860px) {   /* 하단 바(.mbar, 64px)가 보이는 폭 — 그 위로 올린다 */
  .cbl { right: 14px; bottom: 76px; height: 50px; padding: 0 1rem 0 .85rem; font-size: .96rem; }
  .cb { bottom: 76px; height: min(660px, calc(100vh - 170px)); }
}
@media (max-width: 760px) {
  .cb { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  .cb-open body { overflow: hidden; }
  .cb__chips { max-height: 118px; }
}
@media print { .cbl, .cb { display: none !important; } }

/* ==========================================================================
   휴대폰 메인(760px 이하) — 아산충무 모바일 참고(2026-09-28, 사용자 선택: 첫 화면 정리 · 성과/소식 압축 · 탭형 팝업, 하단 바 유지)
   · 첫 화면 한 장 = 얇은 머리글 + 가운데 글 + 또렷한 그림(10/6 사용자: 빠른 예약 카드가 그림을 가려 뺐다 → 아래 바 '빠른예약'으로 여는 창)
   · 소식 = 병원소식/공지사항 탭(지난 소식 목록은 전체보기로) · 성과 = 옆으로 넘김 + 01 ── 04
   넓은 화면은 바뀌지 않는다 — 아래 요소들은 기본으로 숨겨 둔다
   ========================================================================== */
.ntabs, .ach__bar, .qbook__x, .qb-dim { display: none; }
.news__list[hidden] { display: none; }

@media (max-width: 760px) {
  /* 머리글 얇게(68 → 56px) — 붙어 따라오는 서브 메뉴도 같이 */
  .hd__in { height: 56px; }
  .hd__logo img { width: 158px; }
  .lnb { top: 56px; }

  /* 첫 화면 = 히어로(56 머리글 · 64 하단 바를 뺀 높이, 아래 48px 은 다음 칸 '검색'이 살짝 보여 내려 볼 수 있다는 표시) */
  .hero, .hero__in { min-height: 0; }
  .hero--mix .hero__in {
    display: flex; flex-direction: column; padding: 1.4rem 0 0;
    height: calc(100vh - 56px - 64px - 48px);
    height: calc(100svh - 56px - 64px - 48px);
    min-height: 390px;
  }
  .hero--mix { background: linear-gradient(180deg, #F3F6FB 0%, #F3F6FB 42%, #fff 100%); }   /* 아래가 흰색이라 빠른 예약 쪽과 경계가 없다 */
  .hero--mix .hero__in { width: 100%; }   /* 그림을 좌우 끝까지(100vw 는 스크롤 막대 폭만큼 넘쳐서 쓰지 않는다) */
  .hero--mix .hero__copy { text-align: center; flex-shrink: 0; padding: 0 .85rem; }
  .slide__tag { padding: .32rem .95rem; border-radius: 100px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); font-size: .95rem; }
  .slide__bar { margin: .9rem auto .75rem; width: 36px; height: 4px; }
  .slide__title { font-size: clamp(1.85rem, 1.3rem + 2.6vw, 2.2rem); }
  .slide__desc, .slide__btn { display: none; }
  .hero--mix .hero__ctrl { justify-content: center; margin-top: .75rem; }
  /* 그림: 배경으로 흐리게 깔던 것을 글 아래에 또렷하게(화면 끝까지) */
  .hero--mix .hero__vis { position: relative; inset: auto; flex: 1; min-height: 140px; opacity: 1; width: 100%; margin: .5rem 0 0; }
  /* 덮개 색(#F4F7FB)이 실제 배경과 달라 위쪽에 줄이 보였다 → 덮개를 끄고 사진 자체의 위아래를 투명하게 녹인다 */
  .hero--mix .hero__vis::after { content: none; }
  .hero--mix .hv .shot {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 80%, transparent 100%);
  }
  .hero--mix .hv--medal.on { display: flex; align-items: center; justify-content: center; }   /* grid 안에서는 height:100% 가 안 먹어 메달이 잘렸다 */
  .medal4 { height: 100%; width: auto; max-width: 88%; }
  .stamp, .chip { top: auto; bottom: 10px; left: auto; right: 14px; transform: none; width: 86px; }
  .chip--img { width: 104px; }

  /* 빠른 예약: 첫 화면에서 빼고, 아래 바 '빠른예약'을 누르면 아래 바 바로 위로 올라오는 창(app.js 15-1).
     입력칸 + 신청 한 줄, 진료/검진 예약 두 칸. 닫혀 있을 때는 visibility 로 숨겨 초점 · 화면 읽기에서도 빠진다 */
  .qbook {
    position: fixed; left: 0; right: 0; bottom: 64px; z-index: 97; margin: 0; padding: 0 10px 10px;
    transform: translateY(calc(100% + 64px)); visibility: hidden;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .28s;
  }
  .qb-open .qbook { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.16, 1, .3, 1); }
  .qb-dim { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(14, 17, 64, .45); }
  .qb-dim[hidden] { display: none; }
  .qb-open .cbl { display: none; }
  .qbook__x { display: grid; place-items: center; grid-column: 6 / -1; justify-self: end; align-self: center; width: 44px; height: 44px; margin: -.4rem -.35rem -.4rem 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
  .qbook__x svg { width: 24px; height: 24px; }
  .qbook__in {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem;
    padding: .85rem .85rem .9rem; border: 1.5px solid var(--green-cta); border-radius: 16px;
    background: #fff; box-shadow: 0 -6px 30px rgba(14, 17, 64, .28);
  }
  .qbook__label { grid-column: 1 / 6; order: 0; width: auto; }
  .qbook__field { grid-column: 1 / 5; order: 0; width: auto; height: 50px; padding: 0 .75rem; border: 1px solid var(--line-2); border-radius: 12px; }
  .qbook__go { grid-column: 5 / -1; order: 0; width: auto; height: 50px; padding: 0 .6rem; border-radius: 12px; justify-content: center; }
  .qbook__go svg { display: none; }
  .qbook__go--tel { grid-column: 1 / -1; }   /* SSL 전 전화 예약 단추(전화번호 칸이 빠진 자리까지 한 줄 전체) */
  .qbook__alt { order: 0; width: auto; min-height: 46px; padding: 0 .5rem; justify-content: center; }
  .qbook__alt--a { grid-column: 1 / 4; }
  .qbook__alt--b { grid-column: 4 / -1; }
  .qbook__note { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* 화면 읽기에는 남긴다 */

  /* 소식: 탭 + 카드 4장(지난 소식 목록은 '전체보기'로) */
  .ntabs { display: flex; gap: .4rem; }
  .ntabs__b {
    flex: 1; min-height: 46px; border: 1px solid var(--line-2); border-radius: 100px; background: #fff;
    font-size: 1rem; font-weight: 800; color: var(--text);
  }
  .ntabs__b b { font-weight: 800; margin-left: .15rem; color: var(--green-cta); }
  .ntabs__b.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
  .ntabs__b.is-on b { color: #CFE9D8; }
  .news__more { display: none; }

  /* 성과: 옆으로 넘기는 카드 + 진행 막대 */
  #ach .ach__grid {
    display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: .3rem; scrollbar-width: none;
  }
  #ach .ach__grid::-webkit-scrollbar { display: none; }
  #ach .ach__grid:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
  #ach .acard { flex: 0 0 82%; scroll-snap-align: center; }
  /* 안내챗봇 호출 단추: 동그랗게 작게, 머리글 ☰ 메뉴 바로 아래(사용자 10/6 '메뉴 아래정도'). 전체 메뉴가 열리면 메뉴를 가리지 않게 숨긴다 */
  .cbl { top: calc(56px + 8px); bottom: auto; right: 8px; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }   /* 46px: 360px 폰에서 가장 긴 꼬리표(배너3)와 띄운다 */
  .cbl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cbl svg { width: 23px; height: 23px; }
  html:has(.mega.is-open) .cbl { display: none; }
  /* 하위 메뉴(.lnb, 높이 약 3.92rem)가 머리글 밑에 붙어 따라오는 쪽은 그 아래로 — 붙은 뒤 '제증명 발급' 같은 탭을 가렸다 */
  html:has(.lnb) .cbl { top: calc(56px + 3.95rem + 8px); }
  #ach .ach__bar { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1.1rem; color: #fff; }
  .ach__n, .ach__t { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
  .ach__t { opacity: .6; }
  .ach__track { width: 42%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
  .ach__track i { display: block; height: 100%; width: 25%; background: #fff; transition: width .3s ease; }
}

/* 키가 작은 휴대폰(높이 800 미만, 예: 360×740): 첫 화면에 빠른 예약까지 들어가도록 글 위아래를 줄인다 */
@media (max-width: 760px) and (max-height: 800px) {
  .hero--mix .hero__in { padding-top: .9rem; min-height: 300px; }
  .slide__bar { display: none; }
  .slide__title { margin-top: .55rem; font-size: 1.75rem; }
  .hero--mix .hero__ctrl { margin-top: .45rem; }
  .hero--mix .hero__vis { min-height: 110px; margin-top: .3rem; }
}

/* 더 작은 휴대폰(높이 700 미만, 예: 375×667 아이폰 SE): 제목 · 표시를 한 번 더 줄인다 */
@media (max-width: 760px) and (max-height: 700px) {
  .hero--mix .hero__in { min-height: 250px; padding-top: .7rem; }
  .slide__tag { font-size: .88rem; padding: .22rem .8rem; }
  .slide__title { font-size: 1.6rem; margin-top: .4rem; }
  .hero--mix .hero__vis { min-height: 80px; }
}

/* 탭형 공지 팝업(휴대폰에서만 app.js 12절이 .pops--tab 으로 연다) */
.pops--tab { padding: 16px; }
.popt {
  display: flex; flex-direction: column; width: 100%; max-width: 420px;
  max-height: calc(100vh - 32px); max-height: calc(100svh - 32px);
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(14, 17, 64, .35);
}
.popt__hd { position: relative; display: flex; align-items: center; justify-content: center; padding: .7rem 3.4rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.popt__logo { height: 32px; width: auto; }
.popt__x { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.popt__x svg { width: 20px; height: 20px; }
.popt__tabs { display: flex; gap: .3rem; margin: .75rem .9rem 0; padding: .3rem; border-radius: 12px; background: var(--bg-soft); flex-shrink: 0; }
.popt__tab { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-size: .98rem; font-weight: 800; color: var(--text-mute); }
.popt__tab b { margin-left: .15rem; }
.popt__tab.is-on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(20, 26, 99, .1); }
.popt__pn { flex: 1; min-height: 0; overflow-y: auto; padding: .75rem .9rem 0; }
.popt__pn[hidden] { display: none; }
.popt__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.popt__track::-webkit-scrollbar { display: none; }
.popt__s { flex: 0 0 100%; scroll-snap-align: start; }
.popt__s .pop__img { overflow: visible; }
.popt__s .pop__img img { width: 100%; height: auto; max-height: calc(100vh - 290px); max-height: calc(100svh - 290px); object-fit: contain; background: #fff; }
.popt__dots { display: flex; justify-content: center; gap: .2rem; padding: .35rem 0 0; }
.popt__dot { width: 34px; height: 30px; border: 0; background: none; padding: 0; }
.popt__dot::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; background: var(--line-2); transition: width .2s ease; }
.popt__dot.is-on::before { width: 22px; border-radius: 5px; background: var(--navy); }
.popt__news { display: grid; gap: .55rem; }
.popt__n { display: flex; align-items: center; gap: .7rem; padding: .55rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.popt__n img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.popt__n b { display: block; font-size: .98rem; line-height: 1.4; }
.popt__n small { font-size: .85rem; color: var(--text-mute); }
.popt__all { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: .6rem 0 .1rem; font-weight: 800; color: var(--navy); }
.popt__ft { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .75rem; padding: .6rem .9rem .75rem; border-top: 1px solid var(--line); flex-shrink: 0; }
.popt__today { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .95rem; color: var(--text); cursor: pointer; }
.popt__today input { width: 20px; height: 20px; accent-color: var(--navy); }
.popt__close { min-height: 44px; padding: 0 1.3rem; border: 1px solid var(--line-2); border-radius: 100px; background: #fff; font-size: .98rem; font-weight: 800; color: var(--ink); }
.popt .pops__pv { color: var(--text-mute); padding: 0 .9rem .7rem; }

/* ==========================================================================
   진료협력센터 '협력기관' 목록 — migrate_legacy.partners_block(data/partners.json) · 찾기는 app.js 16절
   옛 6칸 표 대신 카드: 이름 · 주소 · [전화] [지도]. .legacy 안이라 그쪽 a 밑줄 · 목록 여백을 덮어쓴다
   ========================================================================== */
.ptn { margin: .6rem 0 1.4rem; }
.ptn__sum { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.legacy .ptn__total { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.legacy .ptn__total b { color: var(--navy); font-size: 1.25rem; }
.legacy .ptn__dist { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.legacy .ptn__dist li { padding: .22rem .65rem; border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: .9rem; color: var(--text); }
.legacy .ptn__dist b { color: var(--navy); margin-left: .1rem; }
.ptn__bar { display: flex; align-items: center; gap: .8rem; margin: .3rem 0 .9rem; }
.ptn__q { flex: 1; min-width: 0; max-width: 460px; height: 50px; padding: 0 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 1rem; color: var(--ink); background: #fff; }
.ptn__q:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 33, 136, .12); }
.legacy .ptn__cnt { margin: 0; font-size: .95rem; color: var(--text-mute); }
.legacy .ptn__cnt b { color: var(--navy); }
.legacy .ptn__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0 0 .8rem; }
.legacy .ptn__i { display: flex; flex-direction: column; gap: .3rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.legacy .ptn__i[hidden] { display: none; }
.legacy .ptn__name { font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.ptn__addr { font-size: .93rem; line-height: 1.5; color: var(--text-mute); }
.ptn__acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .45rem; }
.legacy .ptn__tel, .legacy .ptn__map {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: 10px;
  font-size: .95rem; font-weight: 800; text-decoration: none;
}
.legacy .ptn__tel { background: var(--green-cta); color: #fff; }
.legacy .ptn__tel:hover { background: var(--green-dark); }
.legacy .ptn__map { border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); }
.legacy .ptn__map:hover { border-color: var(--navy); color: var(--navy); }
.legacy .ptn__none { padding: 1rem 1.1rem; border-radius: 10px; background: var(--bg-soft); }
.ptn__more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin: 0 0 .8rem;
  border: 1.5px solid var(--navy); border-radius: 12px; background: #fff; font-size: 1rem; font-weight: 800; color: var(--navy);
}
.ptn__more[hidden] { display: none; }
.ptn__more b { margin: 0 .15rem; }
.legacy .ptn__none a { color: var(--green-cta); font-weight: 800; }
@media (max-width: 1080px) { .legacy .ptn__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .legacy .ptn__list { grid-template-columns: 1fr; }
  .ptn__bar { flex-wrap: wrap; }
  .ptn__q { max-width: none; flex-basis: 100%; }
}


/* ==========================================================================
   의료진 세로 목록 · 월간 진료일정(2026-09-29 병원 요청)
   · 이름 단추로 한 명씩 고르던 방식(.dsel) 대신 모두 펼침 — migrate_legacy 가 .dprolist 로 감싸고 프로필마다 is-on
   · 진료일정 = 월간만(.msched: 올린 그림 → 달력 → 대표전화 안내, app.js 11절)
   ========================================================================== */
.dprolist > .dpro.is-on {
  grid-template-columns: minmax(0, 1fr) 460px;   /* 사진 칸 — 10/8 병원 '의료진 사진 크게'(사진은 자르지 않고 그대로 키운다, 360 → 460) */ align-items: start; gap: 2.4rem;
  padding: 2.6rem 0; border-top: 1px solid var(--line); animation: none;
}
.dprolist > .dpro.is-on:first-child { border-top: 0; padding-top: .6rem; }
.dprolist .dpro__name { margin-bottom: 1.3rem; }
.dprolist .dpro__spec { margin-bottom: 1.6rem; }
.dprolist .dpro__photo { align-self: start; }
/* '자세히 보기' · 약력은 전문분야 바로 밑(사용자 지시 9/29) — 약력은 글 칸 안에서 열린다(사진 옆, 달력 위) */
.dprolist .dpro__more { margin: 0 0 1.8rem; }
.dprolist .dpro__detail { grid-column: auto; margin: -.6rem 0 1.8rem; }
.dgroup + .dgroup { margin-top: 2.4rem; }
.dgroup__h {
  display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; padding-bottom: .7rem;
  border-bottom: 2px solid var(--navy); font-size: 1.4rem; font-weight: 800; color: var(--ink);
}
.dgroup__h span { font-size: .95rem; font-weight: 700; color: var(--text-mute); }

.msched { margin-bottom: 1.2rem; }
.msched__none { margin: 0; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem; line-height: 1.75; color: var(--text); }
.msched__tabs { display: flex; gap: .4rem; margin-bottom: .7rem; }
.msched__tab {
  min-height: 44px; padding: 0 1.15rem; border: 1.5px solid var(--line-2); border-radius: 100px; background: #fff;
  font-size: 1rem; font-weight: 800; color: var(--text);
}
.msched__tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.msched__pn[hidden] { display: none; }
.msched__pn .sched__base { margin-bottom: .35rem; }
.msched__pn .sched__chg { margin: 0 0 .6rem; }
.msched__img { margin: 0; }
.msched__img a { display: block; background: #fff; }   /* 10/12 테두리 없이 — 서식 그림이 아래 달력 표와 같게 보이도록 */
.msched__img img { display: block; width: 100%; height: auto; }
.msched__img figcaption { margin-top: .45rem; font-size: .9rem; color: var(--text-mute); }

@media (max-width: 1080px) { .dprolist > .dpro.is-on { grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; } }
@media (max-width: 860px) {
  .dprolist > .dpro.is-on { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .dprolist .dpro__photo { order: -1; max-width: 280px; margin-inline: auto; }
}

/* 안내 도우미 — 월간 일정 그림(2026-09-29) */
.cb-img { display: block; margin-top: .45rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.cb-img img { display: block; width: 100%; height: auto; }

/* 메인 화면(히어로)을 data/hero.json 으로 다시 그리는 동안(app.js 1절, 최대 2.5초) 옛 글 · 그림을 가린다 — 자리는 그대로라 화면이 밀리지 않는다 */
html.hero-wait .hero .hero__copy, html.hero-wait .hero .hero__vis { opacity: 0; }
.hero .hero__copy, .hero .hero__vis { transition: opacity .25s ease; }
.hero__ctrl[hidden] { display: none; }

/* ==========================================================================
   의료진 찾기(doctors.html, 2026-09-29) — 진료과 순서로 전 의료진 카드, 이름 · 진료과 · 전문분야로 거른다(app.js 18절)
   ========================================================================== */
.drf { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 0 0 1.8rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.drf__q { flex: 1 1 320px; min-width: 0; height: 52px; padding: 0 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 1.02rem; color: var(--ink); background: #fff; }
.drf__d { flex: 0 1 220px; min-width: 0; height: 52px; padding: 0 .9rem; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 1rem; color: var(--ink); background: #fff; }
.drf__q:focus, .drf__d:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 33, 136, .12); }
.drf__cnt { margin: 0 0 0 auto; font-size: 1rem; color: var(--text-mute); }
.drf__cnt b { color: var(--navy); font-size: 1.2rem; }
.drg + .drg { margin-top: 2.4rem; }
.drg[hidden], .drc[hidden] { display: none; }
.drg__h { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--navy); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.drg__h span { font-size: .95rem; font-weight: 700; color: var(--text-mute); }
.drl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.drc__a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.drc__a:hover, .drc__a:focus-visible { border-color: var(--navy); box-shadow: 0 8px 22px rgba(20, 26, 99, .1); }
.drc__ph { display: flex; align-items: flex-end; justify-content: center; height: 280px; background: linear-gradient(180deg, #eef2f8, #e2e8f1); }
.drc__ph img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: bottom; }
.drc__none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; width: 100%; height: 100%; color: var(--text-mute); }
.drc__none svg { width: 56px; height: 56px; }
.drc__body { display: flex; flex: 1; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.1rem; }
.drc__dept { font-size: .92rem; font-weight: 700; color: var(--green-cta); }
.drc__name { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.drc__name small { margin-left: .15rem; font-size: .92rem; font-weight: 600; color: var(--text-mute); }
.drc__spec { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: .95rem; line-height: 1.6; color: var(--text-mute); }
.drc__go { margin-top: auto; padding-top: .55rem; font-size: .95rem; font-weight: 800; color: var(--navy); }
.drc__go::after { content: " →"; }
.drf__none { padding: 1rem 1.1rem; border-radius: 10px; background: var(--bg-soft); }
.drf__none a { color: var(--green-cta); font-weight: 800; }
@media (max-width: 1080px) { .drl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .drl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .drc__ph { height: 210px; }
  .drc__body { padding: .8rem .85rem .9rem; }
  .drc__name { font-size: 1.12rem; }
  .drf__d { flex: 1 1 100%; }
  .drf__cnt { margin-left: 0; }
}

/* 오시는 길 버스 표(migrate_legacy.bus_block) — 휴대폰에서 정류장 이름이 '진남시/장'처럼 글자 중간에서 끊기지 않게 */
.legacy table.bus td:first-child { width: 8.5em; word-break: keep-all; }
.legacy table.bus td small { display: block; margin-top: .2rem; font-size: .85em; color: var(--text-mute); }

/* 메인 화면의 오려낸 그림(메달 · 배지 묶음)은 오른쪽 빠른 메뉴(떠 있는 세로 막대)를 피해 가운데에 — 넓은 배지 묶음(3번)이 막대 밑으로 들어갔다(10/1) */
@media (min-width: 1081px) { .hero--mix .hv--medal.on { padding-right: 96px; box-sizing: border-box; } }
/* 아래 68px 는 빠른 예약 칸이 덮는다 — 그림은 그 위 공간 가운데에(10/8 히어로를 줄이자 좁은 PC 에서 그림 밑이 칸에 가렸다) */
@media (min-width: 1081px) { .hero--mix .hv--medal.on { padding-bottom: 68px; } }

/* 메인 사진 가장자리는 덮개 색 대신 사진 자체를 투명하게 녹인다 — 덮개 색(#F4F7FB)이 위쪽의 더 밝은 바탕(#FAFBFD)과 달라
   사진 왼쪽에 세로 경계가 보였다(10/2 사용자 지적). 휴대폰(760px 이하)은 원래 이 방식(세로 녹임)이다 */
@media (min-width: 761px) {
  .hero--mix .hero__vis::after { content: none; }
  .hero--mix .hv .shot {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .45) 9%, #000 26%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .45) 9%, #000 26%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
}

/* ☰ 전체메뉴(1099px 이하)의 3뎁스 — 옆 패널 대신 [▾] 단추로 그 항목 아래에 펼친다(휴대폰에서 화면 밖으로 잘렸다, 병원 요청 10/1).
   항목 이름을 누르면 그 페이지로 가고, 오른쪽 [▾]를 누르면 하위 메뉴가 열린다 */
.mega__tg { display: none; }
@media (max-width: 1099px) {
  .mega__list > li.has-sub { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
  .mega__list > li.has-sub > a::after { content: none; }
  .mega__tg { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #7A8394; cursor: pointer; }
  .mega__tg::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .mega__list > li.is-open > .mega__tg::before { transform: translateY(2px) rotate(-135deg); }
  .mega__list > li.is-open > .mega__tg { color: var(--navy); }
  /* 마우스 · 초점으로 옆 패널이 뜨는 것과 남색 채움은 끈다 */
  .mega__list > li:hover > a, .mega__list > li:focus-within > a { background: transparent; color: var(--text); font-weight: 600; }
  .mega__list > li.has-sub:hover > .d3, .mega__list > li.has-sub:focus-within > .d3,
  .mega__list > li.has-sub:hover > .d3.d3--depts, .mega__list > li.has-sub:focus-within > .d3.d3--depts { display: none; }
  .mega__list > li.is-open > a { color: var(--navy); font-weight: 800; }
  .mega__list > li.has-sub.is-open > .d3, .mega__list > li.has-sub.is-open > .d3.d3--depts { display: block; }
  .d3, .mega__col:last-child .d3 {
    grid-column: 1 / -1; position: static; min-width: 0; min-height: 0; margin: 0 0 .5rem; padding: .25rem 0;
    background: #F2F5FA; border-radius: 8px;
  }
  .d3 a, .d3--depts a { padding: .5rem .8rem; color: var(--text); font-size: .95rem; font-weight: 600; line-height: 1.45; white-space: normal; }
  .d3 a:hover, .d3 a:focus-visible { background: #E6EBF3; text-decoration: none; }
}

/* ==========================================================================
   진료일정표(schedule.html, 병원 요청 10/1) — 외래 진료과 주간 진료 한눈에(app.js 19절). 색은 월간 달력(sCls)과 같은 뜻
   ========================================================================== */
.wsch__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.wsch__chip { padding: .45rem .9rem; border: 1.5px solid var(--line-2); border-radius: 100px; background: #fff; font-size: .95rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.wsch__chip:hover { border-color: var(--navy); color: var(--navy); }
.wsch__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0 0 1.6rem; font-size: .92rem; color: var(--text-mute); }
.wsch__k { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.wsch__k::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: currentColor; }
.wsch__k.on, .wsch__v.on { color: var(--navy); }
.wsch__k.ex, .wsch__v.ex { color: #007A37; }
.wsch__k.off, .wsch__v.off { color: #9AA1AD; }
.wsch__k.chk, .wsch__v.chk { color: #A15C07; }
.wsch__note { margin-left: auto; }
.wsch__dept + .wsch__dept { margin-top: 2.2rem; }
.wsch__dept { scroll-margin-top: 110px; }
.wsch__h { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .7rem; padding-bottom: .55rem; border-bottom: 2px solid var(--navy); font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.wsch__h span { font-size: .92rem; font-weight: 700; color: var(--text-mute); }
.wsch__t { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; font-size: .95rem; }
.wsch__t th, .wsch__t td { padding: .55rem .4rem; border: 1px solid var(--line); text-align: center; vertical-align: middle; }
.wsch__t thead th { background: var(--bg-soft); font-weight: 800; color: var(--ink); }
.wsch__t thead th:first-child { width: 9.5rem; }
.wsch__t tbody th { text-align: left; padding-left: .8rem; background: #fff; }
.wsch__t tbody th a { font-size: 1.05rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.wsch__t tbody th a:hover { color: var(--navy); text-decoration: underline; }
.wsch__t tbody th small { display: block; font-size: .85rem; font-weight: 600; color: var(--text-mute); }
.wsch__chg { display: inline-block; margin-top: .25rem; font-size: .8rem; font-weight: 700; color: #A15C07 !important; }
.wsch__v { display: block; font-weight: 700; line-height: 1.5; }
.wsch__v + .wsch__v { margin-top: .2rem; padding-top: .2rem; border-top: 1px dashed var(--line); }
.wsch__ask { color: var(--text-mute); }
.wsch__ask a, .wsch__foot a, .wsch__none a { color: var(--green-cta); font-weight: 800; }
.wsch__foot { margin: 2rem 0 0; padding: 1rem 1.1rem; border-radius: 10px; background: var(--bg-soft); font-size: .98rem; }
.wsch__none { padding: 1rem 1.1rem; border-radius: 10px; background: var(--bg-soft); }
@media (max-width: 760px) {
  .wsch__note { margin-left: 0; flex-basis: 100%; }
  .wsch__t { font-size: .88rem; }
  .wsch__t thead th:first-child { width: 7rem; }
  .wsch__t tbody th:first-child { position: sticky; left: 0; z-index: 1; }
}

/* 메인 배너 — 강조 문구 줄(예: 신규 의료진의 전 근무처, 병원 요청 '이 내용 강조') · 인물 사진(배경 없음)을 아래에 붙여 세우기(10/2) */
/* 10/6 병원 '더 강조' — 본문 크기(18px)라 이름표처럼 작았다 → 제목 다음으로 큰 글씨(약 26px) · 넓은 칸 · 그림자.
   배너 6장은 높이를 같이 쓴다(가장 긴 장 기준) → 커진 만큼 아래 버튼 간격을 줄여 배너 높이 · 빠른 예약 칸 위치는 그대로 */
.slide__point { display: inline-block; margin: 1.1rem 0 0; padding: .6rem 1.3rem; border-radius: 10px; background: var(--navy); color: #fff; font-size: min(1.5rem, 28px); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; box-shadow: 0 10px 24px rgba(30, 33, 136, .28); }   /* 28px 상한: 글자 크게(3단)에서도 한 줄 */
.slide__point + .slide__desc { margin-top: .85rem; }
.slide__point ~ .slide__btn { margin-top: 1.3rem; }
.hero--mix .hv--person.on { display: flex; align-items: flex-end; justify-content: center; }
.person4 { display: block; width: auto; height: 96%; max-width: 92%; object-fit: contain; object-position: bottom; }
/* 사진 칸 가운데보다 화면 가운데 쪽으로(사용자 '센터쪽으로 좀 옮기자' 10/2) — 오른쪽 여백을 늘려 왼쪽(글 쪽)으로 당긴다 */
/* 아래 68px 는 빠른 예약 칸이 덮는다 — 인물은 그 위에 서게(사용자 10/3 '왜 이렇게 아래야') */
@media (min-width: 1081px) { .hero--mix .hv--person.on { padding-right: 260px; padding-bottom: 76px; box-sizing: border-box; } }
/* 사진 파일은 좌우 · 위가 투명 여백이라 칸보다 조금 크게 그려도 사람은 칸 안에 든다 — 가운데로 옮기며 작아진 것을 되돌린다(사용자 10/3 '작아진 거 같아') */
@media (min-width: 1280px) { .hero--mix .hv--person .person4 { height: 104%; max-width: none; flex-shrink: 0; } }   /* 1280 미만은 글과 겹쳐 원래 크기 */
@media (min-width: 1081px) and (max-width: 1279px) { .hero--mix .hv--person.on { padding-right: 40px; } }   /* 좁은 PC 는 사진 칸이 좁아 오른쪽 여백을 줄여야 사진이 작아지지 않는다 */
@media (min-width: 1081px) and (max-width: 1279px) { .slide__point { font-size: min(1.5rem, 25px); } }   /* 좁은 PC 는 글 칸이 좁다 — 글자 크게(2 · 3단)에서도 강조 줄이 한 줄 */
@media (max-width: 760px) {
  .slide__point { margin-top: .7rem; padding: .45rem .9rem; font-size: min(1.08rem, 20px); box-shadow: 0 6px 14px rgba(30, 33, 136, .22); }
  .hero--mix .hv--person.on { display: flex; }
  .person4 { height: 100%; }
}

/* ==========================================================================
   글을 그림으로 — 이용안내 · 고객지원 · 시설안내 안내 페이지(scripts/guide_pages.py, 병원 요청 10/1 · 첨부 10/2)
   시간 카드(.gv-time) · 단계도(.gv-steps) · 아이콘 칸(.gv-cards) · 표(.gv-table) · 자주 묻는 질문(.gv-faq) · 층별안내(.gv-floor)
   ========================================================================== */
.legacy .gv-sub { margin-bottom: 2rem !important; }
.gv-ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: #EEF1FB; color: var(--navy); }
.gv-ico svg { width: 26px; height: 26px; }
.legacy .gv-note { margin: .5rem 0 0; font-size: .96rem; color: var(--text-mute); }
.legacy .gv-lead { margin: 0 0 1rem; color: var(--text); }
.legacy .gv-lead--box { padding: 1.1rem 1.3rem; border-radius: 10px; background: var(--bg-soft); border-left: 4px solid var(--navy); }
.legacy .gv-cap { margin: 0 0 .3rem; font-weight: 800; color: var(--ink); }

/* 시간 카드 — 참고: 전북대학교병원 진료안내(병원 요청) */
.gv-time { padding: 2rem 2.2rem 2.2rem; border-radius: 16px; background: linear-gradient(135deg, #2B3FB8 0%, var(--navy) 100%); color: #fff; }
.legacy .gv-time__h { margin: 0 !important; padding: 0; border: 0; color: #fff; font-size: 1.6rem; font-weight: 800; }
.legacy .gv-time__s { margin: .4rem 0 1.4rem; font-size: .94rem; color: rgba(255, 255, 255, .82); }
.gv-time__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gv-tcard { position: relative; padding: 1.3rem 1.4rem 1.3rem; border-radius: 12px; background: #fff; color: var(--ink); }
.legacy .gv-tcard__k { margin: 0 0 .7rem; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.gv-tcard__k small { margin-left: .3rem; font-size: .88rem; font-weight: 600; color: var(--text-mute); }
.legacy .gv-tcard__row { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 .35rem; }
.gv-tcard__row span { flex-shrink: 0; width: 4.6rem; font-size: .95rem; font-weight: 700; color: var(--text-mute); }
.gv-tcard__row b { font-size: 1.45rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.gv-tcard__ico { position: absolute; top: 1.1rem; right: 1.1rem; background: #EEF1FB; }
.gv-time__bar { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 1rem; padding: 1rem 1.4rem; border-radius: 12px; background: #fff; color: var(--ink); }
.legacy .gv-time__bar p { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.gv-time__bar b { font-size: 1.15rem; font-weight: 800; }
.legacy .gv-time__bar a { color: var(--red-em); font-weight: 800; text-decoration: none; }
.gv-pill { display: inline-block; padding: .2rem .7rem; border-radius: 6px; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 800; }
.gv-pill--em { background: var(--red-em); }

/* 단계도 — 넓은 화면은 가로(동그라미 + 화살표), 휴대폰은 세로 */
.legacy .gv-steps { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 1.6rem; margin: .4rem 0 1.4rem; padding: 0; list-style: none; counter-reset: none; }
.legacy .gv-step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0; text-align: center; }
.gv-step + .gv-step::before {
  content: ""; position: absolute; top: 56px; left: -1.15rem; width: 10px; height: 10px;
  border-right: 2px solid #A7AEBA; border-top: 2px solid #A7AEBA; transform: translateY(-50%) rotate(45deg);
}
.gv-step__c { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; }
.gv-step__c .gv-ico { width: 60px; height: 60px; }
.gv-step__no { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff !important; font-size: .9rem; }
.gv-step__t { margin: .9rem 0 .4rem; font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.legacy .gv-step__d { margin: 0 0 .3rem; font-size: .98rem; line-height: 1.65; }
.legacy .gv-step__n { margin: .2rem 0 0; font-size: .92rem; line-height: 1.55; color: var(--text-mute); }

/* 아이콘 칸 */
.legacy .gv-cards { display: grid; gap: 1rem; margin: .4rem 0 1rem; padding: 0; list-style: none; }
.gv-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gv-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legacy .gv-card { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gv-card__b { min-width: 0; }
.gv-card__t { display: block; margin: .2rem 0 .35rem; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.legacy .gv-card__d { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.7; }
.legacy .gv-card__n { margin: .25rem 0 0; font-size: .93rem; line-height: 1.6; color: var(--text-mute); }
.legacy .gv-card__ul { margin: .1rem 0 .3rem; }
.legacy .gv-card__ul li { position: relative; padding: .12rem 0 .12rem .9rem; font-size: 1rem; line-height: 1.65; }
.gv-card__ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.legacy .gv-cards--center .gv-card { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1.2rem; background: var(--bg-soft); border-color: transparent; }
.gv-cards--long .gv-card { align-items: flex-start; }

/* 표(진하게 줄 머리) */
.legacy .gv-table thead th { background: var(--navy); color: #fff; }
.legacy .gv-table tbody th { width: 11rem; background: var(--bg-soft); color: var(--ink); white-space: nowrap; }
.legacy .gv-table--sym td { text-align: left; }
.legacy .gv-table--time td { font-size: 1.08rem; font-weight: 700; color: var(--ink); }

/* 응급실 전화 · 응급의료관리료 */
.gv-call { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; border-radius: 14px; background: #FDECEC; border: 1px solid #F6C9CA; }
.gv-call__ico { width: 64px; height: 64px; background: var(--red-em); color: #fff; }
.gv-call__ico svg { width: 32px; height: 32px; }
.legacy .gv-call__k { margin: 0 0 .2rem; font-size: 1.08rem; }
.legacy .gv-call__tel { font-size: 1.7rem; font-weight: 900; color: var(--red-em); text-decoration: none; }
.gv-fee { padding: 1.4rem 1.6rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.legacy .gv-fee__def { margin: 0 0 1rem; }
.gv-fee__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.gv-fee__grid > div { padding: 1rem 1.1rem; border-radius: 10px; background: var(--bg-soft); }
.gv-fee__grid dt { font-size: .92rem; font-weight: 800; color: var(--text-mute); }
.gv-fee__grid dd { margin: .2rem 0 0; font-size: 1.05rem; }
.gv-fee__grid dd b { font-size: 1.25rem; color: var(--navy); }

/* 대리처방 요건 */
.gv-case { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); align-items: stretch; gap: 1rem; }
.gv-case__i { padding: 1.3rem 1.4rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.gv-case__k { display: inline-block; padding: .2rem .7rem; border-radius: 6px; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 800; }
.legacy .gv-case__t { margin: .7rem 0 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.gv-case__or { align-self: center; font-weight: 800; color: var(--text-mute); }
.legacy .gv-case__ol { margin: .7rem 0 0; padding-left: 1.3rem; list-style: decimal; }
.legacy .gv-case__ol li { padding: .1rem 0; }

/* 서식 내려받기 · 이어보기 */
.gv-dls { display: flex; flex-wrap: wrap; gap: .8rem; }
.legacy .gv-dl { display: inline-flex; align-items: center; gap: .9rem; padding: .9rem 1.4rem .9rem 1rem; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; }
.legacy .gv-dl:hover { background: var(--navy-deep); }
.gv-dl .gv-ico { width: 40px; height: 40px; background: rgba(255, 255, 255, .16); color: #fff; }
.gv-dl .gv-ico svg { width: 22px; height: 22px; }
.gv-dl small { display: block; font-size: .85rem; font-weight: 600; opacity: .85; }
.gv-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 2.4rem; }
.legacy .gv-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.legacy .gv-link:hover { border-color: var(--navy); }
.gv-link b { display: block; font-size: 1.05rem; }
.gv-link small { display: block; font-size: .92rem; color: var(--text-mute); }
.gv-link > span:nth-child(2) { flex: 1; min-width: 0; }
.gv-link__go { width: 28px; height: 28px; background: transparent; color: var(--text-mute); }
.gv-link__go svg { width: 20px; height: 20px; }

/* 물리치료 · 식사 시간 */
.gv-tt { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gv-tt__i { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 12px; background: var(--bg-soft); }
.gv-tt__i strong { font-size: 1.1rem; }
.legacy .gv-tt__loc { margin: .2rem 0 .4rem; font-size: .96rem; color: var(--text-mute); }
.gv-tt__i dl { margin: .5rem 0; }
.gv-tt__i dl > div { display: flex; gap: .8rem; }
.gv-tt__i dt { width: 3.4rem; font-weight: 800; color: var(--navy); }
.gv-tt__i dd { margin: 0; font-weight: 700; color: var(--ink); }

/* 자주 묻는 질문 */
.gv-faq { border-top: 2px solid var(--navy); }
.gv-faq__i { border-bottom: 1px solid var(--line); }
.gv-faq__i summary { display: flex; align-items: center; gap: .9rem; padding: 1.2rem .4rem; cursor: pointer; list-style: none; }
.gv-faq__i summary::-webkit-details-marker { display: none; }
.gv-faq__q { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; }
.gv-faq__q--a { background: var(--green-cta); }
.gv-faq__t { flex: 1; font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.gv-faq__arr { width: 28px; height: 28px; background: transparent; color: var(--text-mute); transform: rotate(90deg); transition: transform .2s; }
.gv-faq__i[open] .gv-faq__arr { transform: rotate(-90deg); }
.gv-faq__a { display: flex; gap: .9rem; padding: 0 .4rem 1.4rem; }
.gv-faq__a > div { flex: 1; padding: 1rem 1.2rem; border-radius: 10px; background: var(--bg-soft); }
.legacy .gv-faq__a p { margin: 0 0 .35rem; }
.legacy .gv-faq__a ul { margin: 0 0 .5rem; }
.legacy .gv-faq__a li { position: relative; padding-left: .9rem; }
.gv-faq__a li::before { content: ""; position: absolute; left: 0; top: .82em; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.legacy .gv-faq__h { margin-top: .7rem !important; font-weight: 800; color: var(--navy); }
.legacy .gv-faq__more { margin-top: 1.6rem; }

/* 층별안내 — 형식: 병원 첨부 층별안내도(본관 · 신관 두 줄, 층 번호 칸, 주요 시설 강조) */
.legacy .gv-fl__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.2rem; font-size: .95rem; }
.gv-fl__note { color: var(--text-mute); }
.gv-floor { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.gv-fl { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.legacy .gv-fl__h { margin: 0; padding: .8rem 1.2rem; background: #3D8FD6; color: #fff; font-size: 1.2rem; letter-spacing: .3em; text-align: center; }
.gv-fl--annex .gv-fl__h { background: var(--navy); }
.legacy .gv-fl__list { margin: 0; padding: 0; list-style: none; }
.legacy .gv-fl__row { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); padding: 0; border-top: 1px solid var(--line); }
.legacy .gv-fl__no { display: grid; place-items: center; background: #3D8FD6; color: #fff; font-size: 1.1rem; font-weight: 800; }
.legacy .gv-fl--annex .gv-fl__no { background: var(--navy); }
.gv-fl__items { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .85rem 1rem; min-height: 4.2rem; }
.gv-fl__x { display: inline-block; padding: .15rem .1rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.gv-fl__x + .gv-fl__x:not(.is-em)::before { content: "·"; margin-right: .5rem; color: #B5BAC4; }
.gv-fl__x.is-ward { color: var(--navy); font-weight: 800; }
.gv-fl__x.is-em { padding: .15rem .55rem; border-radius: 6px; background: var(--red-em); color: #fff; }
.gv-fl__legend .gv-fl__x::before { content: none !important; }
.gv-fl__bridge { flex-basis: 100%; font-size: .85rem; font-weight: 700; color: var(--text-mute); }
.gv-fl__bridge::before { content: "⇆ "; }
.gv-fl__exs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.gv-fl__ex { padding: 1rem 1.2rem; border-radius: 12px; background: #EEF3FC; }
.gv-fl__ex b { font-size: 1.1rem; color: var(--navy); }
.legacy .gv-fl__ex p { margin: .3rem 0 0; }

@media (max-width: 1080px) {
  .gv-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .gv-time { padding: 1.4rem 1.1rem 1.2rem; }
  .gv-time__grid, .gv-tt, .gv-links, .gv-fl__exs, .gv-floor, .gv-fee__grid { grid-template-columns: 1fr; }
  .gv-tcard__row b { font-size: 1.25rem; }
  .legacy .gv-steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 1rem; }
  .legacy .gv-step { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 1rem; align-items: start; text-align: left; }
  .gv-step__c { grid-row: span 3; width: 76px; height: 76px; }
  .gv-step__c .gv-ico { width: 44px; height: 44px; }
  .gv-step__c .gv-ico svg { width: 22px; height: 22px; }
  .gv-step__no { width: 28px; height: 28px; font-size: .8rem; }
  .gv-step__t { margin: .3rem 0 .2rem; }
  .gv-step + .gv-step::before { top: -.75rem; left: 38px; transform: translate(-50%, -50%) rotate(135deg); }
  .gv-cards--2, .gv-cards--3 { grid-template-columns: 1fr; }
  .gv-case { grid-template-columns: 1fr; }
  .legacy .gv-table tbody th { width: 7rem; white-space: normal; }
  .gv-call { flex-direction: column; text-align: center; }
}

/* 병원소식 새 글 보기(news-view.html · app.js 21절, 2026-10-07 게시판) */
.nv__wait { padding: 2rem 0; color: var(--text-mute); }
.nv__pv { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 4px; background: #FFF6E5; color: #6B4A00; font-weight: 700; }
.post__img img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
.post__files { margin: 1.6rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-soft); }
.post__files h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--ink); }
.post__files ul { margin: 0; padding-left: 1.1rem; }
.post__files li { margin: .3rem 0; }
.post__files a { font-weight: 700; color: var(--navy); word-break: break-all; }
.post__files small { color: var(--text-mute); }

/* 예약 — 상담 가능시간(10/10 병원 요청, 진료 · 검진 예약 공통) */
.rhours { margin: 0 0 1.4rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.rhours__h { margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 800; color: var(--navy); }
.rhours__l { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin: 0; padding: 0; list-style: none; font-weight: 700; color: var(--ink); }
.rhours__n { margin: .5rem 0 0; font-size: .95rem; color: var(--text-mute); }


/* 고객의 소리 — 내 글 · 답변 확인(app.js 23절) */
.vlist { display: grid; gap: 1rem; margin-top: 1.2rem; }
/* 업무분장표(특수검진센터, 10/13) */
.duty th[scope="rowgroup"] { white-space: nowrap; }
.duty td a { white-space: nowrap; color: inherit; }
.vitem { padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.vitem__m { margin: 0 0 .4rem; font-size: .95rem; color: var(--text-mute); }
.vitem__c { display: inline-block; margin-right: .3rem; padding: .1rem .55rem; border-radius: 4px; background: var(--bg-soft); font-weight: 700; color: var(--navy); }
.vitem__st { margin-left: .4rem; color: var(--text-mute); }
.vitem__st.is-done { color: var(--green-cta); }
.vitem__t { margin: 0 0 .5rem; font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.vitem__b { margin: 0; line-height: 1.75; color: var(--ink); word-break: break-word; }
.vitem__a { margin-top: 1rem; padding: 1rem 1.2rem; border-left: 3px solid var(--green-cta); border-radius: 6px; background: var(--bg-soft); line-height: 1.75; }
.vitem__a p { margin: 0; }
.vitem__ah { margin-bottom: .3rem !important; font-weight: 800; color: var(--navy); }
.vitem__ah span { margin-left: .4rem; font-size: .9rem; font-weight: 600; color: var(--text-mute); }
.vitem__wait { margin: .6rem 0 0; color: var(--text-mute); }
