/*
Theme Name: Not In Service
Description: A last-bus diary, set like municipal transport print: roller-blind masthead, departures-board post list, moquette footer, and journeys you read along a route line. Requires Advanced Custom Fields Pro.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: not-in-service
*/

/* Fonts ------------------------------------------------------------------- */

@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 800; font-display: swap; src: url(assets/fonts/sofia-sans-extra-condensed-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-weight: 600; font-display: swap; src: url(assets/fonts/sofia-sans-extra-condensed-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 400; font-display: swap; src: url(assets/fonts/overpass-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 700; font-display: swap; src: url(assets/fonts/overpass-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-display: swap; src: url(assets/fonts/spectral-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/spectral-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 600; font-display: swap; src: url(assets/fonts/spectral-600-normal.woff2) format("woff2"); }

/* Colour: depot paint by day, a dimmed lower deck at night ----------------- */

:root {
	--paint: #d9e0d8;
	--panel: #e8ece4;
	--ink: #12171a;
	--ink-soft: #47524f;
	--rule: #12171a;
	--hair: #a9b4ac;
	--rail: #f0bd00;
	--rail-ink: #12171a;
	--signal: #bf2f1b;
	--blind: #0b0c0b;
	--blind-ink: #f6f0dc;
	--link: #123f6b;
	--map-land: #e8ece4;
	--map-water: #bcd0cf;
	--map-river: #bcd0cf;

	--display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
	--ui: "Overpass", "Helvetica Neue", Arial, sans-serif;
	--text: "Spectral", Georgia, serif;

	--gutter: clamp(16px, 3vw, 44px);
}

.lights-off {
	--paint: #111816;
	--panel: #18211e;
	--ink: #dde3d6;
	--ink-soft: #94a39b;
	--rule: #dde3d6;
	--hair: #33413c;
	--signal: #f0705a;
	--link: #e9c34a;
	--map-land: #18211e;
	--map-water: #243836;
	--map-river: #243836;
	color-scheme: dark;
}

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

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
	margin: 0;
	background: var(--paint);
	color: var(--ink);
	font-family: var(--text);
	font-size: clamp(1.09rem, 1.03rem + .3vw, 1.22rem);
	line-height: 1.58;
	overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { text-decoration-color: var(--signal); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--rail); outline-offset: 2px; box-shadow: 0 0 0 2px #000; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; text-wrap: balance; }

table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: inherit; }

.wrap { padding-inline: var(--gutter); max-width: 1500px; margin-inline: auto; }

.sr-only {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}

.skip { position: absolute; left: -999px; background: var(--rail); color: #000; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; top: 0; }

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.section-head {
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	text-transform: uppercase;
	letter-spacing: .005em;
}
.section-head a { text-decoration: none; }
.section-head a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-decoration-color: var(--rail); }

.eyebrow {
	font: 700 .78rem/1 var(--ui);
	letter-spacing: .13em;
	text-transform: uppercase;
	margin: 0;
}

/* Service notice and top bar ------------------------------------------------ */

.notice {
	margin: 0;
	padding: .55rem var(--gutter) .4rem;
	background: var(--rail);
	color: var(--rail-ink);
	font: 400 .88rem/1.35 var(--ui);
}
.notice strong { text-transform: uppercase; letter-spacing: .08em; font-size: .78em; margin-right: .6em; }

.bar {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	column-gap: clamp(1rem, 3vw, 2.5rem);
	border-bottom: 2px solid var(--rule);
	padding-inline: var(--gutter);
	font-family: var(--ui);
}

.bar__mark {
	display: block;
	align-self: center;
	padding: .46rem .7rem .24rem;
	background: var(--blind);
	color: var(--blind-ink);
	font: 800 1.46rem/1 var(--display);
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: .02em;
	white-space: nowrap;
	margin-block: .55rem;
}
.bar__mark:hover { color: var(--rail); text-decoration: none; }

.bar__stops { flex: 1 1 auto; min-width: 0; display: flex; }
.bar__stops ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(.9rem, 2vw, 1.8rem);
	margin: 0;
	padding: 0;
	align-items: stretch;
}
.bar__stops li { display: flex; }
.bar__stops a {
	display: flex;
	align-items: center;
	padding-block: .85rem .55rem;
	font-size: .93rem;
	text-decoration: none;
	border-bottom: 5px solid transparent;
	margin-bottom: -2px;
}
.bar__stops a:hover { border-color: var(--hair); text-decoration: none; }
.bar__stops .current-menu-item a,
.bar__stops .current_page_parent a,
.bar__stops .current-menu-ancestor a { border-color: var(--rail); font-weight: 700; }

.lights {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: .55rem;
	background: none;
	border: 0;
	color: inherit;
	padding: .4rem 0;
	font: 400 .78rem/1 var(--ui);
	cursor: pointer;
}
.lights__state {
	width: 2.2rem; height: 1.15rem;
	border: 2px solid var(--rule);
	position: relative;
	flex: none;
}
.lights__state::after {
	content: "";
	position: absolute;
	top: 1px; bottom: 1px; left: 1px;
	width: calc(50% - 1px);
	background: var(--ink);
	transition: transform .12s linear;
}
.lights[aria-pressed="true"] .lights__state::after { transform: translateX(100%); background: var(--rail); box-shadow: 0 0 0 1px var(--ink); }

@media (max-width: 760px) {
	.bar { padding-top: .1rem; }
	.lights__label { display: none; }
	.bar__stops { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-top: 1px solid var(--hair); }
	.bar__stops ul { flex-wrap: nowrap; white-space: nowrap; }
	.bar__stops a { padding-block: .6rem .35rem; font-size: .88rem; }
}

/* The blind ---------------------------------------------------------------- */

.blind {
	--h: clamp(2.7rem, 8vw, 6.4rem);
	display: flex;
	align-items: stretch;
	background: var(--blind);
	color: var(--blind-ink);
	font-family: var(--display);
	font-weight: 800;
	text-transform: uppercase;
	position: relative;
	line-height: 1;
	padding-inline: var(--gutter);
}
/* The curve of the roller, top and bottom, and the coarse linen it's printed on. */
.blind::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0,0,0,.9), transparent 15%, transparent 83%, rgba(0,0,0,.92)),
		repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
		repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px);
}
.blind__number {
	flex: none;
	display: flex;
	align-items: center;
	font-size: calc(var(--h) * .84);
	padding: .08em .28em 0 0;
	margin-right: .22em;
	border-right: 3px solid #2b2d2b;
	color: var(--rail);
}
.blind__window { height: var(--h); overflow: hidden; flex: 1; min-width: 0; }
.blind__reel {
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform 1.25s cubic-bezier(.3, 1.14, .55, 1);
}
.blind__reel li {
	height: var(--h);
	display: flex;
	align-items: center;
	font-size: calc(var(--h) * .84);
	padding-top: .1em;
	white-space: nowrap;
	letter-spacing: .012em;
}
.blind--hero { --h: clamp(4rem, 17vw, 22rem); }
.blind--hero .blind__reel li { font-size: calc(var(--h) * .96); justify-content: space-between; }

