/* ==========================================================================
   MRT theme – design tokens and components
   ========================================================================== */

:root {
	--navy: #0a1f44;
	--blue: #0e63b5;
	--blue-700: #0a4e93;
	--blue-soft: #e8f1fc;
	--ink: #3c4a66;
	--muted: #5a6b8a;
	--border: #dce4f0;
	--line-soft: #eef2f8;
	--surface: #f5f7fa;
	--surface-2: #eef2f8;
	--placeholder: #eff3f9;
	--hover: #f2f6fc;
	--green: #0b7a45;
	--green-soft: #e7f6ee;
	--amber: #8a5a08;
	--amber-soft: #fbf1dd;
	--red: #c2331f;
	--red-strong: #a81e12;
	--red-soft: #fdeeec;
	--focus: #0e63b5;
	--focus-dark: #7fb3f0;

	--radius-sm: 8px;
	--radius: 12px;
	--radius-md: 16px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	--shadow-1: 0 1px 2px rgba(10, 31, 68, 0.06);
	--shadow-2: 0 8px 24px rgba(10, 31, 68, 0.1);
	--shadow-3: 0 24px 60px rgba(4, 12, 30, 0.35);
	--shadow-hover: 0 24px 60px rgba(4, 12, 30, 0.18);

	--container: 1180px;
	--gutter: clamp(16px, 4vw, 24px);
	--section-gap: clamp(48px, 7vw, 80px);
	--header-h: 64px;

	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 1100px) {
	:root {
		--header-h: 76px;
	}
}

/* Base ------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--navy);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

body.is-locked {
	overflow: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

svg.icon {
	flex: none;
	height: auto;
}

a {
	color: var(--blue);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--blue-700);
}

h1,
h2,
h3,
h4 {
	color: var(--navy);
	line-height: 1.25;
	text-wrap: pretty;
}

p {
	margin: 0 0 1em;
}

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

button {
	cursor: pointer;
}

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

[hidden] {
	display: none !important;
}

.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;
	left: 12px;
	top: -100px;
	z-index: 1000;
	background: var(--navy);
	color: #fff;
	padding: 12px 18px;
	border-radius: var(--radius);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

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

.container--narrow {
	max-width: 868px;
}

.container--mid {
	max-width: 1048px;
}

.section {
	padding-top: var(--section-gap);
}

.site-main {
	padding-bottom: var(--section-gap);
}

/* Buttons, links, chips -------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
	background: var(--blue);
	color: #fff;
}

.btn--primary:hover {
	background: var(--blue-700);
	color: #fff;
}

.btn--dark {
	background: var(--navy);
	color: #fff;
}

.btn--dark:hover {
	background: var(--blue);
	color: #fff;
}

.btn--outline {
	background: #fff;
	border-color: var(--border);
	color: var(--navy);
}

.btn--outline:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--navy);
}

.icon-button:hover {
	background: var(--hover);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	font-size: 15px;
	max-width: 100%;
	font-weight: 700;
	color: var(--blue);
	text-decoration: none;
}

.link-arrow:hover {
	text-decoration: underline;
}

.link-arrow--green {
	color: var(--green);
}

.link-arrow--red {
	color: var(--red);
}

.link-arrow--light {
	color: var(--focus-dark);
}

.link-arrow--light:hover {
	color: #fff;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.chip:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.chip[aria-current="page"],
.chip.is-active {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.chip--glass {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	font-weight: 600;
}

.chip--glass:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.chip--glass:focus-visible {
	outline-color: var(--focus-dark);
}

.eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.eyebrow--blue {
	color: var(--blue);
}

.eyebrow--green {
	color: var(--green);
}

.eyebrow--amber {
	color: var(--amber);
}

.eyebrow--red {
	color: var(--red);
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.pill--ok {
	background: var(--green-soft);
	color: var(--green);
}

.pill--warn {
	background: var(--amber-soft);
	color: var(--amber);
}

.pill--muted {
	background: var(--surface-2);
	color: var(--ink);
}

.line-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 26px;
	padding: 0 8px;
	border-radius: var(--radius-sm);
	background: var(--line, var(--blue));
	border: 2px solid var(--line, var(--blue));
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.2px;
	text-decoration: none;
	white-space: nowrap;
}

a.line-badge:hover {
	color: #fff;
	filter: brightness(1.08);
}

.line-badge--planned {
	background: #fff;
	border-style: dashed;
	color: var(--line-ink, var(--navy));
}

a.line-badge--planned:hover {
	color: var(--line-ink, var(--navy));
}

.line-badge--lg {
	min-width: 40px;
	height: 34px;
	font-size: 15px;
	border-radius: 9px;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.tag--parking {
	background: var(--blue-soft);
	color: var(--blue-700);
}

.sponsored {
	display: inline-flex;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Header ----------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.admin-bar .site-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

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

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	min-height: 44px;
	text-decoration: none;
	color: var(--navy);
}

.brand:hover {
	color: var(--navy);
}

.brand__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--radius);
	background: var(--navy);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.4px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.brand__name {
	font-size: 17px;
	font-weight: 800;
}

.brand__tag {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

.primary-nav {
	display: none;
}

/* Below the desktop menu breakpoint the search fills the room between the logo
   and the menu button, so it reads as a search field rather than an icon. */
.site-header__actions {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	min-width: 0;
	margin-left: auto;
}

.header-search {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	min-width: 0;
	max-width: 320px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--navy);
	font-size: 15px;
	font-weight: 600;
	text-align: left;
}

.header-search:hover {
	border-color: var(--blue);
	background: #fff;
}

.header-search svg {
	flex: none;
}

.header-search__label {
	overflow: hidden;
	color: var(--muted);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.header-search:hover .header-search__label {
	color: var(--blue);
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--navy);
}

.menu-toggle:hover {
	background: var(--hover);
}

@media (max-width: 380px) {
	.brand__tag {
		display: none;
	}
}

@media (min-width: 1100px) {
	.primary-nav {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
		margin-left: 12px;
	}

	.primary-nav__list {
		display: flex;
		align-items: center;
		gap: clamp(12px, 1.8vw, 26px);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.primary-nav__list a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 2px;
		font-size: 15px;
		font-weight: 700;
		color: var(--navy);
		text-decoration: none;
		white-space: nowrap;
		border-bottom: 3px solid transparent;
	}

	.primary-nav__list a:hover {
		color: var(--blue);
	}

	.primary-nav__list .current-menu-item > a,
	.primary-nav__list .current-menu-ancestor > a,
	.primary-nav__list .current-page-ancestor > a,
	.primary-nav__list .current_page_parent > a {
		color: var(--blue);
		border-bottom-color: var(--blue);
	}

	.site-header__actions {
		flex: none;
		margin-left: 0;
	}

	.header-search {
		flex: none;
		width: clamp(220px, 20vw, 280px);
	}

	.menu-toggle {
		display: none;
	}
}

/* Mobile menu (drawer) --------------------------------------------------- */

.mobile-menu,
.search-dialog {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.mobile-menu__backdrop,
.search-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 12, 30, 0.5);
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(360px, 88vw);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	padding: 12px 16px 32px;
	box-shadow: var(--shadow-3);
}

