/* ==========================================================================
   Extrémní závody — vzhled v2 (evoluce původní šablony)
   Zachovává: tmavé menu a titulky v Bebas Neue, fotku v hlavičce s logem,
   text v Source Sans Pro. Nové: světlý obsah, termínovka, reklamní plochy.
   Všechny třídy mají prefix .ez- (nekolidují se starým css/style.css).
   ========================================================================== */

:root {
	--ez-bg: #F4F3F0;
	--ez-surface: #FFFFFF;
	--ez-surface-2: #ECE9E3;
	--ez-ink: #1F1F1F;
	--ez-text: #2B2B2B;
	--ez-text-2: #3A3A3A;
	--ez-muted: #595959;
	--ez-line: #DEDAD2;
	--ez-line-strong: #BDB8AE;
	--ez-accent: #53B8A7;
	--ez-link-hover: #0E6E5E;
	--ez-dot-beh: #5E9B1C;
	--ez-dot-viceboje: #E75421;
	--ez-dot-ostatni: #138FCA;
	--ez-dot-mtb: #C99A0E;
	--ez-dot-zima: #0199CB;
	--ez-dot-lezeni: #3E9C8C;
	--ez-font-display: "bebas_neue", "Bebas Neue", "Arial Narrow", sans-serif;
	--ez-font-text: "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
	--ez-wrap: 1200px;
}

