/*
Theme Name: Airport Bus Guide
Theme URI: https://example.com/
Author: Your Name
Description: 공항 교통 안내형 워드프레스 테마. 메가메뉴, 서브 탭, 지역별 버스 노선 검색과 노선 상세 모달, 예매 바로가기, 공유/인쇄/글씨 크기 도구, 페이지 만족도 조사를 포함합니다.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airport-bus
*/

/* =========================================================================
   1. 토큰
   공항 안내 표지판에서 가져온 색: 짙은 안내판 남색 + 신호 노랑
   ========================================================================= */
:root {
	--ink: #14202c;          /* 안내판 바탕, 본문 글자 */
	--ink-2: #4b5967;        /* 보조 글자 */
	--fog: #eef2f6;          /* 구역 배경 */
	--line: #d5dde5;         /* 구분선 */
	--paper: #ffffff;
	--signal: #ffc72c;       /* 안내 노랑 (노선번호, 강조) */
	--route: #1757c9;        /* 링크, 포커스 */
	--night: #2c2f6e;        /* 심야 노선 */

	--radius-s: 6px;
	--radius-m: 12px;
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
	--font-scale: 1;
}

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

html {
	font-size: calc(100% * var(--font-scale));
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	word-break: keep-all;
	overflow-wrap: anywhere;
}

img, svg, video { max-width: 100%; height: auto; }
svg.icon { flex: 0 0 auto; }