@media (prefers-reduced-motion: no-preference) {
	.mobile-menu.is-open .mobile-menu__panel {
		animation: mrt-slide-in 0.2s ease-out;
	}

	.search-dialog.is-open .search-dialog__panel {
		animation: mrt-drop-in 0.18s ease-out;
	}
}

@keyframes mrt-slide-in {
	from {
		transform: translateX(24px);
		opacity: 0;
	}
}

@keyframes mrt-drop-in {
	from {
		transform: translateY(-12px);
		opacity: 0;
	}
}

.mobile-menu__head,
.search-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.mobile-menu__title {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}

.mobile-menu__list,
.mobile-menu__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu__list a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 8px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 17px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
}

.mobile-menu__list .current-menu-item > a,
.mobile-menu__list .current-menu-ancestor > a {
	color: var(--blue);
}

.mobile-menu__sub {
	margin-top: 20px;
	display: grid;
	gap: 4px;
}

.mobile-menu__sub a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}

/* Search dialog and search box ------------------------------------------ */

.search-dialog__panel {
	position: relative;
	margin: calc(var(--header-h) / 2) auto 0;
	width: min(680px, calc(100% - 24px));
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	background: #fff;
	border-radius: var(--radius-lg);
	padding: 16px;
	box-shadow: var(--shadow-3);
}

.search-dialog__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
}

.search-box {
	position: relative;
}

.search-box__field {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 6px 6px 6px 18px;
}

.search-box__field:focus-within {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.search-box__icon {
	color: var(--muted);
}

.search-box__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 16px;
	color: var(--navy);
	outline: none;
}

.search-box__input::placeholder {
	color: var(--muted);
}

.search-box__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.search-box__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--blue);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.search-box__submit:hover {
	background: var(--blue-700);
}

.search-box__submit-text {
	display: none;
}

@media (min-width: 560px) {
	.search-box__submit {
		padding: 0 26px;
	}

	.search-box__submit-text {
		display: inline;
	}

	.search-box__submit-icon {
		display: none;
	}
}

.search-box__results {
	margin: 8px 0 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 18px;
	text-align: left;
}

.search-box--hero .search-box__results {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	right: 0;
	z-index: 40;
	max-height: min(420px, 60vh);
	overflow-y: auto;
	border: 0;
	box-shadow: var(--shadow-3);
}

.search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 12px;
	border-radius: var(--radius);
	color: var(--navy);
	text-decoration: none;
}

.search-result:hover,
.search-result[aria-selected="true"] {
	background: var(--hover);
	color: var(--navy);
}

.search-result__type {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--surface-2);
	color: var(--blue);
}

.search-result__type--station {
	background: var(--blue-soft);
}

.search-result__type--line {
	background: var(--green-soft);
	color: var(--green);
}

.search-result__type--post {
	background: var(--amber-soft);
	color: var(--amber);
}

.search-result__text {
	flex: 1;
	min-width: 0;
}

.search-result__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
}

.search-result__sub {
	display: block;
	font-size: 14px;
	color: var(--muted);
}

.search-result__distance {
	flex: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--blue);
}

.search-box__empty {
	padding: 12px;
	font-size: 15px;
	color: var(--ink);
}

.search-box__near {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 10px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
}

.search-box__near:hover {
	border-color: var(--blue);
	color: var(--blue);
}

/* Hero ------------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--navy);
	color: #fff;
}

.hero__art {
	position: absolute;
	inset: 0;
}

.hero__art::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(ellipse 900px 420px at 50% -10%, rgba(61, 139, 235, 0.28), transparent 70%);
}

.hero__art::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		radial-gradient(ellipse 60% 55% at 50% 45%, rgba(10, 31, 68, 0.72) 0%, rgba(10, 31, 68, 0) 72%),
		linear-gradient(180deg, rgba(10, 31, 68, 0.45) 0%, rgba(10, 31, 68, 0.62) 55%, rgba(10, 31, 68, 0.9) 100%);
}

.hero__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.32;
}

@media (prefers-reduced-motion: reduce) {
	.hero__trains {
		display: none;
	}
}

.hero__content {
	position: relative;
	z-index: 3;
	max-width: 860px;
	margin: 0 auto;
	padding: clamp(40px, 8vw, 88px) var(--gutter) clamp(110px, 14vw, 150px);
	text-align: center;
}

.hero__eyebrow {
	display: inline-block;
	max-width: 100%;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.hero__title {
	margin: 20px 0 14px;
	font-size: clamp(30px, 6vw, 48px);
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}

.hero__lead {
	max-width: 600px;
	margin: 0 auto;
	font-size: clamp(16px, 2vw, 18px);
	color: rgba(255, 255, 255, 0.92);
}

.search-box--hero {
	max-width: 640px;
	margin: 30px auto 0;
}

.search-box--hero .search-box__field {
	border: 0;
	padding: 8px 8px 8px 22px;
	box-shadow: var(--shadow-3);
}

.search-box--hero .search-box__field:focus-within {
	outline-color: var(--focus-dark);
}

.hero__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.hero__chips-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

/* Quick cards ------------------------------------------------------------ */

.quick {
	position: relative;
	z-index: 5;
	margin-top: -84px;
}

.quick__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: clamp(12px, 2vw, 24px);
}

.quick-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 22px 24px 16px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-2);
	transition: box-shadow 0.2s;
}

.quick-card:hover {
	box-shadow: var(--shadow-hover);
}

.quick-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--radius);
}

.quick-card__icon--blue {
	background: var(--blue-soft);
	color: var(--blue);
}

.quick-card__icon--green {
	background: var(--green-soft);
	color: var(--green);
}

.quick-card__icon--red {
	background: var(--red-soft);
	color: var(--red);
}

.quick-card__title {
	margin: 4px 0 0;
	font-size: 20px;
	font-weight: 700;
}

.quick-card__value {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--navy);
}

.quick-card__text {
	margin: 0;
	font-size: 15px;
	color: var(--ink);
}

.quick-card__warn {
	display: inline-block;
	margin-top: 6px;
	font-size: 14px;
	color: var(--amber);
}

.quick-card .link-arrow {
	margin-top: auto;
}

@media (max-width: 600px) {
	.quick {
		margin-top: -72px;
	}

	.quick-card {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 14px;
		row-gap: 4px;
		padding: 16px;
	}

	.quick-card__icon {
		grid-row: span 3;
		width: 44px;
		height: 44px;
	}

	.quick-card__icon svg {
		width: 22px;
	}

	.quick-card__title {
		margin: 0;
		font-size: 17px;
	}

	.quick-card__value,
	.quick-card__text,
	.quick-card .link-arrow {
		grid-column: 2;
	}

	.quick-card__value {
		font-size: 16px;
	}

	.quick-card .link-arrow {
		min-height: 44px;
	}
}

/* Section head ----------------------------------------------------------- */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 24px;
}

.section-head__title {
	margin: 0;
	font-size: clamp(24px, 3.4vw, 30px);
	font-weight: 800;
}

.section-head--center {
	justify-content: center;
	text-align: center;
}