body.ez {
	margin: 0;
	background: var(--ez-bg);
	color: var(--ez-text);
	font-family: var(--ez-font-text);
	font-size: 16px;
	line-height: 1.5;
}
.ez a { color: var(--ez-ink); }
.ez a:hover { color: var(--ez-link-hover); }
.ez img { max-width: 100%; height: auto; }
.ez-screen-reader { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ez-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; background: var(--ez-ink); color: #fff; }
.ez-skip:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Horní reklama (header banner) ---------- */
.ez-topbanner { background: var(--ez-ink); text-align: center; }
.ez-topbanner .banner-cont { margin: 0 auto; }

/* ---------- Menu ---------- */
.ez-nav {
	position: relative;
	z-index: 50;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	background: rgba(0, 0, 0, .82);
	font-family: var(--ez-font-display);
	font-size: 18px;
	letter-spacing: .4px;
}
.ez-nav__menu, .ez-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.ez-nav__menu { display: flex; flex-wrap: wrap; }
.ez-nav__menu > li { position: relative; }
.ez-nav__menu a {
	display: block;
	padding: 11px 18px;
	color: #FFFFFF;
	text-decoration: none;
	border-left: 1px solid #000;
	border-top: 2px solid transparent;
}
.ez-nav__menu > li > a:hover,
.ez-nav__menu > li:focus-within > a,
.ez-nav__menu > .current-menu-item > a,
.ez-nav__menu > .current-menu-ancestor > a { border-top-color: var(--ez-accent); color: #FFFFFF; background: rgba(255, 255, 255, .06); }
.ez-nav__home svg { display: block; }
.ez-nav__menu .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	background: rgba(0, 0, 0, .92);
	padding: 6px 0;
}
.ez-nav__menu li:hover > .sub-menu,
.ez-nav__menu li:focus-within > .sub-menu { display: block; }
.ez-nav__menu .sub-menu a { border: 0; padding: 8px 18px; font-size: 17px; }
.ez-nav__menu .sub-menu a:hover { color: var(--ez-accent); }
.ez-nav__tools { display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.ez-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	color: #FFFFFF;
	cursor: pointer;
}
.ez .ez-icon-btn { color: #FFFFFF; }
.ez-icon-btn:hover, .ez .ez-icon-btn:hover { color: var(--ez-accent); }
.ez-search { display: none; align-items: center; }
.ez-search.is-open { display: flex; }
.ez-search input {
	width: 200px;
	height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 3px;
	font: 16px var(--ez-font-text);
}
.ez-burger { display: none; }

/* ---------- Hlavička s fotkou (menu leží průsvitně přes fotku) ---------- */
.ez-masthead {
	position: relative;
	min-height: 320px;
	background: #2A2A2A url(imgs/header_bg.jpg) center center / cover no-repeat;
}
.ez-masthead__inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: var(--ez-wrap);
	margin: 0 auto;
	padding: 0 24px 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}
.ez-masthead__logo { display: block; line-height: 0; }
.ez-masthead__claim {
	margin: 0;
	font-family: var(--ez-font-display);
	font-size: 34px;
	letter-spacing: .4px;
	color: #FFFFFF;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

/* ---------- Rozložení stránky ---------- */
.ez-wrap { max-width: var(--ez-wrap); margin: 0 auto; padding: 0 24px; }
.ez-layout {
	max-width: var(--ez-wrap);
	margin: 0 auto;
	padding: 32px 24px 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}
.ez-main { flex: 999 1 640px; min-width: 0; }
.ez-sidebar { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; gap: 28px; }

/* ---------- Typografie ---------- */
.ez-h1 {
	margin: 0;
	font-family: var(--ez-font-display);
	font-weight: 400;
	font-size: 72px;
	line-height: .92;
	letter-spacing: .5px;
	color: var(--ez-ink);
}
.ez-lead { margin: 10px 0 0; font-size: 19px; color: var(--ez-text-2); }
.ez-section { margin-top: 52px; }
.ez-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 0 0 4px;
	border-bottom: 3px solid var(--ez-ink);
}
.ez-section-head--accent { border-bottom-color: var(--ez-accent); }
.ez-h2 {
	margin: 0;
	font-family: var(--ez-font-display);
	font-weight: 400;
	font-size: 36px;
	letter-spacing: .5px;
	color: var(--ez-ink);
}
.ez-meta { font-size: 14px; color: var(--ez-muted); }
.ez-kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ez-muted); }
.ez-link { text-decoration: none; }
.ez-link:hover { text-decoration: underline; }
.ez-breadcrumb { font-size: 14px; color: var(--ez-muted); }
.ez-breadcrumb a { color: var(--ez-muted); text-decoration: none; }
.ez-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Štítky disciplín ---------- */
.ez-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 12px;
	background: var(--ez-surface);
	font-size: 14px;
	font-weight: 600;
	color: var(--ez-ink);
}
.ez-tag--muted { background: #E4E1DA; font-weight: 400; color: var(--ez-text-2); }
.ez-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--ez-muted); flex: none; }
.ez-dot--beh { background: var(--ez-dot-beh); }
.ez-dot--viceboje { background: var(--ez-dot-viceboje); }
.ez-dot--ostatni { background: var(--ez-dot-ostatni); }
.ez-dot--mtb { background: var(--ez-dot-mtb); }
.ez-dot--zima { background: var(--ez-dot-zima); }
.ez-dot--lezeni { background: var(--ez-dot-lezeni); }

/* ---------- Tlačítka ---------- */
.ez-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	background: var(--ez-ink);
	color: #FFFFFF;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--ez-ink);
}
.ez .ez-btn { color: #FFFFFF; }
.ez .ez-btn:hover { background: #000; color: #FFFFFF; }
.ez .ez-btn--outline { background: transparent; color: var(--ez-ink); }
.ez .ez-btn--outline:hover { background: var(--ez-ink); color: #FFFFFF; }

/* ---------- Reklamní plochy ---------- */
.ez-ad { display: flex; justify-content: center; }
.ez-ad .banner-cont { margin: 0; }
.ez-ad--leaderboard { margin: 28px 0 0; }
.ez-ad--in-article { margin: 8px 0 30px; }
.ez-ad__label { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ez-muted); text-align: center; }

/* ---------- Partner OUUT.cz ---------- */
.ez-partner { background: var(--ez-surface); }
.ez-partner__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ez-partner__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; }
.ez-partner__title {
	margin: 0;
	font-family: var(--ez-font-display);
	font-weight: 400;
	font-size: 40px;
	line-height: .95;
	letter-spacing: .5px;
	color: var(--ez-ink);
}
.ez-partner__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ez-text-2); }
.ez-partner .ez-btn { align-self: flex-start; min-height: 44px; margin-top: 6px; font-size: 15px; }

