/*
 * Mega Speed Spec Table
 * Matches reference/mockup-desktop.dc.html and SPEC §6. Every selector is scoped to .mst.
 *
 * Design tokens. The Style tab overrides these per widget via
 * `{{WRAPPER}} .mst { --mst-*: … }` (higher specificity than this rule).
 * Keep the defaults in sync with the control defaults in class-spec-table-widget.php.
 */
.mst {
	--mst-accent: #004F91;
	--mst-border: #E3E6EB;
	--mst-radius: 12px;
	--mst-col-min: 176px;
	--mst-label-w: 240px;
	/* Offset for the sticky mobile pair header (set > 0 if a fixed site header covers it). */
	--mst-sticky-top: 0px;

	/* Fixed palette (SPEC §6). */
	--mst-text: #1B1D21;
	--mst-body: #2A2F37;
	--mst-muted: #4A505B;
	--mst-subtle: #5B6270;
	--mst-quiet: #6B7280;
	--mst-inner: #EEF0F3;
	--mst-divider: #C9CFD8;
	--mst-panel: #F4F6F8;
	--mst-control: #D5DAE1;

	/* Column min width in use; the All view narrows it. */
	--mst-col: var(--mst-col-min);

	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--mst-text);
	text-align: left;
}

.mst--all {
	--mst-col: calc(var(--mst-col-min) - 20px);
}

/* ---------------------------------------------------------------------------
 * Reset: theme (Bootstrap 3 globals, h2/p/a/img rules) and TablePress
 * ------------------------------------------------------------------------ */
.mst *,
.mst *::before,
.mst *::after {
	box-sizing: border-box;
}

.mst table,
.mst caption,
.mst thead,
.mst tbody,
.mst tr,
.mst th,
.mst td {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	color: inherit;
	line-height: inherit;
	text-align: left;
	vertical-align: middle;
	white-space: normal;
}

.mst p,
.mst h2,
.mst h3,
.mst label {
	margin: 0;
	padding: 0;
}

.mst button {
	margin: 0;
	font-family: inherit;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.mst a,
.mst a:hover,
.mst a:focus {
	text-decoration: none;
	box-shadow: none;
}

.mst img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mst svg {
	overflow: visible;
}

.mst [hidden] {
	display: none !important;
}

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

.mst :focus-visible {
	outline: 2px solid var(--mst-accent);
	outline-offset: 2px;
}

/* Icons: default 18px, contexts override. */
.mst .mst__icon {
	display: inline-block;
	flex: none;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */
.mst__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.mst__head-text {
	max-width: 640px;
}

.mst .mst__eyebrow {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mst-accent);
}

.mst .mst__title {
	margin-bottom: 8px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.1;
	color: var(--mst-text);
}

/* Sized on the span: the child theme forces `h2 { font-size: … !important }` below 900px. */
.mst .mst__title-text {
	display: block;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
}

.mst .mst__intro {
	font-size: 16px;
	line-height: 1.55;
	color: var(--mst-muted);
}

.mst__meta {
	font-size: 14px;
	color: var(--mst-muted);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * Toolbar: tabs, arrows, collapse all, differences switch
 * ------------------------------------------------------------------------ */
.mst__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding: 8px;
	background: var(--mst-panel);
	border: 1px solid var(--mst-border);
	border-radius: var(--mst-radius);
}

.mst__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.mst .mst__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--mst-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.mst .mst__tab:hover {
	background: #ECEFF3;
	color: var(--mst-muted);
}

.mst .mst__tab[aria-pressed="true"] {
	background: #FFFFFF;
	color: var(--mst-text);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 0 0 1px var(--mst-control);
}

.mst__count {
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--mst-border);
	color: #3A404A;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.mst__tab[aria-pressed="true"] .mst__count {
	background: var(--mst-accent);
	color: #FFFFFF;
}

.mst__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mst__arrows {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-right: 2px;
	padding-right: 6px;
	border-right: 1px solid var(--mst-control);
}

.mst__arrows-label {
	padding: 0 4px;
	font-size: 13px;
	color: var(--mst-muted);
}

.mst .mst__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--mst-control);
	border-radius: 8px;
	background: #FFFFFF;
	color: var(--mst-text);
	cursor: pointer;
}

.mst .mst__arrow:hover {
	background: #F7F9FC;
}

.mst .mst__arrow:disabled {
	opacity: 0.4;
	cursor: default;
	background: #FFFFFF;
}

.mst .mst__toggle-all {
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #3A404A;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.mst .mst__toggle-all:hover {
	background: #ECEFF3;
}

