
/* 
 * Everything related to pages (inside template) goes here 
 * *******************************************************  */
 

/* selectionbar (displaying current selection, e.g. BMW->3er->E46) */

#selectionbar {						/* black overlay, no children (cause they'd inherit opacity) */
	position: absolute;
	top: 0;
	width: 100%;
	height: 70px;
	background-color: black;
	opacity: 0.4;
	border-radius: 10px 10px 0px 0px; 	/* don't overlap parent */
}

#selectionbar-text-container {		/* container where p's and a's which make up selection-navigation */
	z-index: 1;						/* be on top of selectionbar (black-transparent overlay) */
	position: absolute;
	top: 0px;
	left: 0px;					/* space for logo */
	padding-left: 16px;
	width: 100%;
	box-sizing: border-box;
	height: 70px;					/* follows selectionbar's height through media queries */
}

#selectionbar-floatright-container {	/* buttons in there in admin mode */
	padding-right: 20px;
	float: right;
	text-align: right;
	line-height: 70px;				/* follows selectionbar's height through media queries */
}

#selectionbar-text-container > a,
#selectionbar-text-container > p {
	display: inline-block;
	text-decoration: none;
	margin: 0 5px 0 0;


	color: #ffffff;
	font-family: poppins, sans-serif;
	
	
	font-size: 25px;
//	text-shadow: 0 0 3px #aaaaaa;	/* glow */
	line-height: 70px;				/* follows selectionbar's height through media queries */
	
	-webkit-transition: color 250ms ease, text-shadow 250ms ease;
    -moz-transition: color 250ms ease, text-shadow 250ms ease;
    -ms-transition: color 250ms ease, text-shadow 250ms ease;
    -o-transition: color 250ms ease, text-shadow 250ms ease;
    transition: color 250ms ease, text-shadow 250ms ease;
}

#selectionbar-text-container > a:hover {
	color: #F2F2F2;
//	text-shadow: 0 0 3px #efefef;
}

#selectionbar-text-container > a::selection,
#selectionbar-text-container > p::selection {
  background: rgba(0, 26, 51, 0.5);
  color: white;
}
#selectionbar-text-container > a::-moz-selection,
#selectionbar-text-container > p::-moz-selection {
  background: rgba(0, 26, 51, 0.5);
  color: white;
}

#selectionbar-logo {
	position: absolute;
	display: none;
	top: 8px;
	left: 16px;
	width: 54px;
	height: 54px;
	object-fit: contain;
	z-index: 1;					/* be on top of selectionbar */	
}

/* contentcontainer (everything below selectionbar + promptbar) */

#contentcontainer {
	text-align: center;
	width: 100%;
	margin-top: 70px;			/* = selectionbar-height */ 
	padding-bottom: 20px;

}

/* media queries for selectionbar and content-container */

@media (min-width: 550px) {
	#selectionbar-logo {
		display: block;
	}
	#selectionbar-text-container {
		padding-left: 85px;						/* includes space for logo */
	}
}

@media (min-width: 750px) {
	#selectionbar {
		height: 85px;
	}
	#contentcontainer {
		margin-top: 85px;
	}
	#selectionbar-text-container {
		height: 85px;
		padding-left: 110px;
	}
	#selectionbar-logo {
		top: 12px;
		left: 24px;
		width: 61px;
		height: 61px;
	}
	#selectionbar-text-container > a, #selectionbar-text-container > p {
		font-size: 30px;
		line-height: 85px;
	}
	#selectionbar-floatright-container {
		line-height: 85px;
	}
}

/* Op telefoons blijft de kruimelnavigatie altijd op één regel. Lange
 * voertuigteksten worden ingekort in plaats van over de content te lopen. */
@media (max-width: 599px) {
	#selectionbar-text-container {
		display: flex;
		align-items: center;
		gap: 0;
		overflow: hidden;
		padding-right: 10px;
	}

	#selectionbar-text-container > a,
	#selectionbar-text-container > p {
		flex: 0 0 auto;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#selectionbar-text-container > [essential]:not(#selectionbar-floatright-container) {
		flex: 1 1 auto;
		min-width: 0;
	}

	#selectionbar-floatright-container {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
		float: none;
		height: 70px;
		margin-left: auto;
		padding-right: 0;
		line-height: normal;
	}

	#selectionbar-floatright-container > a {
		flex: 0 0 auto;
	}

	#selectionbar-text-container > .selectionbar-fueltype {
		display: none !important;
	}
}


/* prompt bar ("Maak uw keuze..."), goes inside #contentcontainer */

#promptbar {
	height: 100px;
	width: 100%;
	line-height: 100px;		/* vertically center text inside */
	text-align: center;
}

/* selection links */

.selection-link-container {
	display: inline-block;
	width: 90%;
	height: 40px;
	text-align: left;
}

.selection-link {
	line-height: 40px; 	/* = container height to vertically center text */
	font-size: 16px;
	text-decoration: none;
    -webkit-transition: all 250ms ease;
    -moz-transition: all 250ms ease;
    -ms-transition: all 250ms ease;
    -o-transition: all 250ms ease;
    transition: all 250ms ease;
}

.selection-text {
	line-height: 40px; 	/* = container height to vertically center text */
	font-size: 16px;
}

.selection-link:hover, .selection-link:active, .selection-link:focus {
	border: none;
  	outline: none;
}

.selection-link:hover, .selection-link:active {
	color: #141414;
//	text-shadow: 0 0 3px #000000;
	/*
    -webkit-transform: scale(1.25);
    -moz-transform: scale(1.25);
    -ms-transform: scale(1.25);
    -o-transform: scale(1.25);
    transform: scale(1.25);
    */
}


/* selectable text buttons/links */

.text-selectable {
	display: inline-block;	
	text-decoration: none;
	width: 140px;
	height: auto;
	padding: 5px;
	margin: 5px;
	
	border: 2px solid #606060;
	background-color: #132530;
	
	-webkit-border-radius: 5px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
	border-radius: 8px;
}

