/*
	Live departures: the stop board (Figma 4042:36596; its rules are the .dep--board section) and
	one journey from it (4042:55688 and 4042:55925, mobile 4042:57214 and 4042:57423; the
	.dep--journey section at the end). Both pages are built by live-departures.js from jpapi;
	this file styles what it renders.

	The breadcrumbs are timetables.css's .tt-breadcrumbs, loaded alongside.
*/

.dep {
	display: flex;
	flex-direction: column;
	gap: var(--sypn-space-xs);
	padding: var(--sypn-space-sm) var(--sypn-gutter) var(--sypn-space-lg);
	font-family: var(--sypn-font);
	color: var(--brand-asphalt-black);
}

.dep h1,
.dep h2,
.dep p {
	margin: 0;
}

.dep img {
	flex-shrink: 0;
}

/* ---------------------------------------------------------------- head */

.dep-head {
	display: flex;
	align-items: flex-start;
	gap: var(--sypn-space-xs);
}

.dep-mode {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--sypn-radius-md);
	background: var(--brand-asphalt-black);
}

.dep-mode .material-symbols-outlined {
	color: var(--neutral-white);
}

.dep-head__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.dep-head h1 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
}

.dep-head__lede {
	font-size: 16px;
	line-height: 24px;
	color: var(--brand-asphalt-black-75);
}

.dep-head__meta {
	font-size: 12px;
	color: var(--brand-asphalt-black-75);
}

.dep a.dep-head__again,
.dep-head__meta a {
	color: var(--brand-asphalt-black);
	font-weight: 700;
	text-decoration: underline;
}

.dep a.dep-head__again {
	align-self: center;
	font-size: 16px;
}

.dep-head__meta a {
	font-weight: 400;
}

/* ---------------------------------------------------------------- board controls */

.dep-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px var(--sypn-space-xs);
}

.dep h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

.dep-hint {
	font-size: 14px;
	line-height: 20px;
}

.dep-updated {
	display: flex;
	align-items: center;
	gap: var(--sypn-space-xs);
	font-size: 14px;
	line-height: 20px;
}

.dep-refresh {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: var(--brand-asphalt-black);
	text-decoration: underline;
	cursor: pointer;
}

.dep-refresh .material-symbols-outlined {
	font-size: 16px;
}

.dep-refresh:focus-visible {
	outline: 2px solid transparent;
	background: var(--utilities-focus);
	color: var(--brand-asphalt-black);
	text-decoration: none;
	box-shadow: var(--sypn-focus-underline);
}

.dep-refresh.is-busy {
	cursor: progress;
}

@media (prefers-reduced-motion: no-preference) {
	.dep-refresh.is-busy .material-symbols-outlined {
		animation: dep-spin 0.8s linear infinite;
	}
}

@keyframes dep-spin {
	to { transform: rotate(360deg); }
}

.dep-clear {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--brand-asphalt-black);
	text-decoration: underline;
	cursor: pointer;
}

.dep-view {
	display: flex;
	border: 1px solid var(--brand-asphalt-black-25);
	border-radius: var(--sypn-radius-md);
	overflow: hidden;
}

.dep-view button {
	flex: 1;
	height: 44px;
	border: 0;
	background: var(--neutral-white);
	font: inherit;
	font-weight: 700;
	color: var(--brand-asphalt-black);
	cursor: pointer;
}

.dep-view button[aria-pressed="true"] {
	background: var(--sypn-orange-mid);
}

.dep-view .material-symbols-outlined {
	color: var(--basic-black);
}

.dep-view button:focus-visible {
	outline: 2px solid transparent;
	box-shadow: inset 0 0 0 2px var(--brand-asphalt-black), inset 0 0 0 4px var(--utilities-focus);
}

.dep-message {
	padding: var(--sypn-space-xs);
	border-radius: var(--sypn-radius-md);
	background: var(--sypn-fill-subtle);
}

/* ---------------------------------------------------------------- map */

.dep-map {
	height: 300px;
	border-radius: var(--sypn-radius-md);
	overflow: hidden;
	background: var(--brand-charcoal-25);
}

.dep-map.is-far .sypn-pin:not(.sypn-pin--orange) {
	display: none;
}

/* The stop map page: the map is the page. */
.dep-map--stops {
	height: 600px;
}

@media (max-width: 991.98px) {
	.dep-map--stops {
		height: 70dvh;
	}
}

.dep-stop-map.is-expanded .dep-map--stops {
	height: 100%;
	border-radius: 0;
}

.dep-stop-map .mapboxgl-ctrl-top-left {
	display: none;
}

.dep-map-frame:has(.dep-key) .mapboxgl-ctrl-bottom-right {
	right: 233px;
}

.dep-map-status {
	position: absolute;
	top: 16px;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - 208px);
	padding: 8px 12px;
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
	box-shadow: 0 2px 6px color-mix(in srgb, var(--basic-black) 15%, transparent);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	transform: translateX(-50%);
}

@media (max-width: 767.98px) {
	.dep-map-status {
		left: 16px;
		max-width: calc(100% - 104px);
		transform: none;
	}
}

.dep-map-status[hidden] {
	display: none;
}

.dep-map-status.is-loading {
	font-weight: 400;
	color: var(--brand-asphalt-black-75);
}

.dep-map-status__zoom {
	flex-shrink: 0;
	padding: 4px 12px;
	border: 0;
	border-radius: var(--sypn-radius-sm);
	background: var(--brand-asphalt-black);
	color: var(--neutral-white);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	cursor: pointer;
}

.dep-map-status__zoom:focus-visible {
	outline: var(--sypn-focus-outline);
	box-shadow: var(--sypn-focus-ring);
}

.dep-key {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 2;
	width: 217px;
	overflow: hidden;
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
}

.dep-key__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 56px;
	padding: 12px 16px;
	border: 0;
	background: none;
	color: var(--brand-asphalt-black);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	cursor: pointer;
}

.dep-key__head .material-symbols-outlined {
	color: var(--basic-black);
}

.dep-key__head[aria-expanded="false"] .material-symbols-outlined {
	transform: rotate(180deg);
}

