/*
 * BBM Bike Data displays.
 * Fonts are inherited from the theme. To change colors, override these
 * variables in Appearance > Customize > Additional CSS, for example:
 *   .bbm-box, .bbm-card { --bbm-accent: #c0392b; }
 */
.bbm-box,
.bbm-list,
.bbm-card {
	--bbm-accent: #d9480f;
	--bbm-accent-soft: #fff4e6;
	--bbm-good: #2b8a3e;
	--bbm-good-soft: #ebfbee;
	--bbm-bad: #c92a2a;
	--bbm-bad-soft: #fff5f5;
	--bbm-border: #e3e3e3;
	--bbm-muted: #666;
	--bbm-bg: #fafafa;
	--bbm-radius: 8px;
	box-sizing: border-box;
}
.bbm-box *,
.bbm-list *,
.bbm-card * {
	box-sizing: border-box;
}

.bbm-box {
	margin: 1.75em 0;
	padding: 1.1em 1.25em;
	border: 1px solid var(--bbm-border);
	border-radius: var(--bbm-radius);
	background: var(--bbm-bg);
	font-size: 0.95em;
	line-height: 1.5;
}
.bbm-box-title {
	margin: 0 0 0.6em;
	font-weight: 700;
	font-size: 1.15em;
	line-height: 1.3;
}
.bbm-asof {
	margin: 0.75em 0 0;
	font-size: 0.8em;
	color: var(--bbm-muted);
}
.bbm-missing {
	padding: 0.6em 0.9em;
	border: 1px dashed var(--bbm-bad);
	color: var(--bbm-bad);
	font-size: 0.85em;
}

/* Spec box */
.bbm-spec-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: inherit;
}
.bbm-spec-table th,
.bbm-spec-table td {
	padding: 0.45em 0;
	border: 0;
	border-bottom: 1px solid var(--bbm-border);
	text-align: left;
	vertical-align: top;
	background: none;
}
.bbm-spec-table tr:last-child th,
.bbm-spec-table tr:last-child td {
	border-bottom: 0;
}
.bbm-spec-table th {
	width: 38%;
	padding-right: 1em;
	font-weight: 600;
	color: var(--bbm-muted);
}

/* Full specs table */
.bbm-full-spec-table thead th {
	padding-top: 0;
	font-weight: 700;
	color: inherit;
	border-bottom: 2px solid var(--bbm-border);
}

/* One field as text */
.bbm-field > p:last-child {
	margin-bottom: 0;
}

/* Verdict */
.bbm-verdict {
	border-left: 4px solid var(--bbm-accent);
	background: var(--bbm-accent-soft);
}
.bbm-verdict-head {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-bottom: 0.4em;
}
.bbm-verdict-head .bbm-box-title {
	margin: 0;
}
.bbm-verdict-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
}
.bbm-rating-label {
	margin-top: 0.25em;
	font-size: 0.68em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bbm-muted);
	white-space: nowrap;
}
.bbm-verdict-text p {
	margin: 0.5em 0;
}
.bbm-verdict-fit {
	display: grid;
	gap: 0.4em;
	margin: 0.75em 0 0;
}
.bbm-verdict-fit > div {
	display: flex;
	gap: 0.5em;
}
.bbm-verdict-fit dt {
	flex: 0 0 9.5em;
	margin: 0;
	font-weight: 700;
}
.bbm-verdict-fit dd {
	margin: 0;
}
.bbm-fit-yes dt {
	color: var(--bbm-good);
}
.bbm-fit-no dt {
	color: var(--bbm-bad);
}

/* Rating badge */
.bbm-rating {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	padding: 0.2em 0.5em;
	border-radius: 999px;
	background: var(--bbm-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}
.bbm-rating-of {
	font-size: 0.7em;
	opacity: 0.85;
	margin-left: 1px;
}
.bbm-rating-lg {
	width: 3.6em;
	height: 3.6em;
	align-items: center;
	padding: 0;
	font-size: 1.05em;
}
.bbm-rating-lg .bbm-rating-num {
	font-size: 1.45em;
}

/* Pros and cons */
.bbm-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
	padding: 0;
	border: 0;
	background: none;
}
.bbm-pc-col {
	padding: 1em 1.1em;
	border-radius: var(--bbm-radius);
}
.bbm-pros {
	background: var(--bbm-good-soft);
	border-top: 3px solid var(--bbm-good);
}
.bbm-cons {
	background: var(--bbm-bad-soft);
	border-top: 3px solid var(--bbm-bad);
}
.bbm-pc-title {
	margin: 0 0 0.4em;
	font-weight: 700;
}
.bbm-pros .bbm-pc-title {
	color: var(--bbm-good);
}
.bbm-cons .bbm-pc-title {
	color: var(--bbm-bad);
}
.bbm-pc-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bbm-pc-col li {
	position: relative;
	margin: 0 0 0.45em;
	padding-left: 1.4em;
}
.bbm-pc-col li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
}
.bbm-pros li::before {
	content: "+";
	color: var(--bbm-good);
}
.bbm-cons li::before {
	content: "\2212";
	color: var(--bbm-bad);
}