.text-selectable,
.text-selectable > p {
	-webkit-transition: all 150ms linear;
	-moz-transition: all 150ms linear;
	-ms-transition: all 150ms linear;
	-o-transition: all 150ms linear;
	transition: all 150ms linear;
}

.text-selectable > p::-moz-selection {
	background: none;
	color: white;
}
.text-selectable > p::selection {
	background: none;
	color: white;
}

.text-selectable:hover {
	border: 2px solid #000000;
	-webkit-box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.3);
	-moz-box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.3);
    box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.3);
}

.text-selectable:hover > p {
	color: #141414;
}

.text-selectable > p {
	font-family: poppins, sans-serif;
	
	
	color: #ffffff;
}

/* ----- brand selection page ----- */

#brand-header-container {	/* "Kies uw Merk"-Container */ 
	position: absolute;
	width: 100%;
	height: 90px;
	line-height: 90px;
	text-align: center;
	top: 0;
}

#brand-content-container {
	box-sizing: border-box;
	padding: 10px 0;
	height: auto;
	margin-top: 90px;
	text-align: center;
}

/* Publieke merkenweergave: Qenteken-darkmode, met de eigen merklogo's. */
#public-brand-page {
	--brand-grid-surface: #000000;
	--brand-card-surface: #1e293b;
	--brand-card-surface-hover: #253247;
	--brand-card-surface-active: #29384f;
	--brand-card-border: #374151;
	--brand-card-border-hover: #4b5d78;
	--brand-card-border-focus: #f9fafb;
	--brand-text-primary: #ffffff;
	--brand-text-secondary: #9ca3af;
	--brand-focus: #1256b8;
	--brand-shadow-default: 0 1px 2px rgba(0, 0, 0, 0.05);
	--brand-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.32);
	--brand-radius: 15px;
	--brand-motion: 150ms;
	background: var(--brand-grid-surface);
}

#public-brand-page #brand-content-container.brand-overview-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	max-width: 1400px;
	height: auto;
	margin: 0 auto;
	padding: 20px 24px 40px;
	box-sizing: border-box;
	text-align: initial;
}

#public-brand-page .brand-overview-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 216.68 / 186.6;
	height: auto;
	min-width: 0;
	min-height: 174px;
	padding: 20px;
	box-sizing: border-box;
	overflow: hidden;
	color: var(--brand-text-primary);
	background: var(--brand-card-surface);
	border: 0.8px solid var(--brand-card-border);
	border-radius: var(--brand-radius);
	box-shadow: var(--brand-shadow-default);
	text-decoration: none;
	transition: border-color var(--brand-motion) ease,
				box-shadow var(--brand-motion) ease,
				background-color var(--brand-motion) ease,
				transform var(--brand-motion) ease;
}

#public-brand-page .brand-overview-card:hover {
	background: var(--brand-card-surface-hover);
	border-color: var(--brand-card-border-hover);
	box-shadow: var(--brand-shadow-hover);
	transform: translateY(-3px);
	outline: none;
}

#public-brand-page .brand-overview-card:focus-visible {
	background: var(--brand-card-surface-hover);
	border-color: var(--brand-card-border-focus);
	box-shadow: 0 0 0 3px var(--brand-focus), var(--brand-shadow-hover);
	outline: none;
}

#public-brand-page .brand-overview-card:active {
	background: var(--brand-card-surface-active);
}

#public-brand-page .brand-overview-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	max-width: 100%;
	height: 72px;
	margin-bottom: 12px;
	flex: 0 0 72px;
}

#public-brand-page .brand-overview-logo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: none !important;
	mix-blend-mode: normal !important;
	transition: filter var(--brand-motion) ease, transform var(--brand-motion) ease;
}

#public-brand-page .brand-overview-card:hover .brand-overview-logo img,
#public-brand-page .brand-overview-card:focus-visible .brand-overview-logo img {
	transform: scale(1.04);
}

/* Enlarge the selected marks equally in both axes; keep the card layout. */
#public-brand-page .brand-overview-logo--wide img {
	transform: scale(1.25);
}

#public-brand-page .brand-overview-card:hover .brand-overview-logo--wide img,
#public-brand-page .brand-overview-card:focus-visible .brand-overview-logo--wide img {
	transform: scale(1.30);
}

#public-brand-page .brand-overview-logo--empty {
	background: var(--brand-card-border);
	border-radius: 50%;
}

#public-brand-page .brand-overview-name,
#public-brand-page .brand-overview-count {
	display: block;
	width: 100%;
	font-family: poppins, Arial, sans-serif;
	text-align: center;
}

#public-brand-page .brand-overview-name {
	color: var(--brand-text-primary);
	font-size: clamp(12px, 1.2vw, 17.5px);
	font-weight: 600;
	line-height: 25px;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	transition: color var(--brand-motion) ease;
}

#public-brand-page .brand-overview-count {
	margin-top: 4px;
	color: var(--brand-text-secondary);
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
}

@media (min-width: 640px) {
	#public-brand-page #brand-content-container.brand-overview-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	#public-brand-page #brand-content-container.brand-overview-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (min-width: 1024px) {
	#public-brand-page #brand-content-container.brand-overview-grid {
		grid-template-columns: repeat(6, minmax(0, 216.68px));
		justify-content: center;
	}

	#public-brand-page .brand-overview-card {
		width: 100%;
		height: auto;
		padding: clamp(12px, 1.4vw, 20px);
		aspect-ratio: 216.68 / 186.6;
	}
}

