/* EV chiptuning catalogue and model pages (inc/ev-catalog.php, single-ev_mudel.php), 2026-10-09.
   Site palette: red CTA, graphite, steel; square corners; ExtraBold uppercase headings.
   Everything is under .ev: the content box (.boxescnt) floats p/h2/h3 at 70 % and makes buttons 80px high and full width. */
.ev {
	--ev-red: var(--es-red, #ed1c24);
	--ev-red-text: var(--es-red-text, #d4141c);
	--ev-graphite: var(--es-graphite, #2f393a);
	--ev-steel: #91a5a6;
	--ev-steel-dark: var(--es-steel-dark, #5f7173);
	--ev-tint: #e9eded;
	--ev-bold: "raleway-extrabold-webfont", Arial, Tahoma, sans-serif;
	width: 100%;
	clear: both;
}
.ev::after { content: ""; display: table; clear: both; }
.boxescnt .ev p,
.boxescnt .ev h2,
.boxescnt .ev h3 {
	float: none;
	width: auto;
	padding-left: 0;
}
.boxescnt .ev h2 {
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #000;
	text-wrap: balance;
}
/* !important: Customizer CSS has «.boxescnt ul, .boxescnt ol {width:100% !important; padding-left:20px !important}». */
#boxes .ev ul,
#boxes .ev ol {
	list-style: none;
	float: none;
	margin: 0;
	padding: 0 !important;
	width: auto !important;
}
#boxes .ev ul > li,
#boxes .ev ol > li { margin-left: 0; padding-left: 0; }
.boxescnt .ev button,
.ev .ev-btn {
	width: auto;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	font-family: var(--ev-bold);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 15px;
	line-height: 1.2;
	color: #fff;
	background: var(--ev-graphite);
}
.boxescnt .ev .ev-btn:hover { background: var(--ev-steel-dark); }
.boxescnt .ev .ev-btn-red { background: var(--ev-red-text); font-size: 18px; min-height: 56px; }
.boxescnt .ev .ev-btn-red:hover { background: var(--ev-graphite); }
.ev a { border: 0; }
.ev a:hover { border: 0; }
.ev select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f393a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
	width: 100%;
	min-height: 46px;
	padding: 8px 12px;
	border: 2px solid var(--ev-steel-dark);
	background-color: #fff;
	color: #000;
	font: 16px/1.2 "raleway-light-webfont", Arial, Tahoma, sans-serif;
	border-radius: 0;
}

/* ---------- Catalogue ---------- */
/* Intro on the catalogue page (page content, before [ev_kataloog]): text over the full width, the three key points
   below it in a row of equal boxes (Roman 2026-10-09: no two columns).
   <div class="ev-intro"><div class="ev-intro-text"><p>…</p></div><ul class="ev-intro-points"><li><b>…</b> …</li></ul></div> */
.boxescnt .ev-intro {
	display: grid;
	gap: 24px;
	margin-bottom: 40px;
	clear: both;
}
.boxescnt .ev-intro p,
.boxescnt .ev-intro p:first-child {
	float: none;
	width: auto;
	padding-left: 0;
	font-size: 18px;
	line-height: 1.6;
}
.boxescnt .ev-intro p:last-child { margin-bottom: 0; }
#boxes .ev-intro .ev-intro-points {
	list-style: none;
	float: none;
	width: auto !important;
	margin: 0;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
#boxes .ev-intro .ev-intro-points li {
	margin: 0;
	padding: 18px 20px;
	background: #e9eded;
	border-top: 3px solid var(--es-red, #ed1c24);
	line-height: 1.45;
}
.ev-intro-points b { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
@media (max-width: 900px) {
	#boxes .ev-intro .ev-intro-points { grid-template-columns: 1fr; gap: 12px; }
}
.ev-filters {
	display: grid;
	grid-template-columns: auto repeat(3, minmax(0, 1fr));
	gap: 12px 16px;
	align-items: end;
	margin: 0 0 12px;
}
.ev-filters-title {
	font-family: var(--ev-bold);
	text-transform: uppercase;
	letter-spacing: .08em;
	padding-bottom: 12px;
}
.ev-filters label {
	display: grid;
	gap: 4px;
	font-family: var(--ev-bold);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--ev-steel-dark);
}
.boxescnt .ev .ev-count { margin: 0 0 16px; font-size: 14px; color: var(--ev-steel-dark); }
.ev .ev-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}
/* Card like mapev, in the site's style: photo over the whole card (4:5), white brand logo on top, dark fade at the
   bottom with the title, status and button. «Vali versioon» opens a dark panel over the same card (no layout jump). */
.ev-card {
	position: relative;
	min-width: 0;
	aspect-ratio: 4 / 5;
	max-width: 100%;
	overflow: hidden;
	background: var(--ev-graphite);
	color: #fff;
}
.ev-card[hidden] { display: none; }
.ev-card-photo { position: absolute; inset: 0; }
.ev-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-card-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(20, 26, 27, .92) 82%);
}
.ev-card-front {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
}
.ev-logo { display: block; height: 40px; max-width: 230px; } /* emblems of every brand (Skoda arrow, Porsche crest…): 40px keeps the crest readable */
.ev-logo img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.ev-card-bottom { display: grid; gap: 12px; }
.boxescnt .ev .ev-card-title { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: .04em; color: #fff; }
.ev-status {
	justify-self: start;
	font-family: var(--ev-bold);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #dfe6e6;
}
.ev-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--ev-red); vertical-align: 1px; }
.boxescnt .ev .ev-card-bottom .ev-btn { width: 100%; font-size: 15px; min-height: 48px; }
.boxescnt .ev .ev-btn-off,
.boxescnt .ev .ev-btn-off:hover { background: rgba(145, 165, 166, .35); color: #dfe6e6; cursor: default; } /* «Tulekul»: inactive */
@media (hover: hover) {
	.ev-card-photo img { transition: transform .4s ease; }
	.ev-card:hover .ev-card-photo img { transform: scale(1.04); }
}

/* Versions panel over the card; the card's own title and button fade out under it. */
.ev-card.is-open .ev-card-front { visibility: hidden; }
.ev-panel {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: linear-gradient(to bottom, rgba(36, 44, 45, .93), rgba(28, 34, 35, .98));
}
.ev [hidden] { display: none !important; }
.boxescnt .ev .ev-panel-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	min-height: 44px;
	padding: 0;
	font: 30px/1 Arial, sans-serif;
	color: #fff;
	background: transparent;
}
.boxescnt .ev .ev-panel-close:hover { background: transparent; color: var(--ev-red); }
.boxescnt .ev .ev-panel-title {
	margin: 0 48px 14px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ev-red);
	font-family: var(--ev-bold);
	font-size: 20px;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.ev-panel-title span { display: block; font-size: 12px; letter-spacing: .14em; color: var(--ev-steel); margin-bottom: 4px; }
