/* Oricoerp public site: the business drawn as a transit network.
   Dark enamel sign panels on a pale platform ground, departments as coloured
   lines, ZATCA as the interchange every sales invoice passes through. */

@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("/assets/oricoerp_theme/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("/assets/oricoerp_theme/fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("/assets/oricoerp_theme/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("/assets/oricoerp_theme/fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "Readex Pro";
	src: url("/assets/oricoerp_saas/fonts/readex-pro-arabic.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Readex Pro";
	src: url("/assets/oricoerp_saas/fonts/readex-pro-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* platform ground and enamel panels */
	--ground: #f2f4f1;
	--ground-2: #e6ebe7;
	--ground-3: #d9e0db;
	--panel: #0e2a2f;
	--panel-2: #15363c;
	--panel-3: #1f474e;
	--board: #0a1f23;

	/* ink */
	--ink: #102225;
	--ink-2: #3d504e;
	--ink-3: #5b6d6a;
	--on-panel: #eef4f2;
	--on-panel-2: #a9c4c0;
	--rule: #c6d0cb;
	--rule-panel: #2a4c52;

	/* network lines */
	--line-finance: #0f8a7e;
	--line-sales: #e0a100;
	--line-stock: #d2452f;
	--line-hr: #2f6fd1;

	/* actions */
	--brand: #0f766e;
	--brand-hover: #0b5d56;
	--signal: #f5b700;
	--signal-hover: #ffc824;
	--signal-ink: #1c1500;
	--danger: #b42318;
	--ok-on-board: #5fd3c4;
	--warn-on-board: #f5c242;
	--error-on-panel: #ffb4a8;

	--font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;

	--radius-panel: 16px;
	--radius-field: 10px;
	--line-w: 12px;
	--gutter: 24px;
	--wrap: 1200px;
	--rail: 64px; /* indent of section content from the route line */

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow-panel: 0 18px 40px -18px rgb(14 42 47 / 0.45), 0 2px 6px rgb(14 42 47 / 0.12);

	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	caret-color: var(--brand);
}

[lang="en"] body,
body:lang(en) {
	line-height: 1.6;
}

::selection {
	background: var(--line-finance);
	color: #fff;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	text-wrap: balance;
	color: inherit;
}

p {
	margin: 0;
	text-wrap: pretty;
}

a {
	color: var(--brand);
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1.5px;
}

a:hover {
	color: var(--brand-hover);
}

img,
svg {
	display: block;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--line-finance);
	outline-offset: 3px;
	border-radius: 6px;
}

html {
	scrollbar-color: var(--ink-3) var(--ground-2);
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	inset-inline-start: 16px;
	top: -60px;
	z-index: 100;
	background: var(--panel);
	color: var(--on-panel);
	padding: 10px 16px;
	border-radius: 8px;
	transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
	top: 12px;
	color: var(--on-panel);
}

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

.icon {
	flex: none;
}

[dir="rtl"] .icon-arrow {
	transform: scaleX(-1);
}

/* ─── buttons ─────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.18s var(--ease-out);
}

.btn:active {
	transform: translateY(1px);
}

.btn-lg {
	min-height: 54px;
	padding: 0 28px;
	font-size: 1.0625rem;
}

.btn-ground {
	background: var(--brand);
	color: #fff;
}

.btn-ground:hover {
	background: var(--brand-hover);
	color: #fff;
}

.btn-signal {
	background: var(--signal);
	color: var(--signal-ink);
}

.btn-signal:hover {
	background: var(--signal-hover);
	color: var(--signal-ink);
}

.btn-outline {
	border-color: var(--ink);
	color: var(--ink);
	background: transparent;
}

.btn-outline:hover {
	background: var(--ink);
	color: var(--ground);
}

.btn-quiet {
	background: transparent;
	color: var(--ink-2);
	padding-inline: 14px;
}

.btn-quiet:hover {
	color: var(--ink);
	background: var(--ground-2);
}

.btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.75;
}

.btn:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.link-button {
	background: none;
	border: 0;
	padding: 0;
	color: var(--brand);
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.link-button:disabled {
	color: var(--ink-3);
	cursor: default;
	text-decoration: none;
}

/* ─── header ──────────────────────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgb(242 244 241 / 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--rule);
}

.header-row {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 70px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
}

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

.brand-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.01em;
}

.roundel {
	--roundel-fill: #fff;
	--roundel-ring: var(--panel);
}

.brand-on-panel {
	color: var(--on-panel);
}

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

.site-nav {
	display: flex;
	gap: 26px;
	margin-inline-end: auto;
}

.site-nav a,
.link-quiet {
	color: var(--ink-2);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.98rem;
}

.site-nav a:hover,
.link-quiet:hover,
.site-nav a[aria-current="page"],
.link-quiet[aria-current="page"] {
	color: var(--ink);
}

.site-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--line-finance);
	text-decoration-thickness: 3px;
	text-underline-offset: 10px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.lang-switch {
	background: none;
	border: 1.5px solid var(--rule);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink-2);
	cursor: pointer;
	font-family: var(--font-body);
}

.lang-switch:hover {
	border-color: var(--ink-2);
	color: var(--ink);
}

/* ─── sign panels ─────────────────────────────────────────────────────── */

.sign-panel {
	background: var(--panel);
	color: var(--on-panel);
	border-radius: var(--radius-panel);
	box-shadow: var(--shadow-panel);
	position: relative;
}

.sign-panel a:not(.btn) {
	color: var(--on-panel);
}

.display {
	font-size: clamp(2.1rem, 3.5vw, 3.05rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.display-sm {
	font-size: clamp(1.85rem, 3.2vw, 2.6rem);
	line-height: 1.28;
	letter-spacing: -0.01em;
}

.lede {
	font-size: 1.12rem;
	color: var(--on-panel-2);
	max-width: 58ch;
}

.lede-ground {
	color: var(--ink-2);
}

/* ─── hero ────────────────────────────────────────────────────────────── */

.hero {
	padding-top: 40px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
	align-items: stretch;
}

.hero-panel {
	padding: 44px 40px 36px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	align-self: start;
}

.panel-facts {
	list-style: none;
	margin: 4px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--rule-panel);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	color: var(--on-panel-2);
	font-size: 0.95rem;
}

.panel-facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.panel-facts li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line-finance);
	box-shadow: 0 0 0 3px rgb(15 138 126 / 0.25);
}

/* address field: the workspace URL being reserved */

.address-form {
	display: grid;
	gap: 10px;
}

.address-label {
	font-weight: 600;
	font-size: 0.98rem;
}

.address-field {
	display: flex;
	align-items: stretch;
	border-radius: var(--radius-field);
	background: #fbfdfc;
	border: 1.5px solid var(--rule);
	overflow: hidden;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.address-field:focus-within {
	border-color: var(--line-finance);
	box-shadow: 0 0 0 4px rgb(15 138 126 / 0.22);
}

.address-field input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0 14px;
	height: 52px;
	font: 600 1.08rem/1 var(--font-display);
	color: var(--ink);
	outline: none;
}

.address-field input::placeholder {
	color: #8a9a97;
	font-weight: 500;
}

.address-suffix {
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: var(--ground-2);
	color: var(--ink-2);
	font: 500 0.98rem/1 var(--font-display);
	border-inline-start: 1px solid var(--rule);
	white-space: nowrap;
	max-width: 55%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.address-panel .address-field {
	border-color: transparent;
}

.address-hint {
	font-size: 0.92rem;
	color: var(--on-panel-2);
	min-height: 1.5em;
}

.address-ground .address-hint,
.field .address-hint {
	color: var(--ink-3);
}

.address-hint[data-state="ok"] {
	color: var(--ok-on-board);
}

.address-hint[data-state="error"] {
	color: var(--error-on-panel);
}

.field-hint[data-state="ok"] {
	color: var(--brand);
}

.field-hint[data-state="error"] {
	color: var(--danger);
}

.address-form .btn {
	justify-self: start;
	margin-top: 6px;
}

/* ─── the network map ─────────────────────────────────────────────────── */

.network {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.network-board {
	position: relative;
	aspect-ratio: 1000 / 600;
}

.network-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.line {
	fill: none;
	stroke: var(--c);
	stroke-width: var(--line-w);
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	transition: opacity 0.3s ease;
}

.stop {
	fill: #fff;
	stroke: var(--c);
	stroke-width: 5px;
	vector-effect: non-scaling-stroke;
	transition: opacity 0.3s ease;
}

.stop-interchange {
	stroke: var(--panel);
	stroke-width: 6px;
}

.stop-zatca {
	stroke: var(--brand);
	stroke-width: 7px;
}

.stop.is-lit {
	fill: var(--signal);
}

.train-route {
	fill: none;
	stroke: none;
}

.train {
	opacity: 0;
	transition: opacity 0.4s ease;
}

.train rect {
	fill: var(--panel);
	stroke: #fff;
	stroke-width: 3px;
	vector-effect: non-scaling-stroke;
}

.train circle {
	fill: var(--signal);
}

.js .train {
	opacity: 1;
}

.stop-label {
	position: absolute;
	left: var(--x);
	top: var(--y);
	font: 600 0.82rem/1.25 var(--font-display);
	color: var(--ink);
	background: var(--ground);
	padding: 2px 7px;
	border-radius: 6px;
	white-space: nowrap;
	pointer-events: none;
	transition:
		opacity 0.3s ease,
		background-color 0.3s ease,
		color 0.3s ease;
	transform: translate(var(--tx, -50%), var(--ty, -175%));
}

.stop-label.edge-l {
	--tx: -14px;
}

.stop-label.edge-r {
	--tx: calc(-100% + 14px);
}

.stop-label.pos-below {
	--ty: 75%;
}

.stop-label.pos-above {
	--ty: -175%;
}

.stop-label.pos-below-start,
.stop-label.pos-below-end {
	--ty: 95%;
}

[dir="rtl"] .stop-label.pos-end {
	transform: translate(calc(-100% - 18px), -50%);
}

[dir="ltr"] .stop-label.pos-end {
	transform: translate(18px, -50%);
}

.sign-main,
.sign-alt {
	display: block;
}

.sign-alt {
	font-size: 0.82em;
	font-weight: 500;
	opacity: 0.72;
	margin-top: 1px;
}

.legend-item .sign-alt {
	display: inline;
	margin: 0;
	margin-inline-start: 6px;
}

.stop-label.is-zatca {
	background: var(--panel);
	color: var(--on-panel);
	padding: 4px 10px;
}

.stop-label.is-lit {
	background: var(--signal);
	color: var(--signal-ink);
}

.network[data-active] .line:not(.is-active),
.network[data-active] .stop:not(.is-active),
.network[data-active] .stop-label:not(.is-active) {
	opacity: 0.16;
}

.network-foot {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 22px;
	padding-inline-end: 44px;
	padding-bottom: 34px;
}

/* the finance line leaves the board and carries on down the page */
.network-foot::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: calc(4% - var(--line-w) / 2);
	width: var(--line-w);
	background: var(--line-finance);
}

.network-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1.5px solid var(--rule);
	border-radius: 999px;
	padding: 5px 12px 5px 12px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ink-2);
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		background-color 0.18s ease,
		color 0.18s ease;
}