@media (max-width: 480px) {
	#public-brand-page #brand-content-container.brand-overview-grid {
		gap: 10px;
		padding-right: 10px;
		padding-left: 10px;
	}

	#public-brand-page .brand-overview-card {
		aspect-ratio: auto;
		min-height: 150px;
		padding: 14px 7px 12px;
		border-radius: var(--brand-radius);
	}

	#public-brand-page .brand-overview-logo {
		width: 54px;
		height: 54px;
		margin-bottom: 8px;
		flex-basis: 54px;
	}

	#public-brand-page .brand-overview-logo img {
		max-width: 100%;
		max-height: 100%;
	}

	#public-brand-page .brand-overview-name {
		font-size: 14px;
		line-height: 20px;
	}

	#public-brand-page .brand-overview-count {
		font-size: 12px;
		line-height: 17px;
	}
}

@media (max-width: 360px) {
	#public-brand-page .brand-overview-name {
		font-size: 12px;
		line-height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#public-brand-page .brand-overview-card,
	#public-brand-page .brand-overview-logo img,
	#public-brand-page .brand-overview-name {
		transition: none;
	}
}


/* ----- brand selection page for ADMIN MODE ----- */

.admin-brand-logo {
	width: 50px;
}


/* ----- series selection page for ADMIN MODE ----- */

/* ----- public series/model selection page ----- */

#series-overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	width: calc(100% - 48px);
	max-width: 1400px;
	margin: 0 auto 40px;
	box-sizing: border-box;
	text-align: left;
}

.series-overview-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	min-height: 96.6px;
	padding: 20px;
	box-sizing: border-box;
	color: #ffffff;
	background: #1e293b;
	border: 0.8px solid #374151;
	border-radius: 15px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	transition: background-color 150ms ease,
				border-color 150ms ease,
				box-shadow 150ms ease,
				transform 150ms ease;
}

.series-overview-card:hover {
	color: #ffffff;
	background: #253247;
	border-color: #4b5d78;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
	transform: translateY(-3px);
}

.series-overview-card:focus-visible {
	color: #ffffff;
	background: #253247;
	border-color: #f9fafb;
	box-shadow: 0 0 0 3px #1256b8, 0 8px 20px rgba(0, 0, 0, 0.32);
	outline: none;
}

.series-overview-card:active {
	background: #29384f;
	transform: translateY(1px);
}

.series-overview-name,
.series-overview-count {
	display: block;
	max-width: 100%;
	font-family: poppins, sans-serif;
	letter-spacing: -0.5px;
	overflow-wrap: anywhere;
}

.series-overview-name {
	color: #ffffff;
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}

.series-overview-count {
	padding-top: 5px;
	color: #94a3b8;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
}

@media (min-width: 700px) {
	#series-overview-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	#series-overview-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	#series-overview-grid {
		gap: 12px;
		width: calc(100% - 20px);
		margin-bottom: 24px;
	}

	.series-overview-card {
		min-height: 90px;
		padding: 17px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.series-overview-card {
		transition: none;
	}
}

#listtable-series {
	max-width: 650px;
}


/* ----- models page for ADMIN MODE (= model editor) ----- */

#tab-container-editor {			/* container for tabs (which represent tuning stages) */
	display: inline-block;
	width: 90%;
	max-width: 1000px;
	margin-top: 50px;		/* tabs overflow this container to the top */
	margin-bottom: 30px;
}

#general-container-editor {		/* container for general model properties such as fuel type and motor */
	display: inline-block;
	max-width: 1000px;
	margin: 40px 0 30px 0;
	width: 90%;
	
	border: 1px solid rgba(0, 0, 0, 0.5);	
	-webkit-box-shadow: 3px 3px 7px -1px rgba(0,0,0,0.7);
	-moz-box-shadow: 3px 3px 7px -1px rgba(0,0,0,0.7);
	box-shadow: 3px 3px 7px -1px rgba(0,0,0,0.7);
	border-radius: 10px;
}
/*
#specials-page-container {
	display: inline-block;
	max-width: 1000px;
	margin: 30px 0 30px 0;
	width: 90%;
	text-align: left;
	padding: 15px;
	box-sizing: border-box;
	
	border: 1px solid rgba(0, 0, 0, 0.5);	
	-webkit-box-shadow: 3px 3px 7px -1px rgba(0,0,0,0.7);
	-moz-box-shadow: 3px 3px 7px -1px rgba(0,0,0,0.7);
	box-shadow: 3px 3px 7px -1px rgba(0,0,0,0.7);
	border-radius: 10px;
}
*/

/* ----- dynamic tuning result page ----- */

.tuning-contentcontainer {
	font-family: poppins, Arial, sans-serif;
}

#stages-selection-container:not(:empty) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	width: calc(100% - 48px);
	max-width: 1400px;
	margin: 20px auto 6px;
}

.stage-container2-inner {
	display: block;
}

.stage-container2-inner > button {
	min-height: 46px;
	padding: 0;
	color: #ffffff;
	font-family: poppins, Arial, sans-serif;
	background: #1e293b;
	border: 1px solid #374151;
	border-radius: 12px;
	transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.stage-container2-inner > button:hover {
	background: #253247;
	border-color: #4b5d78;
	transform: translateY(-2px);
}

.stage-container2-inner > button:focus-visible {
	border-color: #f9fafb;
	box-shadow: 0 0 0 3px #16A7D9;
	outline: none;
}

.stage-container2-inner > button.stage-text2-active {
	background: #16A7D9;
	border-color: #16A7D9;
}

.stage-text2 {
	min-width: 92px;
	margin: 0;
	padding: 11px 18px;
	color: inherit;
	font-family: poppins, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
}

.stage-text2::before {
	content: "Stage ";
}

.stage-text-specialspage::before {
	content: none;
}

#tuning-row-normal {
	display: block;
	width: calc(100% - 48px);
	max-width: 1400px;
	margin: 0 auto;
	padding: 22px 0 26px;
}

.power-widget {
	display: flex;
	flex-direction: column;
	gap: 38px;
	width: 100%;
	font-family: poppins, Arial, sans-serif;
	text-align: left;
}