a { color: var(--route); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px; left: 16px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 0 0 var(--radius-s) var(--radius-s);
}
.skip-link:focus { top: 0; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main:focus { outline: none; }

/* 버튼 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid transparent;
	border-radius: var(--radius-s);
	font-weight: 700;
	font-size: .9375rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #ffb800; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--fog); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
}
.icon-btn:hover { background: var(--fog); }

/* =========================================================================
   3. 헤더와 메가메뉴
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.site-brand { flex: 0 0 auto; }
.site-brand__name {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ink);
	text-decoration: none;
}
.site-brand .custom-logo { display: block; max-height: 44px; width: auto; }

.primary-nav { flex: 1 1 auto; }

.mega, .mega ul { list-style: none; margin: 0; padding: 0; }

.mega > li > a {
	display: block;
	color: var(--ink);
	font-weight: 700;
	font-size: 1.0625rem;
	text-decoration: none;
}

.mega .sub-menu a, .mega .children a { text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu-toggle { display: none; }
.menu-toggle__open { display: inline-flex; }
.menu-toggle__close { display: none; }
.nav-open .menu-toggle__open { display: none; }
.nav-open .menu-toggle__close { display: inline-flex; }

/* 데스크톱: 상단 항목에 마우스를 올리거나 키보드로 들어가면 전체 폭 패널 */
@media (min-width: 1025px) {
	.mega { display: flex; justify-content: center; gap: 4px; }

	.mega > li > a {
		position: relative;
		padding: 26px 18px;
	}
	.mega > li > a::after {
		content: "";
		position: absolute;
		left: 18px; right: 18px; bottom: -1px;
		height: 4px;
		background: var(--signal);
		transform: scaleX(0);
		transition: transform .18s ease-out;
	}
	.mega > li:hover > a::after,
	.mega > li:focus-within > a::after,
	.mega > .current-menu-item > a::after,
	.mega > .current-menu-ancestor > a::after,
	.mega > .current_page_item > a::after,
	.mega > .current_page_ancestor > a::after { transform: scaleX(1); }

	.mega > li > .sub-menu,
	.mega > li > .children {
		position: absolute;
		left: 0; right: 0; top: 100%;
		display: none;
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 28px 32px;
		padding: 32px max(var(--gutter), calc((100% - var(--container)) / 2)) 40px;
		background: #fff;
		border-top: 1px solid var(--line);
		box-shadow: 0 24px 32px -24px rgba(20, 32, 44, .4);
	}
	.mega > li:hover > .sub-menu,
	.mega > li:focus-within > .sub-menu,
	.mega > li:hover > .children,
	.mega > li:focus-within > .children { display: grid; }

	.mega > li > .sub-menu > li > a,
	.mega > li > .children > li > a {
		display: block;
		padding-bottom: 8px;
		border-bottom: 2px solid var(--ink);
		color: var(--ink);
		font-weight: 700;
	}
	.mega .sub-menu .sub-menu, .mega .children .children { margin-top: 10px; }
	.mega .sub-menu .sub-menu a, .mega .children .children a {
		display: block;
		padding: 5px 0;
		color: var(--ink-2);
		font-size: .9375rem;
	}
	.mega .sub-menu a:hover, .mega .children a:hover { color: var(--route); text-decoration: underline; }

	.submenu-toggle { display: none; }
}

/* 태블릿, 모바일: 전체 화면 메뉴 + 아코디언 */
@media (max-width: 1024px) {
	:root { --header-h: 64px; }
	.menu-toggle { display: inline-flex; }

	.primary-nav {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		top: var(--header-h);
		z-index: 90;
		display: none;
		overflow-y: auto;
		padding: 8px var(--gutter) 48px;
		background: #fff;
	}
	.nav-open { overflow: hidden; }
	.nav-open .primary-nav { display: block; }

	.mega > li { position: relative; border-bottom: 1px solid var(--line); }
	.mega > li > a { padding: 16px 52px 16px 0; font-size: 1.125rem; }

	.submenu-toggle {
		position: absolute;
		top: 8px; right: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px; height: 44px;
		border: 0;
		border-radius: 50%;
		background: transparent;
	}
	.submenu-toggle svg { transition: transform .2s; }
	.is-open > .submenu-toggle svg { transform: rotate(180deg); }

	.mega > li > .sub-menu, .mega > li > .children {
		display: none;
		grid-template-columns: 1fr 1fr;
		gap: 16px 20px;
		padding: 4px 0 20px;
	}
	.mega > li.is-open > .sub-menu, .mega > li.is-open > .children { display: grid; }
	.mega > li > .sub-menu > li > a, .mega > li > .children > li > a { font-weight: 700; color: var(--ink); }
	.mega .sub-menu .sub-menu a, .mega .children .children a {
		display: block;
		padding: 3px 0;
		font-size: .9375rem;
		color: var(--ink-2);
	}
}
@media (max-width: 480px) {
	.mega > li > .sub-menu, .mega > li > .children { grid-template-columns: 1fr; }
}

/* 검색 패널 */
.site-search { border-top: 1px solid var(--line); background: var(--fog); }
.site-search__inner { display: flex; align-items: center; gap: 12px; padding-block: 20px; }
.site-search__inner .search-form { flex: 1; }

.search-form { display: flex; gap: 8px; max-width: 720px; }
.search-form__input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 16px;
	border: 2px solid var(--ink);
	border-radius: var(--radius-s);
	background: #fff;
}
.search-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius-s);
	background: var(--ink);
	color: #fff;
	font-weight: 700;
}

/* 퀵 메뉴 */
.quick-bar { background: var(--ink); }
.quick-bar__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.quick-bar__list::-webkit-scrollbar { display: none; }
.quick-bar__list a {
	display: block;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	color: #fff;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.quick-bar__list a:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* =========================================================================
   4. 서브 페이지 상단
   ========================================================================= */
.sub-hero {
	background: var(--fog);
	border-bottom: 1px solid var(--line);
	padding-top: 24px;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--ink-2);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
	content: "";
	width: 6px; height: 6px;
	margin: 0 10px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .6;
}
.breadcrumb a { display: inline-flex; color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.sub-hero__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 14px 0 28px;
}
.sub-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 3.4vw, 2.625rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.03em;
}

