/* ============================================================
   PMC 박병원 v2 진료과 공통 스타일
   - 의료진 페이지 (moXX02.asp 13개)
   - 진료과 소개 타입 B 인포그래픽 갤러리 (mo02, mo0203 등 12개)
   - 공통 서브바 include 제외 (inc/floating_subbar.asp 자체 스타일)
   - 2026-04-24 Phase E 정식 승격 시 추출
   ============================================================ */

/* ===== 의료진 페이지 v2 공통 ===== */
/* ===== v2 레이아웃: 사이드바 없는 풀와이드 ===== */
#s_contents_v2 {
	position: relative;
	clear: both;
	width: 1200px;
	margin: 0 auto;
	padding: 30px 0 0 0;
}
#contents_v2 {
	position: relative;
	width: 100%;
}
#contents_v2 #stitle { position: relative; clear: both; }
#contents_v2 #stitle .title {
	font-size: 32px;
	font-weight: 700;
	color: #1d1d1f;
	letter-spacing: -0.03em;
}
#contents_v2 #stitle .loca { position: absolute; right: 0; top: 8px; }
#contents_v2 #stitle .loca ul li {
	float: left;
	font-size: 13px;
	color: #86868b;
	padding: 0 8px;
}
#contents_v2 #stitle .loca ul li:after { content: '>'; margin-left: 16px; color: #d2d2d7; }
#contents_v2 #stitle .loca ul li:last-child:after { display: none; }
#contents_v2 #stitle .loca ul li.home {
	background: url(../images/sub/icon_home.gif) no-repeat 0 center;
	padding-left: 20px;
}

/* 진료과 선택 탭 (v2: 플로팅 서브바가 대체 → 숨김) */
#contents_v2 .doctors_medical { display: none !important; }

/* 타이틀 숨김 (인라인 서브바가 대체) */
#contents_v2 #stitle .title { display: none !important; }
#contents_v2 #stitle .loca { display: none !important; }
#contents_v2 #stitle { min-height: 0; margin-top: 0; }

/* ===== 의료진 행 (flex: 사진 좌 + 정보 우) ===== */
.doc-row {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #e8e8e8;
	padding: 120px 0 0;
	min-height: 600px;
}
.doc-row:first-of-type {
	padding-top: 50px;
}
.doc-row:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}
.doc-section:last-child {
	margin-bottom: 0;
	padding-bottom: 40px;
}

/* 사진 컬럼: sticky 하단 고정 (참조은병원 스타일) */
.doc-photo-col {
	flex: 0 0 500px;
	position: relative;
	align-self: stretch;
}
.doc-photo-sticky {
	position: sticky;
	top: 70px;
}
.doc-photo-sticky img {
	width: 100%;
	max-width: 450px;
	height: auto;
	object-fit: contain;
}
.doc-photo-col:empty,
.doc-photo-col:not(:has(img)) {
	visibility: hidden;
}

/* 정보 컬럼: 돋보기 우측 끝 기준 정렬 */
.doc-info-col {
	flex: 1;
	padding-left: 60px;
	min-width: 0;
}

/* 과 태그 */
.doc-dept-tag {
	display: inline-block;
	color: #ff842f;
	font-size: 35px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 20px;
}

/* 이름 */
.doc-name-v2 {
	font-size: 40px;
	font-weight: 800;
	color: #1d1d1f;
	letter-spacing: -0.04em;
	line-height: 1.2;
	margin: 0 0 6px 0;
}
.doc-title-v2 {
	font-size: 20px;
	font-weight: 500;
	color: #424245;
	margin-left: 10px;
}
.doc-subtitle-v2 {
	font-size: 20px;
	color: #424245;
	margin: 4px 0 0;
	letter-spacing: -0.02em;
}

/* 구분선 → 여백으로 대체 */
.doc-divider {
	height: 0;
	margin: 28px 0 0;
}

/* 섹션 */
.doc-section {
	margin-bottom: 36px;
}
.doc-section-label {
	font-size: 18px;
	font-weight: 700;
	color: #ff842f;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
}
/* 전체보기 버튼 (섹션 타이틀 우측) */
.doc-section-label .btn-month-v2 {
	margin-left: auto;
	font-size: 14px;
}

/* 전문분야 */
.doc-specialty-text {
	font-size: 17px;
	color: #1d1d1f;
	line-height: 1.8;
	letter-spacing: -0.02em;
	margin: 0;
}

