@charset "utf-8";

/*
 * Tatanovo visual tokens (Sky / Traveloka). These complement Bulma rather than changing
 * its primary/info/warning/danger semantics used in timetable data.
 */
:root {
	--ttn-primary: #0871b8;
	--ttn-primary-hover: #075b94;
	--ttn-primary-muted: #8bbdde;
	--ttn-primary-soft: #e5f3fd;
	--ttn-primary-soft-hover: #cce8fa;
	--ttn-brand-bright: #0a9af2;
	--ttn-brand-bright-hover: #087fc9;
	--ttn-accent: hsl(var(--bulma-warning-h), var(--bulma-warning-s), var(--bulma-warning-70-l));
	--ttn-accent-hover: hsl(var(--bulma-warning-h), var(--bulma-warning-s), var(--bulma-warning-65-l));
	--ttn-hero: #eaf2fa;
	--ttn-page: #f4f8fc;
	--ttn-footer: #152d59;
	--ttn-text: #173152;
	--ttn-muted: #60748a;
	--ttn-focus-ring: rgb(10 154 242 / 20%);
	--ttn-surface-shadow: 0 4px 18px rgb(25 45 79 / 5%);
	--ttn-surface-radius: .75rem;
	--ttn-chip-neutral: #f0f1f2;
	--ttn-chip-neutral-hover: #e3e6e9;
	--ttn-chip-text: #3d4752;
	--ttn-chip-text-hover: #26323e;
	--ttn-neutral-surface: #e9eff5;
	--ttn-footer-text: #eef4ff;
	--ttn-footer-muted: #b5c8e3;
	--ttn-footer-button: #294576;
	--ttn-footer-button-hover: #34588c;
	--ttn-footer-button-text: #edf5ff;
	/* Darker accessible blue for ordinary links; bright blue for primary CTAs. */
	--bulma-link-h: 204deg;
	--bulma-link-s: 93%;
	--bulma-link-l: 38%;
	/* Bulma 1.x focus tokens: unify the focus of inputs, selects and buttons. */
	--bulma-focus-h: 203;
	--bulma-focus-s: 91%;
	--bulma-focus-l: 49%;
	--bulma-focus-shadow-size: 0 0 0 0.125em;
	--bulma-focus-shadow-alpha: 0.16;
}

/* Shared desktop content width; narrow breakpoints retain Bulma defaults. */
@media screen and (min-width: 1216px) {
	.container.is-max-widescreen:not(.is-max-tablet):not(.is-max-desktop) {
		max-width: 1320px;
	}
}

/* Shared public-page surfaces and component colors. */
#main-content {
	background: var(--ttn-page);
	color: var(--ttn-text);
}

.ttn-advertiser-disclosure {
	background: var(--ttn-page);
}

#main-content .title,
#main-content .subtitle {
	color: var(--ttn-text);
}

/* Shared heading hierarchy; weights are independent of Bulma title/subtitle classes. */
#main-content h1,
#main-content h2 {
	font-weight: 800;
}

#main-content h3 {
	font-weight: 600;
}

#main-content .subtitle .icon {
	color: var(--ttn-primary);
}

#main-content .schedule-container .subtitle > a {
	color: var(--ttn-text);
}

#main-content .schedule-container .subtitle > a:hover {
	color: var(--ttn-primary);
}

/* Page tabs can be wider than a phone; scroll inside the strip rather than
 * widening the viewport. */
#main-content .tabs {
	min-width: 0;
	max-width: 100%;
	overflow-x: hidden;
	scrollbar-width: none;
}

#main-content .tabs ul {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

#main-content .tabs ul::-webkit-scrollbar {
	display: none;
}

/* Place subpages use distinct navigation chips rather than underlined tabs. */
#main-content .ttn-place-nav.tabs ul {
	justify-content: flex-start;
	align-items: center;
	gap: .5rem;
	padding-bottom: .125rem;
	border-bottom: 0;
}

.ttn-place-nav.tabs li {
	flex: 0 0 auto;
}

.ttn-place-nav.tabs li a {
	min-height: 2.5rem;
	gap: .375rem;
	padding: .5rem .75rem;
	border: 0;
	border-radius: .75rem;
	background: var(--ttn-neutral-surface);
	color: var(--ttn-text);
	line-height: 1.3;
	transition: background-color 150ms ease, color 150ms ease;
}

.ttn-place-nav.tabs li a .icon {
	margin: 0;
	color: inherit;
}

.ttn-place-nav.tabs li:not(.is-active) a:hover {
	background: var(--ttn-primary-soft);
	color: var(--ttn-primary);
}

.ttn-place-nav.tabs li.is-active a,
.ttn-place-nav.tabs li.is-active a:hover {
	background: var(--ttn-primary);
	color: #fff;
}

.ttn-place-nav.tabs li a:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

@media screen and (min-width: 769px) {
	.ttn-point-header-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 1rem;
	}

	.ttn-point-header-layout > h1 {
		grid-column: 1;
		grid-row: 1;
	}

	.ttn-point-header-layout > p {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.ttn-point-header-layout > .box {
		grid-column: 1 / -1;
		grid-row: 3;
	}

	.ttn-point-view-toolbar {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		margin-bottom: 0 !important;
	}

	.ttn-place-schedules-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		margin-bottom: 1.5rem;
	}

	.ttn-place-schedules-header > .title {
		flex: 1 1 auto;
		min-width: 0;
		margin-bottom: 0 !important;
	}

	.ttn-place-bus-view-toolbar {
		flex: none;
		margin-bottom: 0 !important;
	}
}

/* Shared news/media layout: keep thumbnails from expanding a flex row. */
.news-list-item .media-left {
	flex: 0 0 200px;
	max-width: 200px;
}

.news-list-item .media-content {
	min-width: 0;
}

.news-list-image img {
	max-width: 100%;
}

.box {
	border-radius: var(--ttn-surface-radius);
	background: #fff;
	box-shadow: var(--ttn-surface-shadow);
}

/* Reusable page sections for archives, reference pages and transport hubs. */
.ttn-page-panel {
	padding: 1.5rem;
	margin-bottom: 1.25rem;
}

.ttn-page-panel > :last-child {
	margin-bottom: 0;
}

.ttn-page-panel > .title:first-child,
.ttn-page-panel > .subtitle:first-child {
	margin-bottom: 1.25rem;
}

.ttn-page-panel .box.station-schedule-toolbar {
	border: 0;
	background: var(--ttn-page);
	box-shadow: none;
}

/* Secondary detail cards inside an already-white section should not
 * create another layer of floating white surfaces. */
.ttn-page-panel .box:not(.transport-journey-card--unified) {
	border: 1px solid #e2eae8;
	background: var(--ttn-page);
	box-shadow: none;
}

.ttn-page-panel.station-info-section .box {
	border: 0;
}

.station-info-section .ttn-station-place-link,
.station-info-section .ttn-station-place-link strong {
	color: var(--ttn-primary);
}

.station-info-section .ttn-station-place-link:hover,
.station-info-section .ttn-station-place-link:hover strong,
.station-info-section .ttn-station-place-link:focus-visible,
.station-info-section .ttn-station-place-link:focus-visible strong {
	color: var(--ttn-primary-hover);
}

.station-section.ttn-page-panel {
	margin-top: 0;
}

.ttn-page-panel .station-section {
	margin-top: 0;
}

/* Station and train direction filters share the compact portal segmented controls. */
.station-filter-groups .buttons {
	align-items: center;
	gap: .125rem;
	margin-bottom: 0;
	padding: .125rem;
	border: 0;
	border-radius: .5rem;
	background: var(--ttn-page);
}

.station-filter-groups .buttons .button {
	min-height: 2rem;
	border: 0;
	border-radius: .375rem !important;
	background: transparent;
	color: var(--ttn-muted);
	transition: background-color 150ms ease, color 150ms ease;
}