.legend-item:hover,
.legend-item[aria-pressed="true"] {
	border-color: var(--c);
	color: var(--ink);
	background: #fff;
}

.legend-swatch {
	width: 22px;
	height: 8px;
	border-radius: 4px;
	background: var(--c);
}

.ticker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	background: var(--board);
	color: var(--on-panel);
	border-radius: 10px;
	padding: 12px 16px;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.ticker-tag,
.board-tag {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--on-panel-2);
	border: 1px solid var(--rule-panel);
	border-radius: 999px;
	padding: 1px 9px;
}

.ticker-stop {
	margin-inline-start: auto;
	color: var(--signal);
	font-weight: 600;
}

/* ─── the route: one line through the whole page ─────────────────────── */

.route {
	position: relative;
	max-width: var(--wrap);
	margin-inline: auto;
	height: 72px;
	/* where the finance line leaves the map (4% in from the map's far edge) */
	--exit: calc(var(--gutter) + (100% - 2 * var(--gutter) - 48px) * 7 / 12 * 0.04 - var(--line-w) / 2);
	--start: calc(var(--gutter) + var(--rail) / 2 - var(--line-w) / 2);
}

.route::before,
.route::after {
	content: "";
	position: absolute;
	border: 0 solid var(--line-finance);
}

.route::after {
	top: 0;
	height: 50%;
	inset-inline-end: var(--exit);
	width: 48px;
	border-inline-end-width: var(--line-w);
	border-bottom-width: var(--line-w);
	border-end-end-radius: 34px;
}

