/*
 * Základ webu: aura, odkazy, tlačítka, horní lišta, hlavička, patička
 * a mobilní výzva. CSS sekcí je v assets/css/sections/ a načítá se jen tam,
 * kde sekce na stránce je.
 *
 * Hodnoty barev, písem a mezer jsou z theme.json. Px hodnoty tady jsou
 * rozměry jednotlivých prvků z návrhu (kristynaplundrova-final.pen), ne
 * opakovaný systém.
 *
 * Zlomy: 75em (1200 px) přepíná hlavičku mezi menu v řádku a tlačítkem Menu,
 * 64em (1024 px) rozvržení patičky a sekcí. Návrh má rámce jen pro 1440
 * a 390 px; mezi nimi se drží mobilní pravidla, dokud se desktopové nevejdou.
 *
 * Kolizní pravidla mají `:root` navíc (docs/CSS-TRAPS.md, past 3).
 */

/* ---------- Základ ---------- */

:root {
	--masthead-height: 70px;
	--topbar-height: 41px;
	--content-max: var(--wp--style--global--wide-size, 1280px);
	--gutter: var(--wp--preset--spacing--gutter);
	--inline-pad: max(var(--gutter), calc((100% - var(--content-max)) / 2));
}

/*
 * Sekce v obsahu stránky jsou `alignfull` uvnitř `post-content`, který má
 * okraj stránky (root padding). Procenta v `padding` se počítají ze šířky
 * rodiče, tedy bez těch dvou okrajů — proto je tu přičítáme zpátky.
 */
:root .wp-block-post-content > .alignfull {
	--inline-pad: max(var(--gutter), calc((100% + 2 * var(--gutter) - var(--content-max)) / 2));
}

@media (min-width: 75em) {
	:root {
		--masthead-height: 77px;
		--topbar-height: 40px;
	}
}

html {
	scroll-padding-top: calc(var(--masthead-height) + 1rem);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:root :where(p) {
	margin-block: 0;
}

/*
 * Podtržení odkazu je v návrhu linka 1,5 px pod textem s mezerou 1 px, ne
 * typografické podtržení. Spodní okraj ji kreslí stejně i u odkazu přes víc
 * řádků a nemění výšku řádku. Výjimky (tlačítka, menu) jsou v `:where()`,
 * aby specificita zůstala nízká a komponenty ji přebily vlastní třídou.
 */
:root a:where(:not(.wp-block-button__link):not(.wp-block-navigation-item__content)) {
	text-decoration: none;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 1px;

	/* Jen u odkazu, který je položkou flexu; v textu se neuplatní. */
	margin-bottom: -0.75px;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.has-on-dark :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--wp--preset--color--on-dark);
}

.icon {
	display: block;
	flex: none;
	fill: currentColor;
}

/*
 * Hlavička, patička a sekce si mezery řídí samy (gap v CSS). Výchozí
 * `blockGap` z theme.json by mezi jejich potomky přidal 24 px okraj.
 */
:root .wp-site-blocks > *,
:root :is(.topbar, .masthead, .site-footer, .mobile-cta) :is(.is-layout-flow, .is-layout-constrained, .is-layout-flex) > * {
	margin-block: 0;
}

/* ---------- Aura (zrnitý gradient z návrhu) ----------
 *
 * Shader 06-design/shaders/grain-aura.glsl skládá na pozadí tři gaussovské
 * skvrny: barva = mix(pozadí, barva_i, sytost · e^(−1,8·(d/r)²)), kde d se
 * měří v jednotkách kratší strany plochy. Tady totéž: radiální gradient
 * s poloměrem 2r a zastávkami vzorkovanými po r/4. Poloměr r je násobek
 * kratší strany plochy v návrhu (`--aura-base`), na užším okně nejvýš šířky
 * okna. Zrno je SVG šum přes `soft-light`. Pohyb (u_speed) se nepřenáší —
 * ADR-001.
 */

