/* ==========================================================================
   Novináři — redesign 2026 (varianta B "Moderní")
   Design tokeny dle design_handoff_novinari/README.md
   Nezávislé na Bootstrapu. CSS grid + flexbox.
   ========================================================================== */

:root {
	--ink: #0f1d3a;
	--primary: #A8132E;
	--bg: #ffffff;
	--panel: #f7f9fc;
	--soft: #eef2f8;
	--rule: #e4e9f1;
	--muted: #5e6b85;

	--serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
	--sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

	--wide: 1320px;
	--narrow: 1100px;
	--reference: 900px;
	--pad: 32px;

	--r-card: 16px;
	--r-input: 10px;
	--r-btn: 8px;
	--r-pill: 999px;

	--shadow-card: 0 12px 40px rgba(15, 29, 58, 0.1);
	--shadow-search: 0 10px 40px rgba(15, 29, 58, 0.08);
}

/* --------------------------------------------------------------- reset ---- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	border: 0;
}

a {
	color: var(--primary);
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 600;
	color: var(--ink);
	margin: 0;
}

/* ------------------------------------------------------------ typografie -- */

.eyebrow {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 8px;
}

.page-head {
	margin-bottom: 32px;
}

.page-head h1 {
	font-size: 52px;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.lead {
	font-size: 17px;
	line-height: 1.65;
	color: var(--muted);
	margin: 0;
	max-width: 640px;
}

/* Perex na celou šířku obsahu — pro delší texty, kde by úzký sloupec
   zbytečně lámal řádky. */
.lead--wide {
	max-width: none;
}

/* ----------------------------------------------------------------- shell -- */

.wrap {
	max-width: var(--wide);
	margin: 0 auto;
	padding-left: var(--pad);
	padding-right: var(--pad);
}

.wrap--narrow {
	max-width: var(--narrow);
}

.wrap--reference {
	max-width: var(--reference);
}

/* Používá se spolu s .wrap na jednom elementu, proto jen svislý padding —
   zápis „48px 0“ by vynuloval horizontální padding z .wrap. */
.page {
	padding-top: 48px;
	padding-bottom: 48px;
}

/* -------------------------------------------------------------- hlavička -- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rule);
}

.site-header__inner {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 16px var(--pad);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-header__logo img {
	height: 76px;
	width: auto;
	display: block;
}

.site-nav {
	display: flex;
	gap: 4px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	padding: 10px 16px;
	border-radius: var(--r-btn);
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.site-nav a:hover {
	background: var(--panel);
}

.site-nav a.is-active {
	color: var(--primary);
	background: var(--soft);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--rule);
	border-radius: var(--r-btn);
	padding: 8px 12px;
	cursor: pointer;
	color: var(--ink);
}

/* --------------------------------------------------------------- patička -- */

.site-footer {
	background: var(--ink);
	padding: 20px var(--pad);
	margin-top: 80px;
}

.site-footer__inner {
	max-width: var(--wide);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

/* Logo Syndikátu na tmavém pozadí — světlá podložka dle handoffu, nepřebarvovat. */
.site-footer__partner {
	background: #fbf7ec;
	padding: 8px 14px;
	border-radius: 4px;
	display: inline-block;
	line-height: 0;
}

.site-footer__partner img {
	height: 38px;
	width: auto;
	display: block;
}

/* -------------------------------------------------------------- tlačítka -- */

.btn {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: var(--r-btn);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: filter 0.2s;
}

.btn:hover {
	filter: brightness(1.1);
	color: #fff;
}

.btn--sm {
	padding: 10px 22px;
	font-size: 14px;
}

.btn--ghost {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--rule);
}

.btn--ghost:hover {
	background: var(--panel);
	color: var(--ink);
	filter: none;
}

.btn-back {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 24px;
}

.btn-back:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- badges -- */

.badge {
	display: inline-block;
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 600;
	color: var(--primary);
	background: var(--soft);
	padding: 3px 8px;
	border-radius: var(--r-pill);
	line-height: 1.4;
}

.badge--lg {
	font-size: 11px;
	padding: 5px 12px;
}

.badge-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 10px;
}

/* Štítek je odkaz na filtrovaný výpis — odlišený rámečkem od popisu osoby. */
a.badge--tag {
	background: #fff;
	border: 1px solid var(--rule);
	color: var(--ink);
	transition: border-color 0.2s, color 0.2s;
}

a.badge--tag:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* ------------------------------------------------------------------ hero -- */

.hero {
	padding: 100px var(--pad) 60px;
	background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
	text-align: center;
}