.route::before {
	top: calc(50% - var(--line-w));
	bottom: 0;
	inset-inline-start: var(--start);
	inset-inline-end: calc(var(--exit) + 30px);
	border-top-width: var(--line-w);
	border-inline-start-width: var(--line-w);
	border-start-start-radius: 34px;
}

.section > .wrap {
	position: relative;
	padding-block: 92px;
	padding-inline-start: calc(var(--gutter) + var(--rail) + 8px);
}

.section > .wrap::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: calc(var(--gutter) + var(--rail) / 2 - var(--line-w) / 2);
	width: var(--line-w);
	background: var(--line-finance);
}

.final-section > .wrap::before {
	bottom: auto;
	height: 140px;
}

/* the line's terminus: where the page's route ends */
.section-end > .wrap::after {
	content: "";
	position: absolute;
	inset-inline-start: calc(var(--gutter) + var(--rail) / 2 - 20px);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--signal);
	border: 8px solid var(--panel);
	box-sizing: border-box;
}

.final-section > .wrap::after {
	top: 120px;
}

.faq-section > .wrap::before {
	bottom: 20px;
}

.faq-section > .wrap::after {
	bottom: 0;
}

.section-head {
	position: relative;
	display: grid;
	gap: 16px;
	max-width: 760px;
	margin-bottom: 48px;
}

.section-head h2 {
	font-size: clamp(1.7rem, 2.8vw, 2.35rem);
	letter-spacing: -0.01em;
}