/* Notices ---------------------------------------------------------------- */

.notices {
	margin-top: clamp(24px, 4vw, 40px);
}

.notices__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.notice-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid #f0dfb8;
	border-radius: var(--radius);
	background: #fdf8ec;
	color: var(--amber);
}

.notice-item__title {
	display: block;
	font-weight: 700;
	color: var(--navy);
}

.notice-item__meta {
	font-size: 14px;
	color: var(--amber);
}

/* Route planner ---------------------------------------------------------- */

.planner-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 24px;
	align-items: stretch;
}

.planner-row--solo {
	grid-template-columns: 1fr;
}

.planner {
	position: relative;
	display: grid;
	gap: 18px 32px;
	padding: clamp(18px, 3vw, 28px);
	border-radius: var(--radius-lg);
	background: var(--navy);
	color: #fff;
}

.planner-row--solo .planner--compact,
.planner--full {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	align-items: start;
}

.planner__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.planner__lead {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.88);
}

.planner__form {
	margin-top: 18px;
}

.planner__fields {
	position: relative;
	background: #fff;
	border-radius: var(--radius-md);
	box-shadow: 0 8px 24px rgba(4, 12, 30, 0.22);
	color: var(--navy);
}

.station-select {
	position: relative;
}

.station-select + .station-select::after {
	content: "";
	position: absolute;
	top: 0;
	left: 44px;
	right: 16px;
	border-top: 1px solid var(--border);
}

.station-select::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 16px;
	z-index: 2;
	width: 13px;
	height: 13px;
	transform: translateY(-50%);
	pointer-events: none;
}

.station-select--from::before {
	border: 3px solid var(--blue);
	border-radius: var(--radius-pill);
	background: #fff;
}

.station-select--to::before {
	border-radius: 3px;
	background: var(--navy);
}

.station-select__label {
	position: absolute;
	top: 11px;
	left: 44px;
	z-index: 2;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--muted);
	pointer-events: none;
}

.station-select__native,
.station-select__button {
	display: flex;
	align-items: flex-end;
	width: 100%;
	min-height: 62px;
	padding: 26px 64px 10px 44px;
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	font-size: 16px;
	font-weight: 700;
	color: var(--navy);
	text-align: left;
	-webkit-appearance: none;
	appearance: none;
}

.station-select__button:hover {
	background: #f7fafe;
}

.station-select__button-text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.planner__rail {
	position: absolute;
	top: 50%;
	left: 21.5px;
	height: 34px;
	transform: translateY(-50%);
	border-left: 2px dotted #b9c7dd;
	pointer-events: none;
}

.planner__swap {
	position: absolute;
	top: 50%;
	right: 12px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--navy);
	box-shadow: 0 4px 12px rgba(4, 12, 30, 0.14);
}

.planner__swap:hover {
	background: var(--hover);
}

.planner__submit {
	margin-top: 12px;
}

.js .planner__submit {
	display: none;
}

.station-listbox {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 30;
	max-height: 300px;
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-3);
}

.station-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 9px 10px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--navy);
	cursor: pointer;
}

.station-option__code {
	flex: none;
	min-width: 44px;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
}

.station-option__name {
	flex: 1;
	min-width: 0;
}

.station-option__tick {
	flex: none;
	color: var(--blue);
	opacity: 0;
}

.station-option.is-active,
.station-option:hover {
	background: var(--hover);
}

.station-option[aria-selected="true"] {
	font-weight: 800;
	background: #eef4fc;
}

.station-option[aria-selected="true"] .station-option__tick {
	opacity: 1;
}

.planner__result {
	align-self: stretch;
}

.route-result__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
}

.route-result__big {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
}

.route-result__sub {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.88);
}

.route-legs {
	display: grid;
	gap: 10px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.route-leg {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.08);
}

.route-leg .line-badge {
	border-color: rgba(255, 255, 255, 0.6);
}

.route-leg__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.route-leg__dir {
	font-size: 16px;
}

.route-leg__meta {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.82);
}

.route-result__fare {
	margin: 0 0 4px;
	font-size: 15px;
}

.route-result__note {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
}

.route-result__dest {
	display: inline-block;
	padding: 10px 0;
	margin-top: 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--focus-dark);
	text-decoration: none;
}

.route-result__dest:hover {
	color: #fff;
	text-decoration: underline;
}

.route-result__tail {
	white-space: nowrap;
}

.route-result__message {
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.planner__more {
	justify-self: start;
}

.planner a:focus-visible,
.planner button:focus-visible {
	outline-color: var(--focus-dark);
}

.planner__fields :focus-visible {
	outline-color: var(--focus);
}

/* Hotel card ------------------------------------------------------------- */

.hotel-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.hotel-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.hotel-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.hotel-card__text {
	margin: 0;
	color: var(--ink);
}

.hotel-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hotel-card__disclosure {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

/* Station grid ----------------------------------------------------------- */

.station-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.station-tile__link {
	position: relative;
	display: flex;
	gap: 14px;
	height: 100%;
	padding: 14px 16px 14px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--navy);
	text-decoration: none;
	box-shadow: var(--shadow-1);
	transition: border-color 0.15s, box-shadow 0.2s;
}

.station-tile__link:hover {
	border-color: var(--line);
	box-shadow: var(--shadow-2);
	color: var(--navy);
}

.station-tile__dot {
	position: relative;
	flex: none;
	width: 16px;
	margin-top: 3px;
}

.station-tile__dot::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border: 4px solid var(--line);
	border-radius: var(--radius-pill);
	background: #fff;
}

.station-tile__dot::after {
	content: "";
	position: absolute;
	top: 18px;
	bottom: -8px;
	left: 6px;
	width: 4px;
	border-radius: 2px;
	background: var(--line);
	opacity: 0.25;
}

.station-tile__body {
	display: grid;
	align-content: start;
	gap: 4px;
	min-width: 0;
}

.station-tile__top {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 8px;
}

.station-tile__code {
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
}

.station-tile__name {
	font-size: 16px;
	font-weight: 700;
}

.station-tile__meta {
	font-size: 14px;
	color: var(--muted);
}

.station-tile__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

@media (max-width: 599px) {
	.station-grid {
		gap: 0;
	}

	.station-tile__link {
		padding: 10px 4px 10px 2px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.station-tile__link:hover {
		box-shadow: none;
	}

	.station-tile__link:hover .station-tile__name {
		color: var(--blue);
		text-decoration: underline;
	}

	.station-tile__dot::after {
		top: 16px;
		bottom: -28px;
		opacity: 1;
	}

	.station-tile:last-child .station-tile__dot::after {
		display: none;
	}

	.station-tile__meta {
		font-size: 13px;
	}
}

/* Line cards ------------------------------------------------------------- */

.line-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: clamp(12px, 2vw, 24px);
}

.line-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--border);
	border-top: 4px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-1);
	transition: box-shadow 0.2s;
}

.line-card:hover {
	box-shadow: var(--shadow-2);
}

.line-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.line-card__title {
	margin: 14px 0 4px;
	font-size: 17px;
	font-weight: 700;
}

.line-card__link {
	color: var(--navy);
	text-decoration: none;
}