.power-metric {
	min-width: 0;
}

.power-metric-title {
	margin: 0 0 16px;
	color: #ffffff;
	font-family: poppins, Arial, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 30px;
	text-transform: none;
}

.power-metric-title span {
	color: #94a3b8;
	font-size: 15px;
	font-weight: 400;
}

.power-metric-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) 140px 116px;
	align-items: stretch;
	gap: 14px;
}

.power-stat-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 132px;
	padding: 20px 22px;
	box-sizing: border-box;
	background: #1e293b;
	border: 1px solid #374151;
	border-radius: 15px;
}

.power-stat-box--highlight {
	background: #16A7D9;
	border-color: #16A7D9;
}

.power-stat-label {
	margin-bottom: 8px;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	text-transform: uppercase;
}

.power-stat-box--highlight .power-stat-label {
	color: rgba(255, 255, 255, 0.82);
}

.power-stat-value {
	display: flex;
	align-items: baseline;
	min-width: 0;
	color: #ffffff;
	font-size: clamp(28px, 2.4vw, 38px);
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
}

.power-stat-value small {
	margin-left: 4px;
	color: #94a3b8;
	font-size: 15px;
	font-weight: 400;
	text-transform: lowercase;
}

.power-stat-box--highlight .power-stat-value small {
	color: rgba(255, 255, 255, 0.82);
}

.power-ring-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.power-ring {
	position: relative;
	width: 132px;
	height: 132px;
}

.power-ring svg {
	display: block;
	width: 132px;
	height: 132px;
	transform: rotate(-90deg);
}

.power-ring-track,
.power-ring-fill {
	fill: none;
	stroke-width: 13;
}

.power-ring-track {
	stroke: #253247;
}

.power-ring-fill {
	stroke: #16A7D9;
	stroke-linecap: round;
	transition: stroke-dashoffset 1600ms cubic-bezier(.4, 0, .2, 1);
}

.power-ring-text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.power-ring-percent {
	color: #ffffff;
	font-size: 25px;
	font-weight: 600;
	line-height: 1;
}

.power-ring-subtitle {
	margin-top: 4px;
	color: #94a3b8;
	font-size: 10px;
	font-weight: 500;
	line-height: 14px;
	text-transform: uppercase;
}

.power-bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 14px;
	height: 132px;
}

.power-bar-item {
	display: flex;
	align-items: flex-end;
	gap: 7px;
	height: 100%;
}

.power-bar-track {
	display: flex;
	align-items: flex-end;
	width: 13px;
	height: 100%;
	overflow: hidden;
	background: #111827;
	border-radius: 999px;
}

.power-bar-fill {
	display: block;
	width: 100%;
	height: 0;
	border-radius: 999px;
	transition: height 1600ms cubic-bezier(.4, 0, .2, 1);
}

.power-bar-fill--standard {
	background: #64748b;
}

.power-bar-fill--tuning {
	background: #16A7D9;
}

.power-bar-label {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #94a3b8;
	font-size: 9px;
	font-weight: 500;
	line-height: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

@media (max-width: 1179px) {
	.power-metric-row {
		grid-template-columns: repeat(3, minmax(0, 1fr)) 140px 116px;
	}

	.power-stat-box {
		padding: 18px;
	}
}

@media (max-width: 999px) {
	.power-metric-row {
		grid-template-columns: repeat(3, minmax(0, 1fr)) 140px 116px;
		gap: 10px;
	}

	.power-stat-box {
		min-height: 116px;
		padding: 15px;
	}

	.power-ring,
	.power-ring svg,
	.power-bars {
		width: 116px;
		height: 116px;
	}

	.power-bars {
		width: 104px;
	}
}

@media (max-width: 799px) {
	.power-metric-row {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.power-stat-box {
		grid-column: span 2;
	}

	.power-ring-wrap,
	.power-bars {
		grid-column: span 3;
		width: auto;
	}
}

@media (max-width: 520px) {
	#stages-selection-container:not(:empty),
	#tuning-row-normal {
		width: calc(100% - 20px);
	}

	#stages-selection-container:not(:empty) {
		margin-top: 14px;
	}

	.stage-text2 {
		min-width: 76px;
		padding: 9px 12px;
		font-size: 14px;
	}

	#tuning-row-normal {
		padding-top: 16px;
	}

	.power-widget {
		gap: 30px;
	}

	.power-metric-title {
		margin-bottom: 12px;
		font-size: 18px;
		line-height: 26px;
	}

	.power-metric-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.power-stat-box {
		grid-column: span 1;
		min-height: 104px;
		padding: 14px;
	}

	.power-stat-box--highlight {
		grid-column: 1 / -1;
	}

	.power-ring-wrap,
	.power-bars {
		grid-column: span 1;
	}

	.power-stat-value {
		font-size: 27px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#public-brand-page .brand-overview-card:hover,
	.series-overview-card:hover,
	.engine-overview-card:hover,
	.stage-container2-inner > button:hover {
		transform: none;
	}

	.power-ring-fill,
	.power-bar-fill {
		transition: none;
	}
}

#specials-page-container > p {
	margin-bottom: 15px;
}

#specials-page-container > div {
	text-align: center;
}

#specials-page-container > div > div {
	width: 33%;
	min-width: 250px;
	display: inline-block;
}

#general-container-editor > table {
	margin: 20px;
}

.editor-table-inner {
	display: inline-block;
	width: 100%;
}

.editor-table-inner > tbody > tr > td {
	padding-top: 10px;
}
.editor-table-inner > tbody > tr:first-child > td:nth-child(1) {
	width: 20%;
}
.editor-table-inner > tbody > tr:first-child > td:nth-child(2) {
	width: 30%;
}
.editor-table-inner > tbody > tr > td:nth-child(2) > input {
	width: -webkit-calc(100% - 40px);
	width: -moz-calc(100% - 40px);
	width: calc(100% - 40px);
}
.editor-table-inner > tbody > tr:first-child > td:nth-child(3) {
	text-align: center;
	width: 50%;
}