.hero__inner {
	max-width: var(--narrow);
	margin: 0 auto;
}

.hero__badge {
	display: inline-block;
	padding: 6px 14px;
	background: var(--soft);
	color: var(--primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: var(--r-pill);
	margin-bottom: 28px;
}

.hero h1 {
	font-size: 70px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
	/* Nadpis má 39 znaků a při 70px potřebuje ~1170px. Kontejner hero má
	   1100px, proto se písmo plynule přizpůsobí šířce okna: na širokých
	   monitorech drží zadaných 70px a na jeden řádek, na užších se zmenší,
	   aby se nelámal ani nepřetékal. */
	font-size: clamp(30px, 5.4vw, 70px);
	white-space: nowrap;
}

/* Na velmi úzkých oknech je jeden řádek nečitelný — povolíme zlom. */
@media (max-width: 600px) {
	.hero h1 {
		white-space: normal;
		font-size: 34px;
		text-wrap: balance;
	}
}

.hero h1 em {
	color: var(--primary);
	font-style: italic;
	font-weight: 400;
}

.hero__lead {
	font-size: 19px;
	line-height: 1.65;
	color: var(--muted);
	margin: 0 auto;
	max-width: 720px;
}

.hero-search {
	margin: 40px auto 0;
	max-width: 600px;
	display: flex;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: 12px;
	padding: 6px;
	box-shadow: var(--shadow-search);
}

.hero-search input {
	flex: 1;
	border: none;
	outline: none;
	padding: 12px 18px;
	font-size: 16px;
	background: transparent;
	min-width: 0;
}

/* ---------------------------------------------------------------- sekce --- */

.section {
	padding: 80px 0;
}

.section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 40px;
}

.section__head h2 {
	font-size: 42px;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0;
}

.section__more {
	font-size: 14px;
	font-weight: 600;
	color: var(--primary);
	white-space: nowrap;
}

/* Vstřícná výzva ke spolupráci */
.help-box {
	background: var(--panel);
	border-radius: var(--r-card);
	padding: 40px;
	text-align: center;
}

.help-box h2 {
	font-size: 32px;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
}

.help-box p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--muted);
	margin: 0 auto 24px;
	max-width: 620px;
}

/* ----------------------------------------------------------------- karty -- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.card-grid--featured {
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.card {
	display: block;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	overflow: hidden;
	color: var(--ink);
	transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
	color: var(--ink);
	box-shadow: var(--shadow-card);
}

.card:hover .card__name {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.card__media {
	height: 220px;
	overflow: hidden;
	background: var(--soft);
}

.card-grid--featured .card__media {
	height: 240px;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.15) contrast(1.02);
	display: block;
}

.card__body {
	padding: 20px;
}

.card-grid--featured .card__body {
	padding: 24px;
}

.card__name {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 4px;
}

.card-grid--featured .card__name {
	font-size: 24px;
	margin-bottom: 6px;
}

.card__years {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

.card__job {
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
	text-wrap: pretty;
}

/* Placeholder portrétu — silueta, bez iniciál a popisku. */
.portrait-empty {
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: var(--soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

.portrait-empty svg {
	width: 42%;
	height: auto;
	opacity: 0.26;
	fill: var(--primary);
}

/* --------------------------------------------------------------- filtry --- */

.filters {
	background: var(--panel);
	border-radius: var(--r-card);
	padding: 24px;
	margin-bottom: 24px;
}

.filters__search {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.filters__search input[type="text"],
.filters__search input[type="search"] {
	flex: 1;
	padding: 12px 18px;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--r-input);
	font-size: 15px;
	outline: none;
	min-width: 0;
}

/* Počet filtrů se mění podle toho, zda existují štítky. */
.filters__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.filters__grid label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}

.filters__grid select {
	width: 100%;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--r-btn);
	font-size: 14px;
	outline: none;
	cursor: pointer;
}

.filters input:focus,
.filters select:focus {
	border-color: var(--primary);
}

/* A–Z navigace */
.alphabet {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-bottom: 28px;
	padding: 0;
	list-style: none;
}

.alphabet a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--r-pill);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.alphabet a.alphabet__all {
	width: auto;
	padding: 0 14px;
}

.alphabet a:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.alphabet a.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.result-count {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 20px;
}

.result-count strong {
	color: var(--ink);
}

.empty-state {
	background: var(--panel);
	border-radius: var(--r-card);
	padding: 60px 32px;
	text-align: center;
}

.empty-state h2 {
	font-size: 24px;
	margin: 0 0 8px;
}