.masthead { background: var(--blind); }
.masthead__strap {
	margin: 0;
	padding: .75rem var(--gutter) .6rem;
	background: var(--rail);
	color: var(--rail-ink);
	font: 700 clamp(.84rem, 1.3vw, 1.02rem)/1.3 var(--ui);
}

/* Opening ------------------------------------------------------------------ */

.opening {
	display: grid;
	gap: 2rem clamp(2rem, 6vw, 6rem);
	padding-block: clamp(2rem, 5vw, 3.6rem);
}
.opening__intro { max-width: 41rem; font-size: 1.14em; }
.opening__intro p { margin: 0 0 .8em; }
.opening__intro p:first-child::first-line { font-weight: 600; }

.tally { margin: 0; display: flex; gap: clamp(1.4rem, 4vw, 3.4rem); align-self: end; flex-wrap: wrap; }
.tally dt { font: 400 .8rem/1.2 var(--ui); order: 2; }
.tally div { display: flex; flex-direction: column; border-top: 2px solid var(--rule); padding-top: .5rem; min-width: 6.5rem; }
.tally dd {
	margin: 0;
	font: 800 clamp(3.5rem, 7.5vw, 6rem)/.95 var(--display);
	font-variant-numeric: tabular-nums;
}
.tally small { font-size: .46em; font-weight: 600; color: var(--ink-soft); }