.station-filter-groups .buttons .button:hover {
	background: var(--ttn-primary-soft);
	color: var(--ttn-primary);
}

.station-filter-groups .buttons .button.is-active,
.station-filter-groups .buttons .button[aria-current="page"] {
	background: #fff;
	color: var(--ttn-primary);
	box-shadow: 0 1px 3px rgb(29 49 53 / 12%);
}

.station-filter-groups .buttons .button:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

.ttn-news-topic-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-bottom: 0 !important;
}

.ttn-news-topic-filters .button {
	margin-bottom: 0;
	border-radius: .375rem;
}

.ttn-news-topic-filters .button[aria-current="page"] {
	font-weight: 700;
}

.ttn-site-search-panel .field {
	margin-bottom: 0;
}

.single-news-hero,
.single-news-hero-mobile img {
	border-radius: var(--ttn-surface-radius);
}

/* Archive news use images, but should not repeat huge poster-size cards
 * in the mobile feed. The full news article keeps its own hero image. */
.ttn-news-archive-list .news-list-item:last-child {
	margin-bottom: 0 !important;
}

.ttn-news-archive-list .news-list-title {
	font-size: 1rem;
	line-height: 1.4;
}

/* News previews are lighter; the full article H1 keeps the standard 800. */
#main-content .news-list-title,
#main-content .ttn-news-compact-item .title {
	font-weight: 600;
}

.ttn-news-archive-list .news-list-title a:hover {
	color: var(--ttn-primary) !important;
}

.ttn-news-archive-list .news-list-image {
	border-radius: .5rem;
	clip-path: inset(0 round .5rem);
}

/* Full route badges and number-only badges share one fixed number width. */
#main-content .bus-item .tags .ttn-bus-number-tag {
	flex: 0 0 40px;
}

.ttn-bus-inline-number {
	white-space: nowrap;
}

.ttn-page-panel .tags:last-child {
	margin-bottom: 0;
}

.ttn-page-panel .tags .tag {
	max-width: 100%;
	height: auto;
	min-height: 2rem;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: left;
}

.ttn-bus-detail > .box,
.ttn-bus-archive .bus-district-block,
.ttn-bus-archive .bus-filters {
	padding: 1.5rem;
}

#main-content .box > .subtitle,
#main-content .schedule-container .subtitle {
	color: var(--ttn-text);
	font-size: 1.25rem;
	line-height: 1.3;
}

/* Upcoming Tambov fares: distinct from the prices already in effect. */
.ttn-fare-price-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	max-width: 21rem;
	margin-inline: auto;
}

.ttn-fare-price {
	min-width: 0;
	padding: 1rem .75rem;
	border-radius: .625rem;
	background: var(--ttn-page);
}

.ttn-fare-upcoming-notice {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: 1rem 1.25rem;
	border-radius: var(--ttn-surface-radius);
	background: #fff6de;
	color: var(--ttn-text);
}

.ttn-fare-upcoming-notice > .icon {
	flex: 0 0 1.5rem;
	font-size: 1.35rem;
	color: #90630a;
}

.ttn-fare-chart-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin-top: 1rem;
	color: var(--ttn-muted);
	font-size: .75rem;
}

.ttn-fare-legend-button,
.ttn-fare-legend-future {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	white-space: nowrap;
}

.ttn-fare-legend-button {
	padding: .125rem 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ttn-fare-legend-button:hover {
	color: var(--ttn-text);
}

.ttn-fare-legend-button:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

.ttn-fare-legend-button[aria-pressed="false"] {
	opacity: .45;
}

.ttn-fare-legend-swatch {
	flex: 0 0 1.375rem;
	width: 1.375rem;
	height: .75rem;
}

.ttn-fare-dashed-sample {
	flex: 0 0 1.375rem;
	width: 1.375rem;
	border-top: 2px dashed currentColor;
	color: #a27317;
}

@media screen and (max-width: 768px) {
	.ttn-fare-chart-legend {
		justify-content: flex-start;
	}
}

#main-content .ttn-fare-future-row > td {
	background: #fff8e8;
}

.ttn-fare-table-section .box.ttn-fare-date-card {
	padding: 1rem;
	border: 0;
	border-radius: .625rem;
	background: var(--ttn-page);
	box-shadow: none;
}

.ttn-fare-table-section .box.ttn-fare-date-card.ttn-fare-future-card {
	background: #fff8e8;
}

#main-content .ttn-fare-table-section a,
#main-content .ttn-fare-table-section summary {
	color: var(--ttn-primary);
}

#main-content .ttn-fare-table-section a:hover,
#main-content .ttn-fare-table-section a:focus-visible,
#main-content .ttn-fare-table-section summary:hover,
#main-content .ttn-fare-table-section summary:focus-visible {
	color: var(--ttn-primary-hover);
}

/* General-purpose primary call-to-action. */
.button.is-link:not(.is-light):not(.is-outlined):not(.is-ghost) {
	background: var(--ttn-brand-bright);
	border-color: var(--ttn-brand-bright);
	color: #fff;
}

.button.is-link:not(.is-light):not(.is-outlined):not(.is-ghost):hover,
.button.is-link:not(.is-light):not(.is-outlined):not(.is-ghost):focus-visible {
	background: var(--ttn-brand-bright-hover);
	border-color: var(--ttn-brand-bright-hover);
	color: #fff;
}

/* Shared view and date switching, including timetable controls outside
 * the bus page. The controls intentionally have no outer border. */
.toggle-view .buttons,
.station-date-filter,
.ttn-bus-view-toggle,
.ttn-view-toggle.buttons {
	align-items: center;
	gap: .125rem;
	margin-bottom: 0;
	padding: .125rem;
	border: 0;
	border-radius: .5rem;
	background: var(--ttn-page);
}

/* Override Bulma's .buttons:not(:last-child) bottom margin: both
 * timetable selectors must remain aligned in their shared toolbar. */
.buttons.station-date-filter {
	margin-bottom: 0;
}

.ttn-view-toggle.buttons:not(:last-child) {
	margin-bottom: 0;
}

.ttn-view-toggle .button {
	min-height: 2.25rem;
	border: 0;
	border-radius: .375rem !important;
	background: transparent;
	color: var(--ttn-muted);
}

.ttn-view-toggle .button:hover {
	background: var(--ttn-primary-soft);
	color: var(--ttn-primary);
}

.ttn-view-toggle .button.is-active {
	background: #fff;
	color: var(--ttn-primary);
	box-shadow: 0 1px 3px rgb(29 49 53 / 12%);
}

.ttn-view-toggle .button:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

.toggle-view .button,
.station-date-filter .button {
	height: 2rem;
	min-height: 2rem;
	border-radius: .375rem !important;
	background: transparent;
	color: var(--ttn-muted);
	transition: background-color 150ms ease, color 150ms ease;
}

.toggle-view .button:hover,
.station-date-filter .button:hover {
	background: var(--ttn-primary-soft);
	color: var(--ttn-primary);
}

.toggle-view .button.is-active,
.station-date-filter .button.is-active {
	background: #fff;
	color: var(--ttn-primary);
	box-shadow: 0 1px 3px rgb(29 49 53 / 12%);
}

.toggle-view .button:focus-visible,
.station-date-filter .button:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

@media screen and (max-width: 768px) {
	#main-content > .section {
		padding-top: 1.5rem;
		padding-bottom: 1.5rem;
	}
}

/* Keep the normal grey border when focused: only the blue ring changes.
 * Validation states retain their own red/yellow/green focus styling. */
.input:not(.is-danger):not(.is-warning):not(.is-success):focus,
.textarea:not(.is-danger):not(.is-warning):not(.is-success):focus,
.select:not(.is-danger):not(.is-warning):not(.is-success) select:focus {
	border-color: var(--bulma-input-border-color);
	box-shadow: 0 0 0 .125rem var(--ttn-focus-ring);
	outline: none;
}

