/* Fleet recall tracker (/recalls/) and its article box.
   Site palette tokens with fallbacks. Orange is text accent only, never a fill. */

.mfl-rcl,
.mfl-rcl-box {
	--rcl-navy: var(--mfl-primary-strong, #00112b);
	--rcl-blue: var(--mfl-primary, #3d6ba8);
	--rcl-orange: var(--mfl-callout, #f26a24);
	--rcl-ink: #1d2430;
	--rcl-muted: #5b6574;
	--rcl-line: #dfe4ea;
	--rcl-soft: #f7f9fb;
	--rcl-haze: rgba(61, 107, 168, .12);
	--rcl-alert: #8f1f1f;
	--rcl-sans: var(--mfl-font-sans, "Satoshi", "Source Sans 3", "Helvetica Neue", Arial, sans-serif);
	--rcl-serif: var(--mfl-font-serif, "Source Serif 4", Georgia, serif);
}

.mfl-rcl {
	color: var(--rcl-ink);
	font-family: var(--rcl-sans);
	background: #f4f6f8;
	padding: 24px 0 40px;
}

.mfl-rcl-in {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.mfl-rcl-banner {
	margin: 0 0 16px;
	padding: 8px 12px;
	border: 1px dashed var(--rcl-blue);
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
}

.mfl-rcl-kicker {
	margin: 0;
	color: var(--rcl-orange);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mfl-rcl h1 {
	margin: 4px 0 6px;
	color: var(--rcl-navy);
	font-family: var(--rcl-serif);
	font-size: 34px;
	line-height: 1.15;
}

.mfl-rcl-dek {
	max-width: 760px;
	margin: 0 0 6px;
	color: var(--rcl-muted);
	font-size: 16px;
}

.mfl-rcl-fresh {
	margin: 0 0 18px;
	color: var(--rcl-muted);
	font-size: 13px;
}

.mfl-rcl a {
	color: var(--rcl-blue);
}

/* ---------- Layout ---------- */
.mfl-rcl-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	grid-template-areas: "bar bar" "filters main";
	gap: 16px 24px;
}

.mfl-rcl-bar {
	grid-area: bar;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.mfl-rcl-search {
	flex: 1 1 320px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--rcl-line);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 15px;
}

.mfl-rcl-sort {
	display: flex;
	gap: 6px;
	align-items: center;
	color: var(--rcl-muted);
	font-size: 14px;
}

.mfl-rcl select {
	max-width: 100%;
	padding: 7px 8px;
	border: 1px solid var(--rcl-line);
	border-radius: 6px;
	background: #fff;
	color: var(--rcl-ink);
	font: inherit;
	font-size: 14px;
}

.mfl-rcl-fbtn {
	display: none;
}

/* ---------- Filters ---------- */
.mfl-rcl-filters {
	grid-area: filters;
	align-self: start;
	padding: 16px;
	border: 1px solid var(--rcl-line);
	border-radius: 8px;
	background: #fff;
}

.mfl-rcl-sheet-head {
	display: none;
}

.mfl-rcl-filters fieldset {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.mfl-rcl-filters legend,
.mfl-rcl-field {
	display: block;
	margin: 0 0 8px;
	color: var(--rcl-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mfl-rcl-field {
	margin-bottom: 14px;
}

.mfl-rcl-field select {
	display: block;
	width: 100%;
	margin-top: 6px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.mfl-rcl-years {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 6px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.mfl-rcl-years select {
	flex: 1;
	width: auto;
	margin: 0;
}

.mfl-rcl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.mfl-rcl-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mfl-rcl-chip span {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid var(--rcl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--rcl-ink);
	font-size: 13px;
	cursor: pointer;
}

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

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

.mfl-rcl-check {
	display: block;
	margin: 6px 0;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: var(--rcl-ink);
}

.mfl-rcl-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.mfl-rcl-apply {
	padding: 9px 14px;
	border: 1px solid var(--rcl-navy);
	border-radius: 6px;
	background: var(--rcl-navy);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.mfl-rcl-reset {
	font-size: 14px;
}

.mfl-rcl.has-js .mfl-rcl-apply {
	display: none;
}

/* ---------- Results ---------- */
.mfl-rcl-main {
	grid-area: main;
	min-width: 0;
}

.mfl-rcl-main.is-loading {
	opacity: .55;
	transition: opacity .15s;
}

.mfl-rcl-status {
	margin-bottom: 10px;
}

.mfl-rcl-count {
	margin: 0 0 8px;
	color: var(--rcl-muted);
	font-size: 14px;
}

.mfl-rcl-count strong {
	color: var(--rcl-ink);
}

.mfl-rcl-active {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mfl-rcl-active a {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--rcl-navy);
	color: #fff;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}

.mfl-rcl-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--rcl-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.mfl-rcl-row + .mfl-rcl-row {
	border-top: 1px solid var(--rcl-line);
}

.mfl-rcl-row summary {
	display: grid;
	grid-template-columns: 108px minmax(0, 2.2fr) 92px minmax(0, 1.6fr) 80px 96px;
	gap: 12px;
	align-items: start;
	padding: 12px 14px;
	list-style: none;
	cursor: pointer;
	font-size: 14px;
}

.mfl-rcl-row summary::-webkit-details-marker {
	display: none;
}

.mfl-rcl-row summary:hover,
.mfl-rcl-row details[open] summary {
	background: var(--rcl-soft);
}

.mfl-rcl-row summary:focus-visible {
	outline: 2px solid var(--rcl-blue);
	outline-offset: -2px;
}

.mfl-rcl-make {
	display: block;
	color: var(--rcl-navy);
	font-weight: 700;
}

.mfl-rcl-models {
	display: block;
	color: var(--rcl-muted);
	font-size: 13px;
}

.mfl-rcl-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 4px;
}

.mfl-rcl-tag {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--rcl-haze);
	color: var(--rcl-navy);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.mfl-rcl-tag.is-alert {
	background: #fbeaea;
	color: var(--rcl-alert);
}

.mfl-rcl-tag.is-mpf {
	background: #fff;
	border: 1px solid var(--rcl-orange);
	color: var(--rcl-ink);
}

.mfl-rcl-units {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.mfl-rcl-units-l {
	display: none;
}

.mfl-rcl-camp {
	color: var(--rcl-blue);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 13px;
	text-align: right;
}

.mfl-rcl-detail {
	padding: 4px 14px 16px;
	background: var(--rcl-soft);
	font-size: 14px;
	line-height: 1.5;
}

.mfl-rcl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.mfl-rcl-grid h3 {
	margin: 0 0 4px;
	color: var(--rcl-muted);
	font-family: var(--rcl-sans);
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.mfl-rcl-grid p {
	margin: 0;
}

.mfl-rcl-meta,
.mfl-rcl-rel {
	margin: 10px 0 0;
	color: var(--rcl-muted);
	font-size: 13px;
}

.mfl-rcl-rel strong {
	color: var(--rcl-ink);
}

.mfl-rcl-empty {
	padding: 24px;
	border: 1px solid var(--rcl-line);
	border-radius: 8px;
	background: #fff;
}

.mfl-rcl-pages {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
	margin-top: 14px;
	font-size: 14px;
}

.mfl-rcl-foot {
	max-width: 900px;
	margin: 24px 0 0;
	color: var(--rcl-muted);
	font-size: 13px;
}

/* ---------- Article box and shortcode ---------- */
.mfl-rcl-box {
	margin: 28px 0;
	padding: 14px 16px;
	border: 1px solid var(--rcl-line);
	border-left: 3px solid var(--rcl-orange);
	border-radius: 6px;
	background: #fff;
	font-family: var(--rcl-sans);
	font-size: 15px;
}

.mfl-rcl-box-h {
	margin: 0 0 6px;
	color: var(--rcl-navy);
	font-weight: 700;
}

.mfl-rcl-box ul {
	margin: 0;
	padding-left: 18px;
}

.mfl-rcl-box p:last-child {
	margin-bottom: 0;
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
	.mfl-rcl {
		padding-top: 16px;
	}

	.mfl-rcl-in {
		padding: 0 16px;
	}

	.mfl-rcl h1 {
		font-size: 26px;
	}

	.mfl-rcl-layout {
		display: block;
	}

	.mfl-rcl-bar {
		margin-bottom: 12px;
	}

	.mfl-rcl-search {
		flex-basis: 100%;
	}

	.mfl-rcl-fbtn {
		display: inline-block;
		padding: 8px 12px;
		border: 1px solid var(--rcl-navy);
		border-radius: 6px;
		background: #fff;
		color: var(--rcl-navy);
		font: inherit;
		font-size: 14px;
		font-weight: 700;
		cursor: pointer;
	}

	.mfl-rcl-sort {
		margin-left: auto;
	}

	/* Without JS the filters simply sit above the list. With JS they become a
	   full-screen sheet opened by the Filters button. */
	.mfl-rcl-filters {
		margin-bottom: 14px;
	}

	.mfl-rcl.has-js .mfl-rcl-filters {
		position: fixed;
		inset: 0;
		z-index: 100000;
		margin: 0;
		border: 0;
		border-radius: 0;
		overflow-y: auto;
		padding: 0 16px 90px;
		display: none;
	}

	.mfl-rcl.has-js .mfl-rcl-filters.is-open {
		display: block;
	}

	.mfl-rcl.has-js .mfl-rcl-sheet-head {
		position: sticky;
		top: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0 -16px 12px;
		padding: 14px 16px;
		border-bottom: 1px solid var(--rcl-line);
		background: #fff;
	}

	.mfl-rcl-close {
		border: 0;
		background: none;
		font-size: 20px;
		cursor: pointer;
	}

	.mfl-rcl.has-js .mfl-rcl-actions {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		padding: 12px 16px;
		border-top: 1px solid var(--rcl-line);
		background: #fff;
	}

	.mfl-rcl.has-js .mfl-rcl-apply {
		display: inline-block;
		flex: 1;
	}

	.mfl-rcl-active {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.mfl-rcl-list {
		border: 0;
		background: none;
	}

	.mfl-rcl-row {
		margin-bottom: 10px;
		border: 1px solid var(--rcl-line);
		border-radius: 8px;
		background: #fff;
		overflow: hidden;
	}

	.mfl-rcl-row + .mfl-rcl-row {
		border-top: 1px solid var(--rcl-line);
	}

	.mfl-rcl-row summary {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"date camp"
			"what what"
			"years years"
			"comp comp";
		gap: 2px 8px;
	}

	.mfl-rcl-date {
		grid-area: date;
		color: var(--rcl-muted);
		font-size: 12.5px;
	}

	.mfl-rcl-camp {
		grid-area: camp;
	}

	.mfl-rcl-what {
		grid-area: what;
	}

	.mfl-rcl-make {
		font-size: 16px;
	}

	.mfl-rcl-years {
		grid-area: years;
		color: var(--rcl-muted);
		font-size: 13px;
	}

	.mfl-rcl-comp {
		grid-area: comp;
		margin-top: 4px;
	}

	.mfl-rcl-units {
		grid-column: 1 / -1;
		text-align: left;
		font-weight: 700;
	}

	.mfl-rcl-units-l {
		display: inline;
	}

	.mfl-rcl-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

body.mfl-rcl-sheet-open {
	overflow: hidden;
}

/* =====================================================================
   Colour layer (Eric, 2026-11-18: "Use color to make filters and ux a
   little easier to use"). One colour per fleet class, used the same way on
   the filter chip, the row tag, the row's left edge and the active-filter
   chip, so a reader learns it once. Orange stays text and outline only.
   ===================================================================== */

.mfl-rcl [data-c],
.mfl-rcl-box [data-c] {
	--c: #64748b;
	--ct: #eef1f5;
}
.mfl-rcl [data-c="police"]  { --c: #1d4ed8; --ct: #e8eefc; }
.mfl-rcl [data-c="fire"]    { --c: #b42318; --ct: #fdecea; }
.mfl-rcl [data-c="ems"]     { --c: #0f766e; --ct: #e2f4f1; }
.mfl-rcl [data-c="transit"] { --c: #6d28d9; --ct: #f1ebfd; }
.mfl-rcl [data-c="school"]  { --c: #a15c07; --ct: #fdf1dc; }
.mfl-rcl [data-c="refuse"]  { --c: #3f6212; --ct: #edf5e1; }
.mfl-rcl [data-c="utility"] { --c: #0369a1; --ct: #e2f1fa; }
.mfl-rcl [data-c="truck"]   { --c: #334155; --ct: #eceff3; }
.mfl-rcl [data-c="work"]    { --c: #9d174d; --ct: #fbe8f0; }

/* Filter panel: sections separated, labels with a blue rule. */
.mfl-rcl-filters fieldset + .mfl-rcl-field,
.mfl-rcl-filters .mfl-rcl-field + fieldset,
.mfl-rcl-filters .mfl-rcl-field + .mfl-rcl-field {
	padding-top: 14px;
	border-top: 1px solid var(--rcl-line);
}

/* Class chips: colour dot at rest, tinted on hover, solid when chosen. */
.mfl-rcl-chip span {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	border-color: color-mix(in srgb, var(--c) 35%, #fff);
	transition: background .12s, color .12s, border-color .12s;
}
.mfl-rcl-chip span i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--c);
	flex: none;
}
.mfl-rcl-chip:hover span {
	background: var(--ct);
}
.mfl-rcl-chip input:checked + span {
	border-color: var(--c);
	background: var(--c);
	color: #fff;
}
.mfl-rcl-chip input:checked + span i {
	background: #fff;
}

/* Dropdowns that are set read as set. */
.mfl-rcl select.is-set {
	border-color: var(--rcl-blue);
	background-color: #eef3fa;
	box-shadow: inset 0 0 0 1px var(--rcl-blue);
}

/* Advisory toggles: each its own colour. */
.mfl-rcl-advs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.mfl-rcl-adv {
	--a: #334155;
	--at: #eef1f5;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}
.mfl-rcl-adv.is-dnd { --a: #b42318; --at: #fdecea; }
.mfl-rcl-adv.is-po  { --a: #b45309; --at: #fdf0e1; }
.mfl-rcl-adv.is-ev  { --a: #15803d; --at: #e6f5ec; }
.mfl-rcl-adv.is-cov { --a: var(--rcl-navy); --at: #fff4ee; }
.mfl-rcl-adv input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.mfl-rcl-adv span {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 5px 10px;
	border: 1px solid var(--a);
	border-radius: 999px;
	background: #fff;
	color: var(--a);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.mfl-rcl-adv span::before {
	content: "";
	width: 12px;
	height: 12px;
	border: 1.5px solid var(--a);
	border-radius: 3px;
	flex: none;
}
.mfl-rcl-adv.is-cov span {
	border-color: var(--rcl-orange);
}
.mfl-rcl-adv:hover span {
	background: var(--at);
}
.mfl-rcl-adv input:checked + span {
	background: var(--a);
	color: #fff;
}
.mfl-rcl-adv input:checked + span::before {
	content: "✓";
	border-color: #fff;
	font-size: 10px;
	line-height: 10px;
	text-align: center;
}
.mfl-rcl-adv input:focus-visible + span {
	outline: 2px solid var(--rcl-blue);
	outline-offset: 2px;
}

/* Buttons: own their look regardless of theme button styles. */
.mfl-rcl button.mfl-rcl-apply,
.mfl-rcl button.mfl-rcl-fbtn {
	display: inline-flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--rcl-navy);
	border-radius: 6px;
	background: var(--rcl-navy);
	color: #fff;
	font-family: var(--rcl-sans);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}
.mfl-rcl button.mfl-rcl-apply:hover,
.mfl-rcl button.mfl-rcl-fbtn:hover {
	background: var(--rcl-blue);
	border-color: var(--rcl-blue);
	color: #fff;
}
.mfl-rcl-badge {
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--rcl-navy);
	font-size: 12px;
	line-height: 18px;
	text-align: center;
}
.mfl-rcl-badge[hidden] {
	display: none;
}

/* Results: count in brand blue; active chips in their class colour. */
.mfl-rcl-count strong {
	color: var(--rcl-blue);
	font-size: 1.15em;
}
.mfl-rcl-active a[data-c] {
	background: var(--c);
}

/* Rows: class colour on the left edge and on the tag. */
.mfl-rcl-row {
	border-left: 4px solid var(--c, #cbd5e1);
}
.mfl-rcl-row[data-c="none"] {
	--c: #cbd5e1;
}
.mfl-rcl-tag[data-c] {
	background: var(--ct);
	color: var(--c);
}
.mfl-rcl-tag[data-c]::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border-radius: 50%;
	background: var(--c);
	vertical-align: 1px;
}
.mfl-rcl-tag.is-dnd { background: #b42318; color: #fff; }
.mfl-rcl-tag.is-po  { background: #fdf0e1; color: #b45309; }
.mfl-rcl-tag.is-ev  { background: #e6f5ec; color: #15803d; }
.mfl-rcl-row details[open] summary {
	background: var(--ct, var(--rcl-soft));
}

/* Sheet header carries Clear all on phones; hidden with the header on desktop. */
.mfl-rcl-sheet-head .mfl-rcl-reset {
	margin-left: auto;
	margin-right: 14px;
	font-size: 14px;
}

@media (max-width: 860px) {
	.mfl-rcl button.mfl-rcl-fbtn {
		padding: 9px 14px;
		font-size: 15px;
	}
	.mfl-rcl.has-js button.mfl-rcl-apply {
		width: 100%;
		padding: 13px 16px;
		font-size: 16px;
	}
	.mfl-rcl.has-js .mfl-rcl-actions .mfl-rcl-reset {
		display: none;
	}
	.mfl-rcl-chip span,
	.mfl-rcl-adv span {
		padding: 8px 12px;
		font-size: 14px;
	}
	.mfl-rcl-row {
		border-left-width: 5px;
	}
}

/* The Filters button is phone-only; with JS the desktop panel applies live. */
@media (min-width: 861px) {
	.mfl-rcl button.mfl-rcl-fbtn,
	.mfl-rcl.has-js button.mfl-rcl-apply {
		display: none;
	}
}

/* The Show button carries the theme's sanctioned .mfl-filter-apply (the site's
   blue filter pill, exempt from the global orange-outline button). Only its
   size changes here, for a full-width phone tap target. */
@media (max-width: 860px) {
	.mfl-rcl.has-js .mfl-rcl-actions button.mfl-rcl-apply.mfl-filter-apply {
		width: 100%;
		height: auto;
		padding: 13px 16px;
		background: var(--rcl-blue);
		font-size: 16px !important;
		font-weight: 700 !important;
		line-height: 1.2;
	}
}

/* Phone sheet must be exactly the screen tall so it scrolls inside. The
   desktop align-self:start otherwise shrink-wraps the fixed panel to its
   content and pushes the advisories under the Show bar, out of reach. */
@media (max-width: 860px) {
	.mfl-rcl.has-js .mfl-rcl-filters {
		align-self: stretch;
		justify-self: stretch;
		height: 100vh;
		height: 100dvh;
		max-height: 100dvh;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
}