.section-head p {
	color: var(--ink-2);
	max-width: 66ch;
	font-size: 1.08rem;
}

.section-roundel {
	position: absolute;
	top: 0.25em;
	inset-inline-start: calc(-1 * (var(--rail) / 2 + 8px) - 17px);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 7px solid var(--panel);
	font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.section-roundel-zatca {
	border-color: var(--signal);
	background: var(--panel);
}

.section-more {
	margin-top: 32px;
}

.section-more a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

/* ─── four lines ──────────────────────────────────────────────────────── */

.line-strips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 64px;
}

.line-strip {
	display: grid;
	gap: 10px;
	align-content: start;
}

.strip-track {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 26px;
	margin-bottom: 8px;
}

.strip-track::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 10px;
	margin-top: -5px;
	border-radius: 5px;
	background: var(--c);
}

.strip-stop {
	position: relative;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--c);
}

.strip-interchange {
	width: 26px;
	height: 26px;
	border: 5px solid var(--panel);
}

.line-strip h3 {
	font-size: 1.3rem;
}

.strip-stops {
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--ink);
	font-size: 0.98rem;
}

.strip-body {
	color: var(--ink-2);
}

/* ─── ZATCA interchange ───────────────────────────────────────────────── */

.zatca-section {
	background: var(--panel);
	color: var(--on-panel);
}

.zatca-section .section-head p,
.zatca-copy > p {
	color: var(--on-panel-2);
}

.zatca-section .section-roundel {
	border-color: var(--signal);
}

.zatca-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.zatca-copy {
	display: grid;
	gap: 22px;
}

.zatca-copy .section-head {
	margin-bottom: 0;
}

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

.check-list li {
	display: flex;
	gap: 12px;
	align-items: baseline;
}

.check-list li::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 3px solid var(--signal);
	transform: translateY(1px);
}

.board {
	background: var(--board);
	color: var(--on-panel);
	border-radius: 14px;
	padding: 6px 0 10px;
	border: 1px solid var(--rule-panel);
	font-family: var(--font-display);
	font-variant-numeric: tabular-nums;
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
}

.board-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--rule-panel);
	font-weight: 600;
}

.board-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.board-row {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 13px 20px;
	border-bottom: 1px solid rgb(42 76 82 / 0.6);
	font-size: 0.95rem;
}

.board-row:last-child {
	border-bottom: 0;
}

.board-time {
	color: var(--on-panel-2);
}

.board-doc {
	font-weight: 600;
}

.board-time,
.board-doc,
.ticker-doc {
	white-space: nowrap;
}

.board-type {
	color: var(--on-panel-2);
}

.board-status {
	font-weight: 600;
}

.status-ok {
	color: var(--ok-on-board);
}

.status-warn {
	color: var(--warn-on-board);
}

/* ─── ready plates ────────────────────────────────────────────────────── */

.plates {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	position: relative;
}

/* the platform line the four stops sit on */
.plates::before {
	content: "";
	position: absolute;
	top: 11px;
	inset-inline: 11px;
	height: 10px;
	border-radius: 5px;
	background: var(--line-finance);
}

.plate {
	position: relative;
	display: grid;
	gap: 6px;
	align-content: start;
	padding-top: 44px;
}

.plate::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 6px solid var(--panel);
	background: #fff;
}

.plate strong {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.12rem;
}

.plate span {
	color: var(--ink-2);
	font-size: 0.98rem;
}

/* ─── own workspace ───────────────────────────────────────────────────── */

.own-section {
	background: var(--ground-2);
}

.own-list {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.own-list div {
	display: grid;
	gap: 8px;
	align-content: start;
	padding-top: 18px;
	border-top: 3px solid var(--ink);
}

.own-list dt {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
}

.own-list dd {
	margin: 0;
	color: var(--ink-2);
}

/* ─── fares (plans) ───────────────────────────────────────────────────── */

.fares {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	align-items: stretch;
}

.fare {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 26px;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--radius-panel);
	position: relative;
	overflow: hidden;
}

.fare::before {
	/* the fare card's magnetic strip */
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 6px;
	background: var(--line-finance);
}

.fare-featured {
	background: var(--panel);
	color: var(--on-panel);
	border-color: var(--panel);
	box-shadow: var(--shadow-panel);
}

.fare-featured::before {
	background: var(--signal);
}

.fare-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fare-name {
	font-size: 1.35rem;
}

.fare-flag {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--signal-ink);
	background: var(--signal);
	border-radius: 999px;
	padding: 3px 10px;
}

.fare-tagline {
	color: var(--ink-2);
	font-size: 0.98rem;
}

.fare-featured .fare-tagline,
.fare-featured .fare-limits,
.fare-featured .fare-unit {
	color: var(--on-panel-2);
}