.dep-key__head:focus-visible {
	outline: 2px solid transparent;
	box-shadow: inset 0 0 0 2px var(--brand-asphalt-black), inset 0 0 0 4px var(--utilities-focus);
}

.dep-key__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dep-key__list[hidden],
.dep-key__list li[hidden] {
	display: none;
}

.dep-key__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	border-top: 1px solid var(--brand-charcoal-25);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.dep-key__list .sypn-pin,
.dep-key__list .sypn-vehicle,
.dep-key__location {
	position: relative;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
}

.dep-key__list .sypn-pin--mode {
	width: 40px;
	height: 40px;
	margin: -4px;
}

.dep-key__list .sypn-vehicle__circle {
	width: 32px;
	height: 32px;
	padding: 4px;
}

.dep-key__list .sypn-vehicle__circle .material-symbols-outlined {
	position: relative;
	color: var(--neutral-white);
	font-size: 24px;
}

.dep-key__location {
	display: flex;
	align-items: center;
	justify-content: center;
}

.dep-key__location .mapboxgl-user-location-dot {
	position: relative;
}

.dep-key__location .mapboxgl-user-location-dot::before {
	display: none;
}

.dep-map.is-error {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-asphalt-grey);
}

/* ---------------------------------------------------------------- departure rows */

.dep-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 32px;
	padding: 0 12px;
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.is-ontime {
	color: var(--utilities-info);
}

.is-late {
	color: var(--utilities-light-error);
}

.dep-tag {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- below desktop */

@media (max-width: 991.98px) {
	.dep-mode {
		width: 40px;
		height: 40px;
	}

	.dep-head h1 {
		font-size: 20px;
		line-height: 28px;
	}

	.dep h2 {
		font-size: 20px;
		line-height: 28px;
	}
}

/* ================================================================ live departures page */

.dep.dep--board {
	display: block;
	padding: 0;
}

.dep--board h3 {
	margin: 0;
}

.dep--board .dep-narrow-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- stop heading */

.dep--board .dep-head {
	display: flex;
	align-items: center;
	gap: var(--sypn-space-xs);
	padding: var(--sypn-space-sm) var(--sypn-gutter);
}

.dep--board .dep-head__stop {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: var(--sypn-space-xs);
}

.dep--board .dep-head__text {
	gap: 4px;
}

.dep--board .dep-head h1 {
	display: block;
	font-size: 32px;
	line-height: 40px;
}

.dep--board .dep-head__meta {
	display: flex;
	flex-wrap: wrap;
	font-size: 16px;
	line-height: 24px;
	color: var(--brand-asphalt-black);
}

.dep--board .dep-head__meta > span + span::before {
	content: "\2022";
	margin: 0 10px;
}

/* ---------------------------------------------------------------- search */

.dep-search {
	position: relative;
	flex: 0 0 400px;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--brand-asphalt-black-50);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
}

.dep-search:has(input:focus) {
	border-color: var(--brand-asphalt-black);
	box-shadow: inset 0 0 0 1px var(--brand-asphalt-black);
}

.dep-search:has(input:focus-visible:not([data-pointer-focus])) {
	box-shadow: inset 0 0 0 1px var(--brand-asphalt-black), var(--sypn-focus-ring);
}

.dep-search > .material-symbols-outlined {
	color: var(--brand-asphalt-black-75);
}

.dep-search input[type="text"] {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--brand-asphalt-black);
}

.dep-search input::placeholder {
	color: var(--brand-asphalt-grey);
	opacity: 1;
}

.dep-search .sypn-suggest {
	left: -1px;
	right: -1px;
}

/* ---------------------------------------------------------------- tabs */

.dep--board .dep-tabs {
	display: flex;
	margin: 0 var(--sypn-gutter);
	border-bottom: 1px solid var(--neutral-steam-grey);
}

.dep--board .dep-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	margin-bottom: -1px;
	padding: 8px 16px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--brand-asphalt-black);
	cursor: pointer;
}

.dep--board .dep-tab[aria-selected="true"] {
	border-bottom-color: var(--brand-molten-orange);
	font-weight: 700;
}

.dep--board .dep-tab:focus-visible {
	outline: var(--sypn-focus-outline);
	outline-offset: -2px;
	box-shadow: var(--sypn-focus-ring);
}

.dep--board .dep-tab .material-symbols-outlined {
	color: var(--brand-asphalt-black-75);
}

.dep--board .dep-panel {
	padding: var(--sypn-space-md) var(--sypn-gutter) var(--sypn-space-lg);
}

/* ---------------------------------------------------------------- live departures tab */

.dep--board .dep-panel--live {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: var(--sypn-space-xs);
}

.dep-board-head {
	display: contents;
}

.dep--board .dep-board-head h2 {
	grid-column: 1 / -1;
	margin-bottom: var(--sypn-space-sm);
	font-size: 24px;
	line-height: 32px;
}

.dep--board .dep-updated {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	padding-bottom: 12px;
	white-space: nowrap;
}

.dep-updated__actions,
.dep-route__actions {
	display: inline-flex;
	align-items: center;
	gap: var(--sypn-space-xs);
}

.dep-toolbar {
	grid-column: 1;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sypn-space-xs);
	min-height: 48px;
}

.dep--board .dep-panel > :is(.dep-map-wrap, .dep-filtered, .dep-message, .dep-table, .dep-more) {
	grid-column: 1 / -1;
	margin-top: var(--sypn-space-xs);
}

.dep-filter-anchor {
	position: relative;
}

.dep-filter-button {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 8px 16px;
	border: 1px solid var(--brand-asphalt-black-25);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--brand-asphalt-black);
	white-space: nowrap;
	cursor: pointer;
}

.dep-filter-button .material-symbols-outlined {
	color: var(--basic-black);
}

.dep-filter-button:focus-visible,
.dep-filter__close:focus-visible,
.dep-button:focus-visible,
.dep-map-controls button:focus-visible,
.dep--board a.dep-row:focus-visible,
.dep--board .dep-more:focus-visible,
.dep-copy:focus-visible,
a.dep-service:focus-visible,
.dep-nearby__row:focus-visible,
.dep-jhead__service:focus-visible,
.dep-others .dep-chip:focus-visible,
a.dep-stop__update:focus-visible {
	outline: var(--sypn-focus-outline);
	outline-offset: -2px;
	box-shadow: var(--sypn-focus-ring);
}