.mst .mst__diff {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mst-control);
	border-radius: 8px;
	background: #FFFFFF;
	color: var(--mst-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.mst__switch {
	position: relative;
	flex: none;
	width: 36px;
	height: 20px;
	border-radius: 999px;
	background: #C3C9D2;
	transition: background 0.15s;
}

.mst__switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: left 0.15s;
}

.mst__diff[aria-pressed="true"] .mst__switch {
	background: var(--mst-accent);
}

.mst__diff[aria-pressed="true"] .mst__switch::after {
	left: 18px;
}

/* ---------------------------------------------------------------------------
 * Table frame, scrolling, sticky label column, fade
 * ------------------------------------------------------------------------ */
.mst__wrap {
	position: relative;
}

.mst__scroll {
	overflow-x: auto;
	background: #FFFFFF;
	border: 1px solid var(--mst-border);
	border-radius: var(--mst-radius);
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.mst .mst__table {
	width: 100%;
	min-width: calc(var(--mst-label-w) + var(--mst-n, 4) * var(--mst-col));
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	background: #FFFFFF;
}

.mst .mst__col-label {
	width: var(--mst-label-w);
}

.mst .mst__sticky {
	position: sticky;
	left: 0;
	z-index: 1;
	background: #FFFFFF;
	border-right: 1px solid var(--mst-border);
}

.mst thead .mst__sticky {
	z-index: 2;
}

.mst__scroll.is-scrolled .mst__sticky {
	box-shadow: 8px 0 10px -8px rgba(16, 24, 40, 0.28);
}

.mst__fade {
	display: none;
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	width: 64px;
	border-radius: 0 calc(var(--mst-radius) - 1px) calc(var(--mst-radius) - 1px) 0;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
	pointer-events: none;
}

/* JS adds .is-end to .mst__wrap when scrolled to the right edge. */
.mst--all .mst__wrap:not(.is-end) .mst__fade {
	display: block;
}

/* ---------------------------------------------------------------------------
 * Series band (All view)
 * ------------------------------------------------------------------------ */
.mst .mst__band > th {
	border-bottom: 1px solid var(--mst-border);
}

.mst .mst__band-label {
	padding: 0 20px;
	border-top: 3px solid #F7F9FC;
	background: #F7F9FC;
	color: var(--mst-subtle);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mst .mst__band-cell {
	padding: 4px 6px;
	border-top: 3px solid var(--mst-accent);
	background: #F7F9FC;
}

.mst .mst__band-cell--alt {
	background: #EEF3F9;
}

.mst .mst__band-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--mst-text);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.mst .mst__band-btn:hover {
	background: rgba(0, 79, 145, 0.06);
	background: color-mix(in srgb, var(--mst-accent) 6%, transparent);
}

.mst__band-count {
	font-weight: 500;
	color: var(--mst-subtle);
}

.mst__band-btn .mst__icon {
	width: 14px;
	height: 14px;
	color: var(--mst-subtle);
}

/* ---------------------------------------------------------------------------
 * Model header row
 * ------------------------------------------------------------------------ */
.mst .mst__models > th {
	border-bottom: 2px solid var(--mst-text);
}

.mst .mst__corner {
	padding: 20px;
	vertical-align: bottom;
}

.mst__corner-title {
	display: block;
	margin-bottom: 6px;
	color: var(--mst-subtle);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mst__corner-series {
	display: block;
	color: var(--mst-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.mst .mst__model {
	padding: 20px 16px;
	border-right: 1px solid var(--mst-inner);
	vertical-align: top;
	font-weight: 400;
}

.mst__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	margin-bottom: 12px;
}

.mst .mst__photo img {
	max-width: 150px;
	max-height: 120px;
	object-fit: contain;
}

.mst__name {
	color: var(--mst-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.mst__summary {
	margin-top: 4px;
	color: var(--mst-subtle);
	font-size: 13px;
	line-height: 1.4;
}

.mst__pdfs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.mst .mst__pdf {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 10px;
	border: 1px solid var(--mst-accent);
	border-radius: 8px;
	background: #FFFFFF;
	color: var(--mst-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.mst .mst__pdf:hover,
.mst .mst__pdf:focus {
	background: #EEF3FC;
	color: var(--mst-accent);
}

.mst__pdf .mst__icon {
	width: 14px;
	height: 14px;
}

/* All view: compact headers and cells. */
.mst--all .mst__model {
	padding: 14px 12px;
}

.mst--all .mst__photo {
	height: 76px;
	margin-bottom: 8px;
}

.mst--all .mst__photo img {
	max-width: 96px;
	max-height: 76px;
}

.mst--all .mst__name {
	font-size: 16px;
}

.mst--all .mst__pdfs {
	margin-top: 8px;
}

/* ---------------------------------------------------------------------------
 * Group rows
 * ------------------------------------------------------------------------ */
.mst .mst__group-row > th {
	padding: 0;
	background: var(--mst-panel);
	border-bottom: 1px solid var(--mst-border);
}

.mst .mst__group-btn {
	position: sticky;
	left: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	background: transparent;
	color: var(--mst-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.mst .mst__group-btn--static {
	cursor: default;
}

.mst__group-btn .mst__icon {
	width: 16px;
	height: 16px;
	transition: transform 0.15s;
}

.mst__group-btn[aria-expanded="false"] .mst__icon {
	transform: rotate(-90deg);
}

.mst__group-count {
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mst-subtle);
}

/* ---------------------------------------------------------------------------
 * Spec rows and cells
 * ------------------------------------------------------------------------ */
.mst .mst__row > th,
.mst .mst__row > td {
	border-bottom: 1px solid var(--mst-inner);
}

.mst .mst__label {
	padding: 14px 20px;
	color: var(--mst-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.mst .mst__cell {
	padding: 14px 16px;
	border-right: 1px solid var(--mst-inner);
	line-height: 1.45;
}

.mst--all .mst__cell {
	padding: 14px 12px;
}

.mst .mst__cell--merged {
	background: #FBFCFD;
}

.mst .mst__cell--center {
	text-align: center;
}

.mst .mst__row:hover > .mst__cell {
	background: #F7F9FC;
}

.mst .mst__row:hover > .mst__label {
	background: #F2F5FA;
}

/* No double line against the frame. */
.mst .mst__models > th:last-child,
.mst .mst__row > td:last-child {
	border-right: 0;
}

.mst .mst__table > tbody:last-child > tr:last-child > * {
	border-bottom: 0;
}

/* Series divider (All view, SPEC §4.1.5). */
.mst .mst__col--series-start {
	border-left: 2px solid var(--mst-divider);
}

/* ---------------------------------------------------------------------------
 * Values (SPEC §4.1.3)
 * ------------------------------------------------------------------------ */
.mst__val {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--mst-body);
	font-size: 14px;
	line-height: 1.45;
	vertical-align: middle;
}

.mst__val--yes {
	align-items: center;
	gap: 6px;
	color: var(--mst-accent);
	font-weight: 600;
}

.mst__val--no {
	align-items: center;
	gap: 6px;
	color: var(--mst-quiet);
}

.mst__val--empty {
	color: var(--mst-quiet);
}

.mst__val--inc .mst__icon {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: var(--mst-accent);
}

.mst__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #FFF3DC;
	color: #8A4B00;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	vertical-align: middle;
}

.mst__badge .mst__icon {
	width: 14px;
	height: 14px;
}

.mst__num {
	color: var(--mst-text);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	vertical-align: middle;
}

.mst__unit {
	color: var(--mst-subtle);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

.mst__all {
	display: inline-block;
	margin-left: 10px;
	color: var(--mst-quiet);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle;
}

/* Empty states. */
.mst .mst__empty {
	padding: 40px 20px;
	color: var(--mst-muted);
	font-size: 15px;
	text-align: center;
}

.mst .mst__empty--box {
	border: 1px solid var(--mst-border);
	border-radius: var(--mst-radius);
}

/* ---------------------------------------------------------------------------
 * Footnote and contact box
 * ------------------------------------------------------------------------ */
.mst__note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 20px;
	padding: 18px 20px;
	background: var(--mst-panel);
	border-radius: var(--mst-radius);
	color: #3A404A;
	font-size: 14px;
	line-height: 1.6;
}

.mst__note .mst__icon {
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--mst-accent);
}

.mst .mst__note-text p + p {
	margin-top: 8px;
}

.mst__note strong {
	color: var(--mst-text);
	font-weight: 700;
}

.mst__note-text a {
	color: var(--mst-accent);
	text-decoration: underline;
}

.mst__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding: 28px;
	border: 1px solid var(--mst-border);
	border-radius: var(--mst-radius);
}

.mst .mst__cta-title {
	margin-bottom: 4px;
	color: var(--mst-text);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.mst .mst__cta-text {
	color: var(--mst-muted);
	font-size: 15px;
}

.mst .mst__cta-btn,
.mst .mst__cta-btn:hover,
.mst .mst__cta-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 8px;
	background: var(--mst-accent);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.mst .mst__cta-btn:hover {
	filter: brightness(0.9);
}

.mst__error {
	padding: 12px 16px;
	border-left: 4px solid #B42318;
	background: #FEF3F2;
	color: #7A271A;
	font-size: 14px;
}

/* ---------------------------------------------------------------------------
 * Phase 3: product links, quote button, "Compare" tick boxes, best value, print
 * ------------------------------------------------------------------------ */
.mst .mst__name-link,
.mst .mst__name-link:hover,
.mst .mst__name-link:focus {
	color: inherit;
	text-decoration: none;
}

.mst .mst__name-link:hover,
.mst .mst__name-link:focus {
	color: var(--mst-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mst .mst__photo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.mst .mst__quote,
.mst .mst__quote:hover,
.mst .mst__quote:focus {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin-top: 10px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--mst-accent);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.mst .mst__quote:hover,
.mst .mst__quote:focus {
	filter: brightness(1.15);
}

.mst .mst__pick {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	color: var(--mst-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.mst .mst__pick-input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--mst-accent);
	cursor: pointer;
}

.mst .mst__pick-input:disabled,
.mst .mst__pick-input:disabled + span {
	cursor: not-allowed;
	opacity: 0.5;
}

.mst__pickbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid var(--mst-accent);
	border-radius: 8px;
	background: #EEF3FC;
	font-size: 14px;
}

.mst__pickbar-text {
	flex: 1 1 240px;
	color: var(--mst-text);
}

.mst .mst__pickbar-go,
.mst .mst__pickbar-clear {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--mst-accent);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.mst .mst__pickbar-go {
	background: var(--mst-accent);
	color: #FFFFFF;
}

.mst .mst__pickbar-go:disabled {
	opacity: 0.45;
	cursor: default;
}

.mst .mst__pickbar-go[aria-pressed="true"] {
	box-shadow: inset 0 0 0 2px #FFFFFF;
}

.mst .mst__pickbar-clear {
	background: #FFFFFF;
	color: var(--mst-accent);
}

.mst .mst__print {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mst-control);
	border-radius: 8px;
	background: #FFFFFF;
	color: var(--mst-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.mst .mst__print:hover {
	background: #F7F9FC;
}

.mst .mst__print .mst__icon {
	width: 16px;
	height: 16px;
}

.mst .mst__cell--best .mst__num {
	color: var(--mst-accent);
}

.mst__best {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 6px;
	border-radius: 4px;
	background: #EEF3FC;
	color: var(--mst-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle;
}

/* Print view (frame built by printView()): the whole table on paper, no controls. */
.mst--print {
	padding: 0;
	font-size: 11px;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.mst__print-head {
	margin: 0 0 8px;
}

.mst .mst__print-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.mst .mst__print-sub,
.mst .mst__print-foot {
	margin: 2px 0 0;
	color: var(--mst-muted);
	font-size: 11px;
}

.mst .mst__print-foot {
	margin-top: 8px;
}

.mst--print .mst__table {
	min-width: 0;
	border: 1px solid var(--mst-border);
}

.mst--print .mst__col-label {
	width: 130px;
}

.mst--print .mst__band-btn {
	padding: 4px 6px;
	font-size: 10px;
}

.mst--print .mst__band-count {
	display: none;
}

.mst--print .mst__sticky {
	position: static;
}

.mst--print .mst__model {
	padding: 8px 6px;
}

.mst--print .mst__photo {
	height: 56px;
	margin-bottom: 4px;
}

.mst--print .mst__photo img {
	max-width: 80px;
	max-height: 56px;
}

.mst--print .mst__name {
	font-size: 12px;
}

.mst--print .mst__summary {
	font-size: 10px;
}

.mst--print .mst__pdfs,
.mst--print .mst__quote,
.mst--print .mst__pick,
.mst--print .mst__band-btn .mst__icon {
	display: none;
}

.mst--print .mst__label,
.mst--print .mst__cell {
	padding: 4px 5px;
	font-size: 10px;
}

.mst--print .mst__val,
.mst--print .mst__badge,
.mst--print .mst__unit {
	font-size: 10px;
}

.mst--print .mst__num {
	font-size: 12px;
}

.mst--print .mst__all,
.mst--print .mst__best {
	font-size: 8px;
}

.mst--print .mst__cell .mst__icon {
	width: 12px;
	height: 12px;
}

.mst--print .mst__group-btn {
	min-height: 0;
	padding: 4px 6px;
	font-size: 10px;
}

.mst--print tr,
.mst--print thead {
	break-inside: avoid;
}

.mst--print .mst__note {
	margin-top: 10px;
	padding: 8px 10px;
	font-size: 10px;
}

/* Printing the page itself (Ctrl+P): show the table without its controls. */
@media print {
	.mst .mst__toolbar,
	.mst .mst__pickbar,
	.mst .mst__fade,
	.mst .mst__quote,
	.mst .mst__pick,
	.mst .mst__cta-btn {
		display: none !important;
	}

	.mst .mst__scroll {
		overflow: visible;
	}

	.mst .mst__sticky {
		position: static;
	}
}

/* ---------------------------------------------------------------------------
 * Mobile compare view (SPEC §5). JS adds .mst--compare below 768px and fills
 * .mst__compare; without JS the scrollable table stays.
 * ------------------------------------------------------------------------ */
.mst--compare .mst__toolbar,
.mst--compare .mst__pickbar,
.mst--compare .mst__wrap,
.mst--compare .mst__meta {
	display: none;
}

.mst__cmp-pickers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.mst .mst__cmp-pick {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	color: var(--mst-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.mst .mst__cmp-select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--mst-divider);
	border-radius: 8px;
	background-color: #FFFFFF;
	color: var(--mst-text);
	font-family: inherit;
	/* 16px: iOS Safari zooms the page when focusing a smaller field. */
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
}

.mst .mst__diff--block {
	width: 100%;
	margin-bottom: 20px;
	background: var(--mst-panel);
}

.mst__cmp-head {
	position: sticky;
	top: var(--mst-sticky-top, 0px);
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 8px 0 12px;
	background: #FFFFFF;
	border-bottom: 2px solid var(--mst-text);
}

.mst__cmp-model {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.mst__compare .mst__photo {
	height: 96px;
	margin: 0;
}

.mst .mst__compare .mst__photo img {
	max-width: 120px;
	max-height: 96px;
}

.mst__compare .mst__name {
	font-size: 16px;
}

.mst__compare .mst__pdfs {
	margin-top: 0;
}

.mst .mst__compare .mst__pdf {
	gap: 4px;
	min-height: 44px;
	padding: 0 8px;
	font-size: 12px;
}

.mst__compare .mst__pdf .mst__icon {
	width: 12px;
	height: 12px;
}

.mst__cmp-group {
	margin-top: 20px;
}

.mst .mst__cmp-group-label {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--mst-panel);
	color: var(--mst-text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mst__cmp-row {
	padding: 12px 4px;
	border-bottom: 1px solid var(--mst-inner);
}

.mst__cmp-label {
	margin-bottom: 6px;
	color: var(--mst-subtle);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.mst__cmp-vals {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.mst__cmp-val {
	min-width: 0;
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

/* Differing values: accent at 7%. */
.mst__cmp-val.is-diff {
	/* Bleed 4px each side: with the 10px column gap the two pills stay 2px apart. */
	margin: -4px;
	padding: 4px;
	border-radius: 6px;
	background: rgba(0, 79, 145, 0.07);
	background: color-mix(in srgb, var(--mst-accent) 7%, transparent);
}

/* #6B7280 on the highlight is 4.32:1; the subtle grey keeps No / — at 5.48:1. */
.mst__cmp-val.is-diff .mst__val--no,
.mst__cmp-val.is-diff .mst__val--empty {
	color: var(--mst-subtle);
}

.mst__compare .mst__val {
	gap: 4px;
}

.mst__compare .mst__val .mst__icon {
	width: 16px;
	height: 16px;
}

.mst__compare .mst__badge {
	gap: 4px;
	padding: 2px 8px;
	font-size: 12px;
}

.mst__compare .mst__badge .mst__icon {
	width: 12px;
	height: 12px;
}

.mst__compare .mst__num {
	font-size: 20px;
}

.mst__compare .mst__unit {
	font-size: 11px;
}

.mst .mst__compare .mst__empty {
	padding: 28px 8px;
	font-size: 14px;
}

/* ---------------------------------------------------------------------------
 * Small screens: header and footer
 * ------------------------------------------------------------------------ */
@media (max-width: 767px) {
	.mst .mst__eyebrow {
		margin-bottom: 6px;
		font-size: 12px;
	}

	.mst .mst__title-text {
		font-size: 28px;
	}

	.mst__note {
		padding: 16px;
		font-size: 13px;
	}

	.mst__cta {
		margin-top: 24px;
		padding: 20px;
	}

	.mst .mst__cta-title {
		font-size: 20px;
	}

	.mst__cta-body,
	.mst .mst__cta-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mst__switch,
	.mst__switch::after,
	.mst__group-btn .mst__icon {
		transition: none;
	}
}