.line-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.line-card__link:hover {
	color: var(--blue);
}

.line-card__meta {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.line-card__note {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--ink);
}

.line-card__note .icon {
	margin-top: 3px;
	color: var(--muted);
}

.line-card__more {
	margin-top: auto;
	padding-top: 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--blue);
}

/* Post cards ------------------------------------------------------------- */

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
	gap: 28px;
	align-items: start;
}

.news-grid__list {
	display: grid;
}

.post-card {
	position: relative;
}

.post-card__title a {
	color: var(--navy);
	text-decoration: none;
}

.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.post-card__title a:hover {
	color: var(--blue);
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--muted);
}

.cat-label {
	padding: 4px 9px;
	border-radius: var(--radius-sm);
	background: var(--blue-soft);
	color: var(--blue-700);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

.cat-label--thong-bao {
	background: var(--amber-soft);
	color: var(--amber);
}

.cat-label--tien-do {
	background: var(--red-soft);
	color: var(--red-strong);
}

.cat-label--huong-dan {
	background: var(--green-soft);
	color: var(--green);
}

.post-card--feature {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-1);
	transition: box-shadow 0.2s;
}

.post-card--feature:hover,
.post-card--grid:hover {
	box-shadow: var(--shadow-2);
}

.post-card__media {
	aspect-ratio: 16 / 9;
	background: var(--placeholder);
}

.post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card--feature .post-card__body {
	padding: 20px 24px 24px;
}

.post-card--feature .post-card__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

.post-card__excerpt {
	margin: 0;
	color: var(--ink);
}

.post-card--row {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}

.news-grid__list .post-card--row:first-child {
	padding-top: 0;
}

.news-grid__list .post-card--row:last-child {
	border-bottom: 0;
}

.post-card__thumb {
	flex: none;
	width: 120px;
	aspect-ratio: 120 / 84;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--placeholder);
}

.post-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card--row .post-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.post-card--grid {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-1);
	transition: box-shadow 0.2s;
}

.post-card--grid .post-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.post-card--grid .post-card__body {
	padding: 18px 20px 20px;
}

.post-card--grid .post-card__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.post-card--grid .post-card__excerpt {
	font-size: 15px;
}

/* FAQ -------------------------------------------------------------------- */

.faq {
	display: grid;
	gap: 12px;
}

.faq-item {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
}

.faq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 700;
	color: var(--navy);
	cursor: pointer;
	list-style: none;
}

.faq-item__q::-webkit-details-marker {
	display: none;
}

.faq-item__q:hover {
	color: var(--blue);
}

.faq-item__chev {
	color: var(--muted);
	transition: transform 0.2s;
}

.faq-item[open] .faq-item__chev {
	transform: rotate(180deg);
}

.faq-item__a {
	max-width: 700px;
	padding: 0 20px 18px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
}

.faq-item__a p:last-child {
	margin-bottom: 0;
}

/* Empty / pending / sources --------------------------------------------- */

.empty-state {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px 22px;
	border: 1px dashed #c9d4e5;
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
}

.empty-state .icon {
	color: var(--blue);
	margin-top: 2px;
}

.empty-state__title {
	margin: 0;
	font-weight: 700;
	color: var(--navy);
}

.empty-state__text {
	margin: 4px 0 0;
}

.pending {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 15px;
	color: var(--ink);
}

.pending .icon {
	margin-top: 3px;
	color: var(--muted);
}

.source-note {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.source-note .icon {
	margin-top: 3px;
}

.source-note a {
	color: var(--muted);
}

.source-note a:hover {
	color: var(--blue);
}

.sources {
	margin-top: 40px;
	padding: 20px 22px;
	border-radius: var(--radius-md);
	background: var(--surface);
}

.sources__title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 800;
}

.sources ul {
	margin: 0;
	padding-left: 18px;
	font-size: 15px;
	color: var(--ink);
}

.sources li + li {
	margin-top: 6px;
}

.sources__date {
	color: var(--muted);
	font-size: 14px;
}

/* Ads -------------------------------------------------------------------- */

.ad-slot {
	display: block;
	margin-top: 40px;
	text-align: center;
}

.ad-slot__label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--muted);
}

.ad-slot__unit {
	display: block;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
	background: var(--navy);
	color: #fff;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 32px 40px;
	padding-top: 56px;
}

.brand--inverse,
.brand--inverse:hover {
	color: #fff;
}

.brand__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 220px;
	max-height: 44px;
}

@media (max-width: 380px) {
	.site-header .brand__logo {
		max-width: 160px;
		max-height: 38px;
	}
}

.brand--inverse .brand__logo {
	max-height: 48px;
}

.brand__plate {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: var(--radius);
	background: #fff;
}

.brand__plate .brand__logo {
	max-height: 36px;
}

.brand--inverse .brand__mark {
	width: 38px;
	height: 38px;
	background: #fff;
	color: var(--navy);
	font-size: 14px;
}

.site-footer__intro {
	max-width: 320px;
	margin: 16px 0 14px;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}

.site-footer__contact {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.82);
}

.site-footer__contact a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #fff;
}

.site-footer__heading {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.site-footer__list a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer a:focus-visible {
	outline-color: var(--focus-dark);
}

.site-footer__disclaimer {
	margin: 36px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
}

.site-footer__bottom {
	margin-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding-block: 18px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
}

.site-footer__bottom-inner a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Page head -------------------------------------------------------------- */

.page-head {
	padding-top: clamp(16px, 3vw, 24px);
	padding-bottom: 8px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 8px;
	color: #9aa6bb;
}

.breadcrumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
	font-weight: 600;
	color: var(--navy);
}

.breadcrumbs + .eyebrow {
	margin-top: 16px;
}

.page-head__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin-top: 12px;
}

.page-title {
	margin: 12px 0 0;
	font-size: clamp(26px, 4.4vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.page-head__title-row .page-title {
	margin: 0;
}

.page-head__badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.page-lead {
	max-width: 760px;
	margin: 12px 0 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
}

.page-meta {
	margin: 10px 0 0;
	font-size: 16px;
	color: var(--ink);
}

.page-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 0;
	font-size: 15px;
	color: var(--ink);
}

.page-note .icon {
	margin-top: 3px;
	color: var(--blue);
}

.page-updated {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--muted);
}

/* City links ------------------------------------------------------------- */

.city-links {
	margin: 20px 0 8px;
}

.city-links__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.city-links__list .chip .icon {
	color: var(--muted);
}

.city-links__list .chip[aria-current="page"] .icon {
	color: #fff;
}

@media (min-width: 900px) {
	.city-links__list {
		flex-wrap: wrap;
		overflow: visible;
	}
}

/* Stats ------------------------------------------------------------------ */

.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 12px;
	margin: 24px 0 0;
}

.stat {
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}

.stat dt {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}

.stat dd {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: var(--blue);
	line-height: 1.3;
}

.stat dd.stat__text {
	font-size: 16px;
	color: var(--navy);
}

.stat dd.stat__sub {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
}

