@charset "utf-8";
/* =====================================================================
   국토교통부 영문 조직도 (Organization Chart)
   - 형식: 국문 '조직안내' 조직도와 같게
     (기준: /USR/WPGE0201/m_212/DTL.jsp , /css/www2026/212/style.css)
   - 적용 범위: .eorg 안쪽만. 모든 선택자가 .eorg 로 시작하므로
     페이지의 다른 부분(머리말·꼬리말·Affiliates 등)에는 영향이 없습니다.
   - 영문 사이트 common.css 가 div·ul·li 에 직접 주는 색·글자 크기·
     줄 간격·자간 값을 .eorg 안에서는 모두 다시 지정합니다.

   화면 폭별 배치 (영문 사이트 본문 폭에 맞춤)
   - 1281px 이상 : 실·국 한 줄 (국문 PC 화면과 같음)
   - 1280px 이하 : 실·국 2단 (국문 태블릿 화면과 같음.
                   이 구간은 영문 사이트 본문이 765px 안팎이라 한 줄 5칸은 좁음)
   - 767px 이하  : 장관·대변인·감사관 칸도 태블릿 배치로
   - 480px 이하  : 1단 + 실·국 펼치기/접기 (국문 휴대폰 화면과 같음,
                   펼치기/접기는 organization.html 아래쪽 스크립트가 켬)
   ===================================================================== */

/* ---------------------------------------------------------------------
   기본
   --------------------------------------------------------------------- */
.eorg,
.eorg *,
.eorg *::before,
.eorg *::after {
	box-sizing: border-box;
}

.eorg {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	color: #333;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.02em;
	text-align: center;
	word-break: keep-all;
	overflow-wrap: break-word;
}

/* 사이트 공통 초기화 값(div·ul·li 의 색·크기 등)을 끊고 .eorg 값을 물려받게 함 */
.eorg div,
.eorg ul,
.eorg li,
.eorg strong,
.eorg span {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-align: inherit;
}

.eorg ul,
.eorg li {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	list-style: none;
}

/* 글자가 들어가는 칸 공통 */
.eorg .eorg-minister,
.eorg .eorg-vice-head,
.eorg .eorg-bureau-head,
.eorg .eorg-box-head,
.eorg .eorg-list > li,
.eorg .eorg-direct-2 > li {
	display: block;
	margin: 0;
	padding: 14px 12px;
	text-align: center;
}

/* ---------------------------------------------------------------------
   장관
   --------------------------------------------------------------------- */
.eorg .eorg-level-1 {
	margin-bottom: 30px;
}