/* Tables that can scroll sideways on phones */
.bbm-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.bbm-compare-table,
.bbm-sortable {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: inherit;
	background: #fff;
}
.bbm-compare-table th,
.bbm-compare-table td,
.bbm-sortable th,
.bbm-sortable td {
	padding: 0.55em 0.7em;
	border: 0;
	border-bottom: 1px solid var(--bbm-border);
	text-align: left;
	vertical-align: top;
}
.bbm-compare-table thead th {
	font-size: 1.02em;
	border-bottom: 2px solid var(--bbm-accent);
}
.bbm-compare-table tbody th {
	font-weight: 600;
	color: var(--bbm-muted);
	white-space: nowrap;
}
.bbm-compare-table td.bbm-best {
	background: var(--bbm-good-soft);
	font-weight: 700;
	color: var(--bbm-good);
}
.bbm-compare-table.bbm-cols-2 td,
.bbm-compare-table.bbm-cols-2 thead th {
	width: 38%;
}

/* Sortable list table */
.bbm-sortable thead th {
	padding: 0;
	border-bottom: 2px solid var(--bbm-accent);
	white-space: nowrap;
}
.bbm-sortable thead button {
	display: block;
	width: 100%;
	padding: 0.55em 0.7em;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.bbm-sortable thead th[aria-sort="ascending"] button::after {
	content: " \25B2";
	font-size: 0.7em;
}
.bbm-sortable thead th[aria-sort="descending"] button::after {
	content: " \25BC";
	font-size: 0.7em;
}
.bbm-sortable td {
	white-space: nowrap;
}
.bbm-sortable tbody th {
	min-width: 9em;
}

/* Bike cards */
.bbm-list {
	display: grid;
	gap: 1.5em;
	margin: 1.75em 0;
}
.bbm-card {
	--bbm-ink: #0f172a;
	--bbm-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	border: 1px solid var(--bbm-border);
	border-radius: calc(var(--bbm-radius) * 1.75);
	background: #fff;
	box-shadow: var(--bbm-card-shadow);
	line-height: 1.45;
}
/* Photo across the top of the card, filling the frame edge to edge. */
.bbm-card-media {
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: #e2e8f0;
}
.bbm-card-media > a {
	display: block;
	width: 100%;
	height: 100%;
}
.bbm-card-media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center 70%;
}
.bbm-card-media-ph {
	aspect-ratio: 3 / 1;
	background: linear-gradient(135deg, var(--bbm-ink) 0%, #1e293b 60%, #334155 100%);
}
.bbm-card-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8em;
}
.bbm-card-ph .bbm-icon {
	width: 72px;
	height: 72px;
	stroke-width: 1.2;
	color: var(--bbm-accent);
}
.bbm-card-award {
	position: absolute;
	top: 14px;
	left: 0;
	padding: 0.42em 0.95em 0.42em 0.8em;
	border-radius: 0 999px 999px 0;
	background: var(--bbm-accent);
	color: #fff;
	font-size: 0.78em;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
	max-width: calc(100% - 12px);
	line-height: 1.25;
}
.bbm-card-credit {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 0.15em 0.5em;
	border-radius: 4px;
	background: rgba(15, 23, 42, 0.6);
	color: #fff;
	font-size: 0.68em;
}
.bbm-card-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.9em 1.5em;
	align-items: start;
	padding: 1.3em 1.5em 1.3em;
}
.bbm-card-head,
.bbm-card-foot {
	grid-column: 1 / -1;
}
.bbm-card-specs {
	grid-column: 1;
	grid-row: 2 / span 2;
}
.bbm-card-best {
	grid-column: 2;
}
.bbm-card-pros {
	grid-column: 2;
}
.bbm-card-body > :only-child,
.bbm-card-body:not(:has(.bbm-card-specs)) > * {
	grid-column: 1 / -1;
}
.bbm-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1em;
}
.bbm-card-meta {
	margin: 0 0 0.3em !important;
	font-size: 0.74em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bbm-accent);
}
.bbm-card-title {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 !important;
	color: var(--bbm-ink);
	font-size: 1.4em;
	font-weight: 800;
	line-height: 1.2;
}
.bbm-card-title a {
	color: inherit !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
}
.bbm-card-title a:hover {
	color: var(--bbm-accent);
}
.bbm-card-num {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: var(--bbm-ink);
	color: #fff;
	font-size: 0.7em;
}
.bbm-card-score {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 4.4em;
	height: 4.4em;
	border-radius: 50%;
	background: conic-gradient(var(--bbm-accent) calc(var(--bbm-score, 0.8) * 1turn), var(--bbm-accent-soft) 0);
	position: relative;
	text-align: center;
}
.bbm-card-score::before {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: #fff;
}
.bbm-card-score > span {
	position: relative;
}
.bbm-card-score-num {
	color: var(--bbm-ink);
	font-size: 1.25em;
	font-weight: 800;
	line-height: 1;
}
.bbm-card-score-num small {
	font-size: 0.55em;
	font-weight: 600;
	color: var(--bbm-muted);
}
.bbm-card-score-label {
	margin-top: 0.2em;
	font-size: 0.5em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bbm-muted);
	line-height: 1.1;
	max-width: 6em;
}
.bbm-card-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5em;
	margin: 0 !important;
	padding: 0;
}
.bbm-card-specs > div {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 0.35em;
	row-gap: 0.15em;
	padding: 0.55em 0.65em;
	border-radius: var(--bbm-radius);
	background: #f8fafc;
	border: 1px solid #eef2f6;
}
.bbm-card-specs .bbm-icon {
	width: 15px;
	height: 15px;
	color: var(--bbm-accent);
}
.bbm-card-specs dt {
	margin: 0;
	font-size: 0.66em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bbm-muted);
}
.bbm-card-specs dd {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--bbm-ink);
	font-size: 0.95em;
	font-weight: 800;
	white-space: nowrap;
}
.bbm-card-best {
	margin: 0 !important;
	font-size: 0.92em;
}
.bbm-card-pros {
	display: grid;
	gap: 0.3em;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-size: 0.92em;
}
.bbm-card-pros li {
	display: flex;
	align-items: flex-start;
	gap: 0.45em;
	margin: 0 !important;
	padding: 0 !important;
}
.bbm-card-pros li::before {
	content: none !important;
}
.bbm-card-pros .bbm-icon {
	flex: none;
	margin-top: 0.1em;
	padding: 2px;
	border-radius: 50%;
	background: var(--bbm-good-soft);
	color: var(--bbm-good);
	stroke-width: 2.6;
}
.bbm-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em 1em;
	margin-top: auto;
	padding-top: 0.9em;
	border-top: 1px solid var(--bbm-border);
}
.bbm-card-price {
	display: grid;
	grid-template-columns: auto auto;
	align-items: baseline;
	column-gap: 0.6em;
	margin: 0 !important;
}
.bbm-price-label {
	grid-column: 1 / -1;
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bbm-muted);
}
.bbm-price-num {
	color: var(--bbm-ink);
	font-size: 1.5em;
	font-weight: 800;
	line-height: 1.1;
}
.bbm-price-used {
	font-size: 0.82em;
	color: var(--bbm-muted);
}
.bbm-card-link,
.bbm-card-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.65em 1.15em;
	border-radius: 999px;
	background: var(--bbm-accent);
	color: #fff !important;
	font-size: 0.92em;
	font-weight: 700;
	text-decoration: none !important;
	border: 0 !important;
	background-image: none !important;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bbm-card-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.bbm-yr {
	display: block;
	font-size: 0.75em;
	color: var(--bbm-muted);
}