@media (max-width: 599px) {
	.stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.stat {
		padding: 12px 14px;
		border-radius: var(--radius-md);
	}

	.stat dt {
		font-size: 12px;
		letter-spacing: 0.4px;
	}

	.stat dt .icon {
		display: none;
	}

	.stat dd {
		font-size: 17px;
	}

	.stat dd.stat__text {
		font-size: 15px;
	}
}

/* Content blocks --------------------------------------------------------- */

.block {
	margin-top: clamp(32px, 5vw, 44px);
}

.block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 12px;
}

.block__title {
	margin: 0 0 12px;
	font-size: clamp(20px, 2.6vw, 23px);
	font-weight: 800;
}

.block__head .block__title {
	margin: 0;
}

.block__subtitle {
	margin: 24px 0 10px;
	font-size: 17px;
	font-weight: 800;
}

.block__intro,
.block__text {
	margin: 0 0 14px;
	color: var(--ink);
}

.block__note {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.section-head--sub {
	margin: 28px 0 14px;
	align-items: center;
}

.section-head--sub .block__title {
	margin: 0;
}

.callout {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: var(--radius);
	font-size: 15px;
}

.callout p {
	margin: 0;
}

.callout .icon {
	margin-top: 2px;
}

.callout--warn {
	background: #fdf8ec;
	border: 1px solid #f0dfb8;
	color: #5c3d06;
}

.callout--warn .icon {
	color: var(--amber);
}

.callout--info {
	background: var(--blue-soft);
	border: 1px solid #cfe0f6;
	color: var(--navy);
}

.callout--info .icon {
	color: var(--blue);
}

/* Tables ----------------------------------------------------------------- */

.table-wrap {
	/* Contain absolutely positioned screen-reader text so it cannot widen the page. */
	position: relative;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	-webkit-overflow-scrolling: touch;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.data-table th,
.data-table td {
	padding: 13px 16px;
	text-align: left;
	vertical-align: top;
	border-top: 1px solid var(--line-soft);
}

.data-table thead th {
	border-top: 0;
	background: var(--surface);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--ink);
	white-space: nowrap;
}

.data-table tbody th {
	font-weight: 700;
	color: var(--navy);
}

.data-table__strong {
	font-weight: 800;
	color: var(--blue);
	white-space: nowrap;
}

.data-table tr.is-today th,
.data-table tr.is-today td {
	background: #f3f9f5;
}

.data-table .pill {
	margin-left: 6px;
	vertical-align: 1px;
}

.data-table a {
	font-weight: 700;
}

@media (max-width: 599px) {
	.data-table th,
	.data-table td {
		padding: 11px 12px;
	}
}

/* Info list -------------------------------------------------------------- */

.info-list {
	margin: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.info-list__row {
	display: grid;
	grid-template-columns: minmax(120px, 34%) 1fr;
	gap: 4px 16px;
	padding: 12px 16px;
}

.info-list__row + .info-list__row {
	border-top: 1px solid var(--line-soft);
}

.info-list dt {
	font-weight: 700;
	color: var(--ink);
}

.info-list dd {
	margin: 0;
	color: var(--navy);
}

@media (max-width: 480px) {
	.info-list__row {
		grid-template-columns: 1fr;
	}

	.info-list dt {
		font-size: 14px;
		color: var(--muted);
	}
}

/* Timeline --------------------------------------------------------------- */

.timeline {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--border);
}

.timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(96px, auto) 1fr;
	gap: 4px 16px;
	padding: 10px 0 10px 20px;
}

.timeline__item::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 16px;
	width: 12px;
	height: 12px;
	border-radius: var(--radius-pill);
	background: #fff;
	border: 3px solid var(--blue);
}

.timeline__when {
	font-weight: 800;
	color: var(--blue);
}

.timeline__text {
	color: var(--navy);
}

.timeline__source {
	margin-left: 6px;
	font-size: 14px;
	color: var(--muted);
}

@media (max-width: 480px) {
	.timeline__item {
		grid-template-columns: 1fr;
	}
}

/* Line diagram ----------------------------------------------------------- */

.line-diagram {
	margin: 0;
	padding: 0;
	list-style: none;
}

.line-diagram__stop {
	position: relative;
	display: grid;
	grid-template-columns: 28px 1fr;
	column-gap: 14px;
	padding: 10px 0;
}

.line-diagram__stop::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 0;
	bottom: 0;
	width: 6px;
	background: var(--line);
}

.line-diagram__stop:first-child::before {
	top: 22px;
}

.line-diagram__stop:last-child::before {
	bottom: calc(100% - 22px);
}

.line-diagram__stop.is-planned::before {
	background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px);
}

.line-diagram__stop.has-segment .line-diagram__marker,
.line-diagram__stop.has-segment .line-diagram__body {
	grid-row: 2;
}

.line-diagram__stop.has-segment:first-child::before {
	top: 48px;
}

.line-diagram__segment {
	grid-column: 2;
	grid-row: 1;
	margin: 6px 0 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}

.line-diagram__marker {
	position: relative;
	z-index: 1;
	grid-column: 1;
	width: 22px;
	height: 22px;
	margin: 2px 0 0 3px;
	border: 5px solid var(--line);
	border-radius: var(--radius-pill);
	background: #fff;
}

.line-diagram__body {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	min-width: 0;
}

.line-diagram__name {
	font-size: 17px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
}

/* Taller hit area without moving the marker alignment of the row. */
a.line-diagram__name {
	padding-block: 10px;
	margin-block: -10px;
}

a.line-diagram__name:hover {
	color: var(--blue);
	text-decoration: underline;
}

.line-diagram__code {
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.line-diagram__meta {
	flex-basis: 100%;
	font-size: 14px;
	color: var(--muted);
}

.line-diagram__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex-basis: 100%;
	margin-top: 4px;
}

.line-diagram__stop.is-current .line-diagram__marker {
	width: 28px;
	height: 28px;
	margin: -1px 0 0;
	border-width: 7px;
	box-shadow: 0 0 0 4px rgba(14, 99, 181, 0.18);
}

.line-diagram__stop.is-current .line-diagram__name {
	color: var(--line-ink);
}

/* Exits, parking, buses, facilities -------------------------------------- */

.exit-list,
.info-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.exit-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
}

.exit-card__number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	border-radius: 10px;
	background: #f7c948;
	color: var(--navy);
	font-size: 16px;
	font-weight: 800;
}

.exit-card--emergency .exit-card__number,
.exit-card--closed .exit-card__number {
	background: var(--surface-2);
	color: var(--muted);
}

.exit-card--emergency,
.exit-card--closed {
	background: var(--surface);
}

.exit-card__body {
	min-width: 0;
}

.exit-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.exit-card__meta {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--ink);
}

.exit-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
}

.exit-card__tags:empty {
	display: none;
}

.tag--access {
	background: var(--green-soft);
	color: var(--green);
}

.info-card {
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
}

.info-card__title {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-weight: 700;
}

.info-card__title .icon {
	margin-top: 2px;
	color: var(--blue);
}

.info-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 0;
}

.info-card__text {
	margin: 8px 0 0;
	color: var(--navy);
}

.info-card__meta {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.bus-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bus-list__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 40px;
}