/* ---------- Mini kalendář v sidebaru ---------- */
.ez-mini { background: var(--ez-surface); padding: 18px 20px 20px; }
.ez-mini__list { list-style: none; margin: 12px 0 14px; padding: 0; }
.ez-mini__item a {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ez-line);
	text-decoration: none;
}
.ez-mini__date { font-weight: 700; }
.ez-mini__name { font-weight: 600; line-height: 1.3; }

/* ---------- Sponzorované odkazy ---------- */

/* ---------- Patička ---------- */
.ez-footer { background: var(--ez-ink); color: #E8E6E1; }
.ez-footer__inner {
	max-width: var(--ez-wrap);
	margin: 0 auto;
	padding: 48px 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
}
.ez-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.ez-footer__claim { font-size: 15px; color: #C9C6BF; }
.ez-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 48px; font-size: 16px; }
.ez .ez-footer a { color: #E8E6E1; text-decoration: none; }
.ez .ez-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.ez-footer__copy { max-width: var(--ez-wrap); margin: 0 auto; padding: 0 24px 32px; font-size: 14px; color: #A9A59D; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
	.ez-burger { display: inline-flex; }
	.ez-nav__menu { display: none; width: 100%; order: 3; flex-direction: column; }
	.ez-nav.is-open .ez-nav__menu { display: flex; }
	.ez-nav__menu a { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
	.ez-nav__menu .sub-menu { display: block; position: static; background: none; padding: 0 0 6px 14px; }
	.ez-nav__tools { margin-left: auto; }
	.ez-masthead { min-height: 240px; background-image: url(imgs/header_bg_mobile.jpg); }
	.ez-masthead__claim { font-size: 24px; }
	.ez-masthead__logo img { width: 200px; height: auto; }
	.ez-h1 { font-size: 52px; }
	.ez-sidebar { max-width: none; }
}

/* ---------- Termínovka ---------- */
.ez-terminovka__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
}
.ez-terminovka__head .ez-meta { margin: 0; font-size: 15px; }
.ez-terminovka__more { margin: 32px 0 0; }

.ez-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin-top: 28px;
	padding: 16px;
	background: var(--ez-surface);
	border-top: 3px solid var(--ez-ink);
}
.ez-filters__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ez-muted); }
.ez-filters select {
	min-height: 40px;
	min-width: 130px;
	padding: 0 10px;
	border: 1px solid var(--ez-line-strong);
	border-radius: 4px;
	background: var(--ez-surface);
	font: 15px var(--ez-font-text);
	color: var(--ez-ink);
}
.ez-filters select:focus-visible { outline: 2px solid var(--ez-accent); outline-offset: 1px; }
.ez-filters__check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.ez-filters__check input { width: 18px; height: 18px; accent-color: var(--ez-ink); }
.ez-filters__count { margin-left: auto; align-self: center; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ez-filters__reset,
.ez-races__empty button {
	min-height: 40px;
	padding: 0 4px;
	border: 0;
	background: none;
	font: 600 15px var(--ez-font-text);
	color: var(--ez-link-hover);
	text-decoration: underline;
	cursor: pointer;
}

.ez-races__month { margin-top: 32px; }
.ez-races__month-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 8px 4px;
	border-bottom: 3px solid var(--ez-accent);
}
.ez .ez-race {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) 170px 72px 72px 18px;
	gap: 16px;
	align-items: center;
	padding: 13px 8px;
	border-bottom: 1px solid var(--ez-line);
	color: var(--ez-ink);
	text-decoration: none;
}
.ez .ez-race:hover { background: var(--ez-surface); color: var(--ez-ink); }
.ez .ez-race:hover .ez-race__name { text-decoration: underline; }
.ez .ez-race:focus-visible { outline: 2px solid var(--ez-accent); outline-offset: -2px; }
.ez-race[hidden], .ez-races__month[hidden] { display: none; }
.ez-race__date { font-weight: 700; font-size: 16px; }
.ez-race__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ez-race__name { font-weight: 600; font-size: 18px; line-height: 1.25; }
.ez-race__sub { font-size: 14px; color: var(--ez-muted); }
.ez-race__disc { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.ez-race__len { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ez-race__zeme { font-size: 14px; color: var(--ez-muted); }
.ez-race.is-past { color: var(--ez-muted); }
.ez-race.is-past .ez-race__name { font-weight: 400; }
.ez-race.is-past .ez-dot { opacity: .5; }
.ez-races__empty { margin: 32px 0 0; padding: 24px; background: var(--ez-surface); font-size: 17px; }

@media (max-width: 720px) {
	.ez .ez-race {
		grid-template-columns: 78px minmax(0, 1fr) auto;
		grid-template-areas: "date main len" "date disc zeme";
		gap: 4px 12px;
		padding: 12px 4px;
	}
	.ez-race__date { grid-area: date; align-self: start; font-size: 15px; }
	.ez-race__main { grid-area: main; }
	.ez-race__len { grid-area: len; align-self: start; }
	.ez-race__disc { grid-area: disc; font-size: 13px; color: var(--ez-muted); }
	.ez-race__zeme { grid-area: zeme; justify-self: end; font-size: 13px; }
	.ez-race > svg { display: none; }
	.ez-filters { padding: 12px; }
	.ez-filters__field { flex: 1 1 140px; }
	.ez-filters select { width: 100%; min-width: 0; }
	.ez-filters__count { margin-left: 0; }
}

/* ---------- Produktová inzerce OUUT.cz ---------- */
.ez-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-top: 20px;
}
.ez .ez-product {
	display: flex;
	flex-direction: column;
	background: var(--ez-surface);
	color: var(--ez-ink);
	text-decoration: none;
}
.ez .ez-product:hover { color: var(--ez-ink); box-shadow: 0 0 0 2px var(--ez-ink); }
.ez .ez-product:hover .ez-product__name { text-decoration: underline; }
.ez-product__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 12px;
	background: #FFFFFF;
	border-bottom: 1px solid var(--ez-line);
}
.ez-product__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ez-product__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; }
.ez-product__body .ez-kicker { font-size: 12px; }
.ez-product__name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.ez-product__price { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 18px; }
.ez-product__price s { margin-right: 6px; font-weight: 400; font-size: 14px; color: var(--ez-muted); }