.fare-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	padding-block: 6px 2px;
}

.fare-amount {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 2.6rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.fare-unit {
	color: var(--ink-2);
	font-size: 0.95rem;
}

.fare-limits {
	color: var(--ink-2);
	font-size: 0.95rem;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--rule);
}

.fare-featured .fare-limits {
	border-bottom-color: var(--rule-panel);
}

.fare-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	flex: 1;
}

.fare-features li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.98rem;
}

.fare-features .icon {
	color: var(--line-finance);
	margin-top: 0.3em;
}

.fare-featured .fare-features .icon {
	color: var(--ok-on-board);
}

.fare .btn {
	margin-top: 8px;
	width: 100%;
}

.fare-featured .btn-ground {
	background: var(--signal);
	color: var(--signal-ink);
}

.fare-featured .btn-ground:hover {
	background: var(--signal-hover);
}

.fine-print {
	margin-top: 22px;
	color: var(--ink-3);
	font-size: 0.92rem;
}

/* ─── pricing page ────────────────────────────────────────────────────── */

.page-hero {
	padding: 72px 0 0;
}

.page-hero .wrap {
	display: grid;
	gap: 18px;
	justify-items: start;
}

.page-hero .display-sm {
	max-width: 22ch;
}

.period-switch {
	display: inline-flex;
	margin-top: 14px;
	padding: 4px;
	border-radius: 999px;
	background: var(--ground-2);
	border: 1px solid var(--rule);
}

.period-switch button {
	border: 0;
	background: transparent;
	border-radius: 999px;
	padding: 9px 18px;
	font-weight: 600;
	color: var(--ink-2);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.period-switch button[aria-checked="true"] {
	background: var(--panel);
	color: var(--on-panel);
}

.period-save {
	font-size: 0.78rem;
	background: var(--signal);
	color: var(--signal-ink);
	border-radius: 999px;
	padding: 1px 8px;
}

.page-pricing .route {
	display: none;
}

/* on pricing the line starts here, at its own terminus */
.fares-page > .wrap::after {
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: calc(var(--gutter) + var(--rail) / 2 - 17px);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 7px solid var(--panel);
	box-sizing: border-box;
}

.fares-page > .wrap {
	padding-top: 40px;
}

.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
}

.faq-list {
	border-top: 1px solid var(--rule);
}

.faq {
	border-bottom: 1px solid var(--rule);
}

.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.1rem;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

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

.faq summary::after {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	margin-top: 0.45em;
	border-inline-end: 2.5px solid var(--ink-2);
	border-bottom: 2.5px solid var(--ink-2);
	transform: rotate(45deg);
	transition: transform 0.25s var(--ease-out);
}

.faq[open] summary::after {
	transform: rotate(-135deg);
}

.faq p {
	padding-bottom: 22px;
	color: var(--ink-2);
	max-width: 62ch;
}

/* ─── final call ──────────────────────────────────────────────────────── */

.final-section > .wrap {
	padding-bottom: 110px;
}

.final-panel {
	padding: 48px 44px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}

/* ─── sign-up ─────────────────────────────────────────────────────────── */

.signup {
	padding: 48px 0 110px;
}

.signup-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 56px;
	align-items: start;
}

.journey {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	display: flex;
	position: relative;
}

.journey::before {
	content: "";
	position: absolute;
	inset-inline: 10px;
	top: 10px;
	height: 6px;
	border-radius: 3px;
	background: var(--ground-3);
}

.journey::after {
	content: "";
	position: absolute;
	inset-inline: 10px;
	top: 10px;
	height: 6px;
	border-radius: 3px;
	background: var(--line-finance);
	transform: scaleX(var(--journey, 0));
	transform-origin: var(--fill-origin);
	transition: transform 0.6s var(--ease-out);
}

[dir="rtl"] {
	--fill-origin: right center;
}

[dir="ltr"] {
	--fill-origin: left center;
}

.journey-stop {
	flex: 1;
	position: relative;
	z-index: 1;
	display: grid;
	gap: 8px;
	justify-items: start;
}

.journey-stop:last-child {
	flex: 0 0 auto;
	justify-items: end;
}

.journey-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	border: 5px solid var(--ground-3);
	transition:
		border-color 0.3s ease,
		background-color 0.3s ease;
}

.journey-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink-3);
}

.journey-stop.is-done .journey-dot {
	border-color: var(--line-finance);
	background: var(--line-finance);
}

.journey-stop[aria-current="step"] .journey-dot {
	border-color: var(--panel);
}

.journey-stop[aria-current="step"] .journey-name,
.journey-stop.is-done .journey-name {
	color: var(--ink);
}

.signup-form,
.departure {
	display: grid;
	gap: 0;
}

.step {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 22px;
	min-width: 0;
}

.step[hidden] {
	display: none;
}