.bus-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-width: 52px;
	height: 32px;
	padding: 0 10px;
	border-radius: var(--radius-sm);
	background: var(--green-soft);
	color: var(--green);
	font-size: 15px;
	font-weight: 800;
}

.bus-list__text {
	display: grid;
	min-width: 0;
	padding-top: 4px;
}

.bus-list__name {
	font-size: 15px;
	font-weight: 600;
	color: var(--navy);
}

.bus-list__stop {
	font-size: 14px;
	color: var(--muted);
}

.facility-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.facility-list li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	font-size: 15px;
	font-weight: 600;
	color: var(--navy);
}

.facility-list .icon {
	color: var(--blue);
}

.nearby-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nearby-list__item {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.nearby-list__cat {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--blue);
}

.nearby-list__name {
	font-size: 16px;
	font-weight: 700;
}

.nearby-list__meta {
	font-size: 14px;
	color: var(--muted);
}

/* Map embed -------------------------------------------------------------- */

.map-embed {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	max-height: 420px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

@media (max-width: 599px) {
	.map-embed {
		aspect-ratio: 4 / 3;
	}
}

.map-embed__load {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--navy);
	font-size: 16px;
	font-weight: 700;
}

.map-embed__load .icon {
	color: var(--blue);
}

.map-embed__load:hover {
	background: rgba(14, 99, 181, 0.05);
}

.map-embed__hint {
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}

.map-embed__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.map-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

/* Station nav, disclosure, links ----------------------------------------- */

.station-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.station-nav__link {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--navy);
	text-decoration: none;
}

.station-nav__link:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.station-nav__link--next {
	grid-column: 2;
	text-align: right;
}

.station-nav__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--muted);
}

.station-nav__name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
}

.station-nav__link--next .station-nav__name {
	justify-content: flex-end;
}

.disclosure {
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.disclosure__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 52px;
	padding: 12px 16px;
	font-weight: 700;
	color: var(--blue);
	cursor: pointer;
	list-style: none;
}

.disclosure__summary::-webkit-details-marker {
	display: none;
}

.disclosure[open] .disclosure__summary .icon {
	transform: rotate(180deg);
}

.disclosure .line-diagram {
	padding: 0 16px 12px;
}

.plain-links {
	margin: 0;
	padding-left: 20px;
}

.plain-links li + li {
	margin-top: 6px;
}

/* City hub line hero ----------------------------------------------------- */

.line-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 20px 32px;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid var(--border);
	border-left: 6px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-1);
}

.line-hero__top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.line-hero__title {
	margin: 12px 0 8px;
	font-size: clamp(20px, 2.8vw, 26px);
	font-weight: 800;
}

.line-hero__title a {
	color: var(--navy);
	text-decoration: none;
}

.line-hero__title a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.line-hero__text {
	margin: 0;
	color: var(--ink);
}

.line-hero__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	align-content: start;
}

.line-hero__facts div {
	padding: 12px 14px;
	border-radius: var(--radius);
	background: var(--surface);
}

.line-hero__facts dt {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--muted);
}

.line-hero__facts dd {
	margin: 2px 0 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--navy);
}

/* Planner variants ------------------------------------------------------- */

.planner--station {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	align-items: start;
}

/* Entry content ---------------------------------------------------------- */

.entry-content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink);
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2 {
	margin: 32px 0 12px;
	font-size: clamp(21px, 2.8vw, 24px);
	font-weight: 800;
}

.entry-content h3 {
	margin: 24px 0 10px;
	font-size: 19px;
	font-weight: 800;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 16px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 24px;
}

.entry-content li + li {
	margin-top: 6px;
}

.entry-content strong {
	color: var(--navy);
}

.entry-content a {
	font-weight: 600;
}

.entry-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	margin: 0 0 20px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	padding: 11px 14px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--surface);
	color: var(--navy);
	font-weight: 800;
}

.entry-content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 18px;
	border-left: 4px solid var(--blue);
	color: var(--navy);
}

.entry-content img {
	height: auto;
	border-radius: var(--radius);
}

.entry-content--intro {
	max-width: 760px;
	margin-top: 12px;
	font-size: 16px;
}

.schedule__period {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 0 0 10px;
	color: var(--ink);
}

.schedule__period strong {
	color: var(--navy);
}

.schedule__note {
	margin: 10px 0 0;
	font-size: 15px;
	color: var(--ink);
}

.section--tight {
	padding-top: clamp(20px, 3vw, 28px);
}

/* Tool pages ------------------------------------------------------------- */

.block--first {
	margin-top: 20px;
}

.data-table__sub {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}

.data-table__strong .data-table__sub {
	display: inline;
	margin-left: 4px;
}

@media (max-width: 719px) {
	.data-table--stack thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.data-table--stack,
	.data-table--stack tbody,
	.data-table--stack tr,
	.data-table--stack th,
	.data-table--stack td {
		display: block;
		width: 100%;
	}

	.data-table--stack tr {
		padding: 10px 14px;
		border-top: 1px solid var(--border);
	}

	.data-table--stack tr:first-child {
		border-top: 0;
	}

	.data-table--stack th,
	.data-table--stack td {
		padding: 4px 0;
		border: 0;
	}

	.data-table--stack td[data-label]::before {
		content: attr(data-label) ": ";
		font-size: 13px;
		font-weight: 700;
		color: var(--muted);
	}

	.data-table--stack td:empty {
		display: none;
	}
}

.today-card {
	display: grid;
	gap: 2px;
	margin: 0 0 18px;
	padding: 18px 20px;
	border-radius: var(--radius-lg);
	background: var(--navy);
	color: #fff;
}

.today-card__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
}

.today-card__hours {
	margin: 0;
	font-size: clamp(28px, 5vw, 36px);
	font-weight: 800;
	line-height: 1.2;
}

.today-card__meta {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.88);
}

.block__title .line-badge {
	margin-right: 8px;
	vertical-align: 3px;
}

.disclosure--spaced {
	margin-top: 24px;
}

.disclosure__body {
	display: grid;
	gap: 24px;
	padding: 4px 16px 16px;
}

.check-list {
	display: grid;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ink);
}

.check-list .icon {
	margin-top: 2px;
	color: var(--green);
}

.check-list strong {
	color: var(--navy);
}

.calc {
	display: grid;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.calc__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
}

.calc__field label,
.inline-form label,
.form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--navy);
}

.calc__field input,
.inline-form select,
.form-field input,
.form-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #c9d4e5;
	border-radius: var(--radius);
	background: #fff;
	font-size: 16px;
	color: var(--navy);
}

.calc__field input:focus,
.inline-form select:focus,
.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--blue);
	outline: 3px solid rgba(14, 99, 181, 0.25);
	outline-offset: 0;
}

.calc__hint {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.calc__result {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border-radius: var(--radius);
	background: #fff;
	border: 1px solid var(--border);
	color: var(--ink);
}

.calc__verdict {
	font-size: 17px;
	color: var(--navy);
}

.calc.is-worth .calc__result {
	border-color: #b7dfc8;
	background: #f3faf6;
}

.calc.is-worth .calc__verdict {
	color: var(--green);
}

.calc__detail {
	font-size: 15px;
}

.inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	max-width: 420px;
	margin-bottom: 14px;
}