.select:not(.is-danger):not(.is-warning):not(.is-success):focus-within {
	border-radius: var(--bulma-radius);
	box-shadow: 0 0 0 .125rem var(--ttn-focus-ring);
}

/* Input pictograms start muted, then become fully blue on hover/focus. */
.control.has-icons-left > .icon.is-left:not(.has-text-danger):not(.has-text-warning):not(.has-text-success) {
	--bulma-input-icon-color: var(--ttn-primary-muted);
	--bulma-input-icon-hover-color: var(--ttn-primary);
	--bulma-input-icon-focus-color: var(--ttn-primary);
}

/* Select chevrons remain blue independently from the icon states. */
.select:not(.is-danger):not(.is-warning):not(.is-success):not(.is-info) {
	--bulma-arrow-color: var(--ttn-primary);
}

/* Explicit color variants. An unmodified .tag keeps its grey Bulma style. */
.tag.ttn-tag-primary {
	background-color: var(--ttn-primary-soft);
	color: var(--ttn-primary);
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.tag.ttn-tag-primary:hover,
.tag.ttn-tag-primary:focus-visible {
	background-color: var(--ttn-primary-soft-hover);
	color: var(--ttn-primary-hover);
	text-decoration: none;
}

/* Neutral direction/place chips on the homepage and transport hub. */
#main-content .ttn-home-card .tag.ttn-tag-primary,
#main-content .ttn-home-card .button.ttn-button-soft {
	background-color: var(--ttn-chip-neutral);
	border-color: transparent;
	color: var(--ttn-chip-text);
}

#main-content .ttn-home-card .tag.ttn-tag-primary:hover,
#main-content .ttn-home-card .tag.ttn-tag-primary:focus-visible,
#main-content .ttn-home-card .button.ttn-button-soft:hover,
#main-content .ttn-home-card .button.ttn-button-soft:focus-visible {
	background-color: var(--ttn-chip-neutral-hover);
	color: var(--ttn-chip-text-hover);
}

/* One compact, number-only pagination style for all public archives. */
#main-content .ttn-pagination {
	margin: 1.25rem 0 0;
}

#main-content .ttn-pagination .pagination-list {
	justify-content: center;
	gap: .375rem;
	width: 100%;
	margin: 0;
}

#main-content .ttn-pagination .pagination-list > li {
	flex-grow: 0;
	flex-shrink: 0;
}

#main-content .ttn-pagination .pagination-link {
	min-width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0 .5rem;
	border: 0;
	border-radius: .5rem;
	background: var(--ttn-neutral-surface);
	box-shadow: none;
	color: var(--ttn-text);
	font-weight: 600;
	transition: background-color 150ms ease, color 150ms ease;
}

#main-content .ttn-pagination .pagination-link:hover {
	background: var(--ttn-primary-soft-hover);
	color: var(--ttn-primary-hover);
}

#main-content .ttn-pagination .pagination-link.is-current {
	background: var(--ttn-primary-soft);
	color: var(--ttn-primary);
}

#main-content .ttn-pagination .pagination-link:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

#main-content .ttn-pagination .pagination-ellipsis {
	min-width: 1.5rem;
	margin: 0;
	color: var(--ttn-muted);
}

@media screen and (max-width: 360px) {
	#main-content .ttn-pagination .pagination-list {
		gap: .25rem;
	}

	#main-content .ttn-pagination .pagination-link {
		min-width: 2.25rem;
		height: 2.25rem;
	}
}

.button.ttn-button-primary {
	background-color: var(--ttn-brand-bright);
	border-color: var(--ttn-brand-bright);
	color: #fff;
}

.button.ttn-button-primary:hover,
.button.ttn-button-primary:focus-visible {
	background-color: var(--ttn-brand-bright-hover);
	border-color: var(--ttn-brand-bright-hover);
	color: #fff;
}

.button.ttn-button-soft {
	background-color: var(--ttn-primary-soft);
	border-color: transparent;
	color: var(--ttn-primary);
}

.button.ttn-button-soft:hover,
.button.ttn-button-soft:focus-visible {
	background-color: var(--ttn-primary-soft-hover);
	color: var(--ttn-primary-hover);
}

/* Unified transport results: keep filter tabs and counters in the portal palette. */
.transport-results-filters .button {
	border-color: transparent;
	background-color: var(--ttn-primary-soft);
	color: var(--ttn-primary);
	transition: background-color 150ms ease, color 150ms ease;
}

.transport-results-filters .button:not(.is-active):hover,
.transport-results-filters .button:not(.is-active):focus-visible {
	background-color: var(--ttn-primary-soft-hover);
	color: var(--ttn-primary-hover);
}

.transport-results-filters .button.is-active {
	background-color: var(--ttn-primary);
	color: #fff;
}

.transport-results-filters .button.is-active:hover,
.transport-results-filters .button.is-active:focus-visible {
	background-color: var(--ttn-primary-hover);
	color: #fff;
}

.transport-results-filters .button:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

.transport-results-filters .button .tag {
	background-color: rgb(255 255 255 / 80%);
	color: var(--ttn-primary);
}

.transport-results-filters .button.is-active .tag {
	background-color: #fff;
	color: var(--ttn-primary);
}

.transport-journey-card--unified .transport-journey-service {
	margin-top: .65rem;
	line-height: 1.4;
}

@media screen and (max-width: 768px) {
	/* Direction pages use the same light page surface and white journey cards
	 * as /transport/; avoid nesting them inside a white page panel. */
	.ttn-train-route-schedule.ttn-page-panel {
		background: var(--ttn-page);
		box-shadow: none;
	}

	.ttn-train-route-mobile {
		display: flex;
		flex-direction: column;
		gap: .75rem;
	}

	.ttn-train-route-mobile-item .transport-journey-card--unified {
		margin-bottom: 0;
	}

	.ttn-train-route-mobile .transport-midnight-divider {
		margin-block: .35rem;
	}
}

#main-content .tag.ttn-bus-number-tag {
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	margin: 0;
	padding-inline: .125rem;
	justify-content: center;
	white-space: nowrap;
	overflow-wrap: normal;
	text-decoration: none;
}

.ttn-article-related {
	margin-bottom: 1.5rem;
}

.ttn-article-related > .field {
	margin-bottom: 0;
}

.tag.ttn-bus-number-tag:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

/* Shared header on all public pages. */
.ttn-site-header {
	position: relative;
	z-index: 40;
	color: var(--ttn-text);
}

.ttn-site-navbar {
	background: var(--ttn-hero);
	box-shadow: none;
}

.ttn-top-area {
	/* One continuous illustration behind both the homepage navbar and search.
	 * A uniform tint keeps white navigation legible without fading the edges. */
	background-color: #163c65;
	background-image:
		linear-gradient(rgb(9 38 78 / 39%), rgb(9 38 78 / 39%)),
		url('../assets/images/hero/home-desktop.webp');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
	.ttn-top-area {
		background-image:
			linear-gradient(rgb(9 38 78 / 39%), rgb(9 38 78 / 39%)),
			url('../assets/images/hero/home-mobile.webp');
	}
}

.ttn-top-area .ttn-site-navbar,
.ttn-top-area .ttn-home-hero {
	background: transparent;
}

.ttn-top-area .ttn-site-nav-links a,
.ttn-top-area .ttn-header-icon-button,
.ttn-top-area .ttn-home-hero .title,
.ttn-top-area .ttn-home-hero .subtitle {
	color: #fff !important;
}

.ttn-top-area .ttn-site-nav-links a:hover,
.ttn-top-area .ttn-site-nav-links a:focus-visible {
	color: #d8efff !important;
}