#general-table-editor, #general-table-editor > tbody {
	width: -webkit-calc(100% - 40px);
	width: -moz-calc(100% - 40px);
	width: calc(100% - 40px);
}

#general-table-editor > tbody > tr:first-child > td > * {
	margin-bottom: 10px;
}

#general-table-editor > tbody > tr > td:nth-child(2n+2) > * {
	width: -webkit-calc(100% - 40px);
	width: -moz-calc(100% - 40px);
	width: calc(100% - 40px);
}

#general-table-editor > tbody > tr:first-child > td:nth-child(1),
#general-table-editor > tbody > tr:first-child > td:nth-child(3) {
	width: 15%;
}

#general-table-editor > tbody > tr:first-child > td:nth-child(2),
#general-table-editor > tbody > tr:first-child > td:nth-child(4) {
	width: 35%;
}

.editor-textarea-description {
	padding: 5px;
	margin-top: 8px;
	resize: none;
	width: 90%;
}

.editor-textarea-description::selection {
	background: rgba(0, 26, 51, 0.5);
	color: white;
}
.editor-textarea-description::-moz-selection {
	background: rgba(0, 26, 51, 0.5);
	color: white;
}

.editor-table-values > tbody > tr > td {
	padding: 5px;
}

/* ------ models page ----- */

/* Public motor selection: fuel types remain visibly separated and each
 * motor uses the same dark card language as the preceding selection pages. */
#engine-selection-page {
	width: calc(100% - 48px);
	max-width: 1400px;
	margin: 0 auto 40px;
	box-sizing: border-box;
	text-align: left;
}

.engine-fuel-section + .engine-fuel-section {
	margin-top: 28px;
}

.engine-fuel-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin-bottom: 12px;
	padding: 0 2px;
}

.engine-fuel-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	box-sizing: border-box;
	color: #ffffff;
	font-family: poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	background: #1e293b;
	border: 1px solid #94a3b8;
	border-radius: 8px;
}

.engine-fuel-heading h2 {
	min-width: 0;
	margin: 0;
	color: #ffffff;
	font-family: poppins, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
}

.engine-fuel-count {
	margin-left: auto;
	color: #94a3b8;
	font-family: poppins, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
}

.engine-overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.engine-overview-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	min-height: 96.6px;
	padding: 20px;
	box-sizing: border-box;
	color: #ffffff;
	background: #1e293b;
	border: 0.8px solid #374151;
	border-radius: 15px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	transition: background-color 150ms ease,
				border-color 150ms ease,
				box-shadow 150ms ease,
				transform 150ms ease;
}

.engine-overview-card:hover {
	color: #ffffff;
	background: #253247;
	border-color: #4b5d78;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
	transform: translateY(-3px);
}

.engine-overview-card:focus-visible {
	color: #ffffff;
	background: #253247;
	border-color: #f9fafb;
	box-shadow: 0 0 0 3px #1256b8, 0 8px 20px rgba(0, 0, 0, 0.32);
	outline: none;
}

.engine-overview-card:active {
	background: #29384f;
	transform: translateY(1px);
}

.engine-overview-name,
.engine-overview-power {
	display: block;
	max-width: 100%;
	font-family: poppins, sans-serif;
	letter-spacing: -0.5px;
	overflow-wrap: anywhere;
}

.engine-overview-name {
	color: #ffffff;
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
}

.engine-overview-power {
	padding-top: 5px;
	color: #94a3b8;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

@media (min-width: 700px) {
	.engine-overview-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.engine-overview-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	#engine-selection-page {
		width: calc(100% - 20px);
		margin-bottom: 24px;
	}

	.engine-fuel-section + .engine-fuel-section {
		margin-top: 24px;
	}

	.engine-fuel-heading {
		gap: 8px;
	}

	.engine-fuel-heading h2 {
		font-size: 18px;
	}

	.engine-fuel-count {
		font-size: 12px;
	}

	.engine-overview-grid {
		gap: 10px;
	}

	.engine-overview-card {
		min-height: 90px;
		padding: 17px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.engine-overview-card {
		transition: none;
	}
}

.model-card {
	display: inline-block;
	padding: 10px;
	box-sizing: border-box;
	width: 100%;
	text-align: center;
	vertical-align: top;
}

@media (min-width: 600px) {
	.model-card {
		width: 50%;
	}
}

@media (min-width: 950px) {
	.model-card {
		width: 33%;
	}
}

.model-card > div {
	background-color: #132530;
//	font-weight: bold;
	width: 100%;
}

#fueltypes-container {
	margin: 0px 20px;
	box-sizing: border-box;
}

.fueltype-element {		/* one list row = one model */
	width: 100%;
}

.fueltype-element-left {	/* left column, motor name */
	text-align: left;
	display: inline-block;
	width: 70%
}

.fueltype-element-left > a {
	margin-left: 12px;
	vertical-align: middle;
}

.fueltype-element-right {	/* right column, ps of series */
	display: inline-block;
	text-align: right;
	width: 30%
}

.fueltype-element-right > p {
	margin-right: 10px;
	vertical-align: middle;
}

.fueltype-table > tbody > tr > td:last-child {		/* column with ps(serie) values */
	text-align: right;
	padding-right: 10px;
}

.fueltype-table > tbody > tr > td:first-child {		/* column with motor names */
	text-align: left;
	padding-left: 12px;
}


/* ------ tuning page ----- */

/* general */

.tuning-row {
	display: inline-block;
	padding-bottom: 20px;
	width: 93%;
}

.tuning-contentcontainer {
	padding-bottom: 6px !important;
}

#tuning-row-normal {
	padding-bottom: 8px;
}

#tuning-row-specials:empty {
	display: none;
}