/* 일정 테이블 (모바일 동일 스타일) — #doctor로 specificity 확보 */
#doctor .doc-sch-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e5ea;
}
#doctor .doc-sch-table thead th {
	background: #ff842f;
	color: #fff;
	font-weight: 600;
	padding: 12px 0;
	font-size: 14px;
	text-align: center;
	border: none;
}
#doctor .doc-sch-table thead th:first-child {
	border-radius: 12px 0 0 0;
}
#doctor .doc-sch-table thead th:last-child {
	border-radius: 0 12px 0 0;
}
#doctor .doc-sch-table tbody th {
	padding: 14px 10px;
	font-weight: 600;
	color: #424245;
	background: #fff;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	border-right: 1px solid #f0f0f0;
	border-left: none;
	font-size: 14px;
}
#doctor .doc-sch-table tbody td {
	padding: 14px 8px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	border-left: none;
	color: #d2d2d7;
	font-size: 14px;
	background: #fff;
}
/* 비고 행(colspan 6)은 실제 텍스트가 있으므로 본문 색상 적용 */
#doctor .doc-sch-table tbody td[colspan] {
	color: #1d1d1f;
}
#doctor .doc-sch-table thead th.th-today {
	background: #d45500;
}
#doctor .doc-sch-table tbody td.td-today {
	background: #fff5ee;
}
#doctor .doc-sch-table td.td-today .sch-work {
	color: #1d1d1f;
}
#doctor .doc-sch-table td.td-today .sch-surg {
	color: #ff842f;
}
.sch-work {
	color: #1d1d1f;
	font-weight: 700;
}
.sch-surg {
	color: #ff842f;
	font-weight: 700;
}

/* 월 전체보기 */
.btn-month-v2 {
	font-size: 14px;
	color: #ff842f;
	font-weight: 500;
	text-decoration: none;
}
.btn-month-v2:hover {
	text-decoration: underline;
}

/* 약력 */
.doc-career-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.doc-career-list li {
	position: relative;
	padding: 6px 0 6px 18px;
	font-size: 16px;
	color: #424245;
	line-height: 1.8;
	letter-spacing: -0.02em;
}
.doc-career-list li:before {
	content: '';
	position: absolute;
	left: 0;
	top: 14px;
	width: 5px;
	height: 5px;
	background: #ff842f;
	border-radius: 50%;
}

/* 약력 섹션 구분 <br> -> spacer (점 없이 빈 줄 간격) */
.doc-career-list li.career-spacer {
	padding: 0;
	height: 16px;
}
.doc-career-list li.career-spacer:before { display: none; }

/* ===== 월간 모달 =====
   z-index: 서브바(인라인 10002 / 플로팅 10001 / 헤더 10005)보다 위로 올려 가림 방지 */
.sch-overlay-v2 {
	position: fixed;
	inset: 0;
	background: rgba(255,255,255,0.72);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	z-index: 20000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.sch-overlay-v2.active {
	opacity: 1;
	pointer-events: auto;
}
.sch-modal-v2 {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	background: #fff;
	border-radius: 20px;
	width: min(1040px, calc(100vw - 40px));
	max-height: 85vh;
	overflow-y: auto;
	z-index: 20001;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.32,0.72,0,1);
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.sch-modal-v2.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%) scale(1);
}
/* 2열 그리드: 좌 의료진 패널 + 우 달력 패널 */
.sch-modal-body-v2 {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 24px;
	padding: 24px 28px 24px 24px;
}
/* 좌측 의료진 패널: 상단 텍스트 + 하단 사진 (흰색 배경, 테두리 제거)
   padding-top: 우측 달력 타이틀(.sch-modal-hd padding-top:8)과 수평 정렬 */