.inline-form > * {
	flex: 1 1 100%;
}

.quick-routes,
.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quick-route {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	font-size: 15px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
}

.quick-route:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.chip-list .chip .icon {
	color: var(--blue);
}

/* Network map ------------------------------------------------------------ */

.network-map {
	display: grid;
	gap: 16px;
	margin-top: 20px;
}

@media (min-width: 1100px) {
	.network-map.has-panel {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}
}

@media (min-width: 900px) {
	.network-map__hint {
		display: none !important;
	}
}

.network-map__canvas {
	overflow-x: auto;
	border-radius: var(--radius-lg);
	background: #f7f9fc;
	border: 1px solid var(--border);
	-webkit-overflow-scrolling: touch;
}

.network-map__svg {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 899px) {
	.network-map__svg {
		min-width: 820px;
	}
}

.network-map__hint {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: -8px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.network-map__station {
	cursor: pointer;
}

.network-map__hit {
	fill: transparent;
	pointer-events: all;
}

.network-map__dot {
	fill: #fff;
	stroke-width: 5;
	transition: r 0.15s;
}

.network-map__station:hover .network-map__dot,
.network-map__station:focus .network-map__dot,
.network-map__station.is-selected .network-map__dot {
	fill: #ffd34d;
}

.network-map__station:focus {
	outline: none;
}

.network-map__station:focus-visible .network-map__label {
	text-decoration: underline;
}

.network-map__label {
	font-family: var(--font);
	font-size: 16px;
	font-weight: 700;
	fill: var(--navy);
	paint-order: stroke;
	stroke: #f7f9fc;
	stroke-width: 5px;
	stroke-linejoin: round;
}

.network-map__station.is-selected .network-map__label {
	fill: var(--blue);
}

.network-map__terminus {
	font-family: var(--font);
	font-size: 14px;
	font-weight: 600;
	fill: var(--ink);
	paint-order: stroke;
	stroke: #f7f9fc;
	stroke-width: 5px;
}

.network-map__panel {
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-2);
}

.network-map__panel-code {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.network-map__panel-title {
	margin: 2px 0 4px;
	font-size: 22px;
	font-weight: 800;
}

.network-map__panel-meta {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--ink);
}

.network-map__facts {
	display: grid;
	gap: 8px;
	margin: 0 0 12px;
}

.network-map__facts div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--surface);
	font-size: 15px;
}

.network-map__facts dt {
	color: var(--ink);
}

.network-map__facts dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

.network-map__panel-future {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--amber);
}

.network-map__actions {
	display: grid;
	gap: 8px;
}

@media (min-width: 600px) and (max-width: 1099px) {
	.network-map__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.network-map__facts div {
		flex-direction: column;
		justify-content: flex-start;
		gap: 2px;
	}

	.network-map__facts dd {
		text-align: left;
	}

	.network-map__actions {
		grid-template-columns: repeat(2, max-content);
	}
}

.map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.map-legend__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

@media (max-width: 599px) {
	.map-legend {
		flex-direction: column;
	}
}

.map-legend__item a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	color: var(--navy);
}

.map-legend__swatch {
	width: 28px;
	height: 0;
	border-top: 6px solid var(--line);
	border-radius: 3px;
}

.map-legend__swatch.is-planned {
	border-top-style: dotted;
}

.map-legend__status {
	color: var(--muted);
	font-size: 14px;
}

.map-legend__hub {
	width: 18px;
	height: 18px;
	border: 4px solid var(--navy);
	border-radius: var(--radius-pill);
	background: #fff;
}

/* Bus stations ----------------------------------------------------------- */

.bus-stations {
	display: grid;
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.bus-station {
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
}

.bus-station__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-bottom: 10px;
}

.bus-station__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
}

.bus-station__title a {
	color: var(--navy);
	text-decoration: none;
}

.bus-station__title a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.bus-station__count {
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
}

.bus-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bus-chips .bus-number {
	min-width: 48px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 20px;
}

/* Archives ---------------------------------------------------------------- */

.archive-chips {
	margin: 20px 0 24px;
}

.chip__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--radius-pill);
	background: var(--surface-2);
	color: var(--ink);
	font-size: 12px;
}

.chip[aria-current="page"] .chip__count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.post-grid--archive {
	margin-top: 8px;
}

.pagination {
	margin-top: 32px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.pagination .page-numbers.current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

/* Article ---------------------------------------------------------------- */

.article-layout {
	display: grid;
	gap: 32px;
	padding-top: clamp(16px, 3vw, 24px);
}

.article {
	min-width: 0;
	max-width: 780px;
}

@media (min-width: 1024px) {
	.article-layout--toc {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
		gap: 48px;
	}

	.article-layout--toc .toc--inline {
		display: none;
	}
}

.article-aside {
	display: none;
}

@media (min-width: 1024px) {
	.article-aside {
		display: block;
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
}

.article__cat {
	margin: 14px 0 0;
}

.article__cat .cat-label {
	display: inline-block;
	text-decoration: none;
}

.article__title {
	margin-top: 10px;
	font-size: clamp(26px, 4.4vw, 38px);
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.article__lead {
	font-size: 18px;
	color: var(--navy);
}

.article__media {
	margin: 24px 0 0;
}

.article__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
}

.article__media figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
}

.article .entry-content {
	margin-top: 24px;
}

.notice-box {
	margin-top: 20px;
}

.notice-box p + p {
	margin-top: 4px;
}

.toc {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: #fff;
}

.toc--inline {
	margin-top: 24px;
}

.toc__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
	list-style: none;
	cursor: pointer;
}

.toc__title::-webkit-details-marker {
	display: none;
}

.toc--side .toc__title {
	cursor: default;
}

.toc[open] .toc__title .icon {
	transform: rotate(180deg);
}

.toc__list {
	margin: 0;
	padding: 0 18px 14px;
	list-style: none;
	font-size: 15px;
}

.toc__list li + li {
	margin-top: 0;
}

.toc__list a {
	display: inline-block;
	padding: 10px 0;
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}

.toc__list a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.section-head__title--sm {
	margin-bottom: 20px;
	font-size: clamp(22px, 3vw, 26px);
}

/* Guides quick start ----------------------------------------------------- */

.quick-start {
	margin-top: 20px;
	padding: clamp(18px, 3vw, 28px);
	border-radius: var(--radius-lg);
	background: var(--navy);
	color: #fff;
}

.quick-start__eyebrow {
	color: rgba(255, 255, 255, 0.8);
}

.quick-start__title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.quick-start__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 12px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.quick-start__step {
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.06);
}

.quick-start__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: var(--radius-pill);
	background: var(--blue);
	font-weight: 800;
}

.quick-start__step h3 {
	margin: 10px 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.quick-start__step p {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.88);
}

.quick-start a:focus-visible {
	outline-color: var(--focus-dark);
}

/* Search page ------------------------------------------------------------ */

.search-page__box {
	max-width: 640px;
	margin-top: 20px;
}