.has-aura,
.has-aura-dark,
.kbt-kruh::before {
	--aura-bg: var(--wp--custom--aura--bg);
	--aura-c1: var(--wp--custom--aura--c-1);
	--aura-c2: var(--wp--custom--aura--c-2);
	--aura-c3: var(--wp--custom--aura--c-3);
	--aura-s: var(--wp--custom--aura--strength);
	--aura-p1: 10% 12%;
	--aura-p2: 90% 32%;
	--aura-p3: 62% 0%;
	--aura-r1: 0.62;
	--aura-r2: 0.5;
	--aura-r3: 0.42;
	--aura-base: 855px;
	--aura-unit: min(var(--aura-base), 100vw);

	background-color: transparent;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
		radial-gradient(
			circle calc(var(--aura-r1) * var(--aura-unit) * 2) at var(--aura-p1),
			color-mix(in srgb, var(--aura-c1) calc(var(--aura-s) * 100%), transparent) 0%,
			color-mix(in srgb, var(--aura-c1) calc(var(--aura-s) * 89.4%), transparent) 12.5%,
			color-mix(in srgb, var(--aura-c1) calc(var(--aura-s) * 63.8%), transparent) 25%,
			color-mix(in srgb, var(--aura-c1) calc(var(--aura-s) * 36.3%), transparent) 37.5%,
			color-mix(in srgb, var(--aura-c1) calc(var(--aura-s) * 16.5%), transparent) 50%,
			color-mix(in srgb, var(--aura-c1) calc(var(--aura-s) * 6%), transparent) 62.5%,
			color-mix(in srgb, var(--aura-c1) calc(var(--aura-s) * 1.7%), transparent) 75%,
			transparent 100%
		),
		radial-gradient(
			circle calc(var(--aura-r2) * var(--aura-unit) * 2) at var(--aura-p2),
			color-mix(in srgb, var(--aura-c2) calc(var(--aura-s) * 100%), transparent) 0%,
			color-mix(in srgb, var(--aura-c2) calc(var(--aura-s) * 89.4%), transparent) 12.5%,
			color-mix(in srgb, var(--aura-c2) calc(var(--aura-s) * 63.8%), transparent) 25%,
			color-mix(in srgb, var(--aura-c2) calc(var(--aura-s) * 36.3%), transparent) 37.5%,
			color-mix(in srgb, var(--aura-c2) calc(var(--aura-s) * 16.5%), transparent) 50%,
			color-mix(in srgb, var(--aura-c2) calc(var(--aura-s) * 6%), transparent) 62.5%,
			color-mix(in srgb, var(--aura-c2) calc(var(--aura-s) * 1.7%), transparent) 75%,
			transparent 100%
		),
		radial-gradient(
			circle calc(var(--aura-r3) * var(--aura-unit) * 2) at var(--aura-p3),
			color-mix(in srgb, var(--aura-c3) calc(var(--aura-s) * 100%), transparent) 0%,
			color-mix(in srgb, var(--aura-c3) calc(var(--aura-s) * 89.4%), transparent) 12.5%,
			color-mix(in srgb, var(--aura-c3) calc(var(--aura-s) * 63.8%), transparent) 25%,
			color-mix(in srgb, var(--aura-c3) calc(var(--aura-s) * 36.3%), transparent) 37.5%,
			color-mix(in srgb, var(--aura-c3) calc(var(--aura-s) * 16.5%), transparent) 50%,
			color-mix(in srgb, var(--aura-c3) calc(var(--aura-s) * 6%), transparent) 62.5%,
			color-mix(in srgb, var(--aura-c3) calc(var(--aura-s) * 1.7%), transparent) 75%,
			transparent 100%
		),
		linear-gradient(var(--aura-bg), var(--aura-bg));
	background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
	background-blend-mode: soft-light, normal, normal, normal, normal;
}