@media (max-width: 640px) {
	.bbm-proscons {
		grid-template-columns: 1fr;
	}
	.bbm-card {
		grid-template-columns: 1fr;
	}
	.bbm-card-media {
		aspect-ratio: 16 / 10;
	}
	.bbm-card-media-ph {
		aspect-ratio: 16 / 7;
	}
	.bbm-card-body {
		grid-template-columns: 1fr;
		padding: 1.1em 1.1em 1.1em;
	}
	.bbm-card-body > * {
		grid-column: 1 / -1 !important;
		grid-row: auto !important;
	}
	.bbm-card-title {
		font-size: 1.25em;
	}
	.bbm-card-specs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.4em;
	}
	.bbm-card-specs > div {
		padding: 0.5em 0.5em;
	}
	.bbm-card-link {
		width: 100%;
		justify-content: center;
	}
	.bbm-verdict-fit > div {
		flex-direction: column;
		gap: 0;
	}
	.bbm-verdict-fit dt {
		flex: none;
	}
	.bbm-spec-table th {
		width: 45%;
	}
	.bbm-compare-table {
		font-size: 0.9em;
	}
	.bbm-compare-table th,
	.bbm-compare-table td {
		padding: 0.45em 0.4em;
	}
	.bbm-compare-table tbody th {
		width: 28%;
		white-space: normal;
	}
	.bbm-compare-table.bbm-cols-2 td,
	.bbm-compare-table.bbm-cols-2 thead th {
		width: 36%;
	}
	.bbm-box {
		padding: 0.9em 0.9em;
	}
}