/* 도구 */
.page-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn, .font-tool__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: #fff;
	font-size: .875rem;
	font-weight: 600;
}
.tool-btn:hover, .font-tool__btn:hover { border-color: var(--ink); }
.font-tool { display: inline-flex; }
.font-tool__btn { border-radius: 0; padding: 0 10px; min-width: 40px; justify-content: center; gap: 0; }
.font-tool__btn + .font-tool__btn { margin-left: -1px; }
.font-tool__btn:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.font-tool__btn:last-child { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.font-tool__btn sup { font-size: .7em; }

@media (max-width: 640px) {
	.tool-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* 탭: 폴더 탭처럼 흰 본문과 이어진다 */
.local-tabs__list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.local-tabs__list::-webkit-scrollbar { display: none; }
.local-tabs__item a {
	display: block;
	padding: 14px 22px;
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: var(--radius-s) var(--radius-s) 0 0;
	color: var(--ink-2);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.local-tabs__item a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.local-tabs__item.is-active a {
	position: relative;
	margin-bottom: -1px;
	background: #fff;
	border-color: var(--line);
	box-shadow: inset 0 3px 0 var(--ink);
	color: var(--ink);
	font-weight: 800;
}
.local-tabs__sub {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 calc(var(--gutter) * -1);
	padding: 16px var(--gutter);
	list-style: none;
	background: #fff;
	border-top: 1px solid var(--line);
}
.local-tabs__sub a {
	display: block;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink-2);
	font-size: .9375rem;
	text-decoration: none;
}
.local-tabs__sub a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

.sub-body { padding-top: 48px; padding-bottom: 96px; }

/* =========================================================================
   5. 본문
   ========================================================================= */
.section-title,
.entry-content h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.3;
}
.section-title::before,
.entry-content h2::before {
	content: "";
	flex: 0 0 auto;
	width: 6px; height: 1.1em;
	background: var(--signal);
	box-shadow: 2px 0 0 var(--ink) inset;
}

.entry-content { max-width: 78ch; }
.entry-content--after { margin-top: 64px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h3 { font-size: 1.25rem; margin: 2em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--ink-2); }
.entry-content table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.entry-content th, .entry-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--fog); }

/* 예매 카드 */
.booking__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.booking-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	background: #fff;
}
.booking-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px; height: 60px;
	border-radius: var(--radius-s);
	background: var(--ink);
	color: var(--signal);
}
.booking-card__text { flex: 1 1 160px; }
.booking-card__title { margin: 0; font-size: 1.125rem; font-weight: 800; }
.booking-card__note { margin: 2px 0 0; color: var(--ink-2); font-size: .9375rem; }

/* =========================================================================
   6. 버스 노선 검색
   ========================================================================= */
.bus-search {
	margin-top: 56px;
	border: 2px solid var(--ink);
	border-radius: var(--radius-m);
	overflow: hidden;
	background: #fff;
}
.booking + .bus-search { margin-top: 48px; }
.sub-body > .bus-search:first-child { margin-top: 0; }