@media (min-width: 600px) {
	.tuning-row {
		padding-bottom: 30px;
	}
}

@media (min-width: 800px) and (max-width: 899px) {
	.tuning-row {
		width: 88%;
	}
}
/*
/* stage selection */

#stages-selection-container {
	width: 100%;
	height: 45px;
	padding: 20px 0px;
}

/* Original stage text style */

.stage-container-inner {	/* container for each tuning stage */
	vertical-align: top;
	display: inline-block;
	width: 110px;
	height: 45px;
}

.stage-container-inner > button {
	white-space: nowrap;
	height: 100%;
}

.stage-text {
	color: #000000;
	font-size: 22px;
	text-shadow: none;
	
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	-ms-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

.stage-text::before,
.stage-text-active > p::before {
	content: "STAGE ";
	font-size: 80%;
}

.stage-text-active > p {
	color: #141414;
	font-size: 30px;
//	text-shadow: 0 0 10px #141414;
	
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	-ms-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

.stage-text-specialspage::before {
	display: none !important;
}


/* alternative stage text style */

.stage-container2-inner {	/* container for each tuning stage */
	vertical-align: middle;
	display: inline-block;
	width: auto;
	height: 45px;
}

.stage-container2-inner > button {
	white-space: nowrap;
	padding: 0;
	height: 100%;
}

.stage-text2 {
	color: #808080;
	font-size: 22px;
//	text-shadow: 0 0 1px #303030;
	min-width: 50px;
	width: auto;
	margin: 0;
}

.stage-text2::before {
	display: none;
	content: "STAGE ";
	font-size: 80%;
}

.stage-text2-active > p {
	color: #141414;
	font-size: 22px;
//	text-shadow: 0 0 10px #141414;
}

@media (min-width: 500px) and (max-width: 649px) {
	.stage-text2::before {
		display: none;
	}
	.stage-text2,
	.stage-text2-active > p {
		font-size: 22px;
		min-width: 70px;
	}
}

@media (min-width: 650px) and (max-width: 699px) {
	.stage-text2::before {
		display: initial;
	}
	.stage-text2,
	.stage-text2-active > p {
		font-size: 17px;
		min-width: 120px;
	}
}

@media (min-width: 700px) and (max-width: 859px) {
	.stage-container-inner {
		min-width: 130px;
	}
	#stages-selection-container,
	.stage-container2-inner,
	.stage-container-inner {
		height: 50px;
	}
	
	.stage-text {
		font-size: 25px;
	}
	.stage-text-active > p {
		font-size: 33px;
	}
	
	.stage-text2::before {
		display: initial;
	}
	.stage-text2,
	.stage-text2-active > p {
		font-size: 20px;
		width: 120px;
	}
}

@media (min-width: 860px) {
	.stage-container-inner {
		min-width: 150px;
	}
	#stages-selection-container,
	.stage-container2-inner,
	.stage-container-inner {
		height: 60px;
	}
	
	.stage-text {
		font-size: 30px;
	}
	.stage-text-active > p {
		font-size: 38px;
	}
	
	.stage-text2::before {
		display: initial;
	}
	.stage-text2,
	.stage-text2-active > p {
		font-size: 22px;
		min-width: 140px;
	}
}

@media (min-width: 1200px) {
	.stage-container-inner {
		min-width: 160px;
	}
}
*/
/* infotable (containing technical tuning data, price and contact) */

/* general */

#card-infotable {
	display: inline-block;
	float: left;
	width: 100%;
	height: 320px;
}

#infotable {
	display: table;
	table-layout: fixed;
	text-align: center;
	height: 100%;
	width: 100%;
	background: #132530;
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}

#infotable > tbody {			/* stay as high as table */
	height: 100%;
	width: 100%;
}

#infotable > tbody > tr {
	display: table-row;
}

#infotable > tbody > tr > td {
	display: table-cell;
	padding: 0;
}

/* set row heights */

#infotable > tbody > tr:nth-child(1) > td,
#infotable > tbody > tr:nth-child(3) > td,
#infotable > tbody > tr:nth-child(4) > td,
#infotable > tbody > tr:nth-child(5) > td {
	height: 50px;
}

#infotable > tbody > tr:nth-child(7) > td {
	height: 62px;
}
	
#infotable > tbody > tr:nth-child(2) > td,
#infotable > tbody > tr:nth-child(6) > td {
	height: 4px;
}

@media (min-width: 600px) {
	#card-infotable {
		height: 370px;
	}
	
	#infotable > tbody > tr:nth-child(1) > td {
		background-color: #132530;
		height: 55px;
	}
	
	#infotable > tbody > tr:nth-child(3) > td,
	#infotable > tbody > tr:nth-child(4) > td,
	#infotable > tbody > tr:nth-child(5) > td {
		height: 60px;
	}
	
	#infotable > tbody > tr:nth-child(7) > td {
		height: 70px;
	}
		
	#infotable > tbody > tr:nth-child(2) > td,
	#infotable > tbody > tr:nth-child(6) > td {
		height: 6px;
	}
}


/* set column widths */

#infotable-tr-head > td:nth-child(1) {		/* define width of left column */
	width: 21%;
}

#infotable-tr-head > td:nth-child(n+2) {	/* define witht of other columns */
	width: 21%;
}


/* header units */

#infotable > tbody > tr:nth-child(1) > td:nth-child(2)::after {
	content: " (PK)";
	font-size: 13px;
}

#infotable > tbody > tr:nth-child(1) > td:nth-child(3)::after {
	content: " (NM)";
	font-size: 13px;
}
/*
#infotable > tbody > tr:nth-child(1) > td:nth-child(4)::after {
	content: " (km/h)";
	font-size: 13px;
}
*/

/* dotted separator line to bottom row */