#boxes .ev .ev-versions { display: grid; align-content: start; gap: 6px; overflow-y: auto; overscroll-behavior: contain; margin-right: -6px !important; padding-right: 6px !important; }
.ev-versions a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding: 9px 12px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
}
.ev .ev-versions a:hover,
.ev .ev-versions a:focus-visible { background: #fff; color: #000; }
.ev-gain { color: #ff6b70; font-family: var(--ev-bold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-versions a:hover .ev-gain,
.ev-versions a:focus-visible .ev-gain { color: var(--ev-red-text); }
.boxescnt .ev .ev-empty { padding: 24px; background: var(--ev-tint); }

/* ---------- Model page ---------- */
.ev-crumb { font-size: 15px; margin: 0 0 24px; color: var(--ev-steel-dark); }
.ev .ev-crumb a { color: var(--ev-red-text); font-family: var(--ev-bold); display: inline-flex; align-items: center; gap: 4px; }
.ev .ev-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ev-ico { width: 1em; height: 1em; flex: none; }
.ev-head {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}
.ev-years { font-family: var(--ev-bold); letter-spacing: .08em; color: var(--ev-steel-dark); margin-bottom: 8px; }
.ev-lead { font-size: 18px; line-height: 1.6; max-width: 62ch; }
.ev-price { margin: 4px 0 20px; font-size: 15px; color: var(--ev-steel-dark); }
.ev-price b { font-size: 30px; line-height: 1; color: #000; margin-right: 6px; font-variant-numeric: tabular-nums; }
.ev-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ev-phone { color: var(--ev-steel-dark); }
.ev .ev-phone a { color: #000; font-family: var(--ev-bold); white-space: nowrap; }
.ev-head-img img { display: block; width: 100%; height: auto; }

.ev-top { --ev-steel-dark: #4a5859; background: var(--ev-tint); padding: clamp(20px, 3vw, 40px); } /* darker secondary text on the grey: 6:1 (was 4.3:1) */
.ev-top .ev-stat { background: #fff; border-top: 3px solid var(--ev-red); }
.ev-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.ev-stat { background: var(--ev-tint); padding: 18px 20px; display: grid; gap: 6px; }
.ev-stat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ev-gain-badge { background: var(--ev-red-text); color: #fff; font-family: var(--ev-bold); font-size: 16px; line-height: 1; padding: 7px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-stat-k { font-family: var(--ev-bold); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ev-steel-dark); }
.ev-stat-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ev-from { font-size: 26px; line-height: 1.1; color: var(--ev-steel-dark); }
.ev-to { font-family: var(--ev-bold); font-size: 42px; line-height: 1.1; }
.ev-arrow { color: var(--ev-red); font-size: 26px; display: inline-flex; align-self: center; }
.ev-stat-g { color: var(--ev-steel-dark); font-size: 14px; }

.ev-block { margin-top: 48px; }
.boxescnt .ev .ev-block h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ev-steel); }
.ev-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.ev-slider { background: var(--ev-tint); padding: 16px; }
.ev-slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ev-slides::-webkit-scrollbar { display: none; }
.ev-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: #fff; }
.ev-slide a { display: block; }
.ev-slide img { display: block; width: 100%; height: auto; }
.ev-snav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.boxescnt .ev .ev-arrow-btn { width: 48px; min-height: 48px; padding: 0; font-size: 22px; }

.ev-acc details { border-bottom: 2px solid var(--ev-tint); }
.ev-acc summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	font-family: var(--ev-bold);
	text-transform: uppercase;
	letter-spacing: .05em;
}
.ev-acc summary::-webkit-details-marker { display: none; }
.ev-acc summary::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 3px;
	color: var(--ev-red-text);
	background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
	transition: background-size .2s ease;
}
.ev-acc details[open] summary::after { background-size: 14px 2px, 2px 0; }
.ev-acc-body { padding-bottom: 16px; }
.boxescnt .ev .ev-acc-body p { margin: 0 0 12px; }
#boxes .ev .ev-acc-body ul { list-style: disc; margin: 0 0 12px; padding-left: 20px !important; }
.ev .ev-acc-body li { margin-bottom: 8px; }
.ev-acc-body iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

.ev-steps { counter-reset: s; display: grid; gap: 16px; }
.ev-steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
.ev-steps li::before {
	content: counter(s);
	grid-row: span 2;
	width: 44px;
	height: 44px;
	background: var(--ev-red-text);
	color: #fff;
	font: 20px/44px var(--ev-bold);
	text-align: center;
}
.ev-steps b { text-transform: uppercase; letter-spacing: .05em; }

.ev .ev-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .ev .ev-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-others a { display: grid; gap: 2px; padding: 12px 14px; background: var(--ev-tint); border: 2px solid var(--ev-tint); color: #000; line-height: 1.3; }
.ev .ev-others a:hover { border: 2px solid var(--ev-red); color: #000; }
.ev .ev-others a[aria-current="page"] { background: #fff; border: 2px solid var(--ev-graphite); }
.ev-on { font-family: var(--ev-bold); }
.ev-g { color: var(--ev-red-text); font-family: var(--ev-bold); font-variant-numeric: tabular-nums; }

.ev-askband {
	margin-top: 48px;
	background: var(--ev-graphite);
	color: #fff;
	padding: 28px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.boxescnt .ev .ev-askband h2 { color: #fff; margin: 0; }
.boxescnt .ev .ev-askband p { margin: 6px 0 0; color: #dfe6e6; }

@media (max-width: 1100px) {
	.ev .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ev .ev-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.ev-filters { grid-template-columns: 1fr; }
	.ev-filters-title { padding-bottom: 0; }
	.ev-head, .ev-two { grid-template-columns: 1fr; }
	.ev-head-img { order: -1; }
	.ev-stats { grid-template-columns: 1fr; }
	.ev-to { font-size: 34px; }
	.ev-askband { padding: 20px; }
}
/* Desktop: both charts side by side; phones: swipe or arrows. */
@media (min-width: 901px) {
	.ev-slides { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; overflow: visible; }
	.ev-snav { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.ev-slides { scroll-behavior: smooth; }
	.ev-versions a, .ev-others a { transition: border-color .15s; }
}


/* ---------- Owner's review 2026-10-12 («stylish and clean, nothing extra») ---------- */
/* numbers: the gain is a plain line under them */
.ev-stat-g { color: var(--ev-steel-dark); font-size: 15px; }
/* charts sit in the grey block right under the numbers */
.ev-top .ev-charts { margin-top: 16px; }
.ev-top .ev-slider { background: none; padding: 0; }
/* sections: a chevron on the right instead of the plus, as on mapev («V», owner 2026-10-12); it points up and
   turns red when the section is open */
.ev-acc summary { align-items: center; }
.ev-acc summary::after {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	margin: -6px 6px 0 0;
	background: none;
	border-right: 2px solid var(--ev-steel-dark);
	border-bottom: 2px solid var(--ev-steel-dark);
	transform: rotate(45deg);
	transition: transform .2s ease, border-color .2s ease;
}
.ev-acc details[open] summary::after {
	margin-top: 6px;
	border-color: var(--ev-red);
	transform: rotate(-135deg);
}
/* bottom band: price in the same calm size as the text around it */
.boxescnt .ev .ev-askband p { margin: 0; }
.boxescnt .ev .ev-askband .ev-ask-price { margin-bottom: 6px; color: #fff; font-family: var(--ev-bold); font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* The theme gives every image in the page text a pointer cursor and fades it on hover (photos that open larger).
   EV pictures that are not links (side view, card photos, logos) are not clickable: no pointer, no fade. */
.entry-content .ev img { cursor: default; }
.entry-content .ev img:hover { opacity: 1; }
.entry-content .ev a img { cursor: pointer; }
.entry-content .ev a:hover img { opacity: .85; }