/* ---------- Z redakce + výpisy článků ---------- */
.ez-section-head__more { font-size: 15px; font-weight: 600; }
.ez-teasers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	margin-top: 18px;
}
.ez .ez-teaser { display: flex; flex-direction: column; gap: 6px; color: var(--ez-ink); text-decoration: none; }
.ez .ez-teaser:hover .ez-teaser__title { text-decoration: underline; }
.ez-teaser__title { font-weight: 600; font-size: 18px; line-height: 1.3; }

.ez-archive-head { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 28px; }
.ez-archive-head .ez-lead { max-width: 60ch; }
.ez-breadcrumb { margin-bottom: 14px; }

.ez-cards { display: flex; flex-direction: column; border-top: 3px solid var(--ez-ink); }
.ez-cards > .ez-ad { padding: 20px 0; border-bottom: 1px solid var(--ez-line); }
.ez-card { border-bottom: 1px solid var(--ez-line); }
.ez .ez-card__link {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 20px;
	padding: 20px 0;
	color: var(--ez-ink);
	text-decoration: none;
}
.ez .ez-card__link:hover .ez-card__title { text-decoration: underline; }
.ez-card__link:not(:has(.ez-card__media)) { grid-template-columns: minmax(0, 1fr); }
.ez-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ez-surface-2); }
.ez-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ez-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ez-card__body .ez-meta { display: flex; align-items: center; gap: 6px; }
.ez-card__title { font-weight: 600; font-size: 21px; line-height: 1.25; }
.ez-card__excerpt { font-size: 16px; color: var(--ez-text-2); }