.has-aura-dark {
	--aura-bg: var(--wp--custom--aura--dark-bg);
	--aura-c1: var(--wp--custom--aura--dark-c-1);
	--aura-c2: var(--wp--custom--aura--dark-c-2);
	--aura-c3: var(--wp--custom--aura--dark-c-3);
	--aura-s: var(--wp--custom--aura--dark-strength);
}

/* ---------- Tlačítka ---------- */

:root .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

:root .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary);
	border: 0;
}

:root .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--card);
}

/* ---------- Horní lišta ---------- */

:root .topbar {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--on-dark);
	padding: 11px var(--inline-pad);
	font-size: 15px;
	line-height: normal;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
	min-height: 19px;
}

:root .topbar__status {
	display: none;
	align-items: center;
	gap: 10px;
}

:root .topbar__status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--status);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--status) 25%, transparent);
	margin-inline: 4px;
}

.topbar__crisis {
	display: flex;
	align-items: center;
	gap: 6px;
}

.topbar__crisis .wp-block-icon {
	width: 18px;
	height: 18px;
}

:root .topbar__lines {
	display: flex;
	align-items: center;
	gap: 6px;
}

:root .topbar__lines a {
	color: inherit;
	font-weight: 600;
	white-space: nowrap;
}

.topbar__nonstop {
	display: none;
}

@media (min-width: 75em) {
	:root .topbar {
		padding-block: 10px;
		font-size: 16px;
	}

	.topbar__inner {
		justify-content: space-between;
		min-height: 20px;
	}

	:root .topbar__status {
		display: flex;
	}

	.topbar__crisis .wp-block-icon {
		width: 19px;
		height: 19px;
	}

	.topbar__nonstop {
		display: inline;
	}
}

/* ---------- Logo ---------- */

:root .brand {
	display: flex;
	margin: 0;
	line-height: 1;
}

:root .brand a {
	display: flex;
	border: 0;
	padding: 0;
	align-items: center;
	gap: 9px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.brand__mark {
	display: block;
	width: 30px;
	height: 30px;
	flex: none;
}

.brand__mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.brand__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.brand__name {
	font-family: var(--wp--preset--font-family--head);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: normal;
}

.brand__role {
	font-weight: 500;
	font-size: 9px;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-2);
	line-height: normal;
}

@media (min-width: 75em) {
	:root .brand a {
		gap: 11px;
	}

	.brand__mark {
		width: 38px;
		height: 38px;
	}

	.brand__text {
		gap: 4px;
	}

	.brand__name {
		font-size: 15px;
		letter-spacing: 0.09em;
	}

	.brand__role {
		font-size: 9.5px;
		letter-spacing: 2.6px;
	}
}

/* Inverzní logo v patičce: srpek on-dark, tečky a druhý tah #DDBB9F. */
:root .brand--inverse a {
	gap: 11px;
	color: var(--wp--preset--color--on-dark);
	--brand-arc: var(--wp--preset--color--on-dark);
	--brand-accent: #ddbb9f;
}

:root .brand--inverse .brand__mark {
	width: 54px;
	height: 54px;
}

:root .brand--inverse .brand__text {
	gap: 4px;
}

:root .brand--inverse .brand__name {
	font-size: 20px;
	letter-spacing: 0.09em;
}

:root .brand--inverse .brand__role {
	font-size: 11px;
	letter-spacing: 2.6px;
	color: var(--wp--preset--color--on-dark-2);
}

/* ---------- Hlavička ---------- */

.site-header {
	position: relative;
	z-index: 20;
}

:root .masthead {
	position: relative;
	padding-inline: var(--inline-pad);
}

.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--masthead-height);
	padding-block: 14px;
	box-sizing: border-box;
}

.masthead__quick {
	display: flex;
	align-items: center;
	gap: 8px;
}

.masthead__toggle,
:root .masthead__round {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--card);
	color: var(--wp--preset--color--text);
	font: 600 16px / normal var(--wp--preset--font-family--body);
	cursor: pointer;
	padding: 0;
}