.step > legend {
	padding: 0;
	margin-bottom: 6px;
	float: left;
	width: 100%;
}

.step-title {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.step-lede {
	color: var(--ink-2);
	margin-top: -8px;
}

.field {
	display: grid;
	gap: 8px;
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.field > label,
.field > legend {
	font-weight: 600;
	font-size: 0.98rem;
	padding: 0;
}

.optional {
	font-weight: 400;
	color: var(--ink-3);
	font-size: 0.9rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"] {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1.5px solid var(--rule);
	border-radius: var(--radius-field);
	background: #fff;
	font: 500 1.05rem/1 var(--font-body);
	color: var(--ink);
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.field .address-field input {
	height: 50px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: 600 1.08rem/1 var(--font-display);
}

.field input:not(.address-field input):focus {
	outline: none;
	border-color: var(--line-finance);
	box-shadow: 0 0 0 4px rgb(15 138 126 / 0.2);
}

.field input[aria-invalid="true"],
.address-field[data-invalid="true"] {
	border-color: var(--danger);
}

.field-hint {
	font-size: 0.92rem;
	color: var(--ink-3);
	min-height: 1.4em;
}

.code-input {
	max-width: 240px;
	letter-spacing: 0.5em;
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	font-size: 1.5rem !important;
	text-align: center;
}

.dev-code {
	color: var(--brand);
	font-weight: 600;
}

.password-field {
	position: relative;
}

.password-field input {
	padding-inline-end: 76px !important;
}

.password-toggle {
	position: absolute;
	inset-inline-end: 6px;
	top: 6px;
	height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: var(--ground-2);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ink-2);
	cursor: pointer;
}

/* the password and its button read left to right */
.password-field input[dir="ltr"] ~ .password-toggle {
	inset-inline-end: auto;
	right: 6px;
}

.password-field input[dir="ltr"] {
	padding-inline-end: 14px !important;
	padding-right: 76px !important;
}

.plan-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
}

.plan-option {
	position: relative;
	cursor: pointer;
}

.plan-option input {
	position: absolute;
	opacity: 0;
	inset: 0;
}

.plan-option-body {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1.5px solid var(--rule);
	background: #fff;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
	height: 100%;
}

.plan-option-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
}

.plan-option-price {
	font-size: 0.95rem;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.plan-option-limit {
	font-size: 0.88rem;
	color: var(--ink-3);
}

.plan-option input:checked + .plan-option-body {
	border-color: var(--panel);
	box-shadow: inset 0 0 0 1.5px var(--panel);
}

.plan-option input:focus-visible + .plan-option-body {
	box-shadow: 0 0 0 4px rgb(15 138 126 / 0.25);
}

.step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.step[data-step="0"] .step-actions {
	justify-content: flex-start;
}

.terms,
.resend {
	font-size: 0.9rem;
	color: var(--ink-3);
}

.form-error {
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fdecea;
	color: var(--danger);
	font-weight: 500;
}

.notice {
	display: grid;
	gap: 14px;
}

.signup-aside {
	position: sticky;
	top: 96px;
}

.aside-panel {
	padding: 30px 28px;
	display: grid;
	gap: 18px;
}

.aside-title {
	font-size: 1.25rem;
}

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

.aside-lines li {
	display: flex;
	gap: 12px;
	align-items: baseline;
	color: var(--on-panel);
}

.aside-lines li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 8px;
	border-radius: 4px;
	background: var(--c);
	transform: translateY(-2px);
}

.aside-note {
	color: var(--on-panel-2);
	font-size: 0.95rem;
	padding-top: 16px;
	border-top: 1px solid var(--rule-panel);
}

/* departure board: provisioning progress */

.departure {
	gap: 22px;
}

.departure[hidden],
.signup-form[hidden] {
	display: none;
}

.departure-board .board-head {
	font-size: 1.05rem;
}

.board-progress {
	color: var(--signal);
}

.departure-track {
	position: relative;
	height: 10px;
	margin: 22px 20px 14px;
	border-radius: 5px;
	background: var(--panel-3);
}

.departure-track::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inset-inline-end: 0;
	border-radius: 5px;
	background: var(--line-finance);
	transform: scaleX(var(--progress-f, 0));
	transform-origin: var(--fill-origin);
	transition: transform 0.9s var(--ease-out);
}

.departure-train {
	position: absolute;
	top: 50%;
	width: 34px;
	height: 18px;
	margin-top: -9px;
	margin-inline-start: -17px;
	border-radius: 9px;
	background: var(--signal);
	border: 3px solid var(--board);
}

.departure-board .board-row {
	grid-template-columns: auto 1fr auto;
	animation: row-in 0.5s var(--ease-out) both;
}

.board-mark {
	position: relative;
	width: 18px;
	height: 18px;
	justify-self: end;
}