.block__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 26px;
	margin-left: 6px;
	padding: 0 8px;
	border-radius: var(--radius-pill);
	background: var(--surface-2);
	color: var(--ink);
	font-size: 14px;
	vertical-align: 3px;
}

.result-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.result-item {
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.result-item__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
}

.result-item__title:hover {
	color: var(--blue);
	text-decoration: underline;
}

.result-item__sub {
	margin: 4px 0 0;
	font-size: 15px;
	color: var(--ink);
}

/* Contact ---------------------------------------------------------------- */

.contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.contact-card {
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.contact-card__label {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-card__email {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 17px;
	font-weight: 700;
}

.contact-card__text {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--ink);
}

.contact-form {
	display: grid;
	gap: 16px;
	padding: clamp(16px, 3vw, 24px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
}

.form-field textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.6;
}

.form-field--choices {
	margin: 0;
	padding: 0;
	border: 0;
}

.form-field--choices legend {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--navy);
}

.choice-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.choice-chip {
	position: relative;
}

.choice-chip input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.choice-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.choice-chip input:checked + span {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.choice-chip input:focus-visible + span {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.contact-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.contact-form__note {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.callout--ok {
	background: #f0faf4;
	border: 1px solid #cbead8;
	color: #0a5c35;
}

.callout--ok .icon {
	color: var(--green);
}

.callout--error {
	background: #fdf1ef;
	border: 1px solid #f3d0ca;
	color: #7a2317;
}

.callout--error .icon {
	color: var(--red);
}

/* Hotels ----------------------------------------------------------------- */

.hotel-stations {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.hotel-station {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.hotel-station__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.hotel-station__title a {
	color: var(--navy);
	text-decoration: none;
}

.hotel-station__meta {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.hotel-station__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* City switcher ------------------------------------------------------------ */

.city-switch--bar {
	background: var(--navy);
	color: #fff;
}

.city-switch__inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.city-switch__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #c7d3ea;
}

.city-switch__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.city-switch__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

/* Bar: a segmented control. Each link keeps its 44px tap area; the track and the
   pills are drawn inside it so the control sits within the bar instead of filling it. */
.city-switch--bar .city-switch__list {
	position: relative;
	flex-wrap: nowrap;
	gap: 0;
	padding: 0 3px;
}

.city-switch--bar .city-switch__list::before {
	content: "";
	position: absolute;
	inset: 4px 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.06);
}

.city-switch--bar .city-switch__link {
	position: relative;
	z-index: 1;
	padding: 0 16px;
	color: #c7d3ea;
}

.city-switch--bar .city-switch__link::before {
	content: "";
	position: absolute;
	inset: 7px 0;
	z-index: -1;
	border-radius: var(--radius-pill);
}

.city-switch--bar .city-switch__link:hover {
	color: #fff;
}

.city-switch--bar .city-switch__link:hover::before {
	background: rgba(255, 255, 255, 0.12);
}

.city-switch--bar .city-switch__link[aria-current="true"] {
	color: var(--navy);
}

.city-switch--bar .city-switch__link[aria-current="true"]::before {
	background: #fff;
	box-shadow: 0 1px 3px rgba(4, 12, 30, 0.35);
}

/* The ring follows the visible pill, not the taller tap area. */
.city-switch--bar .city-switch__link:focus-visible {
	outline: none;
}

.city-switch--bar .city-switch__link:focus-visible::before {
	outline: 3px solid var(--focus-dark);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.city-switch--bar .city-switch__link {
		transition: color 0.2s ease;
	}

	.city-switch--bar .city-switch__link::before {
		transition: background-color 0.2s ease;
	}
}

.city-switch--menu {
	margin: 4px 0 12px;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--surface);
}

.city-switch--menu .city-switch__label {
	color: var(--muted);
}

.city-switch--menu .city-switch__link {
	color: var(--navy);
	border: 1px solid var(--border);
	background: #fff;
}

.city-switch--menu .city-switch__link:hover {
	border-color: var(--blue);
	color: var(--blue);
	background: #fff;
}

.city-switch--menu .city-switch__link[aria-current="true"] {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

/* Homepage city cards ---------------------------------------------------- */

.city-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: clamp(12px, 2vw, 24px);
}

.city-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px 24px 20px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-2);
}

.city-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

.city-card__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.city-card__title a {
	color: var(--navy);
	text-decoration: none;
}

.city-card__title a:hover {
	color: var(--blue);
}

.city-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.city-card__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.city-card__facts dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.city-card__facts dd {
	margin: 2px 0 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--navy);
}

.city-card__facts .city-card__muted,
.city-card__facts .city-card__warn {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.city-card__facts .city-card__warn {
	color: var(--amber);
}

.city-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 479px) {
	.city-card__facts {
		grid-template-columns: 1fr 1fr;
	}

	.city-card__facts > div:last-child {
		grid-column: 1 / -1;
	}
}

/* Homepage operating lines ------------------------------------------------- */

.running-lines {
	display: grid;
	gap: 16px;
}

.running-line {
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--border);
	border-left: 6px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-1);
}

.running-line__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.running-line__title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.running-line__title a {
	color: var(--navy);
	text-decoration: none;
}

.running-line__title a:hover {
	color: var(--line-ink, var(--blue));
}

.running-line__meta {
	margin: 6px 0 12px;
	color: var(--muted);
	font-size: 15px;
}

.station-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.station-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px 0 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--navy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.station-chips a::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 3px solid var(--line);
	border-radius: var(--radius-pill);
	background: #fff;
}

.station-chips a:hover {
	border-color: var(--line-ink, var(--blue));
	color: var(--line-ink, var(--blue));
	background: #fff;
}

.planner-more {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 16px 0 0;
}

/* Progress, segments, planned stations --------------------------------------- */

.tag--planned {
	margin-right: 6px;
	background: var(--amber-soft);
	color: var(--amber);
}

.timeline__item--planned::before {
	border-style: dashed;
	border-color: var(--amber);
}

.timeline__item--planned .timeline__when {
	color: var(--amber);
}

.timeline__text .line-badge {
	margin-right: 6px;
	vertical-align: 1px;
}

.planned-stations {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.planned-stations__item {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.planned-stations__code {
	font-size: 12px;
	font-weight: 800;
	color: var(--muted);
}

.planned-stations__name {
	font-weight: 700;
	color: var(--navy);
}

.planned-stations__meta {
	font-size: 13px;
	color: var(--muted);
}

.progress-filters {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.progress-filters__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.progress-filters__label {
	min-width: 84px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.progress-filters__count {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.progress-year {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
}

.progress-year select {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--navy);
	font: inherit;
}

.line-cards__cell {
	display: flex;
}

.line-cards__cell > .line-card {
	flex: 1;
}

.fare-line {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.station-tile.is-closed .station-tile__link {
	border-style: dashed;
	background: var(--surface);
	box-shadow: none;
}

.station-tile.is-closed .station-tile__dot::before {
	border-style: dashed;
}

.network-map__station.is-closed .network-map__dot {
	stroke-dasharray: 4 3;
	fill: #f7f9fc;
}

.network-map__station.is-closed .network-map__label {
	fill: var(--muted);
	font-weight: 600;
}

.station-closed {
	margin-top: 8px;
}