.ttn-top-area .ttn-header-icon-button:hover,
.ttn-top-area .ttn-header-icon-button:focus-visible {
	background: rgb(255 255 255 / 20%);
	color: #fff !important;
}

@media screen and (min-width: 769px) {
	.ttn-home-hero .transport-search[data-transport-unified] {
		background: rgb(255 255 255 / 6%);
		backdrop-filter: blur(4px);
		-webkit-backdrop-filter: blur(4px);
		box-shadow: 0 10px 30px rgb(9 38 78 / 10%);
	}

	/* Bulma columns leave 8px of extra space below the controls. */
	.ttn-home-hero .transport-search[data-transport-unified] .transport-search-sheet__body > .columns {
		margin-bottom: -2rem;
	}

	.ttn-home-hero .transport-search[data-transport-unified] form:has([data-transport-error]:not([hidden]), [data-transport-status]:not(:empty)) .transport-search-sheet__body > .columns {
		margin-bottom: 0;
	}
}

.ttn-site-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 3.25rem;
}

.ttn-site-brand {
	position: relative;
	min-height: 3.25rem;
	justify-content: flex-start;
}

.ttn-site-brand .navbar-item {
	padding-inline: 0;
	background: transparent;
}

.ttn-site-brand .navbar-item:hover,
.ttn-site-brand .navbar-item:focus,
.ttn-site-brand .navbar-item:active {
	background: transparent !important;
}

.ttn-site-brand-logo {
	display: block;
	/* The SVG is a complete 1762:238 wordmark, not a standalone icon. */
	width: calc(1.125rem * 1762 / 238);
	height: 1.125rem;
	background-color: var(--ttn-brand-bright);
	-webkit-mask: url('../assets/images/logo.svg') center / contain no-repeat;
	mask: url('../assets/images/logo.svg') center / contain no-repeat;
}

.ttn-top-area .ttn-site-brand-logo {
	background-color: #fff;
}

.ttn-site-nav-links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin-left: 2.5rem;
}

.ttn-site-nav-links a {
	color: var(--ttn-primary);
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 150ms ease;
}

.ttn-site-nav-links a:hover,
.ttn-site-nav-links a:focus-visible {
	color: var(--ttn-primary-hover);
	text-decoration: none;
}

.ttn-header-actions {
	display: flex;
	align-items: center;
	gap: .25rem;
	margin-left: auto;
}

.ttn-header-icon-button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--ttn-text);
	cursor: pointer;
}

.ttn-header-icon-button:hover,
.ttn-header-icon-button:focus-visible {
	background: var(--ttn-primary-soft);
	color: var(--ttn-primary);
}

.ttn-header-icon-button svg {
	display: block;
	width: 20px;
	height: 20px;
}

.ttn-menu-icon-close,
.ttn-site-header.is-menu-open .ttn-menu-icon-open {
	display: none !important;
}

.ttn-site-header.is-menu-open .ttn-menu-icon-close {
	display: block !important;
}

.ttn-site-header.is-menu-open .ttn-menu-toggle {
	background: var(--ttn-primary-soft);
	color: var(--ttn-primary);
}

.ttn-top-area .ttn-site-header.is-menu-open .ttn-menu-toggle {
	background: rgb(255 255 255 / 20%);
	color: #fff;
}

.ttn-header-search {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: .25rem;
	margin: 0;
}

.ttn-header-search-input {
	position: absolute;
	top: 50%;
	right: calc(100% + .25rem);
	max-width: none;
	width: 0;
	min-width: 0;
	height: 2.375rem;
	padding-inline: 0;
	border-width: 0;
	opacity: 0;
	transform: translateY(-50%);
	pointer-events: none;
	transition: width 200ms ease, padding 200ms ease, opacity 150ms ease;
}

.ttn-site-header.is-search-open .ttn-header-search-input {
	width: min(22rem, 36vw);
	padding-inline: .75rem;
	border-width: 1px;
	opacity: 1;
	pointer-events: auto;
}

.ttn-header-search-input:focus,
:is(.ttn-home-hero, .ttn-transport-landing) .transport-search[data-transport-unified] .transport-location .input:focus {
	border-color: var(--bulma-input-border-color);
	box-shadow: 0 0 0 .125rem var(--ttn-focus-ring);
}

/* The custom transport date picker and autocomplete bypass Bulma input focus tokens. */
.transport-search[data-transport-unified] .transport-date .control:focus-within {
	border-color: var(--bulma-border);
	box-shadow: 0 0 0 .125rem var(--ttn-focus-ring);
}

.transport-search .transport-option:focus-visible {
	outline-color: var(--ttn-primary);
}

.transport-search [data-transport-input]:focus-visible {
	outline: none;
}

.transport-search[data-transport-unified] .transport-date-icon,
.transport-search[data-transport-unified] .transport-search-summary__date iconify-icon,
.transport-search[data-transport-unified] .transport-swap-button {
	color: var(--ttn-primary);
}

/* Swap is an interactive control on the homepage, hub and results sheet. */
.transport-search[data-transport-unified] .transport-swap-button {
	border-color: transparent;
	background-color: #fff;
	transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.transport-search[data-transport-unified] .transport-swap-button:hover,
.transport-search[data-transport-unified] .transport-swap-button:focus-visible {
	background-color: var(--ttn-primary-soft-hover);
	color: var(--ttn-primary-hover);
	box-shadow: 0 3px 12px rgb(10 154 242 / 21%);
}

.transport-search[data-transport-unified] .transport-swap-button:active {
	background-color: var(--ttn-primary-muted);
	color: #fff;
}

.ttn-mobile-menu {
	position: absolute;
	z-index: 45;
	top: calc(100% + .5rem);
	right: 0;
	width: min(15rem, calc(100vw - 1.5rem));
	max-height: calc(100dvh - 4.5rem);
	padding: .625rem;
	border: 1px solid #e2eaf3;
	border-radius: 1rem;
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 14px 44px rgb(21 45 89 / 15%), 0 3px 12px rgb(21 45 89 / 5%);
	animation: ttn-mobile-menu-in 160ms ease-out both;
}

.ttn-mobile-menu[hidden] {
	display: none !important;
}

.ttn-mobile-menu-link {
	display: flex;
	align-items: center;
	min-height: 3rem;
	padding: .625rem .875rem;
	border-radius: .75rem;
	color: var(--ttn-text);
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.ttn-mobile-menu-link:hover,
.ttn-mobile-menu-link:focus-visible,
.ttn-mobile-menu-link[aria-current="page"] {
	background: #f0f6fd;
	color: var(--ttn-text);
	text-decoration: none;
}

.ttn-mobile-menu-link:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: -2px;
}

.ttn-mobile-menu-title {
	font-family: var(--ttn-font-heading);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
}

@keyframes ttn-mobile-menu-in {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.ttn-mobile-menu,
	.ttn-mobile-menu-link {
		animation: none;
		transition: none;
	}
}

/* Compact breadcrumbs on internal pages; keep Kama's links and schema markup. */
.ttn-breadcrumbs .breadcrumb {
	--bulma-breadcrumb-item-color: var(--ttn-muted);
	--bulma-breadcrumb-item-hover-color: var(--ttn-primary);
	--bulma-breadcrumb-item-active-color: var(--ttn-text);
	--bulma-breadcrumb-item-separator-color: #a5b7b8;
	--bulma-breadcrumb-item-padding-horizontal: .55em;
	font-size: .8125rem;
	line-height: 1.45;
	white-space: normal;
	margin-bottom: 1.25rem;
}

.ttn-breadcrumbs .breadcrumb a {
	justify-content: flex-start;
	text-decoration: none;
}

.ttn-breadcrumbs .breadcrumb a:hover {
	text-decoration: none;
}

/* Search terms can contain a single long word without spaces. */
body.search .ttn-breadcrumbs .breadcrumb .is-active a {
	min-width: 0;
	overflow-wrap: anywhere;
}

#main-content .ttn-search-navigation {
	display: flex;
	justify-content: center;
}