@media (min-width: 900px) {
	.opening { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.tally { justify-content: flex-end; flex-wrap: nowrap; }
}

/* Now boarding: photograph runs off the left edge, text hangs off it */

.boarding { display: grid; background: var(--blind); color: var(--blind-ink); }
.boarding__plate { display: block; overflow: hidden; }
.boarding__plate img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.boarding__text { padding: clamp(1.5rem, 3.4vw, 3rem) var(--gutter); align-self: end; }
.boarding__text .eyebrow { color: var(--rail); margin-bottom: 1.1rem; }
.boarding__route { margin: 0 0 .9rem; display: flex; align-items: center; gap: .65rem; font: 400 .92rem/1.2 var(--ui); }
.boarding h2 { font-size: clamp(2.8rem, 4.6vw, 4.8rem); }
.boarding h2 a { text-decoration: none; }
.boarding h2 a:hover { color: var(--rail); text-decoration: none; }
.boarding__dek { margin: 1rem 0 1rem; }
.boarding__meta { margin: 0; font: 400 .9rem/1.3 var(--ui); opacity: .72; }

@media (min-width: 900px) {
	.boarding { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
}

/* Route chips -------------------------------------------------------------- */

.chip {
	--route: #12171a;
	display: inline-block;
	min-width: 2.9em;
	padding: .3em .45em .1em;
	background: var(--route);
	color: #fff;
	font: 800 1.25rem/1 var(--display);
	letter-spacing: .03em;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
}
a.chip:hover { text-decoration: none; box-shadow: inset 0 -.26em 0 rgba(0,0,0,.35); }
.chip--none { background: transparent; color: var(--ink-soft); }

/* Departures board --------------------------------------------------------- */

.board { display: grid; gap: 2rem; position: relative; }

.board__table caption {
	text-align: left;
	font: 800 clamp(2.6rem, 6vw, 5.4rem)/1 var(--display);
	text-transform: uppercase;
	padding-bottom: .45rem;
}
.board__table thead th {
	font: 400 .76rem/1 var(--ui);
	padding: .55rem .9rem .4rem 0;
	border-top: 4px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}
.board__row td {
	border-bottom: 1px solid var(--hair);
	padding: .82rem .9rem .68rem 0;
	vertical-align: top;
	transition: background-color .08s linear;
}
.board__row { position: relative; }
.board__dep { font: 800 1.68rem/1.05 var(--display); font-variant-numeric: tabular-nums; }
.board__row.is-notice .board__dep { font: 400 .8rem/1.5 var(--ui); color: var(--ink-soft); }
.board__what { width: 62%; line-height: 1.26; }
.board__what a {
	font: 600 clamp(1.5rem, 2.3vw, 1.95rem)/1.04 var(--display);
	text-decoration: none;
	display: block;
}
/* The whole row is the link. */
.board__what a::after { content: ""; position: absolute; inset: 0; }
.board__what a:hover { text-decoration: none; }
.board__row:hover td { background: var(--panel); }
.board__row:hover .board__what a, .board__row.is-peeked .board__what a { text-decoration: underline; text-decoration-color: var(--rail); text-decoration-thickness: 4px; text-underline-offset: .13em; }
.board__when { font: 400 .77rem/1.3 var(--ui); color: var(--ink-soft); display: block; margin-top: .24rem; }
.board__to { font: 600 1.14rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
thead .board__to { font: 400 .76rem/1 var(--ui); text-transform: none; letter-spacing: 0; }
.board__num { text-align: right; padding-right: 0 !important; font: 400 .98rem/1.6 var(--ui); font-variant-numeric: tabular-nums; }

.board__peek { display: none; margin: 0; }

@media (min-width: 1180px) {
	.board { grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 440px); }
	.board__peek { display: block; position: sticky; top: 1.4rem; align-self: start; margin-top: clamp(4.4rem, 6.6vw, 6.4rem); background: var(--blind); aspect-ratio: 3 / 2; }
	.board__peek img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 640px) {
	.board__table td.board__to, .board__table th.board__to { display: none; }
	.board__table .chip { font-size: 1.05rem; min-width: 2.4em; }
	.board__row td { padding-right: .55rem; }
	.board__dep { font-size: 1.32rem; }
}

.more { margin: 1.5rem 0 0; font: 700 .94rem/1 var(--ui); }
.more a::after, .more-link::after { content: " \2192"; }

.empty { font-size: 1.3em; max-width: 30rem; }

/* Pagination */

.pagination { font: 400 .9rem/1 var(--ui); padding-block: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.pagination .page-numbers { text-decoration: none; padding: .46rem .55rem .26rem; }
.pagination .current { background: var(--ink); color: var(--paint); font-weight: 700; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

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

.mapband { background: var(--panel); border-block: 2px solid var(--rule); padding-block: clamp(2rem, 5vw, 4rem); }
.mapband__inner { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
.mapband__text p { max-width: 24rem; margin: 1rem 0 0; }
@media (min-width: 980px) { .mapband__inner { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); } }
.mapband--page { border-bottom-width: 2px; padding-block: 1rem 2rem; }

.netmap { margin: 0; }
.netmap svg { display: block; width: 100%; height: auto; overflow: visible; }

.netmap__water { fill: var(--map-water); }
.netmap__river { fill: none; stroke: var(--map-river); stroke-width: 14; stroke-linecap: round; }
.netmap__water-name { font: italic 400 17px var(--text); fill: var(--ink-soft); letter-spacing: .1em; }

.netmap__line {
	fill: none;
	stroke: var(--route);
	stroke-width: 7.5;
	stroke-linejoin: round;
	stroke-linecap: round;
	transition: opacity .1s linear, stroke-width .1s linear;
}
.netmap__hit { fill: none; stroke: transparent; stroke-width: 26; }
.netmap__route.is-unridden .netmap__line { stroke-dasharray: 1 13; stroke-width: 7; }
.netmap__route.is-withdrawn .netmap__line { stroke-dasharray: 22 11; stroke-linecap: butt; stroke-width: 5.5; }

.netmap__route:hover .netmap__line, .netmap__route:focus .netmap__line, .netmap__route.is-focus .netmap__line { stroke-width: 11; }
.netmap--focus .netmap__route:not(.is-focus) .netmap__line { opacity: .2; }

.netmap__hub { fill: var(--panel); stroke: var(--ink); stroke-width: 4; }
.netmap__label { font: 400 15px var(--ui); fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: 5px; stroke-linejoin: round; }
.netmap__label.is-major { font-weight: 700; font-size: 17px; }
.netmap__flag rect { fill: var(--route); }
.netmap__flag text { font: 800 21px var(--display); fill: #fff; }

.netmap__key { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: .6rem; font: 400 .8rem/1.2 var(--ui); }
.key::before { content: ""; display: inline-block; width: 2.4em; height: 0; margin-right: .5em; vertical-align: .3em; border-top: 4px solid var(--ink); }
.key--unridden::before { border-top-style: dotted; }
.key--withdrawn::before { border-top-style: dashed; border-top-width: 3px; }

/* Overheard ---------------------------------------------------------------- */

.said { margin: 0; break-inside: avoid; }
.said blockquote { margin: 0 0 .5rem; font-family: var(--text); line-height: 1.24; }
.said blockquote::before { content: "\201C"; }
.said blockquote::after { content: "\201D"; }
.said figcaption { font: 400 .8rem/1.5 var(--ui); color: var(--ink-soft); }
.said .chip { font-size: .98rem; margin-right: .3rem; }
.said time { font-weight: 700; color: var(--ink); margin-right: .2rem; }

.heard__list { display: grid; gap: 2.3rem clamp(2rem, 5vw, 5rem); margin-top: 1.6rem; }
.heard__list .said blockquote { font-size: 1.4em; }
@media (min-width: 900px) {
	.heard__list { grid-template-columns: 7fr 4fr; }
	.heard__list .said:first-child { grid-row: span 3; }
	.heard__list .said:first-child blockquote { font-size: clamp(2.3rem, 4.3vw, 3.9rem); line-height: 1.08; margin-bottom: 1rem; }
}

.heard__columns { columns: 19rem 3; column-gap: clamp(2rem, 4vw, 3.6rem); padding-bottom: 4rem; }
.heard__columns .said { padding-block: 0 2.1rem; }
.heard__columns .said blockquote { font-size: 1.32em; }
.heard__columns .said:nth-child(5n+1) blockquote { font-size: 2.05em; line-height: 1.1; }
.heard__columns .said:nth-child(7n+3) blockquote { font-style: italic; }

/* Lost property ------------------------------------------------------------ */

.lostband { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); border-top: 2px solid var(--rule); }
.lostband__text p { margin: 1rem 0 0; max-width: 24rem; }
@media (min-width: 980px) { .lostband { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); } }

.ledger { font-family: var(--ui); font-size: .94rem; line-height: 1.32; }
.ledger thead th { font-size: .75rem; padding: .5rem .8rem .34rem 0; border-top: 4px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ledger td { padding: .72rem .8rem .56rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ledger__ref, .ledger__date { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); font-size: .84rem; padding-top: .9rem !important; }
.ledger .chip { font-size: 1.02rem; }
.ledger__item { width: 60%; }
.ledger__item strong { display: block; font: 600 1.06rem/1.24 var(--text); }
.ledger__where { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .12rem; }
.ledger__item p { font: 400 1rem/1.42 var(--text); margin: .4rem 0 .15rem; max-width: 40rem; }
.ledger__stamp-col { text-align: right; padding-right: 0 !important; }

.stamp {
	display: inline-block;
	padding: .22em .55em .06em;
	font: 800 1.12rem/1 var(--display);
	text-transform: uppercase;
	letter-spacing: .08em;
	transform: rotate(var(--tilt, -3deg));
	border: 2.5px solid currentColor;
	border-radius: 3px;
	opacity: .86;
}
.stamp--held { color: #1b5d8c; }
.stamp--claimed { color: #24703e; }
.stamp--disposed { color: var(--signal); }
.lights-off .stamp--held { color: #7cb4dc; }
.lights-off .stamp--claimed { color: #79c38f; }

@media (max-width: 640px) {
	.ledger__ref, .ledger thead th:first-child { display: none; }
	.ledger td { padding-right: .55rem; }
	.stamp { font-size: .94rem; }
	.ledger__date { font-size: .74rem; }
}

.filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.filter[hidden] { display: none; }
.filter button {
	background: none;
	border: 2px solid var(--rule);
	color: inherit;
	font: 400 .85rem/1 var(--ui);
	padding: .5rem .7rem .32rem;
	cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paint); font-weight: 700; }

/* Generic page heads ------------------------------------------------------- */

.page-head { padding-block: clamp(2rem, 5vw, 4rem) 1.6rem; }
.page-head h1 {
	font-size: clamp(3.8rem, 11vw, 10rem);
	text-transform: uppercase;
	line-height: .87;
}
.page-head p, .page-head__note { max-width: 41rem; margin: 1.1rem 0 0; font-size: 1.1em; }

/* A journey ---------------------------------------------------------------- */

.journey__head { padding-block: clamp(1.6rem, 4vw, 3rem) clamp(1.3rem, 3vw, 2.2rem); }
.journey__date { font: 400 .86rem/1 var(--ui); margin: 0 0 .9rem; }
.journey__head h1, .memo h1 {
	font-size: clamp(3rem, 8.3vw, 8rem);
	line-height: .9;
	max-width: 15em;
}
.journey__dek { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.32; max-width: 38rem; margin: 1.1rem 0 1.8rem; }

.facts {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	border-top: 4px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	font-family: var(--ui);
}
.facts div { padding: .55rem clamp(1rem, 2.4vw, 2.4rem) .42rem 0; }
.facts dt { font-size: .72rem; line-height: 1.3; color: var(--ink-soft); }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.4; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts .chip { font-size: 1.15rem; }
.facts--tight { border-top-width: 2px; margin-top: 1.3rem; }

.journey__plate { margin: 0; background: var(--blind); }
.journey__plate img { width: 100%; max-height: 86vh; object-fit: cover; }
.journey__plate figcaption { color: var(--blind-ink); font: 400 .8rem/1.4 var(--ui); padding: .55rem var(--gutter) .45rem; }

.journey__grid { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 5vw, 3.8rem) 2rem; }
.journey__body { min-width: 0; }

@media (min-width: 980px) {
	.journey__grid { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); }
	.journey--notice .journey__grid { grid-template-columns: minmax(0, 1fr); }
	.journey__body { display: grid; grid-template-columns: minmax(0, 39rem) minmax(0, 1fr); }
	.journey__body > * { grid-column: 1; }
	.journey__body > .is-wide { grid-column: 1 / -1; }
	.journey__body > .block--note { grid-column: 2; grid-row: span 2; margin-left: 2.4rem; margin-top: .3rem; max-width: 18rem; align-self: start; }
}

/* The line down the side of a journey */

.route-line { font-family: var(--ui); margin-bottom: 2rem; }
.route-line ol {
	--travelled: 0%;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}
@media (min-width: 980px) {
	.route-line { position: sticky; top: 1.2rem; align-self: start; max-height: calc(100vh - 2.4rem); overflow-y: auto; scrollbar-width: none; padding-bottom: .5rem; margin-bottom: 0; }
}
.route-line ol::before, .route-line ol::after {
	content: "";
	position: absolute;
	left: 3.72rem;
	top: .6rem;
	bottom: 1.3rem;
	width: 5px;
}
.route-line ol::before { background: var(--hair); }
.route-line ol::after {
	background: var(--route);
	bottom: auto;
	height: min(var(--travelled), calc(100% - 1.9rem));
	transition: height .25s linear;
}
.route-line li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	column-gap: 1.75rem;
	position: relative;
	padding-bottom: .95rem;
	font-size: .86rem;
	line-height: 1.25;
	color: var(--ink-soft);
	transition: color .15s linear;
}
.route-line li::before {
	content: "";
	position: absolute;
	left: 3.46rem;
	top: .16rem;
	width: .83rem;
	height: .83rem;
	background: var(--paint);
	border: 3px solid var(--hair);
	border-radius: 50%;
	z-index: 1;
}
.route-line li.is-passed::before { border-color: var(--route); background: var(--route); }
.route-line li.is-here { color: var(--ink); }
.route-line li.is-here::before { border-color: var(--ink); background: var(--rail); transform: scale(1.3); }
.route-line time { font-variant-numeric: tabular-nums; }
.route-line__name { font-weight: 700; }
.route-line li.is-passed .route-line__name { font-weight: 400; }
.route-line small { grid-column: 2; font-size: .76rem; margin-top: .12rem; display: none; }
.route-line li.is-here small { display: block; }

.next-stop {
	position: fixed;
	z-index: 10;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	background: var(--blind);
	color: #ffb21c;
	padding: .62rem var(--gutter) .44rem;
	font: 800 1.26rem/1 var(--display);
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.next-stop span { opacity: .62; margin-right: .4em; }
@media (min-width: 980px) { .next-stop { display: none; } }

/* Flexible body blocks */

.block { margin: 0 0 1.5em; }
.block--prose p { margin: 0 0 1em; }
.block--prose h2 { font-size: 2.3rem; margin: 1.5em 0 .5em; text-transform: uppercase; }
.block--prose h3 { font-size: 1.7rem; margin: 1.4em 0 .4em; }
.block--prose ul, .block--prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.block--prose li { margin-bottom: .55em; }
.journey:not(.journey--notice) .journey__body > .block--prose:first-child > p:first-child::first-letter {
	font: 800 5.1em/.76 var(--display);
	float: left;
	padding: .09em .09em 0 0;
}
.block--prose blockquote { margin: 1.3em 0; padding-left: 1em; border-left: 5px solid var(--rail); font-style: italic; }
.block--prose a { text-decoration-color: var(--link); }

.block--photo figcaption { font: 400 .8rem/1.4 var(--ui); color: var(--ink-soft); padding-top: .55rem; }
.block--photo img { width: 100%; }
.block--photo.is-small { max-width: 22rem; }
@media (min-width: 700px) {
	.block--photo.is-small { float: left; width: 46%; margin: .35em 1.5rem .8em 0; }
}
@media (min-width: 980px) {
	.journey__body > .block--photo.is-small { float: none; width: auto; margin: .4em 0 1.5em; }
}

.block--exchange {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: .55em 1em;
	margin-block: 1.8em;
	padding-block: .9em;
	border-block: 1px solid var(--rule);
	line-height: 1.34;
}
.block--exchange dt { font: 700 .76rem/1.8 var(--ui); text-transform: uppercase; letter-spacing: .08em; }
.block--exchange dd { margin: 0; }

.block--note { font: 400 .92rem/1.42 var(--ui); padding: .6em .85em .5em; background: var(--rail); color: var(--rail-ink); }
.block--note p { margin: 0; }
.block--note .block--note__by { font: 800 1.14rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .32em; }

.block--timing { font: 400 .94rem/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.block--timing caption { text-align: left; font: italic 400 1rem/1.3 var(--text); padding-bottom: .5rem; }
.block--timing thead th { font-size: .74rem; border-top: 4px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .44rem .5rem .3rem 0; }
.block--timing tbody th, .block--timing td { border-bottom: 1px solid var(--hair); padding: .44rem .5rem .3rem 0; }
.block--timing td:last-child, .block--timing th:last-child { text-align: right; padding-right: 0; }
.block--timing .is-late { color: var(--signal); font-weight: 700; }
.block--timing .is-early { color: var(--link); font-weight: 700; }

/* The ticket: perforated both ends, printed slightly crooked */

.ticket {
	--stock: #d9cfe8;
	--print: #3a2672;
	width: min(100%, 22.5rem);
	margin: 2.7rem 0 2.3rem;
	padding: 1.1rem 1.4rem 1rem;
	background: var(--stock);
	color: var(--print);
	font-family: var(--ui);
	font-size: .8rem;
	line-height: 1.25;
	transform: rotate(-1.2deg);
	-webkit-mask: linear-gradient(#000, #000) center / calc(100% - 14px) 100% no-repeat, radial-gradient(circle 4.4px, transparent 97%, #000) 0 0 / 14px 13px repeat-y, radial-gradient(circle 4.4px, transparent 97%, #000) 100% 0 / 14px 13px repeat-y;
	mask: linear-gradient(#000, #000) center / calc(100% - 14px) 100% no-repeat, radial-gradient(circle 4.4px, transparent 97%, #000) 0 0 / 14px 13px repeat-y, radial-gradient(circle 4.4px, transparent 97%, #000) 100% 0 / 14px 13px repeat-y;
}
.ticket--green { --stock: #cde2c6; --print: #124c2e; }
.ticket--buff { --stock: #eadbb2; --print: #5a2f0c; }
.ticket--pink { --stock: #f1ccd0; --print: #741c30; }
.ticket--blue { --stock: #c7dbe9; --print: #113f6e; }
.ticket__issuer { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.ticket__serial { margin: .28rem 0 .7rem; font: 800 2.65rem/1 var(--display); letter-spacing: .07em; }
.ticket__grid { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; justify-content: space-between; border-block: 1.5px solid currentColor; padding: .44rem 0 .3rem; }
.ticket__grid dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.ticket__grid dd { margin: 0; font-weight: 700; font-size: .98rem; font-variant-numeric: tabular-nums; }
.ticket__terms { margin: .6rem 0 0; font-size: .67rem; line-height: 1.3; }

.tags { font: 400 .82rem/1.8 var(--ui); margin: 0 0 1rem; }
.tags a { margin-right: .75rem; }
.tags a::before { content: "/ "; opacity: .55; }

/* Changing buses */

.change { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); }
.change__link {
	display: block;
	border-top: 4px solid var(--rule);
	padding-block: .7rem 1.8rem;
	text-decoration: none;
	font: 600 clamp(1.5rem, 2.6vw, 2.3rem)/1.02 var(--display);
}
.change__link:hover { text-decoration: none; color: var(--signal); }
.change__link span { display: block; font: 400 .78rem/1 var(--ui); margin-bottom: .55rem; color: var(--ink-soft); }
.change__link span::before { content: "\2190  "; }
.change__link--later span::before { content: ""; }
.change__link--later span::after { content: "  \2192"; }
@media (min-width: 720px) {
	.change { grid-template-columns: 1fr 1fr; }
	.change__link--later { grid-column: 2; text-align: right; }
}

/* A notice instead of a ride */

.memo { padding-block: clamp(2rem, 5vw, 3.6rem) 1.4rem; }
.memo__org { font: 700 .8rem/1 var(--ui); letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1.1rem; color: var(--signal); }
.memo h1 { max-width: 13em; }
.memo__head { margin: 1.5rem 0 0; font-family: var(--ui); font-size: .92rem; border-block: 1px solid var(--rule); padding-block: .5rem .34rem; display: flex; flex-wrap: wrap; gap: .1rem 2.2rem; }
.memo__head div { display: flex; gap: .55rem; }
.memo__head dt { color: var(--ink-soft); }
.memo__head dd { margin: 0; font-weight: 700; }

/* Passenger remarks */

.remarks { padding-block: 2.6rem 4rem; }
.remarks__col { max-width: 44rem; }
@media (min-width: 980px) { .remarks__col { margin-left: clamp(16rem, 24vw, 22rem); } }
.remarks .section-head { font-size: clamp(2.1rem, 3.4vw, 2.9rem); margin-bottom: 1rem; }
.remarks__list, .remarks__list .children { list-style: none; margin: 0; padding: 0; }
.remarks__list .children { margin-left: 1.5rem; border-left: 3px solid var(--hair); padding-left: 1.1rem; }
.remark { border-top: 1px solid var(--rule); padding-top: .65rem; margin-bottom: 1.1rem; }
.children .remark:first-child { border-top: 0; padding-top: 0; }
.remark__who { font: 400 .8rem/1.3 var(--ui); margin: 0 0 .35rem; }
.remark__who strong { font-size: .96rem; margin-right: .5rem; }
.remark__who time { color: var(--ink-soft); }
.remark__text p { margin: 0 0 .6em; }
.remark__reply { font: 400 .78rem/1 var(--ui); margin: 0; }

.comment-respond { margin-top: 2.6rem; }
.comment-form p { margin: 0 0 .9rem; }
.comment-form label, .form-c17 label { display: block; font: 700 .8rem/1.3 var(--ui); margin-bottom: .22rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.form-c17 input, .form-c17 select, .form-c17 textarea, .find input {
	width: 100%;
	background: var(--panel);
	color: var(--ink);
	border: 0;
	border-bottom: 2px solid var(--rule);
	border-radius: 0;
	padding: .55rem .6rem .4rem;
	font: 400 1rem/1.4 var(--ui);
}
.comment-form textarea { height: 9rem; }
.logged-in-as, .comment-notes { font: 400 .82rem/1.4 var(--ui); }
.bell {
	appearance: none;
	background: var(--signal);
	color: #fff;
	border: 0;
	padding: .66rem 1.1rem .46rem;
	font: 800 1.24rem/1 var(--display);
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
}
.bell:hover { background: var(--ink); color: var(--paint); }

/* About -------------------------------------------------------------------- */

.about__head { padding-block: clamp(2rem, 5vw, 4rem) 2rem; }
.about__head h1 { font-size: clamp(3.8rem, 11vw, 10rem); text-transform: uppercase; line-height: .87; }
.about__lede { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.18; margin: 1.1rem 0 0; max-width: 28em; }
.about__grid { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.about__picture { margin: 0; }
.about__picture figcaption { font: 400 .8rem/1.4 var(--ui); color: var(--ink-soft); padding-top: .55rem; }
@media (min-width: 900px) {
	.about__grid { grid-template-columns: minmax(0, 39rem) minmax(0, 1fr); }
	.about__picture { position: sticky; top: 1.4rem; }
}

.record { font-family: var(--ui); margin-top: 1rem; font-size: .96rem; line-height: 1.32; }
.record th, .record td { padding: .62rem 1.2rem .46rem 0; border-top: 1px solid var(--hair); vertical-align: top; }
.record tr:first-child th, .record tr:first-child td { border-top: 4px solid var(--rule); }
.record th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.record__post { font-weight: 700; }
@media (max-width: 640px) {
	.record tr { display: block; padding-block: .6rem; border-top: 1px solid var(--hair); }
	.record th, .record td, .record tr:first-child th, .record tr:first-child td { display: block; border: 0; padding: 0; }
}

.rules { counter-reset: r; list-style: none; margin: 1.3rem 0 0; padding: 0; columns: 21rem 2; column-gap: clamp(2rem, 5vw, 5rem); }
.rules li { counter-increment: r; break-inside: avoid; position: relative; padding: 0 0 1.25rem 2.7rem; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: -.08em; font: 800 2.5rem/1 var(--display); color: var(--signal); }
.rules strong { display: block; font-weight: 600; }

.asks details { border-top: 1px solid var(--rule); max-width: 46rem; }
.asks details:last-child { border-bottom: 1px solid var(--rule); }
.asks .section-head { margin-bottom: 1.1rem; }
.asks summary { cursor: pointer; font-weight: 600; padding-block: .6rem; }
.asks details p { margin: 0 0 1rem; }

/* Route map page */

.routes-table { font-family: var(--ui); font-size: .96rem; line-height: 1.3; }
.routes-table thead th { font-size: .75rem; border-top: 4px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .5rem .8rem .34rem 0; }
.routes-table td { border-bottom: 1px solid var(--hair); padding: .55rem .8rem .36rem 0; }
.routes-table tr.is-focus td { background: var(--panel); }
.routes-table__time { font-variant-numeric: tabular-nums; }
.routes-table .chip { font-size: 1.05rem; }
.footnote { font: 400 .84rem/1.4 var(--ui); max-width: 44rem; margin-top: 1.2rem; color: var(--ink-soft); }
@media (max-width: 600px) {
	.routes-table th:nth-child(2), .routes-table td:nth-child(2) { display: none; }
}

/* A single route */

.route-head { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); padding-block: 2rem; }
.route-head h1 { font-size: clamp(4.5rem, 10vw, 9rem); color: var(--route); line-height: .88; }
.lights-off .route-head h1 { color: inherit; }
.route-head h1 span { display: block; font-size: .3em; font-weight: 600; color: var(--ink); line-height: 1; margin-top: .3rem; }
.route-head p { max-width: 36rem; }
@media (min-width: 980px) { .route-head { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }

/* Complaints */

.complaint { display: grid; gap: 2.4rem clamp(2rem, 6vw, 6rem); padding-bottom: 4rem; align-items: start; }
@media (min-width: 900px) { .complaint { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.complaint__promise { font: 700 .92rem/1.35 var(--ui); border-top: 2px solid var(--rule); padding-top: .55rem; }
.form-c17 { background: var(--panel); padding: 1.2rem 1.3rem 1.4rem; border-top: 8px solid var(--signal); }
.form-c17__title { font: 800 2.1rem/1 var(--display); text-transform: uppercase; margin: 0 0 1rem; }
.form-c17__title span { display: block; font: 400 .82rem/1.4 var(--ui); text-transform: none; }
.form-c17 label { margin-top: .9rem; }
.form-c17 select, .form-c17 textarea { background: var(--paint); }
.form-c17 .bell { margin-top: 1.1rem; }
.form-c17__hint { font: 400 .76rem/1.3 var(--ui); margin: .55rem 0 0; color: var(--ink-soft); }

/* 404 */

.lost-page { padding-block: 2.6rem 4rem; max-width: 46rem; margin-left: 0; }
.lost-page h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin-bottom: 1rem; }
.lost-page .find { margin-top: 2rem; color: var(--ink); }
.more-link { font: 700 .96rem/1 var(--ui); }

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

.foot { background: var(--blind); color: var(--blind-ink); margin-top: clamp(1rem, 4vw, 3rem); font-family: var(--ui); font-size: .92rem; line-height: 1.42; }
.foot__moquette { height: clamp(96px, 16vw, 192px); background: url(assets/img/moquette.svg) 0 0 / 96px 96px; }
.foot__inner { display: grid; gap: 2rem clamp(2rem, 5vw, 5rem); padding: 2.2rem var(--gutter) 1.4rem; max-width: 1500px; margin-inline: auto; }
@media (min-width: 820px) { .foot__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr); } }
.foot__mark { font: 800 2.8rem/1 var(--display); text-transform: uppercase; margin: 0 0 .7rem; }
.foot p { margin: 0 0 .7em; }
.foot__colophon p { max-width: 36rem; font-family: var(--text); font-size: 1.04rem; }
.foot h2 { font: 700 .74rem/1 var(--ui); letter-spacing: .13em; text-transform: uppercase; color: var(--rail); margin-bottom: .75rem; }
.foot ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.foot li { margin-bottom: .22rem; }
.foot a:hover { color: var(--rail); text-decoration-color: currentColor; }
.foot__small { margin: 0; padding: .9rem var(--gutter) 1.1rem; border-top: 1px solid #2d302d; font-size: .78rem; opacity: .7; }

.find__label { display: block; font: 700 .74rem/1 var(--ui); letter-spacing: .13em; text-transform: uppercase; color: var(--rail); margin-bottom: .55rem; }
.find__row { display: flex; }
.find input { background: #1d201d; color: var(--blind-ink); border-bottom-color: var(--blind-ink); }
.find button { flex: none; background: var(--rail); color: #000; border: 0; padding: 0 .95rem; font: 700 .86rem/1 var(--ui); cursor: pointer; }
.lost-page .find input { background: var(--panel); color: var(--ink); border-bottom-color: var(--rule); }
.lost-page .find__label { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

@media print {
	.bar, .foot, .next-stop, .route-line, .comment-respond { display: none; }
	.blind, .boarding, .journey__plate { background: none; color: inherit; }
}