.is-current .board-mark::before {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--signal);
	animation: pulse 1.2s ease-in-out infinite;
}

.is-done .board-mark::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border-inline-end: 2.5px solid var(--ok-on-board);
	border-bottom: 2.5px solid var(--ok-on-board);
	transform: rotate(45deg);
}

@keyframes pulse {
	50% {
		transform: scale(0.6);
		opacity: 0.6;
	}
}

@keyframes row-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.departure-actions[hidden],
.departure-failed[hidden] {
	display: none;
}

.departure-failed p {
	color: var(--danger);
	font-weight: 500;
}

/* ─── sign-in ─────────────────────────────────────────────────────────── */

.signin {
	padding: 80px 0 120px;
}

.signin-wrap {
	display: grid;
	justify-items: center;
}

.signin-panel {
	width: min(620px, 100%);
	padding: 44px 40px;
	display: grid;
	gap: 22px;
}

.panel-foot {
	color: var(--on-panel-2);
	padding-top: 18px;
	border-top: 1px solid var(--rule-panel);
}

/* ─── footer ──────────────────────────────────────────────────────────── */

.site-footer {
	background: var(--panel);
	color: var(--on-panel-2);
	padding: 56px 0 40px;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px 48px;
}

.footer-brand {
	display: grid;
	gap: 12px;
	max-width: 44ch;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-content: start;
}

.footer-links a {
	color: var(--on-panel);
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
	color: #fff;
}

.footer-note {
	grid-column: 1 / -1;
	padding-top: 22px;
	border-top: 1px solid var(--rule-panel);
	font-size: 0.9rem;
}

/* ─── responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
	.site-nav {
		display: none;
	}
	.header-actions {
		margin-inline-start: auto;
	}
}

@media (max-width: 960px) {
	:root {
		--rail: 44px;
		--line-w: 10px;
	}
	.hero-grid,
	.zatca-grid,
	.faq-grid,
	.final-panel,
	.signup-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero-panel {
		align-self: stretch;
	}
	.route,
	.network-foot::after {
		display: none;
	}
	.network-foot {
		padding-inline-end: 0;
	}
	.line-strips,
	.own-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.signup-aside {
		position: static;
	}
}

@media (max-width: 640px) {
	:root {
		--gutter: 16px;
		--rail: 32px;
		--line-w: 8px;
	}
	body {
		font-size: 1rem;
	}
	.header-row {
		gap: 12px;
		min-height: 62px;
	}
	.header-actions {
		gap: 10px;
	}
	.link-quiet {
		display: none;
	}
	.page-home .header-actions .btn {
		display: none;
	}
	.header-actions .btn {
		padding: 0 14px;
		min-height: 40px;
		font-size: 0.92rem;
	}
	.brand-name {
		font-size: 1.15rem;
	}
	.hero {
		padding-top: 20px;
	}
	.hero-panel,
	.signin-panel,
	.final-panel {
		padding: 30px 22px;
	}
	.address-form .btn,
	.step-actions .btn-lg {
		width: 100%;
	}
	.address-suffix {
		max-width: 48%;
		padding: 0 10px;
		font-size: 0.88rem;
	}
	.section > .wrap {
		padding-block: 64px;
	}
	.section-roundel {
		width: 26px;
		height: 26px;
		border-width: 6px;
		inset-inline-start: calc(-1 * (var(--rail) / 2 + 8px) - 13px);
	}
	.plates {
		grid-template-columns: minmax(0, 1fr);
	}
	.stop-label {
		font-size: 0.68rem;
		padding: 1px 5px;
	}
	/* too dense for every name on a phone: key stops, plus wherever the train is */
	.stop-label:not(.is-key):not(.is-lit) {
		opacity: 0;
	}
	.board-row {
		grid-template-columns: auto 1fr auto;
	}
	.board-row .board-type {
		display: none;
	}
	.step-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.journey-name {
		font-size: 0.8rem;
	}
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ─── states ──────────────────────────────────────────────────────────── */

a,
button,
summary,
label {
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgb(15 138 126 / 0.15);
}

.period-switch button:not([aria-checked="true"]):hover {
	color: var(--ink);
	background: var(--ground-3);
}

.password-toggle:hover {
	color: var(--ink);
	background: var(--ground-3);
}

.plan-option:hover .plan-option-body {
	border-color: var(--ink-3);
}

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

.link-button:not(:disabled):hover {
	color: var(--brand-hover);
}

.btn[aria-busy="true"]::after {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2.5px solid currentColor;
	border-inline-end-color: transparent;
	animation: spin 0.8s linear infinite;
}