.ttn-site-footer {
	background: var(--ttn-footer);
	color: var(--ttn-footer-text);
}

.ttn-site-footer strong,
.ttn-site-footer .content {
	color: var(--ttn-footer-text);
}

.ttn-site-footer .has-text-grey {
	color: var(--ttn-footer-muted) !important;
}

.ttn-site-footer .button.is-light {
	background: var(--ttn-footer-button);
	color: var(--ttn-footer-button-text);
}

.ttn-site-footer .button.is-light:hover,
.ttn-site-footer .button.is-light:focus-visible {
	background: var(--ttn-footer-button-hover);
	color: var(--ttn-footer-button-text);
}

/* Portal homepage only; other pages keep their existing content spacing. */
.ttn-home-hero .title {
	color: var(--ttn-text);
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: normal;
}

.ttn-home-hero .subtitle {
	color: var(--ttn-muted) !important;
	font-size: 1rem;
	line-height: 1.45;
}

.ttn-home-main {
	background: var(--ttn-page);
	color: var(--ttn-text);
}

.ttn-home-section {
	padding-top: 1.5rem;
}

.ttn-home-card {
	background: #fff;
}

.ttn-home-card .title {
	color: var(--ttn-text);
}

.ttn-home-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Shared homepage sections also form the transport hub. */
.ttn-transport-sections {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.ttn-transport-sections > .ttn-home-card {
	min-width: 0;
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {
	.ttn-transport-sections > .ttn-home-card {
		margin-inline: -.75rem;
	}
}

.ttn-home-bus-tags {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: .5rem;
	max-height: calc(2 * 2rem + .5rem);
	margin-bottom: 0;
	overflow: hidden;
}

.ttn-home-bus-tags > .tag[hidden] {
	display: none !important;
}

/* Compact, image-free news items shared by homepage and contextual sections. */
.ttn-news-compact-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ttn-news-compact-item .title {
	line-height: 1.4;
}

.ttn-news-compact-item .title a:hover {
	color: var(--ttn-primary) !important;
}

/* Bus catalog layout; general colors and surfaces are defined above. */

.ttn-bus-archive > .title,
.ttn-bus-archive .bus-district-block > .title {
	color: var(--ttn-text);
}


.ttn-bus-archive .bus-filters .label {
	color: var(--ttn-text);
	font-size: .875rem;
}

.ttn-bus-filter-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: .5rem;
}

.ttn-bus-filter-selects {
	display: contents;
}

.ttn-bus-filter-grid .field {
	margin-bottom: 0;
}

.ttn-bus-filter-search,
.ttn-bus-filter-district,
.ttn-bus-filter-type {
	min-width: 0;
}

.ttn-bus-view-toggle {
	display: flex;
	justify-self: end;
	align-items: center;
	gap: .125rem;
	height: 2.5rem;
	padding: .125rem;
	border: 0;
	border-radius: .5rem;
	background: var(--ttn-page);
}

.ttn-bus-view-button {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: .25rem;
	background: transparent;
	color: var(--ttn-muted);
	cursor: pointer;
}

.ttn-bus-view-button svg {
	display: block;
}

.ttn-bus-view-button:hover {
	color: var(--ttn-primary);
}

.ttn-bus-view-button[aria-pressed="true"] {
	background: #fff;
	color: var(--ttn-primary);
	box-shadow: 0 1px 3px rgb(29 49 53 / 12%);
}

.ttn-bus-view-button:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: 2px;
}

.ttn-bus-archive #filter-search::-webkit-search-cancel-button {
	display: none;
}

.ttn-bus-archive .filter-search-clear {
	border: 0;
	border-radius: var(--bulma-radius);
	background: transparent;
	color: var(--ttn-primary);
	cursor: pointer;
}

.ttn-bus-archive .filter-search-clear:focus-visible {
	outline: 2px solid var(--ttn-primary);
	outline-offset: -2px;
}

.ttn-bus-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	min-height: 2rem;
}

.ttn-bus-results-count {
	color: var(--ttn-muted);
	font-size: .875rem;
}

.ttn-bus-archive .bus-no-results {
	padding: 2rem 1rem;
	border-radius: .75rem;
	background: #fff;
}

.ttn-bus-archive .bus-list-by-district {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.ttn-bus-archive .bus-list-by-district > .box {
	margin-bottom: 0;
}

.ttn-bus-archive .bus-district-block > .title {
	margin-bottom: 1.25rem;
}

.ttn-bus-archive .bus-route-type-block {
	margin-bottom: 0 !important;
}

.ttn-bus-archive .bus-route-type-block + .bus-route-type-block {
	margin-top: 1.5rem;
}

.ttn-bus-archive .bus-route-type-block > .subtitle,
.ttn-place-bus-views .bus-route-type-block > .subtitle {
	margin-bottom: .75rem;
	color: var(--ttn-muted);
	font-size: 1rem;
}

#main-content .ttn-place-rail-directions > .subtitle {
	margin-bottom: .75rem;
	color: var(--ttn-text);
	font-size: 1rem;
}

/* The same route card header works for short and long titles, including
 * seasonal/status metadata, without reducing the two view buttons' width. */
.ttn-list-bus-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1.25rem;
}

.ttn-list-bus-card-heading {
	flex: 1 1 auto;
	min-width: 0;
}

.ttn-list-bus-card-heading > .subtitle {
	margin-bottom: 0;
	overflow-wrap: anywhere;
}

.ttn-list-bus-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
	margin-top: .5rem;
}

.ttn-list-bus-card-badges .tag {
	height: auto;
	min-height: 1.375rem;
	padding: .125rem .5rem;
	border-radius: .375rem;
	font-size: .75rem;
	font-weight: 500;
	line-height: 1.35;
}

.ttn-list-bus-card-heading .ttn-list-bus-card-season {
	display: inline-flex;
	vertical-align: middle;
	gap: .25rem;
	margin-left: .375rem;
	padding: .125rem .5rem;
	height: auto;
	min-height: 1.375rem;
	border-radius: .375rem;
	background: #fff0da;
	color: #8b4508;
	font-size: .75rem;
	font-weight: 400;
	line-height: 1.35;
	white-space: nowrap;
}

.ttn-list-bus-card-heading .ttn-list-bus-card-season .icon {
	margin: 0;
	color: #8b4508;
}

.ttn-list-bus-card-heading .ttn-list-bus-card-season iconify-icon {
	color: #8b4508;
}

.ttn-list-bus-card-header > .toggle-view {
	flex: 0 0 auto;
}

.ttn-list-bus-card .toggle-view .buttons {
	width: max-content;
	flex-wrap: nowrap;
}

.ttn-list-bus-card .toggle-view .button {
	flex: 0 0 2rem;
	width: 2rem;
	padding: 0;
}

.ttn-list-bus-card .routes-container {
	margin-bottom: 0;
}