.ez-pagination { margin-top: 32px; }
.ez-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ez .ez-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	background: var(--ez-surface);
	color: var(--ez-ink);
	font-weight: 600;
	text-decoration: none;
}
.ez .ez-pagination a.page-numbers:hover { background: var(--ez-ink); color: #FFFFFF; }
.ez .ez-pagination .page-numbers.current { background: var(--ez-ink); color: #FFFFFF; }
.ez .ez-pagination .page-numbers.dots { background: none; }

@media (max-width: 720px) {
	.ez .ez-card__link { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
	.ez-card__title { font-size: 18px; }
	.ez-card__excerpt { display: none; }
	.ez-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ez-product__name { font-size: 15px; }
}

/* ---------- Detail závodu ---------- */
.ez-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.ez a.ez-tag { text-decoration: none; color: var(--ez-ink); }
.ez a.ez-tag:hover { box-shadow: inset 0 0 0 2px var(--ez-ink); }
.ez a.ez-tag--muted { color: var(--ez-text-2); }
.ez-zavod__title { margin-top: 12px; font-size: 76px; line-height: .9; }

.ez-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px 24px;
	margin: 28px 0 0;
	padding: 22px 24px;
	background: var(--ez-surface);
	border-top: 3px solid var(--ez-ink);
}
.ez-facts__item { display: flex; flex-direction: column; gap: 4px; }
.ez-facts dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ez-muted); }
.ez-facts dd { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.25; }
.ez-facts dd[title] { cursor: help; text-decoration: underline dotted var(--ez-line-strong); text-underline-offset: 4px; }

.ez-zavod__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ez-zavod__actions .ez-btn { min-height: 48px; }

/* Text článků a popisů */
.ez-prose { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--ez-text); }
.ez-prose > * { max-width: 68ch; }
.ez-prose p { margin: 0 0 1.1em; }
.ez-prose h2, .ez-prose h3 { margin: 1.6em 0 .5em; font-family: var(--ez-font-display); font-weight: 400; letter-spacing: .5px; line-height: 1; color: var(--ez-ink); }
.ez-prose h2 { font-size: 34px; }
.ez-prose h3 { font-size: 27px; }
.ez .ez-prose a { color: var(--ez-link-hover); text-decoration: underline; text-underline-offset: 2px; }
.ez .ez-prose a:hover { color: var(--ez-ink); }
.ez-prose ul, .ez-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.ez-prose li { margin-bottom: .35em; }
.ez-prose img, .ez-prose figure { max-width: 100%; height: auto; }
.ez-prose figure { margin: 1.4em 0; }
.ez-prose figcaption, .ez-prose .wp-caption-text { margin-top: 6px; font-size: 14px; color: var(--ez-muted); }
.ez-prose .wp-caption { max-width: 100%; }
.ez-prose blockquote {
	margin: 1.6em 0;
	padding: 0 0 0 20px;
	border-left: 4px solid var(--ez-accent);
	font-family: var(--ez-font-display);
	font-size: 32px;
	line-height: 1.05;
	letter-spacing: .3px;
	color: var(--ez-ink);
}
.ez-prose blockquote p { margin: 0 0 .3em; }
.ez-prose iframe { max-width: 100%; }
.ez-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ez-prose th, .ez-prose td { padding: 8px 10px; border-bottom: 1px solid var(--ez-line); text-align: left; }

/* Jednoduchý seznam odkazů (související články) */
.ez-list { margin: 0; padding: 0; list-style: none; }
.ez .ez-list__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 24px;
	padding: 16px 8px;
	border-bottom: 1px solid var(--ez-line);
	color: var(--ez-ink);
	text-decoration: none;
}
.ez .ez-list__row:hover { background: var(--ez-surface); }
.ez .ez-list__row:hover .ez-list__title { text-decoration: underline; }
.ez-list__title { font-weight: 600; font-size: 18px; line-height: 1.3; }

.ez .ez-race--full { grid-template-columns: 150px minmax(0, 1fr) 170px 72px 0 18px; }

@media (max-width: 720px) {
	.ez-zavod__title { font-size: 52px; }
	.ez-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 16px; }
	.ez-facts dd { font-size: 17px; }
	.ez-prose { font-size: 17px; }
	.ez-prose blockquote { font-size: 26px; }
	.ez .ez-race--full { grid-template-columns: 96px minmax(0, 1fr) auto; }
}