.empty-state p {
	color: var(--muted);
	margin: 0 0 24px;
}

/* --------------------------------------------------------------- detail --- */

.detail-head {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 48px;
	align-items: start;
	margin-top: 24px;
}

.detail-head__portrait {
	border-radius: var(--r-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	aspect-ratio: 1 / 1;
	background: var(--soft);
}

.detail-head__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.15) contrast(1.02);
	display: block;
}

.detail-head h1 {
	font-size: 56px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.detail-head__job {
	font-size: 18px;
	color: var(--muted);
	margin-bottom: 32px;
}

.info-box {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	background: var(--panel);
	padding: 24px;
	border-radius: var(--r-card);
}

.info-box__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}

.info-box__value {
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}

.detail-section {
	margin-top: 56px;
}

.detail-section h2 {
	font-size: 32px;
	letter-spacing: -0.01em;
	margin: 0 0 24px;
}

.prose {
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink);
	text-wrap: pretty;
}

.prose p {
	margin: 0 0 1em;
}

/* Odkazy z databáze nesou inline style="text-decoration:none" — inline styl má
   vyšší specificitu než jakýkoli selektor, proto !important. Bez něj by odkazy
   v biografii nebyly poznat. */
.prose a,
.prose a[style] {
	color: var(--primary) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.prose a:hover,
.prose a[style]:hover {
	text-decoration-thickness: 2px;
}

/* Surové URL jako text odkazu se musí zlomit, jinak přeteče z kontejneru. */
.prose a {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Odkaz na zdroj literatury — "(3)" v textu vede na seznam zdrojů. */
.prose a.source-ref {
	font-weight: 600;
	text-decoration: none !important;
	padding: 0 1px;
}

.prose a.source-ref:hover {
	text-decoration: underline !important;
}

/* Cíl odkazu — zvýrazní se po skoku, aby bylo vidět, kam jsme se dostali. */
.source-anchor {
	scroll-margin-top: 120px;
	font-weight: 600;
}

.source-anchor:target {
	background: var(--soft);
	box-shadow: 0 0 0 4px var(--soft);
	border-radius: 2px;
}

.prose img {
	height: auto;
	border-radius: var(--r-btn);
}

.prose table {
	max-width: 100%;
	border-collapse: collapse;
}

/* --------------------------------------------------------------- štítky --- */

.tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tag {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	background: var(--soft);
	border: 1px solid var(--rule);
	padding: 5px 12px;
	border-radius: var(--r-pill);
	transition: border-color 0.2s, color 0.2s;
}

a.tag:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* ------------------------------------------------- referenční stránky ----- */

.ref-groups {
	display: grid;
	gap: 40px;
}

.ref-group h2 {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
}

.ref-group dl {
	display: grid;
	grid-template-columns: 130px 1fr;
	row-gap: 12px;
	column-gap: 24px;
	margin: 0;
}

.ref-group dt {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

.ref-group dd {
	font-size: 15px;
	color: var(--muted);
	margin: 0;
}

.ref-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.ref-list li {
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	text-wrap: pretty;
}

.ref-list strong {
	font-weight: 600;
}

/* ------------------------------------------------------------- formuláře -- */

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

.form-field {
	margin-bottom: 16px;
}

.form-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="file"],
.form-field textarea,
.form-field select {
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--r-input);
	font-size: 15px;
	outline: none;
}

.form-field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
	border-color: var(--primary);
}

.form-field .error {
	display: block;
	font-size: 13px;
	color: var(--primary);
	margin-top: 4px;
}

.form-field input.error,
.form-field textarea.error {
	border-color: var(--primary);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
}

.form-field--check label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 400;
	color: var(--ink);
	cursor: pointer;
	margin: 0;
}

.form-field--check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--primary);
	margin: 0;
	flex: 0 0 auto;
}

.request-form__intro {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0 0 24px;
}

/* Nette skrývá podmíněná pole přes toggle — ponecháváme jeho chování. */
.request-form input[type="file"] {
	padding: 10px 12px;
	background: var(--panel);
	cursor: pointer;
}

/* Honeypot — musí zůstat v DOM a být neviditelný pro člověka.
   display:none nepoužíváme, část botů skrytá pole přeskakuje. */