#infotable > tbody > tr:nth-child(2) > td,
#infotable > tbody > tr:nth-child(3) > td,
#infotable > tbody > tr:nth-child(4) > td,
#infotable > tbody > tr:nth-child(6) > td {
	box-sizing: border-box;
	white-space: nowrap;
	background-image: url("../images/dotted.png");
  	background-repeat: repeat-x;
}

#infotable > tbody > tr:nth-child(2) > td {
	background-position: center top;
}

#infotable > tbody > tr:nth-child(6) > td {
  	background-position: center bottom;
}

/* price is bold */
/*
.infotable-bottom-row > td > p {
	font-weight: bold;
}
*/
/* for toogling of currently displayed tuning stage */

.hidden {
	display: none;
}

.visible {
	display: block;
}


/* styling: numbers and contact */

.infotable-tr-delta {	/* numbers in row which shows performance gain delta */
	color: #11a2d2;
}

.infotable-tr-delta::before {
	content: "+";
	margin-right: 3px;
	font-size: px;	
}

.infotable-number {	
	font-size: 16px;
	margin: 10px;
}
/*
#infotable-contact-link {
	display: none;
	text-decoration: none;
	color: #ffffff;
}
*/

#infotable-contact-button::after {
	content: "";
}

@media (min-width: 410px) {
	#infotable-contact-button::after {
		content: "";
	}
}

.infotable-contact {
	font-size: 17px;
}

@media (min-width: 600px) {
	.infotable-number {
		font-size: 28px;
	}
	.infotable-contact {
		font-size: 20px;
	}
}

/* Description */
/*
#card-description {
	float: right;
	margin-top: 20px;
	width: 100%;
	height: 240px;
	text-align: left;
}

#card-description > div.card-content-container {
	text-align: left;
	padding: 15px;
	width: auto;		/* TODO: why?? */
}
*/

/* pictures */
/*
#card-pictures {
	width: 100%;
	max-width: 900px;
}

#pictures-slider {
	position: relative;
	top: 10px;
	margin: 10px 10px 20px 10px;
	height: 220px !important;
}

@media (min-width: 550px) {
	#pictures-slider {
		margin: 15px;
		height: 270px !important;
		top: 15px;
	}
	#card-pictures > .card-content-container {
		height: 300px;
	}
}

@media (min-width: 650px) {
	#pictures-slider {
		margin: 20px;
		height: 330px !important;
		top: 20px;
	}
	#card-pictures > .card-content-container {
		height: 370px;
	}
}

@media (min-width: 800px) {
	#pictures-slider {
		margin: 25px;
		height: 380px !important;
		top: 25px;
	}
	#card-pictures > .card-content-container {
		height: 430px;
	}
}

#pictures-slider > a {
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	-o-border-radius: 10px;
	border-radius: 10px;
}
*/
/* Media queries */

@media (min-width: 800px) {
	#card-infotable {
		height: 380px;		/* = height of description box */
	}
}
/*
@media (min-width: 900px) {		/* get tuning table and description box in one row */
	#card-infotable {
		width: 100%;
	}
	#infotable-tr-head > td {
		height: 50px;
	}
	#card-description {
		width: 32%;
		margin-top: 0px;
		height: 380px;
	}
	
}
*/

/* Keep the redesigned result spacing authoritative over the legacy tuning rules. */
#tuning-row-normal {
	padding-bottom: 26px;
}

/* ----- compact two-column motor selection ----- */

.engine-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 20px;
}

.engine-columns .engine-fuel-section + .engine-fuel-section {
	margin-top: 0;
}

.engine-columns .engine-fuel-heading {
	min-height: 62px;
	margin: 0;
	padding: 14px 18px;
	box-sizing: border-box;
	background: #1e293b;
	border: 1px solid #374151;
	border-bottom: 0;
	border-radius: 15px 15px 0 0;
}

.engine-columns .engine-fuel-marker {
	color: #16A7D9;
	background: rgba(22, 167, 217, 0.10);
	border-color: #16A7D9;
}

.engine-columns .engine-fuel-heading h2 {
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
}

.engine-overview-list {
	overflow: hidden;
	background: #1e293b;
	border: 1px solid #374151;
	border-radius: 0 0 15px 15px;
}

.engine-overview-list .engine-overview-card {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 58px;
	padding: 13px 18px;
	background: #1e293b;
	border: 0;
	border-bottom: 1px solid #374151;
	border-radius: 0;
	box-shadow: none;
}

.engine-overview-list .engine-overview-card:last-child {
	border-bottom: 0;
}

.engine-overview-list .engine-overview-card:hover {
	background: #253247;
	border-color: #374151;
	box-shadow: none;
	transform: translateY(-2px);
}

.engine-overview-list .engine-overview-card:focus-visible {
	position: relative;
	z-index: 1;
	background: #253247;
	border-color: #374151;
	box-shadow: inset 0 0 0 2px #16A7D9;
}

.engine-overview-list .engine-overview-name {
	min-width: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
}

.engine-overview-list .engine-overview-power {
	flex: 0 0 auto;
	padding: 5px 12px;
	color: #16A7D9;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	background: rgba(22, 167, 217, 0.10);
	border-radius: 999px;
	white-space: nowrap;
}

@media (max-width: 820px) {
	.engine-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.engine-columns .engine-fuel-heading {
		min-height: 58px;
		padding: 12px 14px;
	}

	.engine-columns .engine-fuel-heading h2 {
		font-size: 17px;
	}

	.engine-overview-list .engine-overview-card {
		min-height: 56px;
		padding: 12px 14px;
	}

	.engine-overview-list .engine-overview-name {
		font-size: 14px;
	}

	.engine-overview-list .engine-overview-power {
		padding: 4px 9px;
		font-size: 12px;
	}
}

/* ----- final result alignment and shared card proportions ----- */

#stages-selection-container:not(:empty) {
	margin-top: 10px;
	margin-bottom: 10px;
}