.masthead__toggle {
	padding: 10px 16px;
}

.masthead__toggle .icon,
.masthead__round .icon {
	width: 22px;
	height: 22px;
}

:root .masthead__round {
	display: none;
	width: 44px;
	height: 44px;
}

.masthead__toggle .icon--x,
.masthead__toggle-close,
.masthead__toggle[aria-expanded="true"] .icon--list,
.masthead__toggle[aria-expanded="true"] .masthead__toggle-open {
	display: none;
}

.masthead__toggle[aria-expanded="true"] .icon--x,
.masthead__toggle[aria-expanded="true"] .masthead__toggle-close {
	display: block;
}

/* Mobilní panel menu: pod hlavičkou, do konce okna. */
.masthead__panel {
	display: none;
}

.masthead.is-open .masthead__panel {
	display: flex;
	flex-direction: column;
	gap: 28px;
	position: absolute;
	inset: 100% 0 auto;
	height: calc(100dvh - 100%);
	overflow-y: auto;
	padding: 12px var(--inline-pad) 28px;
	background: var(--wp--preset--color--bg);
	box-sizing: border-box;
}

:root .masthead__nav .wp-block-navigation__container {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

:root .masthead__nav .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

:root .masthead__nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-block: 14px;
	font-family: var(--wp--preset--font-family--head);
	font-size: 26px;
	font-weight: 500;
	line-height: normal;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

/* Zobáček u položky mobilního menu; maska drží barvu textu. */
:root .masthead__nav .wp-block-navigation-item__content::after {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.masthead__actions {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 28px;
}

:root .masthead__cta,
:root .masthead__cta .wp-block-button {
	width: 100%;
}

:root .masthead__cta .wp-block-button__link {
	width: 100%;
	padding: 18px 30px;
}

:root .masthead__help {
	font-size: 18px;
	line-height: normal;
}

:root .masthead__help a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.masthead__help .icon {
	width: 22px;
	height: 22px;
}

.masthead__help-short {
	display: none;
}

/* Desktop: menu v řádku, tlačítko vpravo. */
@media (min-width: 75em) {
	.masthead__inner {
		padding-block: 16px;
	}

	.masthead__quick {
		display: none;
	}

	.masthead__panel,
	.masthead.is-open .masthead__panel {
		display: flex;
		flex: 1;
		align-items: center;
		position: static;
		height: auto;
		padding: 0;
		background: none;
		overflow: visible;
	}

	:root .masthead__nav {
		margin-inline: auto;
	}

	:root .masthead__nav .wp-block-navigation__container {
		flex-direction: row;
		gap: 28px;
		width: auto;
	}

	:root .masthead__nav .wp-block-navigation-item {
		border: 0;
	}

	:root .masthead__nav .wp-block-navigation-item__content {
		width: auto;
		padding: 0;
		font-family: var(--wp--preset--font-family--body);
		font-size: 16px;
	}

	:root .masthead__nav .wp-block-navigation-item__content::after {
		display: none;
	}

	:root .masthead__nav .wp-block-navigation-item__content:hover,
	:root .masthead__nav .current-menu-item .wp-block-navigation-item__content {
		color: var(--wp--preset--color--primary);
	}

	.masthead__actions {
		flex-direction: row;
		align-items: center;
		gap: 20px;
	}

	:root .masthead__help {
		display: none;
		font-size: 16px;
	}

	:root .masthead__help a {
		gap: 6px;
	}

	.masthead__help .icon {
		width: 18px;
		height: 18px;
	}

	.masthead__help-long {
		display: none;
	}

	.masthead__help-short {
		display: inline;
	}

	:root .masthead__cta,
	:root .masthead__cta .wp-block-button {
		width: auto;
	}

	:root .masthead__cta .wp-block-button__link {
		width: auto;
		padding: 13px 24px;
		font-size: 16px;
	}
}

/* Přilepená kompaktní hlavička po odscrollování (assets/js/site.js). */
.site-header.is-stuck {
	padding-bottom: var(--masthead-height);
}

.site-header.is-stuck .masthead {
	position: fixed;
	inset: 0 0 auto;
	background: var(--wp--preset--color--bg);
	border-bottom: 1px solid var(--wp--preset--color--line);
	box-shadow: var(--wp--preset--shadow--bar);
	animation: masthead-in 0.2s ease-out;
}

.site-header.is-stuck .masthead__inner {
	min-height: 0;
	padding-block: 10px;
}

:root .site-header.is-stuck .masthead__round {
	display: inline-flex;
	color: var(--wp--preset--color--primary);
}

.site-header.is-stuck .masthead__toggle {
	width: 44px;
	height: 44px;
	padding: 0;
}

:root .site-header.is-stuck .masthead__round,
.site-header.is-stuck .masthead__toggle {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
}

.site-header.is-stuck .masthead__toggle-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

@media (min-width: 75em) {
	.site-header.is-stuck .masthead {
		padding-inline: max(56px, calc((100% - 1328px) / 2));
	}

	.site-header.is-stuck .masthead__inner {
		padding-block: 12px;
	}

	:root .site-header.is-stuck .brand a {
		gap: 10px;
	}

	:root .site-header.is-stuck .brand__mark {
		width: 32px;
		height: 32px;
	}

	:root .site-header.is-stuck .brand__text {
		gap: 3px;
	}

	:root .site-header.is-stuck .brand__name {
		font-size: 14px;
	}

	:root .site-header.is-stuck .brand__role {
		font-size: 9px;
		letter-spacing: 2.4px;
	}

	:root .site-header.is-stuck .masthead__nav .wp-block-navigation__container {
		gap: 22px;
	}

	:root .site-header.is-stuck .masthead__help {
		display: block;
	}

	:root .site-header.is-stuck .masthead__cta .wp-block-button__link {
		padding: 11px 22px;
	}
}

@keyframes masthead-in {
	from {
		transform: translateY(-100%);
	}
}

/*
 * První sekce stránky sahá pod hlavičku, aby její aura byla i za logem
 * a menu (v návrhu je hlavička součástí úvodní sekce). Pseudoprvek drží
 * místo hlavičky uvnitř sekce, takže sekce nemusí znát její výšku.
 */
/* Šablona 404 nemá post-content, sekce je přímo v `main`. */
:root .site-header ~ main .wp-block-post-content > .alignfull:first-child,
:root .site-header ~ main.site-main > .alignfull:first-child {
	margin-top: calc(-1 * var(--masthead-height));
}

:root .site-header ~ main .wp-block-post-content > .alignfull:first-child::before,
:root .site-header ~ main.site-main > .alignfull:first-child::before {
	content: "";
	display: block;
	height: var(--masthead-height);
}

/* ---------- Patička ---------- */

:root .site-footer {
	--aura-p1: 0% 0%;
	--aura-p2: 100% 100%;
	--aura-p3: 75% 10%;
	--aura-r1: 0.9;
	--aura-r2: 0.75;
	--aura-r3: 0.6;
	--aura-base: 534px;

	color: var(--wp--preset--color--on-dark);
	padding: 56px var(--inline-pad) 32px;
}

:root .site-footer a {
	color: var(--wp--preset--color--on-dark);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.site-footer__top {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

:root .site-footer__training {
	font-size: 18px;
	line-height: normal;
}

.site-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 22px;
	font-size: 17px;
	line-height: normal;
}

:root .site-footer__email {
	display: flex;
}

:root .site-footer__email a {
	font-weight: 600;
}

:root .crisis-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px;
	border-radius: var(--wp--preset--border-radius--lg);
	background: rgba(243, 239, 236, 0.05);
	box-shadow: inset 0 0 0 1px rgba(243, 239, 236, 0.18);
}

.crisis-card__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

:root .crisis-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: normal;
}

.crisis-card__title .icon {
	width: 22px;
	height: 22px;
}

:root .crisis-card__note,
:root .crisis-card__label {
	font-size: 15px;
	line-height: 1.45;
	color: var(--wp--preset--color--on-dark-2);
}

:root .crisis-card__note {
	line-height: normal;
}

.crisis-card__lines {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.crisis-card__line {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 16px;
	border-top: 1px solid rgba(243, 239, 236, 0.15);
}

:root .crisis-card__number {
	display: flex;
	font-family: var(--wp--preset--font-family--head);
	font-size: 34px;
	font-weight: 500;
	line-height: normal;
}

:root .crisis-card__number a {
	font-weight: 500;
	border: 0;
	margin: 0;
}

:root .site-footer__menu .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

:root .site-footer__menu .wp-block-navigation-item__content {
	font-size: 17px;
	font-weight: 400;
	line-height: normal;
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
}

:root .site-footer__menu .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}

.site-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 24px;
	border-top: 1px solid rgba(243, 239, 236, 0.15);
}