.bus-search__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 16px 32px;
	padding: 24px 28px;
	background: var(--ink);
	color: #fff;
}
.bus-search__title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -.02em;
}
.bus-search__form { display: flex; gap: 8px; }
.bus-search__form input {
	flex: 1;
	min-width: 0;
	height: 54px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-s);
	background: #fff;
	color: var(--ink);
	font-size: 1.0625rem;
}
.bus-search__form input::placeholder { color: #7c8894; }
.bus-search__form input:focus-visible { outline-color: var(--signal); outline-offset: 0; }
.bus-search__form button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--radius-s);
	background: var(--signal);
	color: var(--ink);
	font-weight: 800;
}
.bus-search__form button:hover { background: #ffb800; }
.bus-search__form button:focus-visible { outline-color: #fff; }

@media (max-width: 720px) {
	.bus-search__head { grid-template-columns: 1fr; padding: 20px; }
	.bus-search__form button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.bus-search__form button { padding: 0 16px; }
}

.region-tabs {
	display: flex;
	overflow-x: auto;
	background: var(--fog);
	border-bottom: 1px solid var(--line);
	scrollbar-width: thin;
}
.region-tabs [role="tab"] {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 20px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: transparent;
	color: var(--ink-2);
	font-weight: 600;
	white-space: nowrap;
}
.region-tabs [role="tab"]:hover { color: var(--ink); }
.region-tabs [role="tab"][aria-selected="true"] {
	background: #fff;
	border-bottom-color: var(--ink);
	color: var(--ink);
	font-weight: 800;
}
.region-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.region-tabs__count {
	min-width: 1.6em;
	padding: 0 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--ink-2);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
}
[aria-selected="true"] .region-tabs__count { background: var(--ink); color: var(--signal); }

.bus-search__body { padding: 24px 28px 32px; }
.bus-search__body:focus { outline: none; }
@media (max-width: 720px) { .bus-search__body { padding: 20px; } }

.bus-search__status { margin: 0 0 14px; color: var(--ink-2); font-size: .9375rem; }

.route-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 노선번호판: 이 테마에서 가장 눈에 띄는 요소 */
.route {
	display: flex;
	align-items: stretch;
	min-height: 54px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	overflow: hidden;
	background: #fff;
	color: var(--ink);
	text-decoration: none;
}
.route:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.route__plate {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 84px;
	padding: 0 12px;
	background: var(--ink);
	color: var(--signal);
	font-size: 1.125rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: .01em;
}
.route.is-night .route__plate { background: var(--night); color: #fff; }
.route__dest {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 8px 14px;
	font-weight: 600;
	line-height: 1.35;
}
.route__tag {
	align-self: center;
	margin-right: 12px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--night);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
}

.route-empty {
	padding: 40px 24px;
	border: 1px dashed var(--line);
	border-radius: var(--radius-s);
	text-align: center;
	color: var(--ink-2);
}
.route-empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.0625rem; }
.route-empty .search-form { margin: 16px auto; }

/* 노선 상세 모달 */
.route-dialog {
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100dvh - 48px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 0;
	border: 0;
	border-radius: var(--radius-m);
	background: #fff;
	color: var(--ink);
	box-shadow: 0 30px 60px rgba(20, 32, 44, .35);
}
.route-dialog::backdrop { background: rgba(20, 32, 44, .6); }
.route-dialog[open] { animation: abt-dialog-in .18s ease-out; }
@keyframes abt-dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.route-dialog__inner { position: relative; }
.route-dialog__close {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
}
.route-dialog__close:hover { background: rgba(255, 255, 255, .24); }
.route-dialog__close:focus-visible { outline-color: var(--signal); }

