/* First 4 Vans – Vehicle spec card
   Theme-agnostic, responsive, light/dark aware. Scoped under .f4v-card. */

.f4v-card {
	--f4v-bg:      #ffffff;
	--f4v-fg:      #12151a;
	--f4v-muted:   #5b6472;
	--f4v-line:    #e6e9ee;
	--f4v-soft:    #f5f7fa;
	--f4v-accent:  #0a58ca;
	--f4v-plate:   #ffd500;
	--f4v-radius:  14px;

	box-sizing: border-box;
	max-width: 760px;
	margin: 1.5em 0;
	padding: clamp(16px, 3vw, 28px);
	background: var(--f4v-bg);
	color: var(--f4v-fg);
	border: 1px solid var(--f4v-line);
	border-radius: var(--f4v-radius);
	box-shadow: 0 1px 2px rgba(16,21,26,.04), 0 8px 24px rgba(16,21,26,.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.4;
}
.f4v-card *, .f4v-card *::before, .f4v-card *::after { box-sizing: border-box; }

/* ---- header ---- */
.f4v-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--f4v-line);
}
.f4v-card__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.f4v-card__logo {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; padding: 8px;
	background: var(--f4v-soft); border-radius: 12px; flex: 0 0 auto;
}
.f4v-card__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.f4v-card__names { min-width: 0; }
.f4v-card__title { margin: 0; font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.f4v-card__trim { margin: 3px 0 0; color: var(--f4v-muted); font-size: 14px; }

/* UK number plate */
.f4v-plate {
	flex: 0 0 auto;
	background: var(--f4v-plate);
	color: #111;
	border: 2px solid #111;
	border-radius: 7px;
	padding: 8px 14px;
	font-weight: 800;
	font-size: clamp(18px, 2.6vw, 24px);
	letter-spacing: 2px;
	font-family: "Arial Narrow", Arial, sans-serif;
	white-space: nowrap;
}

/* ---- headline stat pills ---- */
.f4v-stats {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
}
.f4v-stat {
	background: var(--f4v-soft);
	border: 1px solid var(--f4v-line);
	border-radius: 10px;
	padding: 10px 12px;
	text-align: center;
}
.f4v-stat__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--f4v-muted); }
.f4v-stat__value { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; }

/* ---- CO2 emissions band ---- */
.f4v-emissions { margin-top: 22px; }
.f4v-emissions__head {
	display: flex; align-items: baseline; justify-content: space-between;
	font-size: 13px; color: var(--f4v-muted); margin-bottom: 8px;
}
.f4v-emissions__head strong { color: var(--f4v-fg); font-size: 15px; }
.f4v-band { display: flex; gap: 4px; }
.f4v-band__seg {
	flex: 1;
	text-align: center;
	padding: 8px 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--f4v-muted);
	background: var(--f4v-soft);
	border: 1px solid var(--f4v-line);
	border-radius: 6px;
}
.f4v-band__seg.is-active {
	color: #0b3d1e;
	background: #58c27d;
	border-color: #46b06b;
	box-shadow: 0 2px 8px rgba(70,176,107,.35);
	transform: scale(1.06);
}

/* ---- full spec grid ---- */
.f4v-spec {
	margin: 22px 0 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
}
.f4v-spec__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--f4v-line);
}
.f4v-spec__row dt { margin: 0; color: var(--f4v-muted); font-size: 13px; }
.f4v-spec__row dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; }

@media (max-width: 560px) {
	.f4v-spec { grid-template-columns: 1fr; }
	.f4v-card__head { flex-direction: column; align-items: flex-start; }
}

/* ---- dark mode ---- */
@media (prefers-color-scheme: dark) {
	.f4v-card {
		--f4v-bg:    #171a1f;
		--f4v-fg:    #eef1f5;
		--f4v-muted: #9aa4b2;
		--f4v-line:  #2a2f37;
		--f4v-soft:  #1f242b;
		box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px rgba(0,0,0,.4);
	}
	.f4v-band__seg.is-active { color: #04220f; }
}