.eorg .eorg-minister {
	width: 220px;
	margin: 0 auto;
	border-radius: 4px;
	background: #112a52;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

/* 장관 직속 (Spokesperson, Inspector General) */
.eorg .eorg-direct-1 {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 15px;
}

.eorg .eorg-direct-1 > li {
	display: flex;
	flex-direction: column;
	width: 200px;
}

.eorg .eorg-direct-1 .eorg-box-head {
	font-weight: 500;
}

/* ---------------------------------------------------------------------
   차관
   --------------------------------------------------------------------- */
.eorg .eorg-level-2 {
	margin-top: 20px;
}

.eorg .eorg-vice + .eorg-vice {
	margin-top: 30px;
}

.eorg .eorg-vice-head {
	width: 100%;
	margin: 0 0 15px;
	border-radius: 4px;
	background: #3b5998;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

/* 차관 직속 (General Affairs Division) */
.eorg .eorg-direct-2 {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.eorg .eorg-direct-2 > li {
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	background: #f8fafc;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
	font-weight: 500;
}

/* ---------------------------------------------------------------------
   실·국 (파란 박스)
   --------------------------------------------------------------------- */
/* 실·국을 한 줄에 같은 너비로 놓고, 파란 박스 높이를 줄마다 같게 맞춤
   (subgrid 를 모르는 오래된 브라우저에서는 박스 높이만 제각각으로 보임) */
.eorg .eorg-bureaus {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	grid-template-rows: auto auto;
	column-gap: 15px;
}

.eorg .eorg-bureau {
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	min-width: 0;
}

.eorg .eorg-bureau-head {
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 4px;
	background: #5a7bb5;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.eorg .eorg-bureau-head .eorg-sub {
	display: block;
	font-size: 13px;
	font-weight: 500;
}

/* 실·국 아래 묶음 */
.eorg .eorg-groups {
	margin-top: 15px;
}

.eorg .eorg-groups > li + li {
	margin-top: 15px;
}

/* ---------------------------------------------------------------------
   관·과 상자 (흰 상자 + 회색 머리 + 점선 구분)
   --------------------------------------------------------------------- */
.eorg .eorg-box {
	display: block;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	background: #fff;
}

.eorg .eorg-box-head {
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
	font-weight: 700;
}

/* 아래 과가 없는 관·단 */
.eorg .eorg-box-head:last-child {
	border-bottom: 0;
}

.eorg .eorg-list > li {
	border-bottom: 1px dashed #e2e8f0;
	font-weight: 400;
}

.eorg .eorg-list > li:last-child {
	border-bottom: 0;
}

/* ---------------------------------------------------------------------
   1280px 이하 : 실·국 2단
   --------------------------------------------------------------------- */
@media (max-width: 1280px) {
	.eorg .eorg-bureaus {
		display: block;
		column-count: 2;
		column-gap: 15px;
	}

	.eorg .eorg-bureau {
		display: inline-block;
		grid-row: auto;
		width: 100%;
		margin-bottom: 20px;
		vertical-align: top;
		-webkit-column-break-inside: avoid;
		break-inside: avoid;
	}
}

/* ---------------------------------------------------------------------
   767px 이하 : 장관·직속 칸 태블릿 배치
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
	.eorg .eorg-minister {
		width: 100%;
	}

	.eorg .eorg-direct-1 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 15px;
	}

	.eorg .eorg-direct-1 > li {
		width: auto;
	}

	.eorg .eorg-direct-1 .eorg-box-head,
	.eorg .eorg-direct-2 > li {
		font-weight: 600;
	}

	.eorg .eorg-direct-2 {
		display: block;
		margin-bottom: 15px;
	}
}

/* ---------------------------------------------------------------------
   480px 이하 : 1단 + 펼치기/접기
   --------------------------------------------------------------------- */
@media (max-width: 480px) {
	.eorg .eorg-direct-1 {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.eorg .eorg-bureaus {
		display: flex;
		flex-direction: column;
		gap: 10px;
		column-count: auto;
	}

	.eorg .eorg-bureau {
		display: block;
		margin-bottom: 0;
	}

	/* 아래는 스크립트가 .eorg-accordion 을 붙였을 때만 적용
	   (스크립트가 없으면 모두 펼친 상태로 보임) */
	.eorg.eorg-accordion .eorg-toggle {
		position: relative;
		padding-right: 40px;
		padding-left: 40px;
		cursor: pointer;
	}

	.eorg.eorg-accordion .eorg-toggle::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 18px;
		width: 8px;
		height: 8px;
		margin-top: -6px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.eorg.eorg-accordion .eorg-direct-1 .eorg-toggle::after {
		border-color: #64748b;
	}

	.eorg.eorg-accordion .eorg-toggle[aria-expanded="true"]::after {
		margin-top: -2px;
		transform: rotate(225deg);
	}

	.eorg.eorg-accordion .eorg-toggle:focus-visible {
		outline: 2px solid #112a52;
		outline-offset: 2px;
	}

	.eorg.eorg-accordion .eorg-toggle[aria-expanded="false"] + ul {
		display: none;
	}

	.eorg.eorg-accordion .eorg-direct-1 .eorg-toggle[aria-expanded="false"] {
		border-bottom: 0;
	}

	.eorg.eorg-accordion .eorg-bureau-head + .eorg-groups {
		margin-top: 10px;
	}
}