/* Number-only mode reuses the exact number tags from the full route view. */
:is(.ttn-bus-archive, .ttn-place-bus-views, .ttn-point-bus-views)[data-bus-view-mode="numbers"] .bus-multicol {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

:is(.ttn-bus-archive, .ttn-place-bus-views, .ttn-point-bus-views)[data-bus-view-mode="numbers"] .bus-multicol > .bus-item {
	margin-bottom: 0;
}

:is(.ttn-bus-archive, .ttn-place-bus-views, .ttn-point-bus-views)[data-bus-view-mode="numbers"] .bus-item .tags {
	margin-bottom: 0;
}

:is(.ttn-bus-archive, .ttn-place-bus-views, .ttn-point-bus-views)[data-bus-view-mode="numbers"] .bus-item .bus-route-title {
	display: none;
}

:is(.ttn-bus-archive, .ttn-place-bus-views, .ttn-point-bus-views)[data-bus-view-mode="numbers"] .bus-item .tags.has-addons > .tag:first-child {
	border-radius: var(--bulma-radius);
}

@media screen and (max-width: 1023px) {
	.ttn-bus-filter-grid {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: .75rem .5rem;
	}

	.ttn-bus-filter-search {
		grid-column: 1;
		grid-row: 1;
	}

	.ttn-bus-filter-selects {
		display: grid;
		grid-column: 1 / -1;
		grid-row: 2;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .5rem;
	}

	.ttn-bus-view-toggle {
		grid-column: 2;
		grid-row: 1;
	}
}

/* Landing search stays inline on mobile; actual results keep their bottom sheet. */
@media screen and (min-width: 769px) {
	.ttn-home-bus-tags {
		max-height: 2rem;
	}
}

@media screen and (max-width: 768px) {
	.ttn-bus-archive .bus-filters,
	.ttn-bus-archive .bus-district-block {
		margin-inline: -.75rem;
		padding: 1.5rem .75rem;
		border-radius: 0;
		box-shadow: none;
	}

	.ttn-home-section.px-3 {
		padding-inline: 0 !important;
	}

	.ttn-home-section > .container {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
	}

	.ttn-home-card {
		margin-bottom: 0;
		padding: 1.5rem .75rem;
		border-radius: 0;
		box-shadow: none;
	}

	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search.has-mobile-sheet {
		padding: 0;
		background: transparent;
		box-shadow: none;
	}

	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search.has-mobile-sheet .transport-search-sheet {
		position: static;
		display: block;
		width: 100%;
		max-height: none;
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow: visible;
		transform: none;
		visibility: visible;
		transition: none;
	}

	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search .transport-search-summary,
	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search .transport-search-sheet__header,
	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search .transport-search-backdrop {
		display: none !important;
	}

	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search .transport-search-sheet__body > .columns {
		margin-top: 0;
	}

	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search .transport-search-sheet__body > .columns > .column,
	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search .transport-place-pair > .columns > .column {
		padding-top: .125rem;
		padding-bottom: .125rem;
	}

	:is(.ttn-home-hero, .ttn-transport-landing) .transport-search .transport-place-pair > .columns {
		margin-top: 0;
		margin-bottom: 0;
	}

	.transport-search[data-transport-unified] .transport-place-pair > .columns > .column:last-child {
		padding-bottom: 0;
	}

	.transport-search[data-transport-unified] .transport-swap-button {
		left: auto;
		right: 0;
		transform: translateY(-50%) rotate(90deg);
	}
}

@media screen and (max-width: 1023px) {
	.ttn-site-brand {
		width: 100%;
		justify-content: flex-start;
	}

	.ttn-site-nav-links {
		display: none;
	}

	.ttn-header-actions {
		position: absolute;
		top: 50%;
		right: .25rem;
		transform: translateY(-50%);
	}

	.ttn-menu-toggle {
		display: grid;
	}

	.ttn-site-header.is-search-open .ttn-site-brand {
		visibility: hidden;
	}

	.ttn-site-header.is-search-open .ttn-header-search-input {
		width: calc(100vw - 7rem);
	}
}

@media screen and (min-width: 1024px) {
	.ttn-site-brand {
		width: auto;
		padding-left: .75rem;
	}

	.ttn-menu-toggle,
	.ttn-mobile-menu {
		display: none !important;
	}

	.ttn-home-hero .title {
		font-size: 2rem;
	}
}

/* Bus page layout; surfaces and shared controls live in the common styles above.
 * Departure-time colors remain independent of the portal palette. */
.ttn-bus-detail {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.ttn-bus-detail > * {
	min-width: 0;
}

.ttn-bus-detail > .block,
.ttn-bus-detail > .box {
	margin-bottom: 0;
}

.ttn-bus-detail-header {
	padding-bottom: .25rem;
}

.ttn-bus-detail-header .title {
	margin-bottom: .65rem;
	color: var(--ttn-text);
	font-size: clamp(1.625rem, 2.4vw, 2rem);
	line-height: 1.25;
}

.ttn-bus-detail-header #updated {
	color: var(--ttn-muted);
	font-size: .8125rem;
	line-height: 1.5;
}

.ttn-bus-detail-facts.columns {
	align-items: flex-start;
	gap: .5rem 1.5rem;
	margin: 0;
}

.ttn-bus-detail-facts > .column {
	flex: 0 1 auto;
	width: auto;
	padding: 0;
	font-size: .9375rem;
}

.ttn-bus-detail-facts .icon-text {
	align-items: center;
}

.ttn-bus-detail-facts .icon {
	color: var(--ttn-primary);
}

.ttn-bus-detail-facts #fare > .icon-text {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
}

.ttn-bus-detail-facts #fare > .icon-text > span:last-child {
	min-width: 0;
}

.ttn-bus-detail-facts #fare .ttn-fare-content {
	min-width: 0;
}

/* The complete effective date moves to the next line rather than splitting. */
.ttn-bus-detail-facts #fare .ttn-fare-date {
	display: inline-block;
	margin-left: .25rem;
	white-space: nowrap;
}

.ttn-bus-detail-facts #fare .ttn-fare-next {
	max-width: 100%;
	width: fit-content;
	margin-top: .75rem;
	border-radius: .125rem;
}

/* A zero-blur spread extends the solid highlight without affecting layout. */
.ttn-bus-detail-facts #fare .ttn-fare-next--up {
	background: #fbe6e6;
	box-shadow: 0 0 0 4px #fbe6e6;
}

.ttn-bus-detail-facts #fare .ttn-fare-next--up > .icon {
	color: #bd3434;
}

.ttn-bus-detail-facts #fare .ttn-fare-next--down {
	background: #e1f4e7;
	box-shadow: 0 0 0 4px #e1f4e7;
}

.ttn-bus-detail-facts #fare .ttn-fare-next--down > .icon {
	color: #178348;
}

.ttn-bus-detail-facts #fare > .icon-text > .icon {
	padding-top: .1rem;
}

.ttn-bus-detail-facts #fare a {
	color: var(--ttn-muted) !important;
	text-decoration: none;
}

.ttn-bus-detail-facts #fare a:hover {
	color: var(--ttn-primary) !important;
	text-decoration: none;
}

.ttn-bus-detail .notification.is-warning {
	margin-bottom: 0;
	border: 1px solid hsl(var(--bulma-warning-h), var(--bulma-warning-s), var(--bulma-warning-80-l));
	border-radius: .5rem;
	background: hsl(var(--bulma-warning-h), var(--bulma-warning-s), var(--bulma-warning-95-l));
	color: var(--ttn-text);
}

.ttn-bus-detail-schedule [data-ttn-bus-service-notice]:not(:empty) .notification {
	margin-bottom: 1.25rem;
}

.ttn-bus-detail-schedule .schedule-container {
	margin-bottom: 0;
}

.ttn-bus-detail-schedule .ttn-bus-schedule-toolbar {
	align-items: center;
	margin-bottom: 1.25rem;
}

.ttn-bus-detail-schedule .ttn-bus-schedule-toolbar > .subtitle {
	margin-bottom: 0;
}

.ttn-bus-detail-schedule .toggle-view .button {
	width: 2rem;
	padding: 0;
}

.ttn-bus-detail-schedule .ttn-bus-date-filter .button {
	padding-inline: .6rem;
}

.ttn-bus-detail-schedule .routes-container {
	margin-bottom: 0;
}

.ttn-bus-detail-schedule .route_from > p,
.ttn-bus-detail-schedule .route_to > p,
.ttn-list-bus-card .route_from > p,
.ttn-list-bus-card .route_to > p {
	color: var(--ttn-text);
	font-weight: 600;
}

/* Timetable layouts are shared by standalone buses and place listings.
 * Standard view aligns every departure row to one content-sized label track. */