/* ---------- Detail článku ---------- */
.ez-clanek__title { margin-top: 12px; font-size: 64px; line-height: .95; }
.ez-clanek__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	padding: 12px 0;
	border-top: 1px solid var(--ez-line);
	border-bottom: 1px solid var(--ez-line);
}
.ez-clanek__bar .ez-meta { font-size: 15px; }
.ez .ez-clanek__author { font-weight: 600; color: var(--ez-ink); text-decoration: none; }
.ez .ez-clanek__author:hover { text-decoration: underline; }
.ez-share { display: flex; gap: 8px; }
.ez .ez-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ez-line-strong);
	background: transparent;
	color: var(--ez-ink);
	cursor: pointer;
}
.ez .ez-share__btn:hover { background: var(--ez-ink); border-color: var(--ez-ink); color: #FFFFFF; }
.ez .ez-share__btn.is-done { background: var(--ez-accent); border-color: var(--ez-accent); color: #FFFFFF; }
.ez-clanek__figure { margin: 24px 0 0; }
.ez-clanek__img { display: block; width: 100%; height: auto; }
.ez-clanek__figure figcaption { margin-top: 8px; font-size: 14px; color: var(--ez-muted); }
.ez-clanek__body { margin-top: 32px; }
.ez-clanek__body > .ez-ad { max-width: none; }
.ez-clanek__zavod { margin-top: 36px; padding: 18px 20px 6px; background: var(--ez-surface); border-top: 3px solid var(--ez-accent); }
.ez-clanek__zavod .ez-kicker { margin: 0 0 4px; font-weight: 400; }
.ez-clanek__zavod .ez-race:last-child { border-bottom: 0; }

@media (max-width: 720px) {
	.ez-clanek__title { font-size: 44px; }
}

/* ---------- Hledání, 404, stránky ---------- */
.ez-searchbox { display: flex; gap: 8px; max-width: 560px; margin-top: 18px; }
.ez-searchbox input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--ez-line-strong);
	background: var(--ez-surface);
	font: 17px var(--ez-font-text);
	color: var(--ez-ink);
}
.ez-searchbox input:focus-visible { outline: 2px solid var(--ez-accent); outline-offset: 1px; }
.ez-searchbox .ez-btn { min-height: 48px; cursor: pointer; font: 600 16px var(--ez-font-text); }
.ez-cards--search > .ez-race { border-bottom: 1px solid var(--ez-line); }
.ez-stranka .ez-prose { margin-top: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Galerie ---------- */
.ez-galerie__title { font-size: 60px; }
.ez-galerie__meta { margin: 10px 0 0; font-size: 15px; }
.ez-galerie__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.ez-galerie__grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ez-surface-2); }
.ez-galerie__grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.ez-galerie__grid a:hover img { transform: scale(1.04); }
.ez-galerie__stage { margin: 24px 0 0; background: #141414; }
.ez-galerie__stage a { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.ez-galerie__stage img { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; }
.ez-galerie__stage figcaption { padding: 10px 14px; background: var(--ez-surface); font-size: 15px; color: var(--ez-text-2); }
.ez-galerie__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.ez-galerie__counter { font-weight: 700; font-size: 17px; }
.ez-galerie__all { margin-left: auto; font-weight: 600; }

/* Náhled galerie v textu článku (shortcode [galerie id=…]) */
.ez-gallery-preview { margin: 1.6em 0; padding: 14px; background: var(--ez-surface); max-width: none; }
.ez-gallery-preview__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; font-size: 16px; }
.ez .ez-gallery-preview__head a { font-weight: 600; color: var(--ez-ink); text-decoration: none; }
.ez-gallery-preview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ez-gallery-preview__grid a { display: block; aspect-ratio: 1; overflow: hidden; }
.ez-gallery-preview__grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ez .ez-gallery-preview__more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--ez-link-hover); }

@media (max-width: 720px) {
	.ez-galerie__title { font-size: 42px; }
	.ez-galerie__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
	.ez-galerie__all { margin-left: 0; }
	.ez-searchbox .ez-btn { padding: 0 14px; }
}
