/*
 * Statistiky účasti (/statistiky) — styly stránky a grafů (web/js/stats.js).
 * Načítá se jen na této stránce; třídy mají předponu st-, ať se nepletou s Tailwindem.
 *
 * Barvy hodnocení jsou ověřené na rozlišitelnost při poruchách barvocitu
 * (všechny dvojice ΔE ≥ 9, běžné vidění ≥ 18): modrá / jantarová / červená / šedá.
 * Jantarová má na bílé nízký kontrast, proto je u každého grafu legenda se symbolem
 * a přepnutí na tabulku. Počty (účasti, laboratoře) nesou barvu loga.
 */
.st {
	--st-navy: #0a3b7c;
	--st-ink: #111827;
	--st-ink2: #4b5563;
	--st-muted: #6b7280;
	--st-line: #e5e7eb;
	--st-line-soft: #f1f5f9;
	--st-axis: #cbd5e1;
	--st-surface: #fff;
	--st-bar: #0a3b7c;
	--st-ok: #256abf;
	--st-warn: #eda100;
	--st-bad: #d03b3b;
	--st-out: #898781;
}

#st-app { scroll-margin-top: 6rem; }
@media (min-width: 1024px) { #st-app { scroll-margin-top: 9rem; } }
.st [hidden] { display: none !important; }

.st-fill-ok { background-color: var(--st-ok); }
.st-fill-warn { background-color: var(--st-warn); }
.st-fill-bad { background-color: var(--st-bad); }
.st-fill-out { background-color: var(--st-out); }

/* ── Záhlaví ─────────────────────────────────────────────────────────── */
.st-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--st-navy);
	color: #fff;
}
.st-hero__grid {
	position: absolute;
	inset: 0;
	opacity: .06;
	background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
	background-size: 38px 38px;
}
.st-hero__inner {
	position: relative;
	padding-top: 2.5rem;
}
.st-eyebrow {
	display: inline-flex;
	align-items: center;
	padding: .25rem .8rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .04em;
	background-color: rgba(255, 255, 255, .12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.st-title {
	margin-top: .9rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
}
.st-lead {
	margin-top: .6rem;
	max-width: 40rem;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(219, 234, 254, .92);
}

/* Přepínač oblasti: na úzkém displeji jeden posuvný řádek, jinak zalomení */
.st-scope {
	display: flex;
	gap: .5rem;
	margin: 1.75rem -1rem 0;
	padding: 2px 1rem;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.st-scope::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
	.st-scope {
		flex-wrap: wrap;
		margin-left: 0;
		margin-right: 0;
		padding: 0;
		overflow: visible;
	}
}
.st-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .45rem .85rem;
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 500;
	white-space: nowrap;
	color: #fff;
	background-color: rgba(255, 255, 255, .1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.st-chip:hover { background-color: rgba(255, 255, 255, .2); }
.st-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st-chip[aria-pressed="true"] {
	background-color: #fff;
	color: var(--st-navy);
	font-weight: 600;
	box-shadow: none;
}
.st-chip__code {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .03em;
	opacity: .7;
}

.st-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin-top: 1.5rem;
}
@media (min-width: 640px) { .st-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .st-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.st-kpi {
	position: relative;
	cursor: help;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding: .9rem 1rem 1rem;
	border-radius: .875rem;
	background-color: rgba(255, 255, 255, .08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.st-kpi__value {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	white-space: nowrap;
}
.st-kpi__label {
	margin-top: .35rem;
	font-size: .8125rem;
	line-height: 1.3;
	color: rgba(219, 234, 254, .85);
}

/* Vysvětlení hlavního čísla: bublina nad dlaždicí při najetí myší, klepnutí nebo přechodu
   klávesnicí na „i“. Je potomkem dlaždice, takže na ni jde najet a přečíst si ji v klidu. */
.st-kpi__more { position: absolute; top: .55rem; right: .6rem; }
.st-kpi__info {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 999px;
	font-size: .6875rem;
	font-weight: 700;
	font-style: italic;
	line-height: 1;
	color: rgba(219, 234, 254, .8);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
	cursor: help;
	transition: background-color .15s, color .15s;
}
.st-kpi:hover .st-kpi__info,
.st-kpi__info:focus-visible { background-color: #fff; color: var(--st-navy); box-shadow: none; }
.st-kpi__info:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st-kpi__help {
	position: absolute;
	z-index: 20;
	left: 0;
	bottom: calc(100% + .45rem);
	width: max(100%, 16rem);
	max-width: calc(100vw - 2rem);
	padding: .7rem .85rem;
	border-radius: .75rem;
	background-color: #fff;
	box-shadow: 0 10px 30px rgba(2, 20, 50, .35);
	font-size: .8125rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--st-ink2);
	cursor: default;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility 0s .15s;
}
/* neviditelný můstek přes mezeru mezi dlaždicí a bublinou, ať při přejezdu myší nezmizí */
.st-kpi__help::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: .5rem; }
.st-kpi:hover .st-kpi__help,
.st-kpi:focus-within .st-kpi__help {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.st-kpi.is-dismissed .st-kpi__help { opacity: 0; visibility: hidden; }
/* Dlaždice u pravého okraje mřížky (2, 3 nebo 6 sloupců) zarovnají bublinu doprava */
.st-kpi:nth-child(2n) .st-kpi__help { left: auto; right: 0; }
@media (min-width: 640px) {
	.st-kpi:nth-child(2n) .st-kpi__help { left: 0; right: auto; }
	.st-kpi:nth-child(3n) .st-kpi__help { left: auto; right: 0; }
}
@media (min-width: 1100px) {
	.st-kpi:nth-child(3n) .st-kpi__help { left: 0; right: auto; }
	.st-kpi:nth-child(n+5) .st-kpi__help { left: auto; right: 0; }
}

/* Záložky: sedí na spodní hraně záhlaví, zvolená má barvu podkladu stránky a navazuje na obsah.
   Na úzkém displeji jeden posuvný řádek. Bez skriptu jsou to odkazy na panely pod sebou. */
.st-tabs {
	display: flex;
	gap: .25rem;
	margin: 2rem -1rem 0;
	padding: 0 1rem;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-margin-top: 6rem;
}
.st-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
	.st-tabs { margin-left: 0; margin-right: 0; padding: 0; }
}
@media (min-width: 1024px) { .st-tabs { scroll-margin-top: 9rem; } }
.st-tab {
	flex: 0 0 auto;
	padding: .8rem 1.15rem;
	border-radius: .75rem .75rem 0 0;
	font-size: .9rem;
	font-weight: 600;
	white-space: nowrap;
	color: rgba(255, 255, 255, .85);
	transition: background-color .15s, color .15s;
}
.st-tab:hover { background-color: rgba(255, 255, 255, .12); color: #fff; }
.st-tab:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.st-tab[aria-selected="true"],
.st-tab[aria-current="true"] { background-color: var(--color-bg, #f8fafc); color: var(--st-navy); }
.st-tab[aria-selected="true"]:focus-visible,
.st-tab[aria-current="true"]:focus-visible { outline-color: var(--st-navy); }

/* ── Karty ───────────────────────────────────────────────────────────── */
.st-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	padding-top: 1.5rem;
	padding-bottom: 4rem;
}
.st-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	min-width: 0;
}
.st-card {
	min-width: 0;
	padding: 1.25rem;
	border: 1px solid #eef2f6;
	border-radius: 1rem;
	background-color: var(--st-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
@media (min-width: 640px) { .st-card { padding: 1.75rem; } }
.st-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem 1rem;
	margin-bottom: 1.1rem;
}
.st-h2 {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--st-ink);
}
.st-count,
.st-years { margin-left: .35rem; font-weight: 500; color: var(--st-muted); }
.st-text { max-width: 46rem; font-size: .9375rem; line-height: 1.6; color: var(--st-ink2); }
.st-card__more { margin-top: 1.1rem; font-size: .8125rem; font-weight: 600; }
.st-card__more a { color: var(--st-navy); }
.st-card__more a:hover { text-decoration: underline; }
.st-scope-name { font-size: .8125rem; font-weight: 500; color: var(--st-muted); }
.st-note { font-size: .8125rem; color: var(--st-muted); }

/* ── Složení hodnocení: dělený pruh + čtyři hodnoty ──────────────────── */
.st-seg {
	display: flex;
	gap: 2px;
	height: 8px;
	border-radius: 999px;
	overflow: hidden;
	background-color: var(--st-line-soft);
}
.st-seg > span {
	flex: 0 0 0;
	min-width: 2px;
	transition: flex-grow .5s ease;
}
.st-seg--lg { height: 14px; }

.st-outs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
	margin-top: 1.4rem;
}
@media (min-width: 768px) { .st-outs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-out { display: flex; flex-direction: column; min-width: 0; }
.st-out__name {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .875rem;
	font-weight: 500;
	color: var(--st-ink2);
}
.st-out__value {
	margin-top: .35rem;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: var(--st-ink);
}
.st-out__note { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-top: .3rem; font-size: .75rem; line-height: 1.4; color: var(--st-muted); }
.st-nowrap { white-space: nowrap; }
.st-crit { padding: .05rem .4rem; border-radius: .3rem; background-color: var(--st-line-soft); color: var(--st-ink2); white-space: nowrap; }

/* Symbol kategorie (✓ ? ! ✕) — barva nikdy nenese význam sama */
.st-sym {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: .375rem;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.st-sym.st-fill-warn { color: #0b0b0b; }
.st-sym--sm { width: 1rem; height: 1rem; border-radius: .25rem; font-size: .625rem; }

.st-legend {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1rem;
	font-size: .75rem;
	color: var(--st-ink2);
}
.st-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.st-card > .st-legend { margin-top: 1rem; }

/* ── Graf (SVG ze stats.js) ──────────────────────────────────────────── */
.st-viewbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin-bottom: .25rem;
}
.st-panel-title { font-size: .8125rem; font-weight: 600; color: var(--st-ink2); }
.st-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .35rem 1rem;
	margin: 1.1rem 0 .25rem;
}
.st-toggle {
	display: inline-flex;
	padding: 2px;
	border-radius: .5rem;
	background-color: var(--st-line-soft);
}
.st-toggle button {
	padding: .3rem .7rem;
	border-radius: .4rem;
	font-size: .75rem;
	font-weight: 600;
	color: var(--st-muted);
	cursor: pointer;
}
.st-toggle button[aria-pressed="true"] {
	background-color: #fff;
	color: var(--st-ink);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.st-toggle button:focus-visible { outline: 2px solid var(--st-ok); outline-offset: 1px; }

.st-chart { position: relative; }
.st-chart svg { display: block; width: 100%; overflow: visible; }
.st-chart svg:focus { outline: none; }
.st-chart svg:focus-visible { outline: 2px solid var(--st-ok); outline-offset: 4px; border-radius: .25rem; }
.st-chart text {
	font-family: Inter, system-ui, sans-serif;
	font-size: 11px;
	fill: var(--st-muted);
	font-variant-numeric: tabular-nums;
}
.st-chart .st-val { fill: var(--st-ink2); font-weight: 600; font-variant-numeric: normal; }
.st-grid { stroke: var(--st-line); stroke-width: 1; shape-rendering: crispEdges; }
.st-base { stroke: var(--st-axis); stroke-width: 1; shape-rendering: crispEdges; }
.st-bar { fill: var(--st-bar); }
.st-bar--partial { fill-opacity: .45; }
.st-svg-ok { fill: var(--st-ok); }
.st-svg-warn { fill: var(--st-warn); }
.st-svg-bad { fill: var(--st-bad); }
.st-svg-out { fill: var(--st-out); }
.st-colbg { fill: var(--st-navy); fill-opacity: 0; }
.st-col.is-active .st-colbg { fill-opacity: .06; }
.st-chart svg.has-active .st-col:not(.is-active) .st-mark { opacity: .5; }
.st-mark { transition: opacity .12s; }
.st-hit { fill: transparent; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
	.st-grow .st-mark {
		transform-box: fill-box;
		transform-origin: 50% 100%;
		animation: st-grow .55s cubic-bezier(.2, .7, .2, 1) backwards;
	}
}
@keyframes st-grow {
	from { transform: scaleY(0); }
}

.st-tip {
	position: absolute;
	z-index: 5;
	top: 0;
	left: 0;
	min-width: 12rem;
	max-width: 17rem;
	padding: .7rem .8rem;
	border: 1px solid var(--st-line);
	border-radius: .75rem;
	background-color: #fff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
	font-size: .75rem;
	line-height: 1.45;
	color: var(--st-ink2);
	pointer-events: none;
	opacity: 0;
	transition: opacity .12s;
}
.st-tip.is-on { opacity: 1; }
.st-tip__title { margin-bottom: .35rem; font-size: .8125rem; font-weight: 700; color: var(--st-ink); }
.st-tip__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.st-tip__row strong { font-weight: 700; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.st-tip__row--sub { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--st-line-soft); }
.st-tip__key { display: inline-flex; align-items: center; gap: .4rem; }
.st-tip__key i { display: inline-block; width: .75rem; height: 3px; border-radius: 2px; }
.st-tip__areas {
	display: flex;
	flex-wrap: wrap;
	gap: .15rem .6rem;
	margin-top: .35rem;
	padding-top: .35rem;
	border-top: 1px solid var(--st-line-soft);
	font-size: .6875rem;
	color: var(--st-muted);
}
.st-tip__areas b { font-weight: 600; color: var(--st-ink2); }
.st-foot { margin-top: .6rem; font-size: .75rem; color: var(--st-muted); }

/* ── Mapa zemí účastníků ─────────────────────────────────────────────── */
/* Třídy počtu přihlášek: jeden odstín modré od světlé po tmavou (ověřeno: plynulé stupně,
   nejsvětlejší má na podkladu mapy kontrast přes 2 : 1). Třída 0 = bez přihlášek, splývá se souší. */
.st-bin-1 { --st-bin: #6da7ec; }
.st-bin-2 { --st-bin: #2a78d6; }
.st-bin-3 { --st-bin: #184f95; }
.st-bin-4 { --st-bin: #0d366b; }

.st-geo {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}
@media (min-width: 900px) {
	.st-geo { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.75rem; }
}
.st-map {
	display: block;
	width: 100%;
	height: auto;
	border-radius: .875rem;
	background-color: #f1f5f9;
	overflow: hidden;
}
.st-map__land { fill: #dfe5ec; }
.st-map__c { fill: var(--st-bin, #dfe5ec); transition: fill .3s; }
.st-map__borders,
.st-map__frame,
.st-map__hi {
	fill: none;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}
.st-map__borders { stroke: #fff; stroke-width: .8px; }
.st-map__frame { stroke: var(--st-navy); stroke-width: 1px; stroke-opacity: .55; }
.st-map__hi { stroke: var(--st-navy); stroke-width: 2px; }
.st-map__dot { fill: var(--st-bin); stroke: #fff; stroke-width: 4; }
.st-map__brno { fill: #e3000f; stroke: #fff; stroke-width: 4; pointer-events: none; }
.st-map__label {
	font-family: Inter, system-ui, sans-serif;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .02em;
	fill: #fff;
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
}
.st-map__label.st-bin-1,
.st-map__label--out { fill: var(--st-navy); }
.st-map__label.st-bin-0,
.st-map__dot.st-bin-0 { display: none; }
.st-map--world .st-map__label {
	font-size: 37px;
	font-weight: 600;
	letter-spacing: 0;
	fill: var(--st-ink2);
}
/* Kódy zemí by na úzkém displeji vyšly pod 6 px — tam nese názvy seznam pod mapou */
@media (max-width: 639px) {
	.st-map:not(.st-map--world) .st-map__label { display: none; }
}

.st-geo__side {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.1rem;
	min-width: 0;
}
.st-geo__figures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.st-geo__figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.st-geo__figures dd {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--st-ink);
}
.st-geo__figures dt { margin-top: .3rem; font-size: .8125rem; color: var(--st-muted); }
.st-geo__figures + .st-note { margin-top: .6rem; }
.st-geo__sw {
	flex: 0 0 auto;
	width: .8rem;
	height: .8rem;
	border-radius: .2rem;
	background-color: var(--st-bin, #dfe5ec);
}
.st-geo__brno {
	flex: 0 0 auto;
	width: .6rem;
	height: .6rem;
	margin: 0 .1rem;
	border-radius: 999px;
	background-color: #e3000f;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--st-line);
}
.st-geo__empty { margin-top: 1rem; }
.st-geo__list {
	columns: 2;
	column-gap: 1.25rem;
	margin-top: 1.25rem;
	font-size: .8125rem;
	color: var(--st-ink2);
}
@media (min-width: 640px) { .st-geo__list { columns: 3; } }
@media (min-width: 1024px) { .st-geo__list { columns: 4; column-gap: 1.75rem; } }
.st-geo__list li {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .3rem .4rem;
	border-radius: .375rem;
	break-inside: avoid;
	transition: background-color .12s;
}
.st-geo__list li.is-active { background-color: #eff6ff; }
.st-geo__name { flex: 1 1 auto; min-width: 0; color: var(--st-ink); }
.st-geo__n { font-weight: 600; color: var(--st-ink); font-variant-numeric: tabular-nums; }

/* ── Tabulky (porovnání oblastí, zkušební postupy, tabulkový pohled grafu) ── */
.st-table-wrap { overflow-x: auto; }
.st-table-wrap--scroll { max-height: 26rem; overflow-y: auto; }
.st-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .8125rem;
	color: var(--st-ink2);
}
.st-table th,
.st-table td {
	padding: .6rem .6rem;
	border-bottom: 1px solid var(--st-line-soft);
	text-align: left;
	vertical-align: middle;
}
.st-table th:first-child,
.st-table td:first-child { padding-left: .25rem; }
.st-table th:last-child,
.st-table td:last-child { padding-right: .25rem; }
.st-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	padding-top: .35rem;
	padding-bottom: .5rem;
	border-bottom-color: var(--st-line);
	background-color: #fff;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--st-muted);
}
.st-table thead abbr { text-decoration: none; }
.st-table tbody th { font-weight: 500; color: var(--st-ink); }
.st-table tfoot th,
.st-table tfoot td {
	border-top: 1px solid var(--st-line);
	border-bottom: 0;
	font-weight: 700;
	color: var(--st-ink);
}
.st-table .st-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-col-bar { width: 22%; min-width: 7.5rem; }
.st-col-mix { width: 20%; min-width: 8.5rem; }
@media (max-width: 639px) { .st-hide-sm { display: none; } }
@media (max-width: 899px) { .st-hide-md { display: none; } }

/* Řádek, který se dá vybrat (oblast) nebo rozbalit (zkušební postup) */
.st-table--rows tbody tr,
.st-table--rows tfoot tr { position: relative; transition: background-color .12s; }
.st-table--rows tbody tr:hover,
.st-table--rows tfoot tr:hover { background-color: #f8fafc; }
.st-table--rows tr.is-selected { background-color: #eff6ff; }
.st-rowlink { display: inline-flex; align-items: baseline; gap: .6rem; color: inherit; text-align: left; }
.st-rowlink::after { content: ''; position: absolute; inset: 0; }
.st-rowlink:focus-visible { outline: none; }
.st-rowlink:focus-visible::after { outline: 2px solid var(--st-ok); outline-offset: -2px; border-radius: .375rem; }
.st-code {
	flex: 0 0 auto;
	min-width: 2.4rem;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .03em;
	color: var(--st-navy);
}

.st-barcell { display: flex; align-items: center; gap: .6rem; }
.st-barcell__value { flex: 0 0 3.2rem; text-align: right; font-weight: 600; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.st-track { flex: 1 1 auto; min-width: 0; height: 8px; }
.st-track > span {
	display: block;
	height: 100%;
	min-width: 2px;
	border-radius: 0 4px 4px 0;
	background-color: var(--st-bar);
}
.st-mixcell { display: flex; align-items: center; gap: .6rem; }
.st-mixcell .st-seg { flex: 1 1 auto; min-width: 2.5rem; }
.st-mixcell__value { flex: 0 0 3.6rem; text-align: right; font-weight: 600; color: var(--st-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Zkušební postupy ────────────────────────────────────────────────── */
.st-search {
	display: block;
	width: 100%;
	max-width: 24rem;
	margin-bottom: .75rem;
	padding: .55rem .8rem;
	border: 1px solid var(--st-line);
	border-radius: .6rem;
	background-color: #f9fafb;
	font-size: .875rem;
	color: var(--st-ink);
	outline: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.st-search:focus { border-color: var(--st-navy); background-color: #fff; box-shadow: 0 0 0 3px rgba(10, 59, 124, .15); }
.st-sort {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	cursor: pointer;
}
.st-sort:hover { color: var(--st-ink); }
.st-sort:focus-visible { outline: 2px solid var(--st-ok); outline-offset: 2px; border-radius: .2rem; }
.st-sort::after { content: '↕'; font-size: .7rem; opacity: .35; }
th[aria-sort="ascending"] .st-sort::after { content: '↑'; opacity: 1; }
th[aria-sort="descending"] .st-sort::after { content: '↓'; opacity: 1; }
th[aria-sort] .st-sort { color: var(--st-ink); }

.st-test { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; cursor: pointer; }
.st-test::after { content: ''; position: absolute; inset: 0; }
.st-test:focus-visible { outline: none; }
.st-test:focus-visible::after { outline: 2px solid var(--st-ok); outline-offset: -2px; border-radius: .375rem; }
.st-test__caret {
	flex: 0 0 auto;
	width: .5rem;
	height: .5rem;
	margin: 0 .2rem 0 .1rem;
	border-right: 2px solid var(--st-axis);
	border-bottom: 2px solid var(--st-axis);
	transform: rotate(-45deg);
	transition: transform .15s;
}
.st-test[aria-expanded="true"] .st-test__caret { transform: rotate(45deg); border-color: var(--st-navy); }
.st-test__text { display: flex; flex-direction: column; min-width: 0; }
.st-test__name { font-weight: 500; color: var(--st-ink); }
.st-test__norm { font-size: .6875rem; color: var(--st-muted); }
.st-table--rows tr.st-detail,
.st-table--rows tr.st-detail:hover { background-color: #f8fafc; }
.st-table--rows tr.st-detail > td { padding: 1rem .75rem 1.25rem; }
.st-more {
	display: inline-flex;
	margin-top: 1rem;
	padding: .5rem .9rem;
	border-radius: .6rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--st-navy);
	background-color: #eff6ff;
	cursor: pointer;
	transition: background-color .15s;
}
.st-more:hover { background-color: #dbeafe; }
.st-more:focus-visible { outline: 2px solid var(--st-ok); outline-offset: 2px; }

/* Úzký displej: řádek tabulky se složí — název přes celou šířku, pod ním účasti a složení
   vedle sebe s vlastním popiskem; záhlaví zůstává jen jako lišta řazení (zkušební postupy). */
@media (max-width: 639px) {
	.st-table--rows,
	.st-table--rows thead,
	.st-table--rows tbody,
	.st-table--rows tfoot { display: block; }
	.st-table--rows thead tr {
		display: flex;
		flex-wrap: wrap;
		gap: .35rem 1.1rem;
		padding-bottom: .6rem;
		border-bottom: 1px solid var(--st-line);
	}
	.st-table--rows thead th { position: static; padding: 0; border: 0; }
	.st-table--plainhead thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
	.st-table--rows tbody tr,
	.st-table--rows tfoot tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: .45rem 1.25rem;
		padding: .75rem .25rem;
		border-bottom: 1px solid var(--st-line-soft);
	}
	.st-table--rows tfoot tr { border-top: 1px solid var(--st-line); border-bottom: 0; }
	.st-table--rows tbody th,
	.st-table--rows tbody td,
	.st-table--rows tfoot th,
	.st-table--rows tfoot td { padding: 0; border: 0; }
	.st-table--rows tbody th,
	.st-table--rows tfoot th { grid-column: 1 / -1; }
	.st-table--rows tr.st-detail { display: block; padding: .75rem .5rem 1rem; }
	.st-table--rows tr.st-detail > td { display: block; padding: 0; }
	.st-col-bar,
	.st-col-mix { width: auto; min-width: 0; }
	.st-table--rows td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: .2rem;
		font-size: .625rem;
		font-weight: 600;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: var(--st-muted);
	}
	.st-barcell__value { flex-basis: 2.9rem; text-align: left; }
	.st-mixcell__value { flex-basis: 3.4rem; text-align: left; }
	.st-mixcell { flex-direction: row-reverse; }
}

/* ── Jak číst hodnocení: schéma rozdělení z-skóre a čtyři kategorie ──── */
.st-z { margin-top: 1.25rem; }
.st-z svg { display: block; width: 100%; max-width: 46rem; height: auto; margin: 0 auto; }
.st-z figcaption { max-width: 46rem; margin: .6rem auto 0; line-height: 1.5; }
.st-z--ok { --st-z: var(--st-ok); }
.st-z--warn { --st-z: var(--st-warn); }
.st-z--bad { --st-z: var(--st-bad); }
.st-z--out { --st-z: var(--st-out); }
.st-z__band { fill: var(--st-z); fill-opacity: .13; }
.st-z__dot,
.st-z__chip { fill: var(--st-z); }
.st-z__sym {
	font-family: Inter, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	fill: #fff;
	text-anchor: middle;
	dominant-baseline: central;
}
.st-z__sym.st-z--warn { fill: #0b0b0b; }
.st-z__axis { stroke: var(--st-axis); stroke-width: 1; }
.st-z__curve { fill: none; stroke: var(--st-navy); stroke-width: 1.5; stroke-opacity: .45; stroke-linejoin: round; }
.st-z__tick,
.st-z__gap {
	font-family: Inter, system-ui, sans-serif;
	font-size: 11px;
	fill: var(--st-muted);
	text-anchor: middle;
}
.st-z__tick--title { font-weight: 600; fill: var(--st-ink2); }
.st-z__gap { font-size: 14px; }
.st-z__note { margin-top: 1rem; line-height: 1.5; }

.st-zlist {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-top: 1.5rem;
}
@media (min-width: 640px) { .st-zlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .st-zlist { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-zitem {
	display: flex;
	flex-direction: column;
	padding: 1rem 1.1rem;
	border: 1px solid var(--st-line);
	border-radius: .875rem;
}
.st-zitem__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	font-size: .9375rem;
	color: var(--st-ink);
}
.st-zitem__head .st-crit { font-size: .75rem; }
.st-zitem__text { flex: 1 1 auto; margin-top: .55rem; font-size: .8125rem; line-height: 1.55; color: var(--st-ink2); }
.st-zitem__figures {
	display: flex;
	gap: 1.75rem;
	margin-top: .9rem;
	padding-top: .75rem;
	border-top: 1px solid var(--st-line-soft);
}
.st-zitem__figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.st-zitem__figures dd { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--st-ink); white-space: nowrap; }
.st-zitem__figures dt { margin-top: .15rem; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--st-muted); }

/* ── Jak čísla číst ──────────────────────────────────────────────────── */
.st-method ul {
	margin-top: .9rem;
	padding-left: 1.1rem;
	list-style: disc;
	font-size: .8125rem;
	line-height: 1.6;
	color: var(--st-ink2);
}
.st-method li + li { margin-top: .3rem; }