.route-detail__head {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px 72px 24px 24px;
	background: var(--ink);
	color: #fff;
}
.route-detail__head.is-night { background: var(--night); }
.route-detail__plate {
	flex: 0 0 auto;
	padding: 6px 14px;
	border: 2px solid var(--signal);
	border-radius: var(--radius-s);
	color: var(--signal);
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.route-detail__title { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.route-detail__grade { margin: 2px 0 0; color: #c7d1db; font-size: .875rem; }

.route-detail__body { padding: 24px; }
.route-detail__body > * + * { margin-top: 24px; }

.route-info { margin: 0; border-top: 2px solid var(--ink); }
.route-info__row {
	display: grid;
	grid-template-columns: 9.5em 1fr;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
}
.route-info dt { color: var(--ink-2); font-weight: 600; }
.route-info dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .route-info__row { grid-template-columns: 1fr; gap: 0; } }

.route-detail__sub { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 800; }
.route-detail__sub span { color: var(--ink-2); font-weight: 600; font-size: .9375rem; }

/* 경유 정류장: 노선도처럼 이어지는 선 */
.stops { position: relative; margin: 0; padding: 0; list-style: none; }
.stops::before {
	content: "";
	position: absolute;
	left: 7px; top: 16px; bottom: 16px;
	width: 3px;
	background: var(--ink);
}
.stops li { position: relative; padding: 6px 0 6px 32px; }
.stops li::before {
	content: "";
	position: absolute;
	left: 0; top: 11px;
	width: 17px; height: 17px;
	border: 3px solid var(--ink);
	border-radius: 50%;
	background: #fff;
}
.stops li:first-child, .stops li:last-child { font-weight: 800; }
.stops li:first-child::before, .stops li:last-child::before { background: var(--signal); }

.route-detail__empty, .route-detail__note {
	margin-bottom: 0;
	padding: 14px 16px;
	border-radius: var(--radius-s);
	background: var(--fog);
	color: var(--ink-2);
}
.route-detail__note { border-left: 4px solid var(--signal); }

.route-single { max-width: 720px; border: 2px solid var(--ink); border-radius: var(--radius-m); overflow: hidden; }
.route-single__back { margin-top: 24px; }

/* =========================================================================
   7. 담당부서, 만족도 조사
   ========================================================================= */
.page-meta {
	display: grid;
	gap: 20px;
	margin-top: 72px;
	padding-top: 24px;
	border-top: 2px solid var(--ink);
}
.page-meta__dept { margin: 0; font-weight: 700; }
.page-meta__dept span { margin-right: 8px; color: var(--ink-2); font-weight: 600; }

.survey {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	padding: 20px 24px;
	border-radius: var(--radius-m);
	background: var(--fog);
}
.survey fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.survey__legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.survey__options { display: flex; flex-wrap: wrap; gap: 6px; }
.survey__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey__label {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
}
.survey__label:hover { border-color: var(--ink); }
.survey__radio:checked + .survey__label { background: var(--ink); border-color: var(--ink); color: #fff; }
.survey__radio:focus-visible + .survey__label { outline: 3px solid var(--route); outline-offset: 2px; }
.survey__radio:disabled + .survey__label { cursor: default; opacity: .6; }
.survey__msg { flex-basis: 100%; margin: 0; font-weight: 600; }
.survey__msg:empty { display: none; }

/* =========================================================================
   8. 목록 (블로그, 검색 결과)
   ========================================================================= */
.post-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.post-list__item a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}
.post-list__item a:hover .post-list__title { text-decoration: underline; }
.post-list__title { font-weight: 600; }
.post-list time { color: var(--ink-2); font-size: .875rem; white-space: nowrap; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	text-align: center;
	text-decoration: none;
	color: var(--ink);
}
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* =========================================================================
   9. 푸터
   ========================================================================= */
.site-footer {
	padding: 56px 0 28px;
	background: var(--ink);
	color: #b9c4cf;
	font-size: .9375rem;
}
.site-footer a { color: #fff; }

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.6fr);
	gap: 40px;
}
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .footer-menus { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

.footer-brand__name { margin: 0 0 12px; color: #fff; font-size: 1.125rem; font-weight: 800; }
.footer-brand address { font-style: normal; line-height: 1.8; }

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.footer-social a {
	display: block;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	font-size: .8125rem;
	text-decoration: none;
}
.footer-social a:hover { border-color: var(--signal); color: var(--signal); }

.footer-contact__label { margin: 0; color: #fff; font-weight: 700; }
.footer-contact__phone {
	display: inline-block;
	margin-top: 4px;
	color: var(--signal) !important;
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.15;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
.footer-contact__hours { margin: 6px 0 0; }

.footer-menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.footer-menu__title { margin: 0 0 10px; color: #fff; font-size: 1rem; font-weight: 800; }
.footer-menu ul { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: 6px; }
.footer-menu a { color: #b9c4cf; text-decoration: none; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }

.site-footer__bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: .8125rem;
}
.site-footer__bottom p { margin: 0; }

/* 맨 위로, 토스트 */
.to-top {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 80;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border: 2px solid var(--signal);
	border-radius: 50%;
	background: var(--ink);
	color: var(--signal);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

.abt-toast {
	position: fixed;
	left: 50%; bottom: 28px;
	z-index: 200;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.abt-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   10. 접근성, 인쇄
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .quick-bar, .page-tools, .local-tabs, .site-footer, .to-top, .survey,
	.bus-search__form, .region-tabs, .route-dialog, .skip-links { display: none !important; }
	.sub-hero { background: none; border: 0; }
	.route-list li[hidden] { display: none; }
	.route, .route__plate { border: 1px solid #000; background: #fff !important; color: #000 !important; }
	a { color: #000; }
}