:root .site-footer__company {
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--on-dark-2);
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 15px;
	line-height: normal;
}

:root .site-footer__privacy a {
	font-weight: 500;
}

:root .site-footer__credit a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--on-dark-2);
	font-weight: 400;
	border: 0;
	padding: 0;
}

.logo-creado {
	display: block;
	width: 70.65px;
	height: 17px;
	color: #f4f4f4;
}

.logo-creado svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (min-width: 64em) {
	:root .site-footer {
		--aura-base: 534px;

		padding-top: 80px;
	}

	.site-footer__inner {
		gap: 56px;
	}

	.site-footer__top {
		flex-direction: row;
		align-items: flex-start;
		gap: 80px;
	}

	.site-footer__brand {
		flex: none;
		width: 400px;
	}

	:root .crisis-card {
		flex: 1;
		padding: 32px;
	}

	.crisis-card__head {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.crisis-card__lines {
		flex-direction: row;
		gap: 24px;
	}

	.crisis-card__line {
		flex: 1 1 0;
	}

	:root .site-footer__menu .wp-block-navigation__container {
		flex-direction: row;
		gap: 32px;
	}

	:root .site-footer__menu .wp-block-navigation-item__content {
		font-size: 16px;
	}

	:root .site-footer__menu .site-footer__menu-help {
		display: none;
	}

	.site-footer__legal {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 48px;
	}

	:root .site-footer__company {
		max-width: 640px;
	}

	.site-footer__links {
		flex-direction: row;
		align-items: center;
		gap: 40px;
	}
}

/* ---------- Mobilní výzva přilepená dole ---------- */

.mobile-cta {
	position: fixed;
	inset: auto 0 0;
	z-index: 15;
	padding: 12px 20px 16px;
	background: var(--wp--preset--color--card);
	border-top: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 -6px 24px rgba(122, 78, 50, 0.1);
	transform: translateY(110%);
	transition: transform 0.2s ease-out;
}

.mobile-cta.is-visible {
	transform: none;
}

:root .mobile-cta .wp-block-button,
:root .mobile-cta .wp-block-button__link {
	width: 100%;
}

:root .mobile-cta .wp-block-button__link {
	padding: 16px 24px;
}

@media (min-width: 75em) {
	.mobile-cta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header.is-stuck .masthead {
		animation: none;
	}

	.mobile-cta {
		transition: none;
	}

	:root .wp-block-button__link {
		transition: none;
	}
}

@media (max-width: 74.99em) {
	html.has-open-menu {
		overflow: hidden;
	}
}

/* ---------- Společné prvky obsahu ---------- */

/* Nadpisy sekcí: na mobilu má návrh volnější řádek (36 × 1,1). */
:root h2:where(.wp-block-heading) {
	line-height: 1.1;
}

@media (min-width: 64em) {
	:root h2:where(.wp-block-heading) {
		line-height: var(--wp--custom--typography--line-height--section-title);
	}
}

/* Odkaz se šipkou (komponenta „Odkaz se šipkou“). */
:root .link-arrow {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	line-height: normal;
	color: var(--wp--preset--color--primary);
}

:root .link-arrow a {
	font-weight: 600;
}

:root .link-arrow::after,
:root .has-arrow-up::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: var(--arrow-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E")) center / contain no-repeat;
}

/* Odkaz mimo web (šipka vpravo nahoru) a na kotvu níž na stránce (dolů). */
:root .link-arrow--ven {
	--arrow-icon: var(--arrow-up-right);
}

:root .link-arrow--dolu {
	--arrow-icon: var(--icon-arrow-down);
}

/* Odkazy se šipkou vedle sebe (inc/sections-stranky.php). */
.links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 40px;
}