.dep--board .dep-chip:focus-visible,
.dep-button--dark:focus-visible,
.dep-others .dep-chip.is-current:focus-visible {
	outline: 2px solid var(--neutral-white);
	outline-offset: -4px;
	box-shadow: var(--sypn-focus-ring);
}

.dep-link-button:focus-visible,
.dep-back:focus-visible,
.dep-alerts__all:focus-visible,
a.dep-stop__name:focus-visible,
.dep-stops__more button:focus-visible {
	outline: 2px solid transparent;
	background: var(--utilities-focus);
	color: var(--brand-asphalt-black);
	text-decoration: none;
	box-shadow: var(--sypn-focus-underline);
}

.dep-planned__toggle:focus-visible,
a.dep-alert:focus-visible {
	outline: 2px solid transparent;
	box-shadow: inset 0 0 0 2px var(--brand-asphalt-black), inset 0 0 0 4px var(--utilities-focus);
}

.dep-filter-button[aria-expanded="true"] .material-symbols-outlined:last-child {
	transform: rotate(180deg);
}

.dep-filter-button__label {
	color: var(--brand-asphalt-black-75);
}

.dep--board .dep-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dep--board .dep-chips:empty {
	display: none;
}

.dep-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 8px 12px 8px 20px;
	border: 1px solid var(--brand-asphalt-black-25);
	border-radius: 24px;
	background: var(--brand-asphalt-black);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--neutral-white);
	cursor: pointer;
}

.dep--board .dep-chip .material-symbols-outlined {
	font-size: 16px;
}

.dep-link-button {
	padding: 12px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--brand-asphalt-black);
	text-decoration: underline;
	cursor: pointer;
}

.dep-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 16px;
	border: 2px solid var(--brand-asphalt-black);
	border-radius: var(--sypn-radius-sm);
	background: var(--neutral-white);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--brand-asphalt-black);
	text-decoration: none;
	cursor: pointer;
}

.dep-button:hover {
	color: var(--brand-asphalt-black);
	text-decoration: underline;
}

.dep-button--dark,
.dep-button--dark:hover,
.dep-button--dark:focus-visible {
	background: var(--brand-asphalt-black);
	color: var(--neutral-white);
}

.dep-pause {
	padding: 0;
}

.dep-pause.is-paused {
	padding: 0 8px;
	border-radius: var(--sypn-radius-sm);
	background: var(--brand-asphalt-black);
	color: var(--neutral-white);
	text-decoration: none;
}

.dep-pause.is-paused:focus-visible {
	background: var(--utilities-focus);
	color: var(--brand-asphalt-black);
}

.dep--board .dep-view {
	display: none;
}

/* ---------------------------------------------------------------- services filter */

.dep-filter {
	position: absolute;
	z-index: 30;
	top: calc(100% + 8px);
	left: 0;
	display: flex;
	flex-direction: column;
	width: 480px;
	max-height: min(560px, 75vh);
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-asphalt-black) 12%, transparent);
	overflow: hidden;
}

.dep-filter[hidden],
.dep-filter-backdrop {
	display: none;
}

.dep-filter__handle {
	display: none;
}

.dep-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sypn-space-xs);
	padding: 12px 16px;
}

.dep--board .dep-filter__head h3 {
	margin-bottom: 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.dep--board .dep-filter__head p {
	font-size: 16px;
	line-height: 24px;
}

.dep-filter__close {
	display: flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--brand-asphalt-black);
	cursor: pointer;
}

.dep-filter__options {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-y: auto;
}

.dep-filter__option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
}

.dep-filter__option--all {
	border-bottom: 1px solid var(--brand-charcoal-25);
	font-weight: 700;
}

.dep-filter__option:hover {
	background: var(--sypn-hover-subtle);
}

.dep-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin: 3px;
	border-radius: 2px;
}

.dep-check--off {
	color: var(--brand-asphalt-grey-75);
}

.dep-check--on {
	color: var(--brand-molten-orange);
}

.dep-filter__option input:checked ~ .dep-check--off,
.dep-filter__option input:not(:checked) ~ .dep-check--on {
	display: none;
}

.dep-filter__option input:focus-visible ~ .dep-check {
	outline: var(--sypn-focus-outline);
	outline-offset: -2px;
	box-shadow: var(--sypn-focus-ring);
}

.dep-filter__route {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dep-filter__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-height: 72px;
	padding: 12px 16px;
	border-top: 1px solid var(--brand-charcoal-25);
}

.dep--board .dep-filter__foot p {
	flex-grow: 1;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.dep-filter__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dep-filter__foot .dep-link-button {
	padding: 12px 16px;
}

.dep-filter__foot .dep-button--dark {
	border-color: var(--brand-asphalt-black-50);
}

/* ---------------------------------------------------------------- map */

.dep-map-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dep-map-frame {
	position: relative;
	border-radius: var(--sypn-radius-md);
	overflow: hidden;
}

.dep--board .dep-map {
	height: 296px;
	border-radius: var(--sypn-radius-md);
}

.dep-map-controls {
	position: absolute;
	z-index: 2;
	top: 16px;
	right: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px;
	border-radius: 8px;
	background: var(--neutral-white);
	filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--basic-black) 10%, transparent));
}

.dep-map-controls button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--sypn-radius-md);
	background: var(--sypn-fill-subtle);
	cursor: pointer;
}

.dep-map-controls .material-symbols-outlined {
	color: var(--basic-black);
}

.dep-map-controls button:hover {
	background: var(--brand-charcoal-25);
}

.dep-map-frame.is-expanded {
	position: fixed;
	z-index: 1050;
	inset: 0;
	border-radius: 0;
	background: var(--neutral-white);
}

.dep--board .dep-map-frame.is-expanded .dep-map {
	height: 100%;
	border-radius: 0;
}

html.dep-map-open {
	overflow: hidden;
}

.dep--board .dep-hint {
	max-width: 886px;
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-asphalt-black-75);
}

/* ---------------------------------------------------------------- filtered banner */