.btn[aria-busy="true"] .icon {
	display: none;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.field-error {
	color: var(--danger);
	font-size: 0.92rem;
	font-weight: 500;
}

.motion-toggle {
	gap: 6px;
}

/* ─── menu (narrow screens) ───────────────────────────────────────────── */

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1.5px solid var(--rule);
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 1px;
	background: var(--ink);
	position: relative;
	transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
}

.menu-bars::before,
.menu-bars::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
}

.menu-bars::before {
	top: -6px;
}

.menu-bars::after {
	top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.nav-signin {
	display: none;
}

@media (max-width: 1080px) {
	.menu-toggle {
		display: inline-flex;
		order: 3;
	}
	.header-row {
		position: relative;
	}
	.site-nav {
		display: none;
		position: absolute;
		top: calc(100% + 1px);
		inset-inline: 0;
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 8px var(--gutter) 16px;
		background: var(--ground);
		border-bottom: 1px solid var(--rule);
		box-shadow: 0 18px 30px -20px rgb(14 42 47 / 0.35);
	}
	.site-nav.is-open {
		display: flex;
	}
	.site-nav a {
		padding: 14px 0;
		font-size: 1.05rem;
		border-bottom: 1px solid var(--ground-3);
	}
	.site-nav a:last-child {
		border-bottom: 0;
	}
	.site-nav a[aria-current="page"] {
		text-decoration-thickness: 3px;
		text-underline-offset: 8px;
	}
	.nav-signin {
		display: block;
	}
}

/* ─── phones: keep the route unbroken ─────────────────────────────────── */

@media (max-width: 960px) {
	.route,
	.network-foot::after {
		display: block;
	}
	.network-foot {
		padding-inline-end: 34px;
	}
	.route {
		--exit: calc(var(--gutter) + (100% - 2 * var(--gutter)) * 0.04 - var(--line-w) / 2);
	}
	.plates {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}
	.plates::before {
		display: none;
	}
}

@media (max-width: 640px) {
	.sign-alt {
		display: none;
	}
	.legend-item .sign-alt {
		display: none;
	}
	.plates {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
		padding-inline-start: 0;
	}
	.plate {
		padding-top: 0;
		padding-inline-start: 50px;
	}
	.plate::before {
		width: 30px;
		height: 30px;
		top: 0;
	}
	/* the address and its domain stack so neither is cut off */
	.address-field {
		flex-wrap: wrap;
	}
	.address-field input {
		flex: 1 1 100%;
	}
	.address-suffix {
		flex: 1 1 100%;
		max-width: none;
		border-inline-start: 0;
		border-top: 1px solid var(--rule);
		padding: 9px 14px;
		justify-content: flex-start;
	}
	.final-section > .wrap::after {
		top: 64px;
	}
	.final-section > .wrap::before {
		height: 84px;
	}
}

/* focus moved by script (the progress title) shouldn't draw a ring */
[tabindex="-1"]:focus {
	outline: none;
}

.signup-main,
.signup-aside {
	min-width: 0;
}

.departure-board [data-departure-address] {
	overflow-wrap: anywhere;
	min-width: 0;
}

/* second-language line under a sign or heading */
.head-alt {
	display: block;
	margin-top: 0.35em;
	font-family: var(--font-display);
	font-size: max(0.36em, 0.85rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.35;
	opacity: 0.62;
}

/* the ledger's label sits toward the reading end, clear of the red line feeding it */
[dir="rtl"] .stop-label.pos-below-end {
	--tx: calc(-100% + 14px);
}

[dir="ltr"] .stop-label.pos-below-end {
	--tx: -14px;
}

.board-status {
	white-space: nowrap;
}

/* joints aligned by network.js to the trunk's measured position */
.network-foot::after {
	inset-inline-end: var(--trunk-end, calc(4% - var(--line-w) / 2));
	top: -2px;
}

.route {
	--exit: var(--route-exit, calc(var(--gutter) + (100% - 2 * var(--gutter) - 48px) * 7 / 12 * 0.04 - var(--line-w) / 2));
}

.route::after {
	top: -2px;
	height: calc(50% + 2px);
}

/* joints overlap by 2px so no hairline shows between line segments */
.section > .wrap::before {
	top: -2px;
}

.network-foot::after {
	bottom: -2px;
}

/* the second-language line sits under its heading, whatever its own direction */
[dir="rtl"] .head-alt {
	text-align: right;
}

[dir="ltr"] .head-alt {
	text-align: left;
}

/* the progress train moves with transform, measured against its track */
.departure-track {
	container-type: inline-size;
}

.departure-train {
	inset-inline-start: 0;
	transform: translateX(calc(var(--progress-f, 0) * 100cqw * var(--dir-sign, 1)));
	transition: transform 0.9s var(--ease-out);
}

[dir="rtl"] .departure-train {
	--dir-sign: -1;
}

.skip-link {
	top: 12px;
	transform: translateY(-80px);
	transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
	top: 12px;
	transform: none;
}