.schedule-container .route_from,
.schedule-container .route_to {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
	.schedule-container .routes-container:not(.columns) {
		display: grid;
		grid-template-columns: fit-content(240px) minmax(0, 1fr);
		row-gap: .25rem;
	}

	.schedule-container .routes-container:not(.columns) > .route-container {
		display: contents;
	}

	.schedule-container .routes-container:not(.columns) > .route-container > .route_from,
	.schedule-container .routes-container:not(.columns) > .route-container > .route_to {
		padding-left: 0;
		/* Match the 4px inner padding of the first departure-time chips. */
		padding-top: 1rem;
		padding-bottom: .5rem;
	}
}

/* Hourly view has a separate, content-sized column for each direction. */
.schedule-container .routes-container.columns.is-mobile {
	flex-wrap: wrap;
}

.schedule-container .routes-container.columns.is-mobile > .route-container {
	flex: 0 1 auto;
	width: max-content;
	min-width: 0;
	max-width: 100%;
}

.schedule-container .routes-container.columns.is-mobile .route_from,
.schedule-container .routes-container.columns.is-mobile .route_to {
	max-width: min(20rem, 100%);
}

.schedule-container .routes-container.columns.is-mobile .hourly-view {
	min-width: 0;
	max-width: 100%;
}

.ttn-bus-detail-route > .subtitle,
.ttn-bus-detail-news > .subtitle {
	margin-bottom: 1.25rem;
}

.ttn-bus-place-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .4rem;
}

.ttn-bus-place-list .tag {
	max-width: 100%;
	height: auto;
	min-height: 2rem;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: left;
}

.ttn-bus-place-list > .icon {
	color: var(--ttn-muted);
}

.ttn-bus-place-separator {
	flex: 0 0 .4rem;
	width: .4rem;
}

.ttn-bus-stops-action {
	margin-top: 1.25rem;
}

.ttn-bus-stops-action .button {
	min-height: 2.5rem;
}

.ttn-bus-detail-tickets .ttn-bus-ticket-form {
	padding: 0;
}

.ttn-bus-detail-tickets .ttn-bus-ticket-form > p:first-child {
	color: var(--ttn-text);
	font-size: 1.125rem;
}

.ttn-bus-detail-tickets .columns {
	margin-bottom: 0;
}

.ttn-bus-detail-source,
.ttn-bus-detail > .is-size-7.has-text-grey {
	color: var(--ttn-muted) !important;
	font-size: .8125rem;
}

.ttn-bus-detail-news .subtitle .icon {
	color: var(--ttn-primary);
}

.ttn-bus-detail #bus-route-stops-modal .modal-card-head {
	background: var(--ttn-page);
}

.ttn-bus-detail #bus-route-stops-modal .modal-card-title {
	color: var(--ttn-text);
}

@media screen and (max-width: 768px) {
	/* Match the single-bus schedule cards and other accepted full-bleed panels. */
	.ttn-place-bus-views #view-detailed .schedule-container {
		margin-inline: -.75rem;
		padding: 1.5rem .75rem;
		border-radius: 0;
		box-shadow: none;
	}

	.ttn-bus-place-connector {
		display: none;
	}

	.ttn-bus-detail-header .title {
		font-size: 1.625rem;
	}

	.ttn-bus-detail-facts.columns {
		gap: .65rem 1rem;
	}

	.ttn-bus-detail-facts > .column.is-full-mobile {
		flex-basis: 100%;
	}

	.ttn-bus-detail > .box {
		margin-inline: -.75rem;
		padding: 1.5rem .75rem;
		border-radius: 0;
		box-shadow: none;
	}

	.ttn-bus-detail-schedule .ttn-bus-date-filter {
		margin-top: .5rem;
		max-width: 100%;
	}

	.ttn-bus-detail-schedule .ttn-bus-schedule-toolbar {
		row-gap: .75rem;
	}
}

@media screen and (max-width: 460px) {
	.news-list-item .media-left {
		flex: none;
		width: 100%;
		max-width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.ttn-news-topic-scroll {
		margin-right: -.75rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.ttn-news-topic-scroll::-webkit-scrollbar {
		display: none;
	}

	.ttn-news-topic-filters {
		width: max-content;
		flex-wrap: nowrap;
		padding-right: .75rem;
	}

	.ttn-news-topic-filters .button {
		flex: none;
		white-space: nowrap;
	}

	.ttn-page-panel {
		margin-inline: -.75rem;
		padding: 1.5rem .75rem;
		border-radius: 0;
		box-shadow: none;
	}

	/* Outage cards, search and sidebar follow the same edge-to-edge section gutters. */
	.ttn-outage-archive .ttn-outage-panel {
		margin-inline: -.75rem;
		padding: 1.5rem .75rem;
		border-radius: 0;
		box-shadow: none;
	}

	/* Place archive: remove nested Bulma gutters and keep both filters inline. */
	.ttn-place-filters {
		margin-inline: -.75rem;
		padding: 1.5rem .75rem;
		border-radius: 0;
		box-shadow: none;
	}

	.ttn-place-filter-fields.columns {
		margin: 0;
		gap: .5rem;
	}

	.ttn-place-filter-fields > .column {
		min-width: 0;
		padding: 0;
	}

	.ttn-place-filter-fields.columns > .ttn-place-filter-search.column {
		flex: 1 1 0;
		width: auto;
	}

	.ttn-place-filter-fields.columns > .ttn-place-filter-district.column {
		flex: 0 0 9.5rem;
		width: 9.5rem;
	}

	.ttn-news-archive-list .news-list-item {
		display: grid;
		grid-template-columns: 6.75rem minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		gap: .25rem .875rem;
	}

	.ttn-news-archive-list .news-list-item .media-left {
		grid-column: 1;
		grid-row: 1 / 3;
		width: 6.75rem;
		max-width: 6.75rem;
		margin: 0;
	}

	.ttn-news-archive-list .news-list-image {
		width: 100%;
	}

	.ttn-news-archive-list .news-list-title {
		font-size: 1rem;
	}

	.ttn-news-archive-list .news-list-item .media-content {
		display: contents;
	}

	.ttn-news-archive-list .news-list-title {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
		margin-bottom: 0 !important;
	}

	.ttn-news-archive-list .news-list-date {
		grid-column: 2;
		grid-row: 2;
		margin-bottom: 0 !important;
	}

	.ttn-news-archive-list .news-list-tags {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: .375rem;
		gap: .25rem;
	}

	.ttn-news-archive-list .news-list-item:not(.has-image) .news-list-title,
	.ttn-news-archive-list .news-list-item:not(.has-image) .news-list-date {
		grid-column: 1 / -1;
	}

	.ttn-article-related-bus {
		max-width: 100%;
		min-width: 0;
		flex: 0 1 auto;
	}

	.ttn-article-related-bus .bus-item,
	.ttn-article-related-bus .tags {
		max-width: 100%;
		min-width: 0;
	}

}

@media screen and (max-width: 360px) {
	.ttn-place-filter-fields.columns > .ttn-place-filter-search.column,
	.ttn-place-filter-fields.columns > .ttn-place-filter-district.column {
		flex: 0 0 100%;
		width: 100%;
	}
}

/* Place weather: use the portal's white surfaces, readable hierarchy and compact data views. */
.ttn-place-weather {
	min-width: 0;
}

.ttn-place-weather .ttn-weather-current,
.ttn-place-weather .ttn-weather-day-card,
.ttn-place-weather .ttn-weather-week-shell,
.ttn-place-weather .ttn-weather-forecast-shell {
	background: #fff;
}

.ttn-place-weather .ttn-weather-current {
	margin-bottom: 0;
	padding: 1.5rem;
}

.ttn-weather-current-heading {
	margin-bottom: .5rem;
	color: var(--ttn-muted);
	font-size: 1rem;
}

.ttn-weather-current-reading {
	display: flex;
	align-items: center;
	gap: 1.125rem;
}

.ttn-weather-current-icon,
.ttn-weather-day-icon,
.ttn-weather-week-icon,
.ttn-weather-forecast-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ttn-primary);
}