.dep-filtered {
	display: flex;
	align-items: center;
	gap: var(--sypn-space-xs);
	padding: 12px 16px;
	border: 1px solid var(--brand-charcoal-grey);
	border-radius: 8px;
	background: var(--brand-charcoal-25);
}

.dep-filtered__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
}

.dep-filtered__icon .material-symbols-outlined {
	font-size: 20px;
	color: var(--basic-black);
}

.dep--board .dep-filtered p {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 16px;
	line-height: 24px;
}

.dep-filtered__all {
	padding: 10px 16px;
	border-color: var(--brand-asphalt-black-50);
	color: var(--sypn-ink-900);
}

/* ---------------------------------------------------------------- departures */

.dep--board .dep-table__head,
.dep--board .dep-row {
	display: grid;
	align-items: center;
}

.dep--board .dep-table__head {
	grid-template-columns: 106px minmax(0, 1fr) 160px 262px 176px 80px;
	height: 40px;
	padding: 0 1px;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--brand-asphalt-black-75);
}

.dep--board .dep-table__head span {
	padding: 0 16px;
}

.dep--board .dep-table__head .dep-table__expected {
	padding-right: 32px;
	text-align: right;
}

.dep--board .dep-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dep--board .dep-row {
	grid-template-columns: minmax(0, 1fr) 160px 262px 176px 80px;
	min-height: 88px;
	padding: 0 1px;
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

.dep--board li[data-row]:focus-visible {
	outline: 2px solid transparent;
}

.dep--board li[data-row]:focus-visible > .dep-row {
	outline: var(--sypn-focus-outline);
	outline-offset: -2px;
	box-shadow: var(--sypn-focus-ring);
}

.dep--board a.dep-row:hover {
	border-color: var(--brand-asphalt-black);
	background: var(--sypn-hover-subtle);
	box-shadow: inset 0 0 0 1px var(--brand-asphalt-black);
	color: var(--brand-asphalt-black);
}

.dep--board .dep-badge {
	position: relative;
	flex-shrink: 0;
	min-width: 56px;
	height: 32px;
	padding: 4px 12px;
	border: 1px solid var(--brand-asphalt-black-25);
	background: var(--brand-charcoal-25);
	color: var(--brand-asphalt-black);
}

.dep--board .dep-row .dep-badge {
	height: 40px;
	padding: 8px 16px;
}

.dep-badge__alert {
	position: absolute;
	top: -8px;
	right: -8px;
	font-size: 24px;
	color: var(--alerts-caution-border);
}

.dep-badge__mode {
	font-size: 24px;
}

.dep-row__service {
	display: flex;
	align-items: center;
	gap: var(--sypn-space-sm);
	min-width: 0;
	padding: 0 24px;
}

.dep-row__to {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dep-row__to strong {
	font-size: 20px;
	line-height: 32px;
}

.dep-row__to span {
	font-size: 16px;
	line-height: 24px;
}

.dep-row__stand {
	padding: 0 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 32px;
}

.dep-row__status {
	padding: 0 16px;
}

.dep-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 24px;
	padding: 0 12px 0 8px;
	border: 1px solid;
	border-radius: 32px;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
}

.dep-pill .material-symbols-outlined {
	font-size: 16px;
}

.dep-pill--ontime {
	border-color: var(--alerts-positive-border);
	background: var(--alerts-positive-fill);
	color: var(--alerts-positive-text);
}

.dep-pill--delayed {
	border-color: var(--alerts-caution-border);
	background: var(--alerts-caution-fill);
	color: var(--alerts-caution-text);
}

.dep-pill--scheduled {
	border-color: var(--alerts-timetable-border);
	background: var(--alerts-timetable-fill);
	color: var(--alerts-timetable-text);
	font-weight: 700;
	line-height: 20px;
}

.dep-pill--cancelled {
	border-color: var(--alerts-negative-border);
	background: var(--alerts-negative-fill);
	color: var(--alerts-negative-text);
}

.dep-row__expected {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 0 32px 0 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 32px;
	white-space: nowrap;
}

.dep-row__expected .material-symbols-outlined {
	color: var(--alerts-positive-text);
}

.dep-row__expected.is-cancelled span:not(.material-symbols-outlined) {
	color: var(--brand-asphalt-grey);
	text-decoration: line-through;
}

.dep--board .dep-row__go {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dep--board .dep-row__go .material-symbols-outlined {
	font-size: 16px;
	color: var(--basic-black);
}

@media (prefers-reduced-motion: no-preference) {
	.dep--board li.is-flash .dep-row {
		animation: dep-flash 1.6s ease-out;
	}
}

@keyframes dep-flash {
	from {
		border-color: var(--brand-molten-orange);
		box-shadow: 0 0 0 2px var(--brand-molten-orange);
	}
}

.dep--board .dep-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 48px;
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--brand-asphalt-black);
	cursor: pointer;
}

.dep--board .dep-more .material-symbols-outlined {
	font-size: 16px;
	color: var(--basic-black);
	transform: rotate(90deg);
}

/* ---------------------------------------------------------------- stop details tab */

.dep-stop-layout {
	display: flex;
	align-items: flex-start;
	gap: var(--sypn-space-md);
}

.dep-stop-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dep-stop-col--side {
	flex: 0 0 596px;
	gap: var(--sypn-space-xs);
}

.dep-stop-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dep-stop-block--services,
.dep-stop-block--plan,
.dep-stop-block--nearby {
	padding-bottom: 8px;
}