.form-honeypot,
.form-honeypot-input {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

.info-panel {
	background: var(--panel);
	padding: 36px;
	border-radius: var(--r-card);
}

.info-panel h3 {
	font-size: 24px;
	margin: 0 0 16px;
}

.info-panel p {
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 16px;
}

.info-panel p:last-child {
	margin-bottom: 0;
}

.info-panel strong {
	color: var(--primary);
}

/* --------------------------------------------------------------- dialog --- */

.dialog {
	border: none;
	border-radius: var(--r-card);
	padding: 0;
	max-width: 720px;
	width: calc(100% - 40px);
	box-shadow: 0 24px 70px rgba(15, 29, 58, 0.28);
	color: var(--ink);
}

.dialog::backdrop {
	background: rgba(15, 29, 58, 0.5);
}

.dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 28px;
	border-bottom: 1px solid var(--rule);
}

.dialog__head h2 {
	font-size: 24px;
	margin: 0;
}

.dialog__close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
	padding: 0 4px;
}

.dialog__close:hover {
	color: var(--primary);
}

.dialog__body {
	padding: 28px;
	max-height: 70vh;
	overflow-y: auto;
}

.flash {
	padding: 14px 20px;
	border-radius: var(--r-input);
	margin-bottom: 24px;
	font-size: 15px;
}

.flash--success {
	background: #edf7ed;
	color: #1e4620;
	border: 1px solid #c5e2c6;
}

.flash--error {
	background: #fdecee;
	color: #7a1122;
	border: 1px solid #f3c2c9;
}

/* ------------------------------------------------------------ responzive -- */

@media (max-width: 1279px) {
	.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.filters__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hero h1 {
		font-size: 56px;
	}
}

@media (max-width: 899px) {
	.card-grid,
	.card-grid--featured {
		grid-template-columns: repeat(2, 1fr);
	}

	.filters__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.detail-head {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Na jednosloupcovém rozvržení se portrét vystředí — jinak by zůstal
	   přilepený vlevo a vedle něj by bylo prázdno. */
	.detail-head__portrait {
		max-width: 300px;
		margin-left: auto;
		margin-right: auto;
	}

	.detail-head h1 {
		font-size: 42px;
	}

	.form-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.section__head h2 {
		font-size: 32px;
	}

	.page-head h1 {
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.nav-toggle {
		display: block;
	}

	/* Logo | Menu | Přihlásit na jednom řádku, navigace se rozbaluje pod ně. */
	.site-header__inner {
		flex-wrap: wrap;
		padding: 12px 20px;
		gap: 10px;
	}

	.site-header__logo {
		flex: 1 1 auto;
		min-width: 0;
	}

	.site-header__logo img {
		height: 44px;
	}

	.nav-toggle,
	.site-header__inner > .btn {
		flex: 0 0 auto;
		order: 2;
	}

	.site-header__inner > .btn {
		padding: 9px 12px;
		font-size: 12px;
		white-space: nowrap;
	}

	/* Logo, Menu a Přihlásit se musí vejít na jeden řádek — logo se zmenší
	   podle zbylého místa, aby se hlavička nelámala. */
	.site-header__logo img {
		height: auto;
		max-height: 44px;
		max-width: 100%;
	}

	.site-nav {
		display: none;
		order: 3;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding-bottom: 8px;
	}

	.site-nav.is-open {
		display: flex;
	}
}

@media (max-width: 599px) {
	:root {
		/* Na mobilu drží obsah od okraje displeje — pod 20px už texty
		   vizuálně splývají s hranou. */
		--pad: 20px;
	}

	.page {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.page-head {
		margin-bottom: 24px;
	}

	.card-grid,
	.card-grid--featured {
		grid-template-columns: 1fr;
	}

	.filters__grid {
		grid-template-columns: 1fr;
	}

	.filters__search {
		flex-direction: column;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero {
		padding: 60px var(--pad) 40px;
	}

	.hero h1 {
		font-size: 38px;
	}

	.hero__lead {
		font-size: 17px;
	}

	.hero-search {
		flex-direction: column;
		gap: 6px;
	}

	.section {
		padding: 48px 0;
	}

	.section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.info-box {
		grid-template-columns: 1fr;
	}

	.detail-head h1 {
		font-size: 32px;
	}

	.detail-section h2 {
		font-size: 26px;
	}

	.prose {
		font-size: 16px;
	}

	.ref-group dl {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}

	.ref-group dd {
		margin-bottom: 8px;
	}

	/* A–Z vodorovně scrollovatelné */
	.alphabet {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}

	.alphabet a {
		flex: 0 0 auto;
	}

	.site-footer__inner {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.help-box {
		padding: 28px 20px;
	}
}

@media print {
	.site-header,
	.site-footer,
	.filters,
	.alphabet {
		display: none;
	}
}