/* Poznámka s ikonou na začátku řádku; víc řádků na mobilu drží ikonu nahoře. */
.note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

:root .note__icon {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 2px;
}

@media (min-width: 64em) {
	.note {
		align-items: center;
	}

	:root .note__icon {
		margin-top: 0;
	}
}

:root .note__text {
	font-size: 18px;
	line-height: 1.5;
}

/* Odrážkový seznam s tečkami (core/list s třídou `dots`). */
:root .dots {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .dots li {
	display: flex;
	gap: 14px;
}

:root .dots li::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-block: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

/* Šipka vpravo nahoru (témata, služby). */
:root {
	--arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E");
}

/* Fotky v sekcích: výřez drží rámeček, ne poměr stran souboru. */
:root .is-photo,
:root :is(.hero__photo, .kdo-jsem__photo, .caste-otazky__photo, .uvod-stranky__photo, .foto-text__photo) {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--lg);
}

:root :is(.hero__photo, .kdo-jsem__photo, .caste-otazky__photo, .uvod-stranky__photo, .foto-text__photo) img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Ikona v kruhu (kroky postupu, ikony karet). */
:root .wp-block-icon.is-round {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--card);
}

/*
 * Sekce na sebe navazují bez mezery a mezery uvnitř řídí jejich CSS (gap).
 * Výchozí `blockGap` by mezi ně i mezi jejich potomky přidal 24 px.
 */