.dep--board .dep-stop-block h3 {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.dep-services,
.dep-nearby {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dep-service {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 0;
	border-bottom: 1px solid var(--brand-charcoal-25);
}

a.dep-service {
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

a.dep-service:hover {
	color: var(--brand-asphalt-black);
}

a.dep-service:hover .dep-service__text span:first-child {
	text-decoration: underline;
}

.dep--board .dep-service .dep-badge {
	min-width: 36px;
	padding: 4px 8px;
}

.dep-service__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 16px;
	line-height: 24px;
}

.dep-service__go {
	font-size: 16px;
	color: var(--basic-black);
}

.dep-service__text span + span,
.dep-service--none {
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-asphalt-black-75);
}

.dep-where {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 24px 8px;
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
}

.dep--board .dep-where h3 {
	font-size: 24px;
	line-height: 32px;
}

.dep--board .dep-where__street {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 16px;
	line-height: 24px;
}

.dep-where__street .material-symbols-outlined {
	font-size: 16px;
}

.dep-where__street[hidden] {
	display: none;
}

.dep-where__number {
	display: flex;
	align-items: center;
	gap: var(--sypn-space-xs);
	padding: 16px 0 8px;
	border-top: 1px solid var(--brand-charcoal-25);
	font-size: 14px;
	line-height: 20px;
}

.dep-where__number > span:first-child {
	margin-right: auto;
}

.dep-where__number strong {
	font-size: 16px;
	line-height: 24px;
}

.dep-copy {
	display: flex;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.dep-copy .material-symbols-outlined {
	color: var(--basic-black);
}

.dep-copy.is-done {
	opacity: 0.4;
}

.dep-plan {
	display: flex;
	gap: 8px;
}

.dep-plan .dep-button {
	flex: 1 1 0;
	min-height: 52px;
}

.dep-plan .material-symbols-outlined {
	font-size: 16px;
}

.dep-plan [data-plan="from"] .material-symbols-outlined {
	margin: 0 -3.33px 0 -4px;
	color: var(--basic-black);
}

.dep-nearby__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 0;
	border-bottom: 1px solid var(--brand-charcoal-25);
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

.dep-nearby__row:hover {
	color: var(--brand-asphalt-black);
}

.dep-nearby__row:hover strong {
	text-decoration: underline;
}

.dep-nearby__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 4px;
	border: 1px solid var(--brand-asphalt-black-25);
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
}

.dep-nearby__icon .material-symbols-outlined {
	font-size: 16px;
}

.dep-nearby__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 0;
	font-size: 16px;
	line-height: 24px;
}

.dep-nearby__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dep-nearby__lines span {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.dep-nearby__distance {
	margin-left: 4px;
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-asphalt-black-75);
	white-space: nowrap;
}

.dep-nearby__go {
	font-size: 16px;
	color: var(--basic-black);
}

.dep-report {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px;
	border: 1px solid var(--brand-charcoal-50);
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
}

.dep--board .dep-report h3 {
	font-size: 16px;
	line-height: 24px;
}

.dep--board .dep-report p {
	font-size: 14px;
	line-height: 20px;
}

.dep-report .dep-button {
	min-height: 52px;
}

.dep-report .material-symbols-outlined {
	font-size: 16px;
	color: var(--basic-black);
}

/* ---------------------------------------------------------------- no stop chosen */

.dep--board.is-idle .dep-tabs,
.dep--board.is-idle .dep-panel--live > :not(.dep-message) {
	display: none;
}

.dep--board.is-idle .dep-panel--live {
	display: block;
	padding-top: 0;
}

/* ---------------------------------------------------------------- live departures page below desktop */