/* ---------- Photo gallery ---------- */
.bbm-gallery {
	--bbm-gap: 6px;
	margin: 1.75em 0;
	padding: 0;
}
.bbm-gallery-title {
	margin: 0 0 0.5em;
	font-weight: 700;
	font-size: 1.15em;
}
.bbm-gallery-grid {
	position: relative;
	display: grid;
	gap: var(--bbm-gap);
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	aspect-ratio: 2 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}
.bbm-gallery-item {
	position: relative;
	display: block;
	min-height: 0;
	overflow: hidden;
	background: #e9edf2;
	cursor: zoom-in;
}
.bbm-gallery-item:first-child {
	grid-row: 1 / -1;
}
.bbm-gallery .bbm-gallery-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform 0.45s ease, filter 0.3s ease;
}
.bbm-gallery-item:hover .bbm-gallery-img,
.bbm-gallery-item:focus-visible .bbm-gallery-img {
	transform: scale(1.04);
	filter: brightness(1.05);
}
.bbm-gallery-item:focus-visible {
	outline: 3px solid #d9480f;
	outline-offset: -3px;
}
.bbm-gallery-extra {
	display: none;
}
.bbm-gallery-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(12, 22, 38, 0.55);
	color: #fff;
	font-size: 1.6em;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.bbm-gallery-all {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 13px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	color: #14213d;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.bbm-gallery-all:hover {
	background: #fff;
}
.bbm-gallery-credit {
	margin: 0.45em 0 0;
	color: #666;
	font-size: 0.8em;
	text-align: right;
}

/* Fewer photos. */
.bbm-gallery-n1 .bbm-gallery-grid {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}
.bbm-gallery-n2 .bbm-gallery-grid {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
	aspect-ratio: 3 / 1;
}
.bbm-gallery-n3 .bbm-gallery-grid {
	grid-template-columns: 2fr 1fr;
}
.bbm-gallery-n4 .bbm-gallery-grid {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: repeat(3, 1fr);
}

@media (max-width: 640px) {
	.bbm-gallery-grid,
	.bbm-gallery-n3 .bbm-gallery-grid,
	.bbm-gallery-n4 .bbm-gallery-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
		aspect-ratio: auto;
		border-radius: 10px;
	}
	.bbm-gallery-n4 .bbm-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.bbm-gallery-item {
		aspect-ratio: 3 / 2;
	}
	.bbm-gallery-item:first-child {
		grid-row: auto;
		grid-column: 1 / -1;
		aspect-ratio: 16 / 10;
	}
	.bbm-gallery-n1 .bbm-gallery-grid {
		grid-template-columns: 1fr;
	}
	.bbm-gallery-n2 .bbm-gallery-item:first-child {
		grid-column: auto;
		aspect-ratio: 3 / 2;
	}
	.bbm-gallery-all {
		left: auto;
		right: 8px;
		bottom: auto;
		top: 8px;
		padding: 6px 11px;
		font-size: 12px;
	}
}

/* Full-screen viewer. */
html.bbm-lb-open {
	overflow: hidden;
}
.bbm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 12, 20, 0.95);
	color: #fff;
}
.bbm-lightbox[hidden] {
	display: none;
}
.bbm-lb-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 56px 72px 20px;
	box-sizing: border-box;
}
.bbm-lb-img {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 44px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.bbm-lb-cap {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	width: 100%;
	max-width: 1100px;
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.4;
}
.bbm-lb-count {
	flex: none;
	font-variant-numeric: tabular-nums;
}
.bbm-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}
.bbm-lightbox button:hover,
.bbm-lightbox button:focus-visible {
	background: rgba(255, 255, 255, 0.25);
}
.bbm-lightbox button[hidden] {
	display: none;
}
.bbm-lb-close {
	top: 12px;
	right: 12px;
}
.bbm-lb-prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}
.bbm-lb-next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}
@media (max-width: 640px) {
	.bbm-lb-figure {
		padding: 60px 8px 16px;
	}
	.bbm-lb-prev,
	.bbm-lb-next {
		top: auto;
		bottom: 14px;
		transform: none;
	}
	.bbm-lb-cap {
		padding: 0 60px;
		flex-direction: column;
		gap: 2px;
		text-align: center;
	}
}