.sch-doc-panel {
	background: #fff;
	padding: 8px 20px 32px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.sch-doc-panel .sch-doc-info { text-align: left; }
.sch-doc-panel .sch-doc-dept {
	color: #ff842f;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 16px;
}
.sch-doc-panel .sch-doc-name {
	font-size: 36px;
	font-weight: 800;
	color: #1d1d1f;
	letter-spacing: -0.03em;
	line-height: 1.2;
	margin: 0 0 10px;
}
.sch-doc-panel .sch-doc-name span {
	display: inline;
	font-size: 18px;
	font-weight: 500;
	color: #424245;
	margin-left: 10px;
	letter-spacing: -0.01em;
}
.sch-doc-panel .sch-doc-sub {
	font-size: 18px;
	color: #424245;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
}
.sch-doc-panel .sch-doc-photo {
	margin-top: auto;
	padding-top: 16px;
	text-align: center;
}
.sch-doc-panel .sch-doc-photo img {
	width: 100%;
	max-width: 320px;
	max-height: 360px;
	height: auto;
	display: block;
	margin: 0 auto;
	object-fit: contain;
}

/* 우측 달력 패널 */
.sch-cal-panel { min-width: 0; }

/* 헤더: 오렌지 타이틀 */
.sch-modal-hd {
	display: flex;
	align-items: center;
	padding: 8px 0 20px;
}
.sch-modal-tt {
	font-size: 22px;
	font-weight: 700;
	color: #1d1d1f;
	letter-spacing: -0.02em;
}

/* 닫기 X: 모달 우상단 절대 위치로 분리 */
.sch-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #1d1d1f;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	transition: transform 0.2s, background 0.2s;
	z-index: 10;
}
.sch-modal-close svg { width: 16px; height: 16px; }
.sch-modal-close:hover { transform: scale(1.08); background: #1d1d1f; }
.sch-modal-bd { padding: 0; }
/* 달력 테이블 래퍼: 외곽 둥근 border + overflow:hidden으로 상하 모서리 모두 radius 처리 */
.sch-cal-wrap {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #f0f0f0;
}
.sch-cal-v2 {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.sch-cal-v2 thead th {
	font-size: 15px;
	font-weight: 600;
	color: #fff !important;
	padding: 12px 0;
	text-align: center;
	background: #ff842f !important;
	border: none !important;
}
.sch-cal-v2 tbody td {
	vertical-align: top;
	padding: 12px 4px;
	height: 84px;
	border-bottom: 1px solid #f0f0f0;
	text-align: center;
}
/* 마지막 행 하단 border 제거 (wrapper가 외곽선 담당, 중복 방지) */
.sch-cal-v2 tbody tr:last-child td { border-bottom: none; }
.sch-day { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sch-dt {
	font-size: 17px;
	font-weight: 600;
	color: #86868b;
	margin-bottom: 4px;
}
.sch-day.today .sch-dt {
	background: #ff842f;
	color: #fff;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	line-height: 30px;
	display: inline-block;
}
.sch-am, .sch-pm { font-size: 14px; line-height: 1.4; }
.sch-am.work, .sch-pm.work { color: #1d1d1f; font-weight: 600; }
.sch-am.surg, .sch-pm.surg { color: #ff842f; font-weight: 700; }
.sch-am.off, .sch-pm.off { color: #d2d2d7; }
.sch-note {
	font-size: 14px;
	color: #86868b;
	line-height: 1.5;
	margin: 16px 0 0;
	padding: 0 4px;
}

/* ===== 진료과 소개 (타입 B 인포그래픽 갤러리) ===== */
/* ===== v2 레이아웃 ===== */
#s_contents_v2 {
	position: relative;
	clear: both;
	width: 1200px;
	margin: 0 auto;
	padding: 30px 0 0 0;
}
#contents_v2 { position: relative; width: 100%; }
#contents_v2 #stitle { position: relative; clear: both; }
#contents_v2 #stitle .title,
#contents_v2 #stitle .loca { display: none !important; }
#contents_v2 #stitle { min-height: 0; margin-top: 0; }

/* ===== 분과 소개 콘텐츠 ===== */
.dept-intro { padding: 40px 0 80px; }

.dept-intro-hero {
	padding: 0 0 60px;
	border-bottom: 1px solid #e8e8e8;
	margin-bottom: 60px;
}
.dept-intro-hero .eyebrow {
	color: #ff842f;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}
.dept-intro-hero h1 {
	font-size: 52px;
	font-weight: 800;
	color: #1d1d1f;
	letter-spacing: -0.04em;
	line-height: 1.1;
	margin: 0 0 20px;
}
.dept-intro-hero .subtitle {
	font-size: 22px;
	color: #424245;
	letter-spacing: -0.02em;
	line-height: 1.5;
	margin: 0;
	max-width: 800px;
}

/* 인포그래픽 이미지 갤러리 */
.dept-infographic-gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin-bottom: 72px;
}
.dept-infographic-gallery img {
	width: 100%;
	max-width: 980px;
	height: auto;
	display: block;
}

/* CTA */
.dept-intro-cta {
	margin-top: 48px;
	padding: 48px 0;
	text-align: center;
	background: #fff7f0;
	border-radius: 24px;
}
.dept-intro-cta h2 {
	font-size: 32px;
	font-weight: 700;
	color: #1d1d1f;
	letter-spacing: -0.03em;
	margin: 0 0 12px;
}
.dept-intro-cta p {
	font-size: 18px;
	margin: 0 0 28px;
	color: #424245;
}
.dept-intro-cta .cta-btn {
	display: inline-block;
	padding: 14px 36px;
	border-radius: 980px;
	background: #ff842f;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}
.dept-intro-cta .cta-btn:hover { background: #d45500; color: #fff; text-decoration: none; }