@media (max-width: 991.98px) {
	.dep--board .dep-wide-only {
		display: none;
	}

	.dep--board .dep-narrow-only {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
	}

	.dep--board .dep-head {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px 16px 8px;
	}

	.dep--board .dep-head__text {
		gap: 2px;
	}

	.dep--board .dep-head h1 {
		font-size: 24px;
		line-height: 32px;
	}

	.dep--board .dep-head__meta {
		display: block;
		font-size: 12px;
		line-height: 20px;
		color: var(--brand-asphalt-black-75);
	}

	.dep--board .dep-head__meta > span + span::before {
		margin: 0 4px;
	}

	.dep--board .dep-head__meta > .dep-head__number {
		display: block;
	}

	.dep--board .dep-head__meta > .dep-head__number::before {
		content: none;
	}

	.dep-search {
		flex: none;
	}

	.dep--board .dep-tabs {
		margin: 0 16px;
	}

	.dep--board .dep-tab {
		flex: 1;
		padding: 8px;
		white-space: nowrap;
	}

	.dep--board .dep-panel {
		padding: 16px 16px 24px;
	}

	.dep--board .dep-panel--live {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--sypn-space-xs);
	}

	.dep--board .dep-panel > :is(.dep-map-wrap, .dep-filtered, .dep-message, .dep-table, .dep-more) {
		margin-top: 0;
	}

	.dep-board-head {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.dep--board .dep-board-head h2 {
		margin: 0;
		font-size: 20px;
		line-height: 28px;
	}

	.dep--board .dep-updated {
		flex-wrap: wrap;
		justify-content: space-between;
		row-gap: 4px;
		padding: 0;
		white-space: normal;
	}

	.dep--board .dep-refresh {
		font-weight: 400;
		line-height: 20px;
	}

	.dep--board .dep-pause {
		font-weight: 400;
	}

	.dep-toolbar {
		flex-wrap: nowrap;
		gap: 12px;
	}

	.dep--board .dep-chips,
	.dep--board .dep-clear-all {
		display: none;
	}

	.dep--board .dep-view {
		display: flex;
		flex-shrink: 0;
		margin-left: auto;
		height: 48px;
		border: 1px solid var(--brand-asphalt-black-25);
		border-radius: var(--sypn-radius-md);
		overflow: hidden;
	}

	.dep--board .dep-view button {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 48px;
		height: auto;
		padding: 0;
		border: 0;
		background: var(--neutral-white);
	}

	.dep--board .dep-view button[aria-pressed="true"] {
		background: var(--sypn-orange-mid);
	}

	.dep--board:not(.is-map-view) .dep-panel--live .dep-map-wrap,
	.dep--board.is-map-view .dep-table,
	.dep--board.is-map-view .dep-more {
		display: none;
	}

	.dep--board .dep-panel--live .dep-map {
		height: 420px;
	}

	.dep--board .dep-panel--stop .dep-map {
		height: 200px;
	}

	.dep--board .dep-hint {
		font-size: 12px;
	}

	.dep-filter {
		position: fixed;
		z-index: 1060;
		top: var(--dep-sheet-top, 15vh);
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		max-height: none;
		border: 0;
		border-top: 1px solid var(--brand-charcoal-25);
		border-radius: var(--sypn-radius-md) var(--sypn-radius-md) 0 0;
	}

	html:has(.dep-filter:not([hidden])) {
		overflow: hidden;
	}

	.dep-filter__options {
		overscroll-behavior: contain;
	}

	.dep-filter__handle {
		display: block;
		align-self: center;
		margin-top: 8px;
	}

	.dep-filter__head {
		padding: 16px 16px 8px;
	}

	.dep-filter__option {
		min-height: 56px;
		padding: 4px 16px;
	}

	.dep-filter__foot {
		padding: 12px 16px;
	}

	.dep-filter__foot .dep-link-button {
		padding: 12px 8px;
	}

	.dep-filter-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		z-index: 1055;
		inset: 0;
		background: color-mix(in srgb, var(--brand-asphalt-black) 50%, transparent);
	}

	.dep-filtered {
		padding: 12px;
	}

	.dep--board .dep-filtered p {
		font-size: 14px;
		line-height: 20px;
	}

	.dep--board .dep-filtered p span {
		font-size: 12px;
	}

	.dep-filtered__all {
		min-height: 0;
		padding: 0;
		border: 0;
		background: none;
		font-weight: 400;
		color: var(--brand-asphalt-black);
		text-decoration: underline;
	}

	.dep--board .dep-filtered__all:focus-visible {
		outline: 2px solid transparent;
		background: var(--utilities-focus);
		text-decoration: none;
		box-shadow: var(--sypn-focus-underline);
	}

	.dep--board .dep-table__head {
		grid-template-columns: minmax(0, 1fr) auto;
		height: 32px;
	}

	.dep--board .dep-table__head :is(.dep-table__to, .dep-table__stand, .dep-table__status) {
		display: none;
	}

	.dep--board .dep-table__head .dep-table__expected {
		padding-right: 48px;
	}

	.dep--board .dep-row {
		grid-template-columns: auto auto minmax(0, 1fr) auto auto;
		grid-template-areas:
			"badge to to expected go"
			"badge stand status expected go";
		align-items: start;
		column-gap: 12px;
		row-gap: 8px;
		min-height: 0;
		padding: 12px 0 12px 12px;
	}

	.dep--board div.dep-row {
		padding-right: 12px;
	}

	.dep-row__service {
		display: contents;
	}

	.dep--board .dep-row .dep-badge {
		grid-area: badge;
		min-width: 48px;
		height: auto;
		padding: 4px 8px;
		font-size: 18px;
		line-height: 24px;
	}

	.dep-badge__alert {
		top: -7px;
		right: -7px;
		font-size: 20px;
	}

	.dep-row__to {
		grid-area: to;
		gap: 0;
	}

	.dep-row__to strong {
		overflow: hidden;
		font-size: 18px;
		line-height: 24px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.dep-row__stand {
		grid-area: stand;
		padding: 0;
		font-size: 16px;
		line-height: 24px;
	}

	.dep-row__status {
		grid-area: status;
		padding: 0;
	}

	.dep--board .dep-pill {
		padding: 0 12px;
	}

	.dep--board .dep-pill .material-symbols-outlined {
		display: none;
	}

	.dep-row__expected {
		grid-area: expected;
		align-self: center;
		flex-direction: column;
		align-items: flex-end;
		gap: 1px;
		padding: 0;
		font-size: 18px;
		line-height: 24px;
	}

	.dep--board .dep-row__go {
		grid-area: go;
		padding: 0 16px;
	}

	.dep-stop-layout {
		flex-direction: column;
		align-items: stretch;
		gap: var(--sypn-space-xs);
	}

	.dep-stop-col {
		display: contents;
	}

	.dep-stop-block--map { order: 1; }
	.dep-stop-block--where { order: 2; }
	.dep-stop-block--plan { order: 3; }
	.dep-stop-block--services { order: 4; }
	.dep-stop-block--nearby { order: 5; }
	.dep-stop-block--report { order: 6; }

	.dep-where {
		padding: 16px 16px 8px;
	}

	.dep--board .dep-where h3 {
		font-size: 20px;
		line-height: 28px;
	}
}

/* ================================================================ live journey page */

.dep.dep--journey {
	display: block;
	padding: 0;
}

.dep--journey h2 {
	margin: 0;
}

.dep--journey .dep-message {
	margin: 0 var(--sypn-gutter) var(--sypn-space-xs);
}

.dep--journey.is-idle .dep-journey {
	display: none;
}

/* ---------------------------------------------------------------- journey heading */

.dep-jhead {
	display: flex;
	flex-direction: column;
	gap: var(--sypn-space-xs);
	padding: var(--sypn-space-sm) var(--sypn-gutter);
}

.dep-back {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--brand-asphalt-black);
	text-decoration: underline;
}

.dep-back .material-symbols-outlined {
	font-size: 16px;
	color: var(--brand-molten-orange);
}

.dep-back:hover {
	color: var(--brand-asphalt-black-75);
}

.dep-jhead__row {
	display: flex;
	align-items: center;
	gap: var(--sypn-space-xs);
}

.dep-jhead__text {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dep--journey .dep-jhead h1 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sypn-space-xs);
	margin: 0;
	font-size: 48px;
	font-weight: 700;
	line-height: 56px;
}

.dep--journey .dep-jhead .dep-badge {
	height: 48px;
	padding: 8px 16px;
	font-size: 32px;
	line-height: 40px;
}

.dep--journey .dep-jhead .dep-badge__mode {
	font-size: 32px;
}

.dep--journey .dep-jhead .dep-badge:empty {
	display: none;
}

.dep-jhead__meta {
	display: flex;
	flex-wrap: wrap;
	font-size: 16px;
	line-height: 24px;
}

.dep-jhead__meta > span + span::before {
	content: "\2022";
	margin: 0 10px;
}

.dep-jhead__service {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 8px 16px;
	border: 1px solid var(--brand-asphalt-black-25);
	border-radius: var(--sypn-radius-md);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--brand-asphalt-black-75);
	text-decoration: none;
}

.dep-jhead__service:hover {
	border-color: var(--brand-asphalt-black);
	color: var(--brand-asphalt-black);
	text-decoration: underline;
}

/* ---------------------------------------------------------------- columns */

.dep-journey {
	display: grid;
	grid-template-columns: minmax(0, 596px) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	align-items: start;
	gap: var(--sypn-space-xs) var(--sypn-space-md);
	padding: 0 var(--sypn-gutter) var(--sypn-space-lg);
}