#tuning-row-normal {
	padding-top: 0;
	padding-bottom: 20px;
}

.power-widget {
	gap: 30px;
}

.power-stat-box {
	height: 96.6px;
	min-height: 96.6px;
	padding: 16px 20px;
}

.power-ring,
.power-ring svg,
.power-bars {
	width: 96.6px;
	height: 96.6px;
}

.power-ring-track,
.power-ring-fill {
	stroke-width: 11;
}

.power-ring-percent {
	font-size: 22px;
}

.power-bars {
	width: 104px;
}

.power-metric-row {
	grid-template-columns: repeat(3, minmax(0, 1fr)) 104px 104px;
	align-items: center;
}

@media (max-width: 999px) {
	.power-stat-box {
		height: 96.6px;
		min-height: 96.6px;
		padding: 14px 16px;
	}

	.power-ring,
	.power-ring svg,
	.power-bars {
		width: 96.6px;
		height: 96.6px;
	}

	.power-bars {
		width: 104px;
	}

	.power-metric-row {
		grid-template-columns: repeat(3, minmax(0, 1fr)) 104px 104px;
	}
}

@media (max-width: 799px) {
	.power-metric-row {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.power-stat-box {
		grid-column: span 2;
	}

	.power-ring-wrap,
	.power-bars {
		grid-column: span 3;
		width: auto;
	}
}

@media (max-width: 520px) {
	#tuning-row-normal {
		padding-top: 0;
	}

	.power-metric-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.power-stat-box {
		grid-column: span 1;
		height: 96.6px;
		min-height: 96.6px;
		padding: 13px;
	}

	.power-stat-box--highlight {
		grid-column: 1 / -1;
	}

	.power-ring-wrap,
	.power-bars {
		grid-column: span 1;
	}

	.power-stat-value {
		font-size: 25px;
	}
}

/* Exact alignment with the four-column cards shown after brand selection. */
#stages-selection-container:empty {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

#stages-selection-container:not(:empty) {
	height: auto;
	padding: 0;
}

#tuning-row-normal {
	width: calc(100% - 48px);
	max-width: 1400px;
	margin: 0 auto;
	padding-top: 0;
}

.power-metric-row {
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.power-stat-box,
.power-stat-box--highlight {
	grid-column: auto;
}

.power-visuals {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-width: 0;
	height: 96.6px;
}

.power-visuals .power-ring-wrap,
.power-visuals .power-bars {
	grid-column: auto;
	width: auto;
}

@media (min-width: 700px) {
	.power-metric-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.power-metric-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	#tuning-row-normal {
		width: calc(100% - 20px);
	}

	.power-metric-row {
		gap: 12px;
	}

	.power-stat-box {
		height: 90px;
		min-height: 90px;
		padding: 14px 17px;
	}

	.power-visuals {
		height: 90px;
	}

	.power-ring,
	.power-ring svg,
	.power-bars {
		height: 90px;
	}

	.power-ring,
	.power-ring svg {
		width: 90px;
	}
}

/* ----- v19: requested consistency corrections ----- */

/* Generation cards keep the same compact desktop height as before. */
@media (min-width: 481px) {
	.generation-selection-grid .series-overview-card {
		height: 96.6px;
		min-height: 96.6px;
	}
}

/* Supporting counters must remain visually quiet. */
.series-overview-count,
.engine-fuel-count,
.engine-overview-power,
#public-brand-page .brand-overview-count {
	font-weight: 400 !important;
	text-shadow: none !important;
}

/* Motor names and values use the same type scale as the other selection cards. */
.engine-overview-list .engine-overview-name {
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}

.engine-overview-list .engine-overview-power {
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
}

/* Desktop result content starts at the same vertical position as pages with a prompt bar. */
@media (min-width: 750px) {
	.tuning-contentcontainer {
		box-sizing: border-box;
		padding-top: 100px;
	}
}

#tuning-row-normal {
	margin: 0 auto 20px;
	padding-bottom: 20px;
}

.tuning-contentcontainer {
	padding-bottom: 20px !important;
}

/* Restore only the percentage ring and comparison bars to their earlier size. */
.power-visuals {
	height: 132px;
}

.power-ring,
.power-ring svg {
	width: 132px;
	height: 132px;
}

.power-bars {
	width: 116px;
	height: 132px;
}

@media (max-width: 999px) {
	.power-visuals {
		height: 116px;
	}

	.power-ring,
	.power-ring svg {
		width: 116px;
		height: 116px;
	}

	.power-bars {
		width: 104px;
		height: 116px;
	}
}

@media (max-width: 480px) {
	/* All public selection/result containers receive calmer side margins. */
	#public-brand-page #brand-content-container.brand-overview-grid,
	#series-overview-grid,
	#engine-selection-page,
	#stages-selection-container:not(:empty),
	#tuning-row-normal {
		width: calc(100% - 32px);
	}

	#public-brand-page #brand-content-container.brand-overview-grid {
		gap: 12px;
		padding-right: 0;
		padding-left: 0;
	}

	/* Only model and generation selection show two cards side by side. */
	#series-overview-grid.model-selection-grid,
	#series-overview-grid.generation-selection-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.series-overview-card {
		min-height: 86px;
		padding: 13px 14px;
	}

	.series-overview-name {
		font-size: 16px;
		line-height: 22px;
	}

	.series-overview-count {
		padding-top: 4px;
		font-size: 12px;
		line-height: 18px;
	}

	.engine-overview-list .engine-overview-name {
		font-size: 16px;
		line-height: 24px;
	}

	.engine-overview-list .engine-overview-power {
		padding: 6px 12px;
		font-size: 16px;
		line-height: 22px;
	}

	.power-visuals {
		height: 116px;
	}

	.power-ring,
	.power-ring svg {
		width: 116px;
		height: 116px;
	}

	.power-bars {
		width: 104px;
		height: 116px;
	}
}