/* Specificita (0,2,0): přebije `blockGap` jádra i v editoru, ale CSS sekcí
   s `:root .třída` ji přebije pořadím, takže v nich jdou psát okraje. */
:root :is(.wp-block-post-content, .site-main) :where(section.alignfull, section.alignfull > *, section.alignfull :is(.is-layout-flow, .is-layout-flex) > *) {
	margin-block: 0;
}

/* Záchranný kruh před textem (karty krizových linek v obsahu). */
:root {
	--icon-lifebuoy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm39.1,131.79a47.84,47.84,0,0,0,0-55.58l28.5-28.49a87.83,87.83,0,0,1,0,112.56ZM96,128a32,32,0,1,1,32,32A32,32,0,0,1,96,128Zm88.28-67.6L155.79,88.9a47.84,47.84,0,0,0-55.58,0L71.72,60.4a87.83,87.83,0,0,1,112.56,0ZM60.4,71.72l28.5,28.49a47.84,47.84,0,0,0,0,55.58L60.4,184.28a87.83,87.83,0,0,1,0-112.56ZM71.72,195.6l28.49-28.5a47.84,47.84,0,0,0,55.58,0l28.49,28.5a87.83,87.83,0,0,1-112.56,0Z'/%3E%3C/svg%3E");
	--icon-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}

:root .has-lifebuoy {
	display: flex;
	align-items: center;
	gap: 10px;
}

:root .has-lifebuoy::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: currentColor;
	mask: var(--icon-lifebuoy) center / contain no-repeat;
}