.dep-journey__main {
	grid-column: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sypn-space-xs);
}

.dep-journey__main:not(:has(> :not([hidden]))) {
	display: none;
}

.dep-journey__map {
	grid-column: 2;
	grid-row: 1 / span 2;
	min-width: 0;
}

.dep--journey .dep-map {
	height: 640px;
	border-radius: var(--sypn-radius-md);
}

.dep--journey .dep-map-frame.is-expanded .dep-map {
	height: 100%;
	border-radius: 0;
}

.dep-sep {
	margin: 0 8px;
}

/* ---------------------------------------------------------------- expected at your stop */

.dep-expected {
	display: flex;
	flex-direction: column;
	padding: 16px 16px 8px;
	border: 1px solid var(--brand-charcoal-25);
	border-radius: var(--sypn-radius-md);
	background: var(--neutral-white);
}

.dep-expected__at {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--brand-asphalt-black-75);
}

.dep-expected__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px var(--sypn-space-xs);
	margin-top: 8px;
}

.dep-expected__due {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dep-expected__due .material-symbols-outlined {
	font-size: 32px;
	color: var(--alerts-positive-text);
}

.dep-expected__value {
	font-size: 32px;
	font-weight: 700;
	line-height: 40px;
}

.dep-expected__value small {
	font-size: 20px;
	line-height: 32px;
}

.dep-expected__value.is-cancelled {
	color: var(--brand-asphalt-black-50);
	text-decoration: line-through;
}

.dep-expected__times {
	margin-top: 8px;
	font-size: 14px;
	line-height: 20px;
}

.dep-expected__where {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: var(--sypn-space-xs);
	padding: 16px 0 8px;
	border-top: 1px solid var(--brand-charcoal-25);
	font-size: 14px;
	line-height: 20px;
}

.dep-expected__where .material-symbols-outlined {
	font-size: 16px;
}

.dep-pill--plain {
	padding: 0 12px;
}

/* ---------------------------------------------------------------- travel updates */

.dep-alerts {
	border: 1px solid var(--sypn-caution-border-bright);
	border-radius: var(--sypn-radius-md);
	background: var(--alerts-caution-fill);
	overflow: hidden;
}

.dep-alerts__head {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--sypn-caution-border-bright);
}

.dep-alerts__head .material-symbols-outlined {
	color: var(--basic-black);
}

.dep--journey .dep-alerts__head h2 {
	flex: 1 1 0;
	font-size: 16px;
	line-height: 24px;
}

.dep-alerts__all {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--brand-asphalt-black);
	text-decoration: underline;
}

.dep-alerts__all-narrow {
	display: none;
}

.dep-alerts__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dep-alerts__list li + li {
	border-top: 1px solid var(--sypn-caution-border-bright);
}

.dep-alert {
	display: flex;
	align-items: center;
	gap: var(--sypn-space-xs);
	padding: 8px 16px;
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

.dep-alert__text {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	line-height: 20px;
}

.dep-alert .material-symbols-outlined {
	font-size: 16px;
	color: var(--basic-black);
}

a.dep-alert:hover {
	color: var(--brand-asphalt-black);
}

a.dep-alert:hover strong {
	text-decoration: underline;
}

.dep-no-alerts {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	font-size: 16px;
	line-height: 24px;
	color: var(--brand-asphalt-black-75);
}

.dep-no-alerts .material-symbols-outlined {
	font-size: 16px;
}

.dep-planned {
	border: 1px solid var(--brand-charcoal-50);
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	overflow: hidden;
}

.dep-planned__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 40px;
	padding: 8px 16px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--brand-asphalt-black);
	cursor: pointer;
}

.dep-planned__toggle .material-symbols-outlined {
	font-size: 16px;
	color: var(--basic-black);
}

.dep-planned__toggle:hover span:not(.material-symbols-outlined) {
	text-decoration: underline;
}

.dep-planned__toggle[aria-expanded="true"] .dep-planned__chevron {
	transform: rotate(180deg);
}

.dep-planned .dep-alerts__list,
.dep-planned .dep-alerts__list li + li {
	border-top: 1px solid var(--brand-charcoal-50);
}

/* ---------------------------------------------------------------- other journeys */

.dep-others {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dep--journey .dep-others h2 {
	font-size: 16px;
	line-height: 24px;
}

.dep-others__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dep-others .dep-chip {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 100%;
	padding: 4px 16px;
	border: 1px solid var(--brand-charcoal-50);
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

.dep-others .dep-chip strong {
	font-size: 16px;
	line-height: 24px;
}

.dep-others .dep-chip.is-departed {
	border-color: var(--brand-charcoal-25);
	background: var(--neutral-white);
	color: var(--brand-asphalt-black-75);
}

.dep-others .dep-chip.is-current {
	border-color: var(--brand-asphalt-black);
	background: var(--brand-asphalt-black);
	color: var(--neutral-white);
}

.dep-others .dep-chip:hover {
	border-color: var(--brand-asphalt-black);
	color: var(--brand-asphalt-black);
}

.dep-others .dep-chip.is-current:hover {
	color: var(--neutral-white);
}

.dep-others .dep-chip:not(.is-current):hover strong {
	text-decoration: underline;
}

.dep-chip__late {
	position: absolute;
	top: -4px;
	right: -4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 1px solid var(--alerts-caution-border);
	border-radius: 50%;
	background: var(--alerts-caution-fill);
}

.dep-chip__late .material-symbols-outlined {
	font-size: 12px;
	color: var(--alerts-caution-text);
}

/* ---------------------------------------------------------------- route information */

.dep-route {
	display: flex;
	flex-direction: column;
	gap: var(--sypn-space-xs);
}

.dep-route h2 + .dep-route__bar {
	margin-top: calc(-1 * var(--sypn-space-xs));
}

.dep-route__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px var(--sypn-space-xs);
	min-height: 32px;
}

.dep-route__updated {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-left: 4px;
	font-size: 14px;
	line-height: 20px;
}

.dep-route__updated .material-symbols-outlined {
	font-size: 16px;
	color: var(--alerts-positive-text);
}

.dep-route__updated span:not(.material-symbols-outlined) {
	color: var(--brand-asphalt-black-75);
}

.dep-route__updated span:not(.material-symbols-outlined)::before {
	content: "\2022";
	margin-right: 8px;
}

.dep-route__empty {
	padding: 12px 16px;
	border-radius: var(--sypn-radius-md);
	background: var(--brand-charcoal-25);
	color: var(--brand-asphalt-black-75);
}

.dep-stops {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dep-stops > li {
	position: relative;
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr) auto;
	align-items: start;
	gap: 8px 26px;
	padding-bottom: var(--sypn-space-sm);
}

.dep-stops > li:last-child {
	padding-bottom: 0;
}

.dep-stops > li::after {
	content: "";
	position: absolute;
	top: 12px;
	bottom: -12px;
	left: 7px;
	width: 2px;
	background: var(--brand-asphalt-black);
}

.dep-stops > li:last-child::after {
	content: none;
}

.dep-stops > li.is-passed::after {
	background: repeating-linear-gradient(to bottom, var(--brand-asphalt-black-50) 0 7px, transparent 7px 14px);
}

.dep-stop__marker {
	position: relative;
	z-index: 1;
	grid-column: 1;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	border: 2px solid var(--brand-asphalt-black);
	border-radius: 50%;
	background: var(--neutral-white);
}

.dep-stop.is-passed .dep-stop__marker {
	border-color: var(--brand-asphalt-black-50);
	background: var(--brand-asphalt-black-50);
}

.dep-stop.is-yours .dep-stop__marker {
	width: 24px;
	height: 24px;
	margin: 0 0 0 -4px;
	border-color: var(--brand-asphalt-black);
	background: var(--brand-molten-orange);
}

.dep-stop--vehicle .dep-stop__marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -4px 0 0 -8px;
	background: var(--brand-asphalt-black);
}