.ttn-weather-current-icon iconify-icon {
	font-size: 3.5rem;
}

.ttn-weather-current-temperature {
	color: var(--ttn-text);
	font-size: clamp(3rem, 5vw, 4rem);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.ttn-weather-current-description {
	margin-top: .375rem;
	color: var(--ttn-text);
	font-weight: 600;
}

.ttn-weather-current-time {
	margin-top: .25rem;
	color: var(--ttn-muted);
	font-size: .8125rem;
}

.ttn-weather-section {
	min-width: 0;
	margin-top: 2rem;
}

#main-content .ttn-weather-section-heading {
	margin-bottom: 1rem;
	color: var(--ttn-text);
	font-size: 1.25rem;
	line-height: 1.3;
}

.ttn-weather-near-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.ttn-place-weather .ttn-weather-day-card {
	min-width: 0;
	margin-bottom: 0;
	padding: 1.25rem;
}

.ttn-weather-day-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}

.ttn-weather-day-title {
	color: var(--ttn-text);
	font-size: 1.125rem;
}

.ttn-weather-day-date {
	margin-top: .125rem;
	color: var(--ttn-muted);
	font-size: .8125rem;
}

.ttn-weather-day-icon iconify-icon {
	font-size: 2.75rem;
}

.ttn-weather-day-temperatures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.125rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e8eeec;
}

.ttn-weather-day-temperatures > div {
	display: flex;
	flex-direction: column;
	gap: .125rem;
}

.ttn-weather-value-label {
	color: var(--ttn-muted);
	font-size: .8125rem;
}

.ttn-weather-day-temperatures strong {
	color: var(--ttn-text);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.ttn-weather-day-temperatures > div + div strong {
	color: var(--ttn-muted);
}

.ttn-weather-day-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem 1rem;
	margin-top: 1rem;
}

.ttn-weather-day-details > div {
	min-width: 0;
}

.ttn-weather-day-details dt {
	color: var(--ttn-muted);
	font-size: .8125rem;
}

.ttn-weather-day-details dd {
	margin-top: .125rem;
	color: var(--ttn-text);
	font-size: .9375rem;
	font-weight: 600;
}

.ttn-place-weather .ttn-weather-week-shell {
	margin-bottom: 0;
	padding: 1rem;
}

.ttn-weather-week-strip {
	display: flex;
	gap: .625rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.ttn-weather-week-strip::-webkit-scrollbar {
	display: none;
}

@media screen and (min-width: 769px) {
	.ttn-weather-week-strip {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

.ttn-weather-week-day {
	flex: 1 0 8.25rem;
	min-width: 0;
	padding: .875rem .75rem;
	border-radius: .625rem;
	background: var(--ttn-page);
	scroll-snap-align: start;
}

.ttn-weather-week-date {
	min-height: 2.4em;
	color: var(--ttn-text);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
}

.ttn-weather-week-icon {
	min-height: 3.25rem;
}

.ttn-weather-week-icon iconify-icon {
	font-size: 2rem;
}

.ttn-weather-week-temps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .375rem;
}

.ttn-weather-week-temps > div {
	display: flex;
	flex-direction: column;
	gap: .125rem;
}

.ttn-weather-week-temps span {
	color: var(--ttn-muted);
	font-size: .6875rem;
}

.ttn-weather-week-temps strong {
	color: var(--ttn-text);
	font-size: .9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ttn-weather-week-temps > div + div strong {
	color: var(--ttn-muted);
}

.ttn-place-weather .ttn-weather-forecast-shell {
	margin-bottom: 0;
	padding: .25rem 1.25rem;
}

.ttn-weather-forecast-header,
.ttn-weather-forecast-row {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(3.5rem, .55fr) minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, .75fr);
	align-items: center;
	gap: .75rem;
	min-width: 0;
}

.ttn-weather-forecast-header {
	padding: 1rem .25rem .75rem;
	color: var(--ttn-muted);
	font-size: .8125rem;
	font-weight: 600;
}

.ttn-weather-forecast-row {
	min-height: 4.5rem;
	padding: .75rem .25rem;
	border-top: 1px solid #e8eeec;
	font-size: .875rem;
}

.ttn-weather-forecast-row > * {
	min-width: 0;
}

.ttn-weather-forecast-date {
	color: var(--ttn-text);
	font-weight: 600;
}

.ttn-weather-forecast-icon iconify-icon {
	font-size: 1.875rem;
}

.ttn-weather-forecast-temp-pair {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem;
	font-variant-numeric: tabular-nums;
}

.ttn-weather-forecast-temp-pair > span {
	display: inline-flex;
	align-items: baseline;
	gap: .125rem;
}

.ttn-weather-forecast-temp-label {
	display: none;
}

.ttn-weather-forecast-temp-pair strong {
	color: var(--ttn-text);
	font-weight: 600;
}

.ttn-weather-forecast-temp-night > span:last-child {
	color: var(--ttn-muted);
}

.ttn-weather-forecast-feels {
	display: block;
	margin-top: .125rem;
	color: var(--ttn-muted);
	font-size: .75rem;
}

.ttn-weather-mobile-label {
	display: none;
}

@media screen and (max-width: 768px) {
	.ttn-place-weather .ttn-weather-current,
	.ttn-place-weather .ttn-weather-day-card,
	.ttn-place-weather .ttn-weather-week-shell,
	.ttn-place-weather .ttn-weather-forecast-shell {
		margin-inline: -.75rem;
		border-radius: 0;
		box-shadow: none;
	}

	.ttn-place-weather .ttn-weather-current,
	.ttn-place-weather .ttn-weather-day-card {
		padding: 1.5rem .75rem;
	}

	.ttn-weather-near-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.ttn-weather-day-details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ttn-place-weather .ttn-weather-week-shell {
		padding: 1rem .75rem;
	}

	.ttn-weather-week-day {
		flex: 0 0 8.5rem;
	}

	.ttn-place-weather .ttn-weather-forecast-shell {
		padding: 0 .75rem;
	}

	.ttn-weather-forecast-header {
		display: none;
	}

	.ttn-weather-forecast-row {
		grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, auto);
		gap: .625rem .75rem;
		padding: 1rem 0;
	}

	.ttn-weather-forecast-date {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
	}

	.ttn-weather-forecast-icon {
		grid-column: 1;
		grid-row: 1;
	}

	.ttn-weather-forecast-temps {
		grid-column: 3;
		grid-row: 1;
		max-width: 10rem;
		text-align: right;
	}

	.ttn-weather-forecast-temp-pair {
		justify-content: flex-end;
		flex-wrap: nowrap;
		gap: .5rem;
	}

	.ttn-weather-forecast-temp-pair > span {
		flex-direction: column;
		align-items: flex-end;
		gap: .125rem;
	}

	.ttn-weather-forecast-temp-label {
		display: block;
		color: var(--ttn-muted);
		font-size: .6875rem;
	}

	.ttn-weather-forecast-rain {
		grid-column: 1 / 3;
		grid-row: 2;
	}

	.ttn-weather-forecast-wind {
		grid-column: 3;
		grid-row: 2;
		text-align: right;
	}

	.ttn-weather-mobile-label {
		display: block;
		margin-bottom: .125rem;
		color: var(--ttn-muted);
		font-size: .75rem;
	}
}

@media screen and (max-width: 359px) {
	.ttn-weather-forecast-row {
		grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.15fr);
		gap: .5rem;
	}

	.ttn-weather-forecast-feels {
		font-size: .6875rem;
	}
}