.dep-stop--vehicle .dep-stop__marker .material-symbols-outlined {
	font-size: 16px;
	color: var(--neutral-white);
}

.dep-stop__info {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dep-stop__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--brand-asphalt-black);
	text-decoration: underline;
}

.dep-stop.is-first .dep-stop__name {
	font-weight: 400;
}

a.dep-stop__name:hover {
	color: var(--brand-asphalt-black-75);
}

.dep-stop--vehicle .dep-stop__name {
	text-decoration: none;
}

.dep-stop__sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-size: 14px;
	line-height: 20px;
}

.dep-yours {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: var(--sypn-radius-md);
	background: var(--brand-molten-orange);
	font-weight: 700;
}

.dep-stop__time {
	grid-column: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-asphalt-black-75);
	text-align: right;
	white-space: nowrap;
}

.dep-stop__state {
	font-size: 16px;
	line-height: 24px;
}

.dep-stop__expected {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	color: var(--brand-asphalt-black);
}

.dep-stop__expected .material-symbols-outlined {
	font-size: 16px;
	color: var(--alerts-positive-text);
}

.dep-stop__time .dep-pill {
	margin-bottom: 2px;
}

.dep-stop__update {
	grid-column: 2 / -1;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--sypn-caution-border-bright);
	border-radius: var(--sypn-radius-md);
	background: var(--alerts-caution-fill);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--brand-asphalt-black);
	text-decoration: none;
}

.dep-stop__update span:not(.material-symbols-outlined) {
	flex: 1 1 0;
}

.dep-stop__update .material-symbols-outlined {
	font-size: 16px;
	color: var(--basic-black);
}

.dep-stop__update .material-symbols-outlined:first-child {
	font-size: 24px;
}

a.dep-stop__update:hover {
	color: var(--brand-asphalt-black);
}

a.dep-stop__update:hover span:not(.material-symbols-outlined) {
	text-decoration: underline;
}

.dep-stops__more button {
	grid-column: 2;
	justify-self: start;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--brand-asphalt-black);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------------------------------------------------------------- live journey page below desktop */

@media (max-width: 991.98px) {
	.dep-jhead {
		gap: 8px;
		padding: 16px 16px 8px;
	}

	.dep-back {
		display: none;
	}

	.dep-jhead__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.dep-jhead__text {
		gap: 4px;
	}

	.dep--journey .dep-jhead h1 {
		gap: 12px;
		font-size: 24px;
		line-height: 32px;
	}

	.dep--journey .dep-jhead .dep-badge {
		height: 40px;
		padding: 4px 12px;
		font-size: 24px;
		line-height: 32px;
	}

	.dep--journey .dep-jhead .dep-badge__mode {
		font-size: 24px;
	}

	.dep-jhead__meta {
		display: block;
		font-size: 12px;
		line-height: 20px;
		color: var(--brand-asphalt-black-75);
	}

	.dep-jhead__meta > span + span::before {
		margin: 0 4px;
	}

	.dep-jhead__meta > .dep-jhead__by {
		display: block;
	}

	.dep-jhead__meta > .dep-jhead__by::before {
		content: none;
	}

	.dep-route {
		position: relative;
	}

	.dep-route__bar .dep-refresh {
		position: absolute;
		top: 2px;
		right: 0;
	}

	.dep-jhead__service {
		height: 40px;
		font-size: 14px;
	}

	.dep--journey .dep-message {
		margin: 0 16px 16px;
	}

	.dep-journey {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--sypn-space-xs);
		padding: 0 16px var(--sypn-space-sm);
	}

	.dep-journey__main {
		display: contents;
	}

	.dep-journey__map {
		flex: none;
	}

	.dep--journey .dep-map {
		height: 200px;
	}

	.dep--journey .dep-map-frame:not(.is-expanded) .dep-key {
		display: none;
	}

	.dep--journey h2 {
		font-size: 20px;
		line-height: 28px;
	}

	.dep-alerts__all-wide {
		display: none;
	}

	.dep-alerts__all-narrow {
		display: inline;
	}

	.dep-expected__value {
		font-size: 28px;
		line-height: 36px;
	}

	.dep-others__list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.dep-others .dep-chip {
		width: auto;
		padding: 4px 8px;
	}

	.dep-stops > li {
		column-gap: var(--sypn-space-xs);
	}

	.dep-stop__name {
		overflow-wrap: anywhere;
	}
}
