/*
 * Šablona — the theme's only stylesheet.
 *
 * Loaded once on the front end and injected into the editor canvas with
 * add_editor_style(), so the editor and the site render from the same bytes.
 *
 * Design tokens live in theme.json. This file aliases them to `--sablona-*`
 * names with hardcoded fallbacks (so the editor iframe still looks right before
 * the presets land) and then styles what block supports cannot: layout grids,
 * the header, the mobile nav, decorations, icons and third-party form output.
 *
 * Every custom property the theme sets carries the prefix. A bare `--accent`
 * is one a browser or an extension can set on the page too, and the nearer
 * definition wins: in Avast the hero's terracotta word, then coloured by a bare
 * `--accent`, turned blue. tools/check.py fails on an unprefixed name.
 *
 * The design is drawn at 1440 px (desktop) and 390 px (phone). Sizes that
 * differ between the two are fluid between those widths; layouts switch at
 * 1180 px (header), 1024 px and 760 px. The narrowest supported screen is
 * 320 px, and nothing may reach past its edge.
 *
 * Class names use a SINGLE hyphen, never a double one. A `--` is illegal
 * inside an HTML comment, so a BEM class in a block's className attribute has
 * to be escaped in the block JSON, and hand-written markup gets that wrong
 * every time. `is-style-*` variations and single-hyphen names make the whole
 * problem unreachable.
 *
 * Icons and illustrations are files in assets/decor/, drawn as backgrounds or
 * masks on pseudo-elements, so patterns carry no inline SVG and the owner
 * cannot break a drawing by editing text next to it.
 */

/* ------------------------------------------------------------------ tokens */

:root,
.editor-styles-wrapper {
	--sablona-base: var(--wp--preset--color--base, #faf7f1);
	--sablona-white: var(--wp--preset--color--surface, #fff);
	--sablona-sage: var(--wp--preset--color--sage, #e7eee0);
	--sablona-sage-soft: var(--wp--preset--color--sage-soft, #eef3e9);
	--sablona-mist: var(--wp--preset--color--mist, #eaf0ea);
	--sablona-sand: var(--wp--preset--color--sand, #f6ebdd);
	--sablona-blush: var(--wp--preset--color--blush, #f4eadf);
	--sablona-primary: var(--wp--preset--color--primary, #627153);
	--sablona-primary-dark: var(--wp--preset--color--primary-dark, #54603f);
	--sablona-apricot: var(--wp--preset--color--apricot, #edb07e);
	--sablona-accent: var(--wp--preset--color--accent, #c8743a);
	--sablona-ink: var(--wp--preset--color--ink, #1f2a22);
	--sablona-ink-soft: var(--wp--preset--color--ink-soft, #4d594f);

	--sablona-line: var(--wp--custom--line, #e6decf);
	--sablona-line-strong: var(--wp--custom--line-strong, #c4cbb3);
	--sablona-marker: var(--wp--custom--marker, #f2c29f);
	--sablona-rust: var(--wp--custom--rust, #b0573a);
	--sablona-sage-mid: var(--wp--custom--sage-mid, #a9bf9f);
	--sablona-sage-grey: var(--wp--custom--sage-grey, #c9d1b8);
	--sablona-savings: var(--wp--custom--savings, #fbe3d0);
	--sablona-footer-text: var(--wp--custom--footer-text, #eef3ea);
	--sablona-text-deep: var(--wp--custom--text-deep, #3a4234);
	--sablona-moss: var(--wp--custom--moss, #4e573e);
	--sablona-photo: var(--wp--custom--photo, #efe7da);
	--sablona-ink-hero: #20241f;

	--sablona-radius-sm: var(--wp--custom--radius--sm, 16px);
	--sablona-radius-md: var(--wp--custom--radius--md, 22px);
	--sablona-radius-lg: var(--wp--custom--radius--lg, 28px);
	--sablona-radius-xl: var(--wp--custom--radius--xl, 40px);
	--sablona-pill: var(--wp--custom--radius--pill, 999px);

	--sablona-wide: 1200px;
	--sablona-gutter: var(--wp--preset--spacing--gutter, clamp(20px, calc(9.524vw - 17.14px), 120px));
	--sablona-section: var(--wp--preset--spacing--section, clamp(56px, calc(3.43vw + 42.6px), 92px));
	--sablona-hero-top: clamp(24px, calc(2.286vw + 15.1px), 48px);
	--sablona-panel-gap: clamp(12px, calc(6.476vw - 13.3px), 80px);
	--sablona-panel-pad: clamp(24px, calc(4.571vw + 6.2px), 72px);
	--sablona-header-pad: clamp(16px, calc(6.095vw - 7.8px), 80px);
	--sablona-subnav-h: 72px;
	--sablona-admin-bar: var(--wp-admin--admin-bar--height, 0px);

	/*
	 * The header is --sablona-header-h tall at the top of the page, as the design
	 * draws it, and a --sablona-header-bar tall bar once the page has scrolled
	 * (site.js puts `header-compact` on <html>); --sablona-header-size is whichever it
	 * is now. --sablona-header-offset is how much of the top of the viewport the header
	 * covers wherever something can stick or land under it: the bar, or nothing
	 * while it is hidden (`header-hidden`). Without
	 * JavaScript the header never shrinks, so it is the full height. The
	 * subnav's `top` and the anchor scroll padding follow --sablona-header-offset;
	 * --sablona-subnav-offset is the subnav's height on a page that has one.
	 */
	--sablona-header-h: 84px;
	--sablona-header-bar: 60px;
	--sablona-header-size: var(--sablona-header-h);
	--sablona-header-offset: var(--sablona-header-h);
	--sablona-subnav-offset: 0px;
	--sablona-bar-motion: 0.3s ease;

	--sablona-h1: clamp(2.25rem, calc(2.667vw + 1.6rem), 4rem);
	--sablona-h2: clamp(1.75rem, calc(1.524vw + 1.38125rem), 2.75rem);
	--sablona-h3: clamp(1.375rem, calc(0.571vw + 1.2375rem), 1.75rem);
	--sablona-h4: clamp(1.125rem, calc(0.286vw + 1.05625rem), 1.3125rem);
	--sablona-h5: clamp(1.0625rem, calc(0.095vw + 1.0375rem), 1.125rem);
	--sablona-h6: clamp(1rem, calc(0.095vw + 0.975rem), 1.0625rem);
	--sablona-lead: clamp(1.125rem, calc(0.286vw + 1.05625rem), 1.3125rem);
	--sablona-text: clamp(1rem, calc(0.19vw + 0.95625rem), 1.125rem);
	--sablona-text-sm: clamp(1rem, calc(0.095vw + 0.975rem), 1.0625rem);

	--sablona-font-body: var(--wp--preset--font-family--body, Manrope, "Helvetica Neue", Arial, sans-serif);
	--sablona-font-display: var(--wp--preset--font-family--display, "Plus Jakarta Sans", Manrope, sans-serif);
	--sablona-font-hand: var(--wp--preset--font-family--hand, Caveat, cursive);

	/*
	 * The brief asks for justified paragraphs. A phone column is too narrow
	 * for that: even with hyphenation the word gaps open up into rivers, so
	 * under 600px paragraphs are ragged-right.
	 */
	--sablona-para-align: justify;

}

@media (max-width: 600px) {
	:root,
	.editor-styles-wrapper {
		--sablona-para-align: start;
	}
}

/* -------------------------------------------------------------------- base */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--sablona-admin-bar) + var(--sablona-header-offset) + var(--sablona-subnav-offset));
}

html.js {
	--sablona-header-offset: var(--sablona-header-bar);
}

html.header-compact {
	--sablona-header-size: var(--sablona-header-bar);
}

html.header-hidden {
	--sablona-header-offset: 0px;
}

:root:has(.wp-block-group.subnav) {
	--sablona-subnav-offset: var(--sablona-subnav-h);
}

body {
	margin: 0;
	background: var(--sablona-base);
	color: var(--sablona-ink);
	font-family: var(--sablona-font-body);
	font-size: var(--sablona-text);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/*
 * A safety net: whatever reaches past the screen's side edge is cut there
 * rather than letting the page scroll sideways. `clip`, not `hidden`, which
 * would make <main> a scroll container and stop the „Na této stránce“ bar
 * from sticking.
 */
.site-main {
	overflow-x: clip;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

:where(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font-family: var(--sablona-font-display);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--sablona-ink);
	hyphens: manual;
}

/* At 1 a Czech accent touches the descender of the line above. */
:where(h1) {
	font-size: var(--sablona-h1);
	line-height: 1.1;
	letter-spacing: -0.035em;
}

:where(h2) {
	font-size: var(--sablona-h2);
}

:where(h3) {
	font-size: var(--sablona-h3);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

:where(h4, h5, h6) {
	line-height: 1.3;
	letter-spacing: 0;
}

:where(h4) {
	font-size: var(--sablona-h4);
}

:where(h5) {
	font-size: var(--sablona-h5);
}

:where(h6) {
	font-size: var(--sablona-h6);
}

:where(p, ul, ol, figure, blockquote) {
	margin: 0;
}

strong,
b {
	font-weight: 800;
}

a {
	color: inherit;
}

/*
 * The peach highlighter stroke and the one terracotta word. Both are plain
 * <mark> elements in the pattern copy, so a translation can move them.
 */
mark.marker {
	padding: 0 4px;
	background: linear-gradient(transparent 55%, var(--sablona-marker) 55%);
	color: inherit;
	font-weight: 800;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

mark.accent {
	background: none;
	color: var(--sablona-accent);
}

/*
 * Core's layout styles are off (functions.php, `disable-layout-styles`): the
 * flow layout's margins and the flex layout's gaps would otherwise print after
 * this file on some requests and before it on others, and every spacing rule
 * here would depend on which. Instead every container in a section is a flex
 * column with its own gap, at zero specificity so a component overrides it
 * with one class.
 */
:where(.wp-block-group.section, .wp-block-group.section .wp-block-group) {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

:where(.is-content-justification-center) {
	justify-content: center;
}

:where(.is-content-justification-right) {
	justify-content: flex-end;
}

/*
 * The constrained layout, for the few patterns and the loose post content
 * that use it: the content measure, and wide or full blocks breaking out.
 */
:where(.is-layout-constrained) > * {
	max-width: var(--wp--style--global--content-size, 860px);
	margin-inline: auto;
}

:where(.is-layout-constrained) > .alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
}

:where(.is-layout-constrained) > .alignfull {
	max-width: none;
}

:where(.is-layout-constrained) > * + * {
	margin-block-start: 24px;
}

/* ------------------------------------------------------------ a11y helpers */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--sablona-ink);
	color: var(--sablona-white);
	border-radius: 0 0 var(--sablona-radius-sm) 0;
}

.skip-link:focus {
	left: 0;
	top: 0;
}

:where(a, button, summary, input, textarea, select):focus-visible {
	outline: 2px solid var(--sablona-rust);
	outline-offset: 3px;
}

/* ----------------------------------------------------------------- layout */

/*
 * A section is a full-width band with the page gutter on both sides and its
 * content centred at the design's 1200 px. Every pattern is one. The padding
 * itself narrows the content to that column, so a row that drops the centring
 * margin (a side-by-side section, a measure pinned left) still lines up.
 */
.wp-block-group.section {
	padding: var(--sablona-section) max(var(--sablona-gutter), (100% - var(--sablona-wide)) / 2);
}

/* The default gap between a section's rows; one class overrides it. */
:where(.wp-block-group.section) {
	gap: 32px;
}

:where(.wp-block-group.section) > * {
	width: 100%;
	max-width: var(--sablona-wide);
	margin-inline: auto;
}

/*
 * A panel section is a band of the page background holding one rounded
 * card. The card fills the same column as every other section's content,
 * and carries the padding.
 */
:where(.wp-block-group.panel-section) > .panel {
	padding: var(--sablona-panel-pad);
	border-radius: var(--sablona-radius-xl);
}

@media (max-width: 760px) {
	:where(.wp-block-group.panel-section) > .panel {
		border-radius: var(--sablona-radius-lg);
	}
}

/* ----------------------------------------------------------------- buttons */

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/*
 * A label too long for a 320px screen wraps rather than pushing the button
 * past the edge, balanced over its lines. The block padding only shows then:
 * one line sits in min-height, two get room above and below inside the pill.
 * Overrides set padding-inline alone so they keep it. The header button is
 * `flex: none` and never wraps.
 */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 28px;
	border: 1.5px solid var(--sablona-primary);
	border-radius: var(--sablona-pill);
	background: var(--sablona-primary);
	color: var(--sablona-white);
	font-family: var(--sablona-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-wrap: balance;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/*
 * Two hover looks, and every button takes one of them. A filled button turns
 * one shade darker in its own colour. A light one (white, outline, sand) gets
 * the olive outline on a white fill.
 */
.wp-block-button__link:hover,
.wp-element-button:hover {
	border-color: var(--sablona-primary-dark);
	background: var(--sablona-primary-dark);
	color: var(--sablona-white);
}

.is-style-button-ghost .wp-block-button__link {
	border-color: var(--sablona-line);
	background: var(--sablona-white);
	color: var(--sablona-ink);
}

.is-style-button-outline .wp-block-button__link {
	border-color: var(--sablona-line-strong);
	background: transparent;
	color: var(--sablona-ink);
}

.is-style-button-ghost .wp-block-button__link:hover,
.is-style-button-outline .wp-block-button__link:hover {
	border-color: var(--sablona-primary);
	background: var(--sablona-white);
	color: var(--sablona-ink);
}

/*
 * The arrow after a button label. A mask, so it takes the label's colour in
 * every variation; `arrow` and `ext` are plain classes on the button block.
 */
.wp-block-button.arrow .wp-block-button__link::after,
.wp-block-button.ext .wp-block-button__link::after,
.icon-first a::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../decor/arrow.svg") center / contain no-repeat;
	mask: url("../decor/arrow.svg") center / contain no-repeat;
}

.wp-block-button.ext .wp-block-button__link::after {
	width: 16px;
	height: 16px;
	-webkit-mask-image: url("../decor/arrow-up-right.svg");
	mask-image: url("../decor/arrow-up-right.svg");
}

/* An underlined text link: „Více o mně“. */
:is(.more-link, .is-style-text-more-link) a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--sablona-ink-hero);
	text-decoration: underline;
	text-decoration-color: var(--sablona-primary-dark);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 6px;
}

:is(.more-link, .is-style-text-more-link).icon-first a {
	gap: 10px;
	font-size: 1.0625rem;
	color: var(--sablona-ink);
	text-decoration-color: currentColor;
	text-underline-offset: 5px;
}

:is(.more-link, .is-style-text-more-link) a:hover {
	color: var(--sablona-primary-dark);
}

/* ------------------------------------------------------------------ header */

/*
 * Sticky, always. Once the page scrolls it shrinks to the short bar
 * (`header-compact`), and the bottom margin takes up what the height gave
 * away, so the page below never moves. On a narrow screen it also gets out of
 * the way while the reader scrolls down (see the narrow header below).
 */
.site-header {
	position: sticky;
	top: var(--sablona-admin-bar);
	z-index: 30;
	margin-bottom: calc(var(--sablona-header-h) - var(--sablona-header-size));
	background: var(--sablona-white);
	border-bottom: 1px solid var(--sablona-line);
	transition: top var(--sablona-bar-motion), margin-bottom var(--sablona-bar-motion);
}

/*
 * Out of the way while the reader scrolls down: site.js adds `header-hidden`
 * to <html> and the header slides up past the top edge. It is moved with
 * `top`, not a transform — a transform would make the header the containing
 * block of the fixed menu panel inside it.
 */
.header-hidden .site-header {
	top: calc(var(--sablona-admin-bar) - var(--sablona-header-size) - 1px);
}

/* Wider than the design's 1440, the header keeps its 1440 layout, centred. */
.site-header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1440px;
	height: var(--sablona-header-size);
	margin-inline: auto;
	padding-inline: var(--sablona-header-pad);
	transition: height var(--sablona-bar-motion);
}

.site-brand {
	flex: none;
	margin-right: auto;
}

.brand-link {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: var(--sablona-ink);
	text-decoration: none;
}

.brand-name {
	font-family: var(--sablona-font-display);
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
}

.brand-role {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sablona-ink-soft);
}

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

.nav-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--sablona-pill);
	font-size: 15px;
	font-weight: 700;
	color: var(--sablona-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s ease;
}

.nav-list a:hover {
	background: var(--sablona-sage-soft);
	color: var(--sablona-ink);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list a[aria-current="page"] {
	background: var(--sablona-sage);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.header-cta {
	flex: none;
	font-size: 16px;
	transition: min-height var(--sablona-bar-motion), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* The short bar keeps the button clear of its edges. */
@media (min-width: 1181px) {
	.header-compact .header-cta {
		min-height: 44px;
	}
}

.nav-panel-extra,
.nav-toggle {
	display: none;
}

/* -------------------------------------------------------- language switch */

.lang-switch {
	position: relative;
}

.lang-list {
	display: flex;
	margin: 0;
	padding: 4px;
	list-style: none;
	border: 1.5px solid var(--sablona-line);
	border-radius: var(--sablona-pill);
	background: var(--sablona-base);
}

.lang-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 40px;
	padding: 0 8px;
	border-radius: var(--sablona-pill);
	font-size: 14px;
	font-weight: 800;
	color: var(--sablona-ink);
	text-decoration: none;
}

.lang-item a:hover {
	background: var(--sablona-white);
}

.lang-item.is-current a {
	background: var(--sablona-white);
	color: var(--sablona-primary);
	box-shadow: inset 0 0 0 2px var(--sablona-primary);
}

.lang-toggle {
	display: none;
	align-items: center;
	gap: 1px;
	min-width: 48px;
	min-height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--sablona-line);
	border-radius: var(--sablona-pill);
	background: var(--sablona-base);
	font-family: var(--sablona-font-body);
	font-size: 13px;
	font-weight: 800;
	color: var(--sablona-ink);
	cursor: pointer;
}

.lang-toggle-caret {
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("../decor/chevron-down.svg") center / contain no-repeat;
	mask: url("../decor/chevron-down.svg") center / contain no-repeat;
	transition: transform 0.18s ease;
}

.lang-toggle[aria-expanded="true"] .lang-toggle-caret {
	transform: rotate(180deg);
}

/* On desktop the toggle matches the header button's height, in the bar too. */
@media (min-width: 1181px) {
	.lang-toggle {
		min-height: 52px;
		transition: min-height var(--sablona-bar-motion);
	}

	.header-compact .lang-toggle {
		min-height: 44px;
	}
}

/*
 * The header's switcher is collapsed at every width: the current code and a
 * caret, opening a small card. Only where JavaScript runs (`html.js`, set in
 * the head before the first paint) — without it the segmented row stays,
 * which still works. The copy in the mobile menu panel sits outside
 * `.lang-switch` and stays a row.
 */
.js .lang-switch .lang-toggle {
	display: inline-flex;
}

.js .lang-switch .lang-list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	display: none;
	flex-direction: column;
	gap: 2px;
	padding: 6px;
	border-radius: 20px;
	background: var(--sablona-white);
	box-shadow: 0 16px 40px -20px rgba(29, 43, 34, 0.35);
}

.js .lang-switch .lang-list.is-open {
	display: flex;
}

.js .lang-switch .lang-item a {
	min-width: 64px;
	min-height: 44px;
}

/* ------------------------------------------------ narrow header + menu */

@media (max-width: 1180px) {
	:root {
		--sablona-header-h: 76px;
	}

	.site-header-inner {
		gap: 8px;
	}

	/*
	 * The brand gives way rather than push the burger, which would then jump
	 * when the open menu hides the language toggle. A name that still does
	 * not fit wraps: a longer one from the Customizer, or a desktop browser
	 * whose scrollbar takes width that vw counts.
	 */
	.site-brand {
		flex: 0 1 auto;
		min-width: 0;
	}

	/* 17px down to about 350px, then shrinking to fit the 320px header. */
	.brand-name {
		font-size: clamp(14px, calc(8.4vw - 12.6px), 17px);
	}

	.brand-role {
		font-size: 12px;
	}

	.header-actions {
		gap: 8px;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--sablona-primary);
		cursor: pointer;
	}

	.nav-toggle-icon {
		width: 22px;
		height: 22px;
		background: url("../decor/menu.svg") center / contain no-repeat;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
		background-image: url("../decor/close.svg");
	}

	/*
	 * The menu panel covers the page below the header. The header keeps only
	 * the brand and the close button while it is open, as in the design.
	 */
	.site-nav {
		position: fixed;
		inset: calc(var(--sablona-header-size) + 1px + var(--sablona-admin-bar)) 0 0;
		z-index: 29;
		display: none;
		flex-direction: column;
		padding: 24px var(--sablona-header-pad) 48px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--sablona-base);
	}

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

	/*
	 * The open panel repeats the language pill, so the header's goes — but
	 * keeps its place, so neither the brand nor the burger moves.
	 */
	.site-header:has(.site-nav.is-open) .header-actions {
		visibility: hidden;
	}

	/*
	 * The open panel does not lock the page with `overflow: hidden` on <html>:
	 * on phones that makes the browser swap its toolbar and re-lay the
	 * viewport, and the sticky header could end up off screen. The opaque panel
	 * covers the page anyway and keeps its own scrolling to itself; the header
	 * stays in view whatever the scroll direction said last.
	 */
	.header-hidden .site-header:has(.site-nav.is-open) {
		top: var(--sablona-admin-bar);
	}

	.site-nav .nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav .nav-list a {
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		min-height: 64px;
		padding: 0;
		border-bottom: 1px solid var(--sablona-line);
		border-radius: 0;
		background: none;
		font-family: var(--sablona-font-display);
		font-size: 30px;
		font-weight: 800;
		letter-spacing: -0.03em;
		white-space: normal;
	}

	.site-nav .nav-list a::after {
		content: "";
		flex: none;
		width: 22px;
		height: 22px;
		background: currentColor;
		-webkit-mask: url("../decor/arrow.svg") center / contain no-repeat;
		mask: url("../decor/arrow.svg") center / contain no-repeat;
	}

	.site-nav .nav-list .current-menu-item > a,
	.site-nav .nav-list a[aria-current="page"] {
		background: none;
		color: var(--sablona-primary-dark);
	}

	.nav-panel-extra {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		margin-top: 32px;
	}

	.nav-panel-cta {
		width: 100%;
		min-height: 50px;
		font-size: 15px;
	}

	.nav-panel-extra .icon-link {
		margin-top: 16px;
	}
}

/*
 * The brand, the language toggle and the burger have to share 320px: the
 * role goes, and the gaps, the toggle and the burger tighten. The burger
 * stays a 44px target.
 */
@media (max-width: 380px) {
	.brand-role {
		display: none;
	}

	.site-header-inner {
		gap: 6px;
	}

	.js .lang-switch .lang-toggle {
		padding-inline: 8px;
	}

	.nav-toggle {
		width: 44px;
		height: 44px;
	}
}

/* ------------------------------------------------------- icon + text link */

/*
 * The e-mail with its envelope. The icon is a background on the link's
 * padding, not a flex item: the link's text must stay one inline run so a
 * long address can wrap. The block padding makes one line of it the design's
 * 44 px tall target.
 */
.icon-link a,
a.icon-link {
	display: inline-block;
	padding: calc((44px - 1.6em) / 2) 0 calc((44px - 1.6em) / 2) 36px;
	background: url("../decor/mail.svg") left center / 24px no-repeat;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.6;
	color: var(--sablona-ink);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
	overflow-wrap: anywhere;
}

a.icon-link {
	font-size: 1.0625rem;
}

.icon-link a:hover,
a.icon-link:hover {
	color: var(--sablona-primary-dark);
}

/* ------------------------------------------------------ on-page subnav bar */

/*
 * The sticky „Na této stránce“ bar. It sticks inside .subnav-scope, the group
 * the installer wraps around the bar and the sections it links to, so it
 * stops at the bottom of the last one and scrolls away with it. Until then it
 * sits right under the header's short bar, and at the top edge once the
 * header hides — sliding up with it, behind it.
 */
.wp-block-group.subnav {
	position: sticky;
	top: calc(var(--sablona-admin-bar) + var(--sablona-header-offset));
	transition: top var(--sablona-bar-motion);
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	height: var(--sablona-subnav-h);
	margin: 0;
	padding: 0 var(--sablona-gutter);
	border-bottom: 1px solid var(--sablona-line);
	background: var(--sablona-white);
}

/* An anchor past the bar's last section lands with no bar above it. */
.subnav-scope ~ [id],
.subnav-scope ~ * [id] {
	scroll-margin-top: calc(-1 * var(--sablona-subnav-offset));
}

.wp-block-group.subnav > * {
	margin: 0;
}

.subnav-label {
	display: flex;
	flex: none;
	align-items: center;
	gap: 24px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sablona-ink-soft);
}

.subnav-label::after {
	content: "";
	width: 1px;
	height: 24px;
	background: var(--sablona-line);
}

.subnav-links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.subnav-links li {
	margin: 0;
}

.subnav-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--sablona-pill);
	font-size: 15px;
	font-weight: 700;
	color: var(--sablona-ink);
	text-decoration: none;
	white-space: nowrap;
}

.subnav-links a:hover {
	background: var(--sablona-sage-soft);
}

.subnav-links a.is-active {
	background: var(--sablona-sage);
}

/*
 * Narrower: the label goes first, so five links still fit in one row, and the
 * links stay centred. When they no longer fit, the list shrinks to the bar and
 * scrolls inside itself from its first link, so centring never pushes a link
 * out of reach.
 */
@media (max-width: 1180px) {
	.subnav-label {
		display: none;
	}
}

@media (max-width: 1000px) {
	.subnav-links a {
		padding: 0 16px;
		font-size: 14px;
	}
}

@media (max-width: 900px) {
	.wp-block-group.subnav {
		padding-inline: 12px;
	}
}

/* -------------------------------------------------------------- components */

.is-style-text-lead {
	font-size: var(--sablona-lead);
	line-height: 1.7;
}

.is-style-text-eyebrow {
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sablona-ink-soft);
}

/*
 * A chip: a pill with an icon before the text. The icon sits on the
 * padding, absolutely placed, so the text stays one inline run with its
 * <strong> parts and its spaces intact.
 */
:is(.chip, .is-style-text-chip) {
	position: relative;
	width: fit-content;
	max-width: 100%;
	padding: 8px 16px 8px 42px;
	border-radius: var(--sablona-pill);
	background: var(--sablona-sand);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--sablona-ink-hero);
}

:is(.chip, .is-style-text-chip)::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 16px;
	width: 16px;
	height: 16px;
	background: center / contain no-repeat;
	transform: translateY(-50%);
}

:is(.chip, .is-style-text-chip).on-white {
	padding: 10px 18px 10px 46px;
	background: var(--sablona-white);
}

:is(.chip, .is-style-text-chip).on-white::before {
	left: 18px;
	width: 18px;
	height: 18px;
}

:is(.chip, .is-style-text-chip).is-plain {
	padding: 2px 18px 2px 46px;
	background: transparent;
	font-weight: 700;
	color: var(--sablona-primary-dark);
}

:is(.chip, .is-style-text-chip).is-plain::before {
	left: 18px;
	width: 18px;
	height: 18px;
}

/* Picked in the editor with no icon class: no empty icon space. */
:is(.chip, .is-style-text-chip):not([class*="icon-"]) {
	padding-left: 16px;
}

:is(.chip, .is-style-text-chip):is(.on-white, .is-plain):not([class*="icon-"]) {
	padding-left: 18px;
}

:is(.chip, .is-style-text-chip) a {
	color: inherit;
	text-decoration: none;
}

.icon-pin::before {
	background-image: url("../decor/pin.svg");
}

.icon-languages::before {
	background-image: url("../decor/languages.svg");
}

.icon-calendar-green::before {
	background-image: url("../decor/calendar-green.svg");
}

/* A link out of the site: the arrow trails the text, in the text's colour. */
:is(.chip, .is-style-text-chip).icon-external {
	padding: 8px 40px 8px 16px;
}

.icon-external::before {
	right: 16px;
	left: auto;
	background: currentColor;
	-webkit-mask: url("../decor/arrow-up-right.svg") center / contain no-repeat;
	mask: url("../decor/arrow-up-right.svg") center / contain no-repeat;
}

/* The „Recenze klientů / na ZnámýLékař.cz“ pill. */
.review-link a {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 56px;
	padding: 10px 62px 10px 32px;
	border: 1.5px solid var(--sablona-line);
	border-radius: var(--sablona-pill);
	background: var(--sablona-white);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sablona-moss);
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.review-link.on-cream a {
	background: var(--sablona-base);
}

.review-link strong {
	font-size: 1rem;
	font-weight: 800;
	color: var(--sablona-ink-hero);
}

.review-link a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 32px;
	width: 16px;
	height: 16px;
	background: var(--sablona-ink-hero);
	-webkit-mask: url("../decor/arrow-up-right.svg") center / contain no-repeat;
	mask: url("../decor/arrow-up-right.svg") center / contain no-repeat;
	transform: translateY(-50%);
}

.review-link a:hover {
	border-color: var(--sablona-primary);
	background: var(--sablona-white);
}

/*
 * An illustration: an empty group drawn from a file in assets/decor. Its
 * layout is flex because the editor offers an empty default-layout group
 * a layout picker, drawn over the illustration. Core's layout CSS is off,
 * so on the page the flex layout is only a class.
 */
.illo {
	width: 100%;
	background: center / contain no-repeat;
}

.illo-head {
	max-width: 280px;
	aspect-ratio: 300 / 250;
	background-image: url("../decor/head.svg");
}

.illo-faq {
	max-width: 340px;
	aspect-ratio: 270 / 210;
	background-image: url("../decor/faq.svg");
}

.illo-strengths {
	max-width: 400px;
	aspect-ratio: 420 / 480;
	background-image: url("../decor/strengths.svg");
}

.illo-crossroads {
	max-width: 280px;
	aspect-ratio: 280 / 200;
	background-image: url("../decor/crossroads.svg");
}

.illo-sprout {
	max-width: 190px;
	aspect-ratio: 200 / 175;
	background-image: url("../decor/sprout.svg");
}

.illo-contact {
	max-width: 300px;
	aspect-ratio: 260 / 160;
	background-image: url("../decor/contact.svg");
}

.wp-block-image.photo {
	margin: 0;
}

/*
 * The editor writes `height: auto` inline on every image, and the block's
 * size settings write a height inline on the page; either beats this rule.
 * Min and max heights are never inline, so they keep the photo filling
 * its slot in both. Where the slot has no set height they do nothing.
 */
.wp-block-image.photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	max-height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------- page heroes */

.wp-block-group.hero {
	gap: 0;
}

.hero-grid {
	flex-direction: row;
	align-items: center;
	gap: 96px;
}

.hero-text {
	flex: 1 1 0;
	min-width: 0;
	gap: 26px;
}

/*
 * A heading never breaks inside a word, so a hero's h1 is capped by its own
 * column rather than the viewport. 13cqi fits the widest word of every hero
 * heading: „a psychologické“ is 7.5 times the font size.
 */
.hero-text {
	container-type: inline-size;
}

.hero-text h1 {
	font-size: min(var(--sablona-h1), 13cqi);
	color: var(--sablona-ink);
}

.hero-text .wp-block-buttons {
	margin-top: 6px;
}

.hero-text .is-style-text-lead,
:is(.hero-lead, .is-style-text-hero-lead),
.hero-about .hero-text > p {
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

/* Home and About: text beside the photo stack, the stack overhanging right. */
.wp-block-group.hero-home,
.wp-block-group.hero-about {
	padding-top: var(--sablona-hero-top);
	padding-bottom: clamp(48px, calc(3.81vw + 33.1px), 88px);
}

.hero-home .hero-grid,
.hero-about .hero-grid {
	gap: 36px;
}

@media (min-width: 1300px) {
	.hero-home .hero-grid,
	.hero-about .hero-grid {
		width: calc(100% + 32px);
		max-width: calc(var(--sablona-wide) + 32px);
		margin-left: calc((100% - min(100%, var(--sablona-wide))) / 2);
	}
}

.hero-home .hero-text {
	gap: 28px;
}

.hero-about .hero-text {
	gap: 24px;
}

.hero-home h1,
.hero-about h1 {
	color: var(--sablona-ink-hero);
}

.hero-facts {
	align-items: flex-start;
	gap: 10px;
}

/* About: every paragraph of the introduction reads as the lead. */
:is(.hero-lead, .is-style-text-hero-lead),
.hero-about .hero-text > p {
	font-size: clamp(1.125rem, calc(0.19vw + 1.08125rem), 1.25rem);
	line-height: 1.7;
	color: var(--sablona-ink-hero);
}

.hero-actions {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	margin-top: 4px;
}

.hero-actions .wp-block-button__link,
.hero-about .wp-block-button__link {
	padding-inline: 26px;
}

.hero-about .wp-block-buttons {
	margin-top: 4px;
}

.hero-about .is-style-button-outline .wp-block-button__link {
	background: var(--sablona-white);
	color: var(--sablona-ink-hero);
}

/*
 * The photo stack: the portrait, a sage card behind it and a sage circle,
 * plus a peach circle on O mně. The circles are one pseudo-element and its
 * box shadow: on the home page the pseudo-element is transparent and only
 * its shadow, the sage circle, shows. The card is the other pseudo-element,
 * so the only real element is the image.
 * Every length is a multiple of --sablona-u, one pixel of the design's drawing, so
 * the stack shrinks as one and its box shrinks with it: --sablona-u-max is the
 * largest it may be at this width.
 */
.photo-card {
	--sablona-u-max: 1px;
	--sablona-u: var(--sablona-u-max);
	position: relative;
	flex: 0 0 566px;
	height: calc(684 * var(--sablona-u));
}

.photo-card::before {
	content: "";
	position: absolute;
	top: calc(-34 * var(--sablona-u));
	left: calc(440 * var(--sablona-u));
	width: calc(88 * var(--sablona-u));
	height: calc(88 * var(--sablona-u));
	border-radius: 50%;
	box-shadow: calc(-423 * var(--sablona-u)) calc(129 * var(--sablona-u)) 0 calc(31 * var(--sablona-u)) var(--sablona-sage-mid);
}

.photo-card-about::before {
	top: calc(-24 * var(--sablona-u));
	left: calc(450 * var(--sablona-u));
	background: #e9c3a6;
	box-shadow: calc(-433 * var(--sablona-u)) calc(119 * var(--sablona-u)) 0 calc(31 * var(--sablona-u)) var(--sablona-sage-mid);
}

.photo-card::after {
	content: "";
	position: absolute;
	top: calc(108 * var(--sablona-u));
	left: calc(90 * var(--sablona-u));
	width: calc(420 * var(--sablona-u));
	height: calc(540 * var(--sablona-u));
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-sage-grey);
}

.photo-card .wp-block-image {
	position: absolute;
	top: calc(84 * var(--sablona-u));
	left: calc(66 * var(--sablona-u));
	z-index: 1;
	width: calc(420 * var(--sablona-u));
	height: calc(540 * var(--sablona-u));
	margin: 0;
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-blush);
}

/*
 * Home: the hero starts right under the header. The photo and the sage
 * circle sit higher, the box ends at the card, and on a short screen the
 * stack shrinks, down to its smallest
 * desktop size, until the whole photo fits on the first screen: 48px is the
 * hero's top padding and as much again under the card.
 */
@media (min-width: 901px) {
	.wp-block-group.hero-home {
		padding-top: 24px;
	}

	.hero-home .photo-card {
		--sablona-u: min(var(--sablona-u-max), max(0.7px, (100svh - var(--sablona-admin-bar) - var(--sablona-header-h) - 48px) / 604));
		height: calc(604 * var(--sablona-u));
	}

	.hero-home .photo-card::before {
		top: calc(-12 * var(--sablona-u));
		box-shadow: calc(-423 * var(--sablona-u)) calc(63 * var(--sablona-u)) 0 calc(31 * var(--sablona-u)) var(--sablona-sage-mid);
	}

	.hero-home .photo-card::after {
		top: calc(64 * var(--sablona-u));
	}

	.hero-home .photo-card .wp-block-image {
		top: calc(40 * var(--sablona-u));
	}
}

/*
 * Home: four credentials under the hero, an icon over each, divided by thin
 * rules. Two by two under 1024px, where four columns get too narrow, and
 * one per row on a phone, the icon beside the text.
 */
.hero-expertise {
	align-items: center;
	gap: 40px;
	margin-top: clamp(32px, calc(1.524vw + 26.1px), 48px);
}

.hero-expertise .is-style-text-eyebrow {
	font-size: clamp(0.875rem, calc(0.19vw + 0.83125rem), 1rem);
	color: var(--sablona-ink-hero);
	text-align: center;
}

.expertise {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
}

:is(.expertise-item, .is-style-text-expertise-item) {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	padding: 4px 24px;
	font-size: clamp(1rem, calc(0.19vw + 0.95625rem), 1.125rem);
	font-weight: 500;
	line-height: 1.6;
	color: var(--sablona-ink-hero);
	text-align: center;
	text-wrap: balance;
}

:is(.expertise-item, .is-style-text-expertise-item) + :is(.expertise-item, .is-style-text-expertise-item) {
	border-left: 1px solid var(--sablona-line-strong);
}

:is(.expertise-item, .is-style-text-expertise-item)::before {
	content: "";
	flex: none;
	width: 48px;
	height: 48px;
	background: center / contain no-repeat;
}

/* Picked in the editor with no icon class: no empty icon space. */
:is(.expertise-item, .is-style-text-expertise-item):not([class*="icon-"])::before {
	display: none;
}

.icon-expertise-cap::before {
	background-image: url("../decor/expertise-cap.svg");
}

.icon-expertise-mind::before {
	background-image: url("../decor/expertise-mind.svg");
}

.icon-expertise-globe::before {
	background-image: url("../decor/expertise-world.svg");
}

.icon-expertise-case::before {
	background-image: url("../decor/expertise-case.svg");
}

@media (max-width: 1024px) {
	.expertise {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}

	:is(.expertise-item, .is-style-text-expertise-item):nth-child(odd) {
		border-left: 0;
	}
}

@media (max-width: 600px) {
	.hero-expertise {
		gap: 16px;
	}

	.expertise {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	:is(.expertise-item, .is-style-text-expertise-item) {
		flex-direction: row;
		gap: 20px;
		padding: 18px 0;
		font-size: 1rem;
		text-align: start;
		text-wrap: wrap;
	}

	:is(.expertise-item, .is-style-text-expertise-item) + :is(.expertise-item, .is-style-text-expertise-item) {
		border-top: 1px solid var(--sablona-line-strong);
		border-left: 0;
	}

	:is(.expertise-item, .is-style-text-expertise-item)::before {
		width: 40px;
		height: 40px;
	}
}

/* Therapy and Coaching: text beside an arched photo. */
.wp-block-group.hero-page {
	padding-top: var(--sablona-hero-top);
	padding-bottom: clamp(56px, calc(3.81vw + 41.1px), 96px);
}

.photo-arch {
	position: relative;
	flex: 0 0 480px;
	height: 520px;
}

.photo-arch::before {
	content: "";
	position: absolute;
	top: -24px;
	right: -24px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: var(--sablona-apricot);
}

.photo-arch::after {
	content: "";
	position: absolute;
	bottom: -28px;
	left: -28px;
	width: 220px;
	height: 110px;
	border-radius: 110px 110px 0 0;
	background: var(--sablona-sage-mid);
}

.photo-arch .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	overflow: hidden;
	border-radius: 240px 240px var(--sablona-radius-lg) var(--sablona-radius-lg);
}

/*
 * Between the phone layout and the full design the photo gives way before the
 * copy does, so every hero keeps a readable measure beside it.
 */
@media (min-width: 901px) and (max-width: 1299px) {
	.hero-grid {
		gap: 64px;
	}

	.photo-card {
		--sablona-u-max: 0.8px;
		flex-basis: 430px;
		margin-right: -32px;
	}

	.photo-arch {
		flex-basis: 400px;
		height: 433px;
	}
}

@media (max-width: 1100px) {
	.hero-grid {
		gap: 48px;
	}

	.photo-card {
		--sablona-u-max: 0.7px;
		flex-basis: 377px;
	}

	.photo-arch {
		flex-basis: 330px;
		height: 358px;
	}

	.photo-arch::before {
		width: 120px;
		height: 120px;
		top: -16px;
		right: -12px;
	}

	.photo-arch::after {
		width: 150px;
		height: 75px;
		bottom: -18px;
		left: -12px;
	}

	.photo-arch .wp-block-image {
		border-radius: 180px 180px 24px 24px;
	}
}

@media (max-width: 900px) {
	.hero-grid {
		flex-direction: column;
		align-items: stretch;
		container-type: inline-size;
	}

	.hero-home .hero-actions,
	.hero-home .hero-actions .wp-block-buttons {
		flex-direction: column;
		justify-content: center;
		gap: 20px;
	}

	.hero-home .hero-actions {
		align-items: center;
	}

	.hero-actions .wp-block-button__link {
		min-height: 50px;
		padding-inline: 22px;
		font-size: 0.9375rem;
	}

	:is(.more-link, .is-style-text-more-link) a {
		font-size: 0.9375rem;
	}

	.hero-facts :is(.chip, .is-style-text-chip).on-white {
		padding: 9px 12px 9px 36px;
		font-size: 0.8125rem;
	}

	.hero-facts :is(.chip, .is-style-text-chip).on-white::before {
		left: 12px;
	}

	.hero-facts :is(.chip, .is-style-text-chip).is-plain {
		padding: 2px 12px 2px 36px;
		font-size: 0.8125rem;
	}

	.hero-facts :is(.chip, .is-style-text-chip).is-plain::before {
		left: 12px;
	}

	/*
	 * The phone version of the photo stack, drawn at 350 × 430. Every length
	 * is a multiple of --sablona-u, one pixel of that drawing: 1px while the column
	 * is 350 wide or more, less below, so the whole stack shrinks with the
	 * column down to 320px screens instead of reaching past the edge.
	 */
	.photo-card {
		--sablona-u: calc(min(100cqi, 350px) / 350);
		flex: none;
		width: calc(350 * var(--sablona-u));
		height: calc(430 * var(--sablona-u));
		margin: 0 auto;
	}

	.photo-card::before {
		top: calc(-14 * var(--sablona-u));
		left: calc(282 * var(--sablona-u));
		width: calc(64 * var(--sablona-u));
		height: calc(64 * var(--sablona-u));
		box-shadow: calc(-276 * var(--sablona-u)) calc(80 * var(--sablona-u)) 0 calc(18 * var(--sablona-u)) var(--sablona-sage-mid);
	}

	.photo-card-about::before {
		top: calc(-7 * var(--sablona-u));
		left: calc(289 * var(--sablona-u));
		box-shadow: calc(-283 * var(--sablona-u)) calc(73 * var(--sablona-u)) 0 calc(18 * var(--sablona-u)) var(--sablona-sage-mid);
	}

	.photo-card::after {
		top: calc(58 * var(--sablona-u));
		left: calc(44 * var(--sablona-u));
		width: calc(290 * var(--sablona-u));
		height: calc(372 * var(--sablona-u));
		border-radius: 24px;
	}

	.photo-card .wp-block-image {
		top: calc(40 * var(--sablona-u));
		left: calc(26 * var(--sablona-u));
		width: calc(290 * var(--sablona-u));
		height: calc(372 * var(--sablona-u));
		border-radius: 24px;
	}

	.photo-arch {
		flex: none;
		width: min(100%, 360px);
		height: auto;
		aspect-ratio: 480 / 520;
		margin: 24px auto 0;
	}
}

/* --------------------------------------------------------- home: help */

.help {
	gap: 48px;
}

.help > h2 {
	text-align: center;
}

.illo-head {
	margin-inline: auto;
}

.quotes {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 22px 26px;
	max-width: 1160px;
}

:is(.quote-pill, .is-style-text-quote-pill) {
	display: inline-block;
	padding: 12px 26px 14px;
	border: 1.8px solid var(--sablona-ink);
	border-radius: 26px;
	background: var(--sablona-white);
	font-family: var(--sablona-font-hand);
	font-size: 2.0625rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--sablona-ink);
	transform: rotate(-3deg);
}

:is(.quote-pill, .is-style-text-quote-pill):nth-child(5n + 2) {
	background: var(--sablona-sand);
	transform: rotate(2deg);
}

:is(.quote-pill, .is-style-text-quote-pill):nth-child(5n + 3) {
	transform: rotate(-1.5deg);
}

:is(.quote-pill, .is-style-text-quote-pill):nth-child(5n + 4) {
	background: var(--sablona-blush);
	transform: rotate(-2deg);
}

:is(.quote-pill, .is-style-text-quote-pill):nth-child(5n + 5) {
	transform: rotate(1.5deg);
}

.help-text {
	gap: 16px;
	max-width: 820px;
	margin-top: 8px;
}

.help-claim {
	margin-bottom: 8px;
	font-family: var(--sablona-font-display);
	font-size: clamp(1.3125rem, calc(0.476vw + 1.19375rem), 1.625rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.help-claim mark.marker {
	padding: 0 6px;
	white-space: nowrap;
}

.help-text p:not(.help-claim) {
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.topics-title {
	margin-top: 16px;
}

.topic-links {
	justify-content: center;
	gap: 12px;
	margin-top: -24px;
}

.topic-links .wp-block-button__link {
	min-height: 52px;
	padding-inline: 24px;
	border-color: var(--sablona-sand);
	background: var(--sablona-sand);
	color: var(--sablona-ink);
	font-size: 1.125rem;
}

.topic-links .wp-block-button__link:hover {
	border-color: var(--sablona-primary);
	background: var(--sablona-white);
	color: var(--sablona-ink);
}

.topic-links .wp-block-button__link::after {
	width: 16px;
	height: 16px;
}

@media (max-width: 760px) {
	.help {
		gap: 32px;
	}

	.illo-head {
		max-width: 220px;
	}

	.quotes {
		gap: 18px 10px;
	}

	:is(.quote-pill, .is-style-text-quote-pill) {
		padding: 9px 18px 11px;
		border-radius: 20px;
		font-size: 1.5625rem;
	}

	.topic-links {
		gap: 8px;
		margin-top: -8px;
	}

	/* A translation can make the phrase wider than a phone. */
	.help-claim mark.marker {
		white-space: normal;
	}

	.topic-links .wp-block-button__link {
		min-height: 46px;
		padding-inline: 18px;
		font-size: 1rem;
	}
}

/* ------------------------------------------------------ home: approach */

.wp-block-group.approach {
	padding-block: 0;
}

.approach > .panel {
	gap: 56px;
	padding: var(--sablona-section) clamp(20px, calc(5.714vw - 2.3px), 80px);
}

.approach-text {
	gap: 24px;
}

.approach-text > p:not(.review-link) {
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

/*
 * The reviews pill with the supervision line beside it, the line drawn as
 * on O mně but without its rule, which would cover the line and not the
 * pill. It drops under the pill when the two no longer fit side by side.
 */
.approach-foot {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	margin-top: 4px;
}

.approach-foot :is(.check-line, .is-style-text-check-line) {
	flex: 1 1 300px;
	padding-top: 0;
	border-top: 0;
}

.approach-foot :is(.check-line, .is-style-text-check-line)::before {
	top: calc(0.85em - 12px);
}

.principles {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

:is(.principle, .is-style-text-principle) {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px 24px 32px;
	border: 1.5px solid var(--sablona-line);
	border-radius: var(--sablona-radius-lg);
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1.3;
}

:is(.principle, .is-style-text-principle)::before {
	content: "";
	width: 76px;
	height: 76px;
	background: center / contain no-repeat;
}

/* Picked in the editor with no icon class: no empty icon space. */
:is(.principle, .is-style-text-principle):not([class*="icon-"])::before {
	display: none;
}

.icon-approach-1::before {
	background-image: url("../decor/approach-1.svg");
}

.icon-approach-2::before {
	background-image: url("../decor/approach-2.svg");
}

.icon-approach-3::before {
	background-image: url("../decor/approach-3.svg");
}

.icon-approach-4::before {
	background-image: url("../decor/approach-4.svg");
}

.icon-approach-5::before {
	background-image: url("../decor/approach-5.svg");
}

@media (max-width: 1100px) {
	.principles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.approach > .panel {
		gap: 36px;
		padding: 44px 20px;
	}

	.approach-foot {
		flex-direction: column;
		align-items: stretch;
	}

	.approach-foot :is(.check-line, .is-style-text-check-line) {
		flex: none;
	}

	.approach-text .review-link a {
		display: flex;
		width: 100%;
	}

	.principles {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	:is(.principle, .is-style-text-principle) {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		padding: 12px 18px;
		border-radius: 20px;
		font-size: 1.0625rem;
	}

	:is(.principle, .is-style-text-principle)::before {
		flex: none;
		width: 56px;
		height: 56px;
	}

	.approach .wp-block-button__link {
		min-height: 50px;
		padding-inline: 22px;
		font-size: 0.9375rem;
	}
}

/* -------------------------------------------------------- home: before */

/*
 * The stones in an arch with three shapes around them, all clipped by the
 * panel. The panel is its own stacking context so the shapes can sit behind
 * the text without dropping behind the panel's background.
 *
 * The stones are an image block the owner can replace, in the row beside the
 * text, not positioned absolutely: the editor makes every block
 * `position: relative`, which would drop an absolute one over the text.
 * Negative margins take it to the panel's edge and past its bottom.
 */
.before-panel {
	position: relative;
	isolation: isolate;
	flex-direction: row;
	align-items: center;
	min-height: 524px;
	overflow: hidden;
}

.before-panel::before,
.before-panel::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
}

.before-panel::before {
	top: 104px;
	right: 24px;
	width: 180px;
	height: 180px;
	background: #b98a6b;
}

.before-panel::after {
	right: -60px;
	bottom: -10px;
	width: 179px;
	height: 179px;
	background: #77755d;
}

.before-text {
	flex: 1 1 0;
	gap: 28px;
	max-width: calc(100% - 380px);
}

.before-text .is-style-text-lead {
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.before-photo {
	position: relative;
	flex: none;
	align-self: flex-end;
	width: 320px;
	height: 420px;
	margin: 0 calc(38px - var(--sablona-panel-pad)) calc(-56px - var(--sablona-panel-pad)) auto;
}

.before-photo .wp-block-image {
	height: 100%;
	overflow: hidden;
	border-radius: 160px 160px 24px 24px;
}

.before-photo::before {
	content: "";
	position: absolute;
	bottom: 16px;
	left: -90px;
	z-index: -1;
	width: 220px;
	height: 110px;
	border-radius: 110px 110px 0 0;
	background: var(--sablona-sage-mid);
}

@media (max-width: 1100px) {
	.before-text {
		max-width: calc(100% - 300px);
	}

	.before-photo {
		width: 260px;
		height: 340px;
		margin-right: calc(-1 * var(--sablona-panel-pad));
	}

	.before-photo .wp-block-image {
		border-radius: 130px 130px 20px 20px;
	}

	.before-panel::before {
		right: -40px;
	}
}

@media (max-width: 760px) {
	.before-panel {
		flex-direction: column;
		align-items: stretch;
		gap: 50px;
		min-height: 0;
		padding: 36px 24px 0;
	}

	.before-text {
		max-width: none;
		gap: 22px;
	}

	.before-text .is-style-text-lead {
		font-size: 1.125rem;
	}

	.before-panel::before {
		top: auto;
		right: calc(50% - 171px);
		bottom: 170px;
		width: 120px;
		height: 120px;
		background: var(--sablona-apricot);
	}

	.before-panel::after {
		right: auto;
		left: -30px;
		bottom: 90px;
		width: 80px;
		height: 80px;
		background: var(--sablona-line-strong);
	}

	.before-photo {
		align-self: center;
		width: 210px;
		height: 280px;
		margin: 0 0 -40px;
	}

	.before-photo .wp-block-image {
		border-radius: 105px 105px 20px 20px;
	}

	.before-photo::before {
		left: -52px;
		bottom: 6px;
		width: 170px;
		height: 85px;
		border-radius: 85px 85px 0 0;
	}
}

/* ---------------------------------------------------- order + contact form */

/*
 * The last section of most pages: peach, with a wave across the bottom, the
 * copy on the left and the form card on the right. Its bottom padding runs
 * under the footer's rounded top, which overlaps it by 40 px, and leaves the
 * design's 48 px between the form card and the footer.
 */
.wp-block-group.order {
	position: relative;
	padding-bottom: calc(48px + 40px);
	background-image: url("../decor/wave.svg");
	background-position: center bottom;
	background-size: 100% 640px;
	background-repeat: no-repeat;
}

/*
 * The design's 440 px of copy, 96 px gap and the form at 1440 px; narrower,
 * the copy and the gap give way in proportion, so the form card keeps room
 * for its two fields side by side until the grid turns to one column.
 */
.order-grid,
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 440fr) minmax(0, 664fr);
	align-items: start;
	gap: clamp(64px, calc(12.36vw - 82px), 96px);
}

.order-text,
.contact-details {
	gap: 28px;
}

.order-text > p:not(.icon-link, .review-link) {
	font-size: clamp(1rem, calc(0.286vw + 0.93125rem), 1.1875rem);
}

@media (max-width: 1180px) {
	.order-grid,
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (max-width: 760px) {
	.wp-block-group.order {
		padding-bottom: calc(var(--sablona-section) + 28px);
	}

	.order-text {
		gap: 18px;
	}

	.order-text .icon-link a {
		font-size: 1.0625rem;
	}

	.order-text .review-link a,
	.contact-details .review-link a {
		display: flex;
		width: 100%;
	}
}

/* The white card the form sits in (styles/form-slot.json draws the card). */
.is-style-form-slot {
	min-width: 0;
	background: var(--sablona-white);
}

.form-placeholder {
	padding: 48px 16px;
	border: 1.5px dashed var(--sablona-line-strong);
	border-radius: var(--sablona-radius-sm);
	color: var(--sablona-ink-soft);
}

@media (max-width: 760px) {
	.wp-block-group.is-style-form-slot {
		padding: 24px;
		border-radius: var(--sablona-radius-md);
	}
}

/*
 * Fluent Forms. Its stylesheet loads after this one and styles its controls
 * with two classes, so every rule here is scoped to the form slot for a third.
 * The asterisk, radio and checkbox colours are the design's terracotta.
 */
.is-style-form-slot .fluentform {
	font-family: var(--sablona-font-body);
	color: var(--sablona-ink);
}

.is-style-form-slot .fluentform fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.is-style-form-slot .fluentform .ff-el-group {
	margin-bottom: 22px;
}

.is-style-form-slot .fluentform .ff-t-container {
	gap: 20px;
}

.is-style-form-slot .fluentform .ff-t-cell {
	padding: 0;
}

/*
 * Fluent Forms sets the label inline-block at the body's line height, inside a
 * wrapper at the body's font size: both line boxes would add to the 8 px gap.
 */
.is-style-form-slot .fluentform .ff-el-input--label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.is-style-form-slot .fluentform .ff-el-input--label label {
	display: block;
}

.is-style-form-slot .fluentform .ff-el-input--label label,
.is-style-form-slot .fluentform .ff-el-input--label legend {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sablona-ink);
}

.is-style-form-slot .fluentform .ff-el-is-required.asterisk-right label::after {
	margin-left: 4px;
	color: var(--sablona-rust);
}

.is-style-form-slot .fluentform .ff-el-form-control {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1.5px solid var(--sablona-line);
	border-radius: var(--sablona-radius-sm);
	background-color: var(--sablona-base);
	font-family: var(--sablona-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--sablona-ink);
	box-shadow: none;
}

.is-style-form-slot .fluentform .ff-el-form-control:focus {
	border-color: var(--sablona-primary);
	background-color: var(--sablona-white);
	outline: none;
}

.is-style-form-slot .fluentform .ff-el-form-control::placeholder {
	color: #8a8f86;
	opacity: 1;
}

.is-style-form-slot .fluentform textarea.ff-el-form-control {
	resize: vertical;
}

/*
 * The native arrow cannot be sized or moved, so it is replaced by the theme's
 * chevron, 24 px and 18 px in from the edge; the right padding keeps a long
 * option clear of it.
 */
.is-style-form-slot .fluentform select.ff-el-form-control {
	padding-right: 56px;
	background-image: url("../decor/select-chevron.svg");
	background-position: right 18px center;
	background-size: 24px 24px;
	background-repeat: no-repeat;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.is-style-form-slot .fluentform .ff-el-form-check {
	margin-bottom: 0;
}

/* The options of a radio or checkbox field, 2 px apart as in the design. */
.is-style-form-slot .fluentform .ff-el-input--content:has(> .ff-el-form-check:not(.ff-el-tc)) {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.is-style-form-slot .fluentform .ff-el-form-check label.ff-el-form-check-label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--sablona-ink);
	cursor: pointer;
}

.is-style-form-slot .fluentform .ff-el-form-check-input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--sablona-rust);
}

/*
 * The consent row. Fluent Forms lays it out as a table (checkbox cell, text
 * cell), which ignores the gap; the design has the checkbox and the text side
 * by side, 12 px apart, like the radios.
 */
.is-style-form-slot .fluentform .ff-el-tc {
	display: block;
}

.is-style-form-slot .fluentform .ff-el-tc label.ff_tc_label {
	display: flex;
	align-items: flex-start;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.is-style-form-slot .fluentform .ff-el-tc .ff_tc_checkbox,
.is-style-form-slot .fluentform .ff-el-tc .ff_t_c {
	display: block;
	padding: 0;
}

/* Fluent Forms pushes the checkbox down with an !important 8 px. */
.is-style-form-slot .fluentform .ff-el-tc .ff_tc_checkbox {
	padding-top: 0 !important;
}

.is-style-form-slot .fluentform .ff-el-tc .ff_tc_checkbox {
	flex: none;
}

.is-style-form-slot .fluentform .ff-el-tc .ff-el-form-check-input {
	margin-top: 2px;
}

.is-style-form-slot .fluentform .ff_t_c a {
	color: var(--sablona-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.is-style-form-slot .fluentform .ff-el-tc .ff_t_c::after {
	content: " *";
	color: var(--sablona-rust);
}

/* 8 px on top of the 22 px between fields, which this margin collapses into. */
.is-style-form-slot .fluentform .ff_submit_btn_wrapper {
	margin: 30px 0 0;
}

.is-style-form-slot .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	width: 244px;
	max-width: 100%;
	min-height: 56px;
	padding: 0 36px;
	border: 1.5px solid var(--sablona-primary);
	border-radius: var(--sablona-pill);
	background-color: var(--sablona-primary);
	font-family: var(--sablona-font-body);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--sablona-white);
	opacity: 1;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.is-style-form-slot .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover {
	border-color: var(--sablona-primary-dark);
	background-color: var(--sablona-primary-dark);
}

.is-style-form-slot .fluentform .error,
.is-style-form-slot .fluentform .text-danger {
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--sablona-rust);
}

.is-style-form-slot .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: var(--sablona-rust);
}

.is-style-form-slot .ff-message-success {
	padding: 24px;
	border: 0;
	border-radius: var(--sablona-radius-sm);
	background: var(--sablona-sage-soft);
	box-shadow: none;
	font-weight: 700;
}

@media (max-width: 760px) {
	.is-style-form-slot .fluentform .ff-t-container {
		flex-direction: column;
		gap: 0;
	}

	.is-style-form-slot .fluentform .ff-el-form-check label.ff-el-form-check-label {
		font-size: 0.9375rem;
	}

	.is-style-form-slot .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
		width: 100%;
	}
}

/* ------------------------------------------------------ therapy: topics */

.wp-block-group.topics {
	gap: 32px;
}

:is(.topic-grid, .is-style-list-topic-grid) {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

:is(.topic-grid, .is-style-list-topic-grid) li {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 12px 24px;
	border-radius: var(--sablona-radius-md);
	background: var(--sablona-white);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

:is(.topic-grid, .is-style-list-topic-grid) li::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--sablona-sage-mid);
}

.topics-footer {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
	margin-top: 16px;
}

.topics-footer > p {
	max-width: 720px;
	font-size: clamp(1rem, calc(0.286vw + 0.93125rem), 1.1875rem);
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.coach-topics .topics-footer {
	margin-top: 12px;
}

.coach-topics .topics-footer > p {
	max-width: 760px;
}

.topics-footer .wp-block-buttons {
	flex: none;
}

@media (max-width: 1100px) {
	:is(.topic-grid, .is-style-list-topic-grid) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	:is(.topic-grid, .is-style-list-topic-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topics-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}
}

@media (max-width: 480px) {
	:is(.topic-grid, .is-style-list-topic-grid) {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(.topic-grid, .is-style-list-topic-grid) li {
		min-height: 60px;
		font-size: 1.0625rem;
	}
}

/* ------------------------------------------------- numbered step cards */

.wp-block-group.order-steps {
	gap: 44px;
}

.wp-block-group.coach-process {
	gap: 40px;
}

.steps-intro {
	max-width: 900px;
	margin-inline: 0 auto;
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	counter-reset: step;
}

/*
 * A step card: the number in a ring on the left and the illustration on the
 * right of an 80 px header row, both drawn here — the number from a CSS
 * counter, so duplicating or reordering a card in the editor renumbers it.
 */
.step {
	position: relative;
	gap: 14px;
	padding: 126px 32px 36px;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-sand);
	background-position: right 32px top 32px;
	background-size: 80px 80px;
	background-repeat: no-repeat;
	counter-increment: step;
}

.step::before {
	content: counter(step);
	position: absolute;
	top: 44px;
	left: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 2px solid var(--sablona-ink);
	border-radius: 50%;
	font-family: var(--sablona-font-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
}

.step h3 {
	font-family: var(--sablona-font-body);
	font-size: var(--sablona-h4);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.step p {
	font-size: 1.0625rem;
}

.icon-step-write {
	background-image: url("../decor/step-write.svg");
}

.icon-step-date {
	background-image: url("../decor/step-date.svg");
}

.icon-step-send {
	background-image: url("../decor/step-send.svg");
}

.icon-coach-goal {
	background-image: url("../decor/coach-goal.svg");
}

.icon-coach-support {
	background-image: url("../decor/coach-support.svg");
}

.icon-coach-steps {
	background-image: url("../decor/coach-steps.svg");
}

@media (max-width: 1024px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
}

/* ------------------------------------------------------ therapy: process */

.process-grid {
	flex-direction: row;
	align-items: flex-start;
	gap: 64px;
}

.process-aside {
	flex: 0 0 400px;
	gap: 28px;
}

.process-photo {
	height: 300px;
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
}

/*
 * Two classes: the Site Editor prints core's `.is-layout-flex { align-items:
 * center }` after this file, and it would beat one.
 */
.wp-block-buttons.process-actions {
	flex-direction: column;
	align-items: flex-start;
	margin-top: 8px;
}

.process-cards {
	flex: 1 1 0;
	min-width: 0;
	gap: 16px;
}

.process-card {
	gap: 14px;
	padding: 36px 40px;
	border: 1px solid var(--sablona-line);
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-white);
}

.process-card p {
	font-size: 1.0625rem;
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

@media (max-width: 1024px) {
	.process-grid {
		flex-direction: column;
		align-items: stretch;
	}

	.process-aside {
		flex: none;
	}

	.wp-block-buttons.process-actions {
		flex-direction: row;
		order: 3;
	}
}

@media (max-width: 760px) {
	.process-card {
		padding: 28px 22px;
	}
}

/* --------------------------------------------------- where and how I work */

.where-grid {
	display: grid;
	grid-template-columns: 520px minmax(0, 1fr);
	align-items: stretch;
	gap: 72px;
}

/*
 * The photo shows the whole room, so the slot takes the photo's shape
 * instead of cutting the photo to its own. Not stretched to the row, the
 * figure has no set height, and the photo's 100% heights fall back to its
 * own proportions.
 */
.where-photo {
	align-self: center;
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-photo);
}

.where-text {
	justify-content: center;
	gap: 28px;
	min-width: 0;
}

.where-rows {
	gap: 0;
	border-bottom: 1px solid var(--sablona-line);
}

/*
 * A row: the 56 px illustration on the left, its title and lines on the
 * right. The illustration is the row's background, on its left padding.
 */
.where-row {
	gap: 8px;
	padding: 24px 0 24px 76px;
	border-top: 1px solid var(--sablona-line);
	background: left 24px / 56px 56px no-repeat;
	font-size: 1rem;
	line-height: 1.55;
	min-height: 105px;
}

.where-row h3 {
	font-family: var(--sablona-font-body);
	font-size: var(--sablona-h4);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
}

.where-row :is(.chip, .is-style-text-chip) {
	font-size: 1rem;
}

/*
 * A compact row is one paragraph, centred on its icon by align-content on
 * the block itself. Flex would turn every bold run into a column of its own.
 */
.where-rows.is-compact .where-row {
	align-content: center;
	min-height: 105px;
	background-position: left center;
}

.icon-row-pin {
	background-image: url("../decor/row-pin.svg");
}

.icon-row-online {
	background-image: url("../decor/row-online.svg");
}

.icon-row-people {
	background-image: url("../decor/row-people.svg");
}

.icon-row-globe {
	background-image: url("../decor/row-globe.svg");
}

.icon-row-hotel {
	background-image: url("../decor/row-hotel.svg");
}

.icon-row-reception {
	background-image: url("../decor/row-reception.svg");
}

.icon-row-metro {
	background-image: url("../decor/row-metro.svg");
}

.icon-row-parking {
	background-image: url("../decor/row-parking.svg");
}

@media (max-width: 1100px) {
	.where-grid {
		grid-template-columns: 400px minmax(0, 1fr);
		gap: 48px;
	}

	.where-row {
		padding-left: 58px;
	}
}

@media (max-width: 900px) {
	.where-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.where-photo {
		justify-self: center;
		width: min(100%, 440px);
	}
}

/* A phone gives the text the icon's column. */
@media (max-width: 760px) {
	.where-row,
	.where-rows.is-compact .where-row {
		min-height: 0;
		padding-left: 0;
		background-image: none;
	}
}

/* ------------------------------------------------------------------ pricing */

/*
 * The table, the button, the note and the terms sit 24px apart, the gap
 * between the button and the note too. The heading keeps the 32px every
 * section has under it.
 */
.wp-block-group.pricing {
	gap: 24px;
}

.wp-block-group.pricing > .wp-block-heading {
	margin-bottom: 8px;
}

/*
 * The price list is a table drawn from groups: every row is a grid on the
 * same five tracks, so the columns line up without a <table>. The price per
 * session is the highlighted column. Each cell carries its column's label as
 * well, for screen readers only while the header row is on screen; from
 * 1200px down the header goes, every row stacks into a block of its own and
 * the labels show.
 */
.price-table {
	--sablona-price-col: color-mix(in srgb, var(--sablona-sage-soft) 60%, var(--sablona-white));

	gap: 0;
	padding: 16px 40px 28px;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-white);
}

.price-row {
	display: grid;
	grid-template-columns: minmax(0, 26fr) minmax(0, 23fr) minmax(0, 21fr) minmax(0, 15fr) minmax(0, 15fr);
	gap: 0;
}

.price-row > * {
	justify-content: center;
	padding: 28px 0 28px 24px;
	border-bottom: 1px solid var(--sablona-line);
}

.price-row:last-child > * {
	border-bottom: 0;
}

/* The name and total columns have no title, only the header's rule. */
.price-row-head {
	box-shadow: inset 0 -2px var(--sablona-line);
}

.price-row-head > .price-col {
	padding: 24px 12px 18px;
	border-bottom: 2px solid var(--sablona-line);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	color: var(--sablona-ink-soft);
}

.price-row-head > .price-col-per {
	grid-column-start: 3;
	padding-inline: 20px;
	border-radius: var(--sablona-radius-sm) var(--sablona-radius-sm) 0 0;
	background: var(--sablona-price-col);
	color: var(--sablona-primary-dark);
}

.price-variant {
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: center;
	align-content: center;
	gap: 4px 10px;
	padding-right: 24px;
	padding-left: 0;
}

.price-name {
	font-family: var(--sablona-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.3;
}

.price-unit {
	flex-basis: 100%;
	font-size: 0.9375rem;
	color: var(--sablona-ink-soft);
}

.price-per {
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	align-content: center;
	gap: 4px 12px;
	padding-inline: 20px;
	background: var(--sablona-price-col);
}

.price-row:last-child > .price-per {
	border-radius: 0 0 var(--sablona-radius-sm) var(--sablona-radius-sm);
}

.price-amount {
	font-family: var(--sablona-font-display);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.price-cut,
.price-sum,
.price-term {
	gap: 4px;
}

.price-sum {
	align-items: flex-end;
	padding-inline: 0 28px;
	text-align: right;
}

.price-cut,
.price-term {
	align-items: center;
	padding-inline: 12px;
	text-align: center;
}

.price-cut-amount {
	color: var(--sablona-primary);
	font-size: 1.125rem;
	font-weight: 800;
	white-space: nowrap;
}

/* The name's line height, so the total sits level with the name. */
.price-sum-amount {
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.625rem;
}

.price-term-value {
	font-size: 1.125rem;
}

.price-pay {
	font-size: 0.9375rem;
	color: var(--sablona-ink-soft);
}

.price-none {
	font-size: 1.125rem;
	color: var(--sablona-ink-soft);
}

.price-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.price-note {
	padding: 22px 26px 22px 66px;
	border-radius: var(--sablona-radius-md);
	background: color-mix(in srgb, var(--sablona-sage-mid) 40%, var(--sablona-sage)) url("../decor/info-green.svg") 26px 24px / 24px no-repeat;
	font-size: 1rem;
	line-height: 1.65;
}

.terms {
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
}

.term-card {
	flex: 1 1 0;
	gap: 10px;
	padding: 32px;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-white);
}

.term-card h3 {
	display: flex;
	align-items: center;
	gap: 12px;
}

.term-card h3::before {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	background: center / contain no-repeat;
}

.term-card h3.icon-coin::before {
	background-image: url("../decor/coin.svg");
}

.term-card h3.icon-calendar-rust::before {
	background-image: url("../decor/calendar-rust.svg");
}

.term-card p {
	font-size: 1rem;
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.term-card .term-note {
	margin-top: 6px;
	padding: 14px 18px;
	border-radius: var(--sablona-radius-sm);
	background: var(--sablona-sage-soft);
	font-weight: 700;
	line-height: 1.45;
	text-align: left;
}

/*
 * A stacked row: the name, the price per session on its band, then the total
 * and the other two figures, each line a label on the left and its figure on
 * the right. The single session is a card of its own and the two packages
 * share the next one, so the table hands its white and its padding to the
 * rows.
 */
@media (max-width: 1200px) {
	.price-table {
		--sablona-price-pad: 32px;

		padding: 0;
		border-radius: 0;
		background: none;
	}

	.price-row-head {
		display: none;
	}

	.price-row {
		position: relative;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"variant"
			"per"
			"sum"
			"cut"
			"term";
		gap: 8px 16px;
		padding: 24px var(--sablona-price-pad);
		background: var(--sablona-white);
	}

	.price-row.is-single {
		grid-template-columns: minmax(0, 1fr) fit-content(45%);
		grid-template-areas: "variant sum";
		margin-bottom: 16px;
		border-radius: var(--sablona-radius-lg);
	}

	.price-row.is-single + .price-row {
		border-radius: var(--sablona-radius-lg) var(--sablona-radius-lg) 0 0;
	}

	.price-row:last-child {
		border-radius: 0 0 var(--sablona-radius-lg) var(--sablona-radius-lg);
	}

	.price-row:not(.is-single) + .price-row:not(.is-single)::before {
		content: "";
		position: absolute;
		top: 0;
		inset-inline: var(--sablona-price-pad);
		border-top: 1px solid var(--sablona-line);
	}

	.price-row > * {
		justify-content: flex-start;
		padding: 0;
		border-bottom: 0;
	}

	.price-variant {
		grid-area: variant;
	}

	.price-sum {
		grid-area: sum;
	}

	/* The band reaches out by its padding, so its text lines up with the row's. */
	.price-per,
	.price-row:last-child > .price-per {
		grid-area: per;
		flex-wrap: nowrap;
		justify-content: space-between;
		margin: 8px -14px;
		padding: 12px 14px;
		border-radius: var(--sablona-radius-sm);
	}

	.price-amount {
		font-size: 1.5rem;
	}

	.price-cut {
		grid-area: cut;
	}

	.price-term {
		grid-area: term;
	}

	.price-cut,
	.price-term,
	.price-row:not(.is-single) > .price-sum {
		flex-direction: row;
		justify-content: space-between;
		align-items: baseline;
		text-align: left;
	}

	/* „Celkem placeno předem“ on the left, the amount on the right, all bold. */
	.price-row:not(.is-single) > .price-sum {
		font-weight: 800;
	}

	.price-row:not(.is-single) .price-sum-amount {
		order: 1;
		margin-left: auto;
		font-size: 0.9375rem;
		line-height: inherit;
	}

	/*
	 * The single session's total already is its price per session, so it
	 * shows that alone, set as the packages' price per session.
	 */
	.price-row.is-single > .price-per,
	.price-row.is-single > .price-cut,
	.price-row.is-single > .price-term,
	.price-row.is-single .price-pay {
		display: none;
	}

	.price-row.is-single > .price-sum {
		justify-content: center;
	}

	.price-row.is-single .price-sum-amount {
		font-family: var(--sablona-font-display);
		font-size: 1.5rem;
		letter-spacing: -0.01em;
	}

	/*
	 * Three sizes only: the duration's for every label and the figure beside
	 * it, the total's for the name, and the price above them.
	 * The single session's label stays hidden: beside the name it needs none.
	 */
	.price-name {
		font-size: 1.125rem;
		line-height: 1.625rem;
	}

	.price-cut-amount,
	.price-term-value {
		font-size: 0.9375rem;
		font-weight: 800;
	}

	.price-per > .price-label,
	.price-cut > .price-label,
	.price-term > .price-label,
	.price-row:not(.is-single) > .price-sum > .price-label {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip-path: none;
		white-space: normal;
		font-size: 0.9375rem;
		color: var(--sablona-ink-soft);
	}
}

@media (max-width: 760px) {
	.terms {
		flex-direction: column;
	}

	.price-note {
		padding: 20px 22px 20px 58px;
		background-position: 22px 22px;
	}

	.term-card {
		padding: 28px 24px;
	}
}

/* A phone: narrower cards. */
@media (max-width: 560px) {
	.price-table {
		--sablona-price-pad: 20px;
	}

	.price-row {
		column-gap: 12px;
	}
}

/* ---------------------------------------------------------------------- FAQ */

.wp-block-group.faq {
	flex-direction: row;
	align-items: flex-start;
	gap: 96px;
}

.wp-block-group.faq > * {
	margin: 0;
}

.faq-aside {
	flex: 0 0 340px;
	gap: 40px;
}

.faq-list {
	flex: 1 1 0;
	min-width: 0;
	gap: 12px;
}

/*
 * The questions. Rozbalovací otázka gives a Details block the same look
 * anywhere, and site.js slides it the same way.
 */
.faq-list .wp-block-details,
.wp-block-details.is-style-details-faq {
	padding: 0;
	border: 1px solid var(--sablona-line);
	border-radius: var(--sablona-radius-md);
	background: var(--sablona-white);
}

/* One after another outside the FAQ list, which spaces its own. */
:where(.wp-block-details.is-style-details-faq) + .wp-block-details.is-style-details-faq {
	margin-top: 12px;
}

.faq-list .wp-block-details {
	margin: 0;
}

.faq-list summary,
.wp-block-details.is-style-details-faq > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
	padding: 14px 28px;
	font-size: clamp(1.0625rem, calc(0.286vw + 0.99375rem), 1.25rem);
	font-weight: 700;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.faq-list summary::-webkit-details-marker,
.wp-block-details.is-style-details-faq > summary::-webkit-details-marker {
	display: none;
}

.faq-list summary::after,
.wp-block-details.is-style-details-faq > summary::after {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--sablona-line);
	border-radius: 50%;
	background: url("../decor/plus.svg") center / 22px no-repeat;
}

.faq-list details[open] > summary::after,
.wp-block-details.is-style-details-faq[open] > summary::after {
	background-image: url("../decor/minus.svg");
}

/* site.js slides an answer open and shut; it stays open until the slide ends. */
.faq-list .wp-block-details.is-sliding,
.wp-block-details.is-style-details-faq.is-sliding {
	overflow: clip;
}

.faq-list details.is-closing > summary::after,
.wp-block-details.is-style-details-faq.is-closing > summary::after {
	background-image: url("../decor/plus.svg");
}

.faq-list .wp-block-details > :not(summary),
.wp-block-details.is-style-details-faq > :not(summary) {
	max-width: 860px;
	padding-inline: 28px;
	font-size: 1.0625rem;
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.faq-list .wp-block-details > :last-child,
.wp-block-details.is-style-details-faq > :last-child {
	padding-bottom: 28px;
}

.faq-list .wp-block-details > * + :not(summary),
.wp-block-details.is-style-details-faq > * + :not(summary) {
	margin-top: 16px;
}

.faq-list .wp-block-details > summary + *,
.wp-block-details.is-style-details-faq > summary + * {
	margin-top: 0;
}

.faq-list .faq-term + * {
	margin-top: 6px;
}

.faq-list .wp-block-buttons,
.wp-block-details.is-style-details-faq .wp-block-buttons {
	text-align: left;
}

@media (max-width: 1024px) {
	.wp-block-group.faq {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.faq-aside {
		flex: none;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.faq-aside .illo-faq {
		max-width: 180px;
	}
}

@media (max-width: 760px) {
	.faq-list summary,
	.wp-block-details.is-style-details-faq > summary {
		gap: 16px;
		min-height: 64px;
		padding: 12px 18px;
	}

	.faq-list summary::after,
	.wp-block-details.is-style-details-faq > summary::after {
		width: 36px;
		height: 36px;
		background-size: 18px;
	}

	.faq-list .wp-block-details > :not(summary),
	.wp-block-details.is-style-details-faq > :not(summary) {
		padding-inline: 18px;
		font-size: 1rem;
	}

	.faq-list .wp-block-details > :last-child,
	.wp-block-details.is-style-details-faq > :last-child {
		padding-bottom: 22px;
	}

	.faq-aside .illo-faq {
		display: none;
	}
}

/* ---------------------------------------------------------------- coaching */

.wp-block-group.coach-topics {
	gap: 32px;
}

.coach-topics h2.is-small {
	font-size: var(--sablona-h3);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.topic-card {
	gap: 10px;
	padding: 32px;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-sand);
}

.topic-card h3 {
	font-family: var(--sablona-font-body);
	font-size: var(--sablona-h4);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.topic-card p {
	font-size: 1.0625rem;
}

:is(.quote-box, .is-style-text-quote-box) {
	padding: 36px 44px;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-white);
	box-shadow: inset 0 0 0 1px var(--sablona-line);
	font-family: var(--sablona-font-display);
	font-size: clamp(1.1875rem, calc(0.286vw + 1.11875rem), 1.375rem);
	font-weight: 400;
	line-height: 1.5;
}

.wp-block-group.strengths {
	padding-top: 24px;
}

.strengths-panel {
	flex-direction: row;
	align-items: center;
	gap: 88px;
}

.strengths-text {
	flex: 1 1 0;
	gap: 24px;
}

.strengths-text p,
.why-panel p,
.crossroads-text p,
.values-text p:not(:is(.check-line, .is-style-text-check-line)) {
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.illo-strengths {
	flex: 0 0 400px;
}

/* Right under the strengths panel: one section's padding between the two. */
.wp-block-group.why {
	padding-top: 0;
}

.why-panel {
	gap: 28px;
	padding: clamp(28px, calc(3.429vw + 14.6px), 64px) var(--sablona-panel-pad);
	background: var(--sablona-white);
}

.why-panel p {
	max-width: 920px;
	font-size: clamp(1rem, calc(0.286vw + 0.93125rem), 1.1875rem);
	line-height: 1.75;
}

.why-panel p + p {
	margin-top: -8px;
}

.wp-block-group.crossroads {
	flex-direction: row;
	align-items: flex-start;
	gap: 96px;
}

.wp-block-group.crossroads > * {
	margin: 0;
}

.crossroads-aside {
	flex: 0 0 360px;
	gap: 40px;
}

.crossroads-text {
	flex: 1 1 0;
	min-width: 0;
}

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

	.strengths-panel {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	/*
	 * Stacked, the illustration shrinks to sit beside the heading, as in
	 * „Terapie nebo koučink?“; the paragraphs run under both.
	 */
	.strengths-panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 24px 32px;
	}

	.strengths-text {
		display: contents;
	}

	.strengths-text > :not(h2) {
		grid-column: 1 / -1;
	}

	.illo-strengths {
		grid-row: 1;
		grid-column: 2;
		width: 120px;
	}

	.wp-block-group.crossroads {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.crossroads-aside {
		flex: none;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.crossroads-aside .illo-crossroads {
		max-width: 180px;
	}
}

@media (max-width: 760px) {
	.card-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.topic-card {
		padding: 26px 24px;
	}

	:is(.quote-box, .is-style-text-quote-box) {
		padding: 28px 24px;
	}

	/* Two classes, or the Site Editor's `body .is-layout-flex` shows it. */
	.crossroads-aside .illo-crossroads,
	.wp-block-group.illo-strengths {
		display: none;
	}

	.strengths-panel {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------- about */

.wp-block-group.values {
	flex-direction: row;
	align-items: flex-start;
	gap: 96px;
}

.wp-block-group.values > * {
	margin: 0;
}

.values-aside {
	flex: 0 0 400px;
	gap: 40px;
}

.values-card {
	gap: 14px;
	padding: 36px;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-sand);
}

.values-card p:not(:is(.more-link, .is-style-text-more-link)) {
	font-size: 1.0625rem;
}

.values-text {
	flex: 1 1 0;
	min-width: 0;
	gap: 22px;
}

:is(.check-line, .is-style-text-check-line) {
	position: relative;
	padding: 20px 0 0 38px;
	border-top: 1px solid var(--sablona-line);
	font-weight: 700;
}

:is(.check-line, .is-style-text-check-line)::before {
	content: "";
	position: absolute;
	top: calc(20px + 0.85em - 12px);
	left: 0;
	width: 24px;
	height: 24px;
	background: url("../decor/check-rust.svg") center / contain no-repeat;
}

.wp-block-group.education {
	gap: 24px;
}

.timeline {
	gap: 0;
}

.timeline-row {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	align-items: start;
	gap: 32px;
	padding: 28px 0;
	border-top: 1px solid rgba(29, 43, 34, 0.14);
}

.timeline-years {
	justify-self: start;
	min-width: 110px;
	padding: 8px 16px;
	border-radius: var(--sablona-pill);
	background: var(--sablona-primary);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--sablona-white);
	text-align: center;
	white-space: nowrap;
}

.timeline-body {
	flex: 1 1 0;
	gap: 8px;
}

.timeline-body h3 {
	font-family: var(--sablona-font-body);
	font-size: var(--sablona-h4);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
}

.timeline-body p {
	font-size: 1.0625rem;
	color: var(--sablona-ink-soft);
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

/* The institution, a row of its own under the title. */
.timeline-body .timeline-place {
	margin-top: -4px;
	font-weight: 600;
	text-align: start;
	hyphens: manual;
}

.wp-block-group.experience {
	gap: 40px;
}

.experience > .experience-row,
.experience > .experience-card {
	margin-top: -24px;
}

.experience > h2 + .experience-row {
	margin-top: 0;
}

.experience-row {
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
}

.experience-stack {
	flex: 1 1 0;
	gap: 16px;
}

.experience-card {
	gap: 12px;
	padding: 36px;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-sand);
}

.experience-card.is-wide {
	border: 1.5px solid var(--sablona-line);
}

.experience-card p {
	font-size: 1.0625rem;
	text-align: var(--sablona-para-align);
	hyphens: auto;
}

.experience-photo {
	position: relative;
	flex: 1 1 0;
	min-height: 360px;
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-blush);
}

.experience-photo img {
	position: absolute;
	inset: 0;
}

.wp-block-group.research {
	gap: 40px;
}

.research-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 24px;
}

.research-card {
	gap: 0;
	padding: 40px;
	border: 1px solid var(--sablona-line);
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-white);
}

.research-card h3 {
	margin-bottom: 20px;
}

.research-item {
	gap: 6px;
	padding: 22px 0;
	border-top: 1px solid var(--sablona-line);
}

.research-event {
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sablona-rust);
}

.research-talk {
	font-size: clamp(1rem, calc(0.19vw + 0.95625rem), 1.125rem);
	line-height: 1.5;
}

.research-study {
	font-size: clamp(1rem, calc(0.19vw + 0.95625rem), 1.125rem);
	font-weight: 700;
	line-height: 1.5;
}

.research-authors {
	font-size: 1rem;
	font-style: italic;
	line-height: 1.35;
	color: var(--sablona-ink-soft);
}

.start-panel,
.sent-panel {
	align-items: center;
	gap: 24px;
	text-align: center;
}

.start-panel .illo-sprout,
.sent-panel .illo-sprout {
	margin-inline: auto;
}

.start-text {
	gap: 6px;
	max-width: 760px;
}

.start-facts {
	align-items: center;
	gap: 10px;
}

.start-facts :is(.chip, .is-style-text-chip) {
	padding-block: 0;
	font-size: 1rem;
}

.start-facts .icon-pin {
	color: var(--sablona-ink-hero);
	font-weight: 600;
}

@media (max-width: 1024px) {
	.wp-block-group.values {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.values-aside {
		flex: none;
	}

	.experience-row,
	.experience-row.is-reversed {
		flex-direction: column;
	}

	.experience-row.is-reversed > .experience-photo {
		order: 2;
	}

	.experience-photo {
		flex: none;
		height: 420px;
	}

	.research-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.timeline-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 22px 0;
	}

	.values-card,
	.experience-card,
	.research-card {
		padding: 28px 22px;
	}

	.experience-photo {
		height: 320px;
		min-height: 0;
	}

	.start-facts :is(.chip, .is-style-text-chip) {
		font-size: 0.9375rem;
	}
}

/* ----------------------------------------------------------------- contact */

.wp-block-group.contact-hero {
	gap: 64px;
	padding-top: var(--sablona-hero-top);
}

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

.contact-intro-text {
	flex: 1 1 0;
	gap: 24px;
}

.contact-intro-text .is-style-text-lead {
	max-width: 760px;
}

.contact-intro .illo-contact {
	flex: 0 0 300px;
	margin-right: 24px;
}

.contact-grid {
	grid-template-columns: 380px minmax(0, 1fr);
	gap: 64px;
}

.contact-details {
	padding-top: 8px;
}

.contact-card {
	gap: 10px;
}

.contact-name {
	font-family: var(--sablona-font-display);
	font-size: clamp(1.375rem, calc(0.381vw + 1.28125rem), 1.625rem);
	font-weight: 800;
	line-height: 1.2;
}

.contact-id {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--sablona-ink-soft);
}

.wp-block-group.place {
	gap: 48px;
	padding-top: 24px;
	padding-bottom: calc(clamp(56px, calc(5.333vw + 35.2px), 112px) + 40px);
}

/* The design sets the address 20 px under the heading, not the column's 28. */
.place-address {
	gap: 2px;
	margin-top: -8px;
}

.place-street {
	padding-left: 40px;
	background: url("../decor/pin.svg") left 0.15em / 26px no-repeat;
	font-size: clamp(1.125rem, calc(0.381vw + 1.03125rem), 1.375rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--sablona-ink);
}

.place-floor {
	padding-left: 40px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sablona-moss);
}

.place-address :is(.chip, .is-style-text-chip) {
	margin: 10px 0 0 40px;
}

/* The whole pill is the map link, not just its words. */
.place-address :is(.chip, .is-style-text-chip) a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/*
 * One column: the form comes first, under its „Napište mi“ heading, and the
 * contact details follow. The details group dissolves into the grid, so its
 * heading can go above the form while the card and the review link stay
 * below it. Done in CSS, not markup, so a contact page the installer skips as
 * edited reorders too.
 */
@media (max-width: 1180px) {
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.contact-details {
		display: contents;
	}

	.contact-details h2 {
		order: -2;
	}

	.contact-grid .is-style-form-slot {
		order: -1;
		margin-bottom: 12px;
	}
}

@media (max-width: 760px) {
	.wp-block-group.contact-hero {
		gap: 40px;
	}

	.contact-intro {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.contact-intro .illo-contact {
		display: none;
	}

	.place-street,
	.place-floor {
		padding-left: 34px;
		background-size: 22px;
	}

	.place-address :is(.chip, .is-style-text-chip) {
		margin-left: 34px;
	}
}

/* ------------------------------------------------------ sent + page head */

.wp-block-group.page-hero {
	gap: 16px;
}

/*
 * A page whose content has no h1 of its own (the privacy policy, a page the
 * owner added) gets its title from page.php in this band.
 */
.page-head {
	padding: var(--sablona-hero-top) var(--sablona-gutter) clamp(32px, calc(2.286vw + 23.1px), 56px);
	background: var(--sablona-sage);
}

.page-head .shell {
	max-width: var(--sablona-wide);
	margin-inline: auto;
}

.shell {
	width: 100%;
	max-width: calc(var(--sablona-wide) + 2 * var(--sablona-gutter));
	margin-inline: auto;
	padding-inline: var(--sablona-gutter);
}

.shell-narrow {
	max-width: calc(860px + 2 * var(--sablona-gutter));
}

.section-narrow {
	padding-block: var(--sablona-section);
}

.eyebrow {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sablona-ink-soft);
}

.lead {
	font-size: var(--sablona-lead);
}

.error-404 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding-bottom: calc(var(--sablona-section) + 40px);
}

/*
 * Loose content: the privacy policy, a page the owner builds from the
 * unlocked patterns, a post body. Text keeps its measure and its rhythm.
 * .subnav-scope is a level of the page too: its sections sit inside it.
 * The editor canvas has neither wrapper, so its root stands in for
 * .page-content, and in a post for .post-content too, at the same weight:
 * the canvas shows a post and a page's loose blocks as the site does.
 */
.prose > *,
:is(.page-content, .subnav-scope, :where(.editor-styles-wrapper) > .is-root-container) > :where(p, ul, ol, h2, h3, h4, blockquote, .wp-block-image, .wp-block-buttons, .wp-block-columns) {
	max-width: 860px;
	margin-inline: auto;
}

.prose :where(h2) {
	margin-top: 48px;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.prose :where(h3) {
	margin-top: 32px;
}

.prose :where(p, ul, ol) {
	margin-top: 16px;
}

.prose :where(h1 + *, h2 + *, h3 + *) {
	margin-top: 16px;
}

.prose > :first-child {
	margin-top: 0;
}

:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) > .prose:last-child,
:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) > .wp-block-group.alignfull:not(.section):last-child {
	padding-bottom: calc(var(--sablona-section) + 40px);
}

/* The free patterns: plain full-width bands with the page gutter. */
:is(.page-content, .subnav-scope, :where(.editor-styles-wrapper) > .is-root-container) > .wp-block-group.alignfull:not(.section):not(.subnav) {
	padding-inline: var(--sablona-gutter);
}

:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) .wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
}

:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) .wp-block-column {
	flex: 1 1 320px;
	min-width: 0;
}

:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) .wp-block-column .photo {
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
}

/* -------------------------------------------------------------- articles */

.post-hero {
	gap: 24px;
	padding: clamp(32px, calc(2.286vw + 23.1px), 56px) var(--sablona-gutter) clamp(48px, calc(2.286vw + 39.1px), 72px);
	background: var(--sablona-sage);
}

.post-hero-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: var(--sablona-wide);
	margin-inline: auto;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--sablona-ink-soft);
}

.breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.breadcrumb [aria-current] {
	color: var(--sablona-ink);
}

.post-title {
	max-width: 1000px;
	color: var(--sablona-ink-hero);
}

.post-lead {
	max-width: 900px;
	font-size: var(--sablona-lead);
	line-height: 1.75;
}

.post-lead p {
	margin: 0;
}

.post-reading {
	padding-left: 26px;
	background: url("../decor/clock.svg") left center / 18px no-repeat;
	font-size: 1rem;
	font-weight: 700;
	color: var(--sablona-ink-soft);
}

.post-body {
	padding: clamp(48px, calc(3.81vw + 33.1px), 88px) var(--sablona-gutter);
}

.post-body > * {
	max-width: var(--sablona-wide);
	margin-inline: auto;
}

.post-thumb {
	margin-bottom: 48px;
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
}

.post-thumb img {
	display: block;
	width: 100%;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) > * + * {
	margin-top: 20px;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) > :where(h2) {
	margin-top: 56px;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) > :where(h3) {
	margin-top: 40px;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) > :where(h2, h3) + * {
	margin-top: 20px;
}

/*
 * The element rules style plain blocks only, and none inside a section or the
 * on-page subnav. A list is a List block's, not the list a Query Loop or
 * another core block renders. A paragraph or list with a style of its own
 * (Štítek, Mřížka témat…) keeps that style's look in a post, whichever order
 * a host prints core's style CSS and this file in. A section put into a post
 * keeps its own look too: its classes carry no more weight than these rules,
 * so these rules stay out of it.
 */
:is(.post-content, :where(.post-type-post) > .is-root-container) :where(p:not([class*="is-style-"], .section *, .subnav *), :is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *) > li) {
	font-size: clamp(1.0625rem, calc(0.19vw + 1.01875rem), 1.1875rem);
	line-height: 1.75;
}

/* A plain list's bullets are the design's dots, on a page as in a post. */
:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) :where(ul:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	list-style: none;
}

:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) :where(ul:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) > li {
	position: relative;
	padding-left: 24px;
}

:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) :where(ul:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) > li::before {
	content: "";
	position: absolute;
	top: 0.8em;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sablona-sage-mid);
	transform: translateY(-50%);
}

/* A numbered list reads as the design's numbered steps. */
:is(.post-content, :where(.post-type-post) > .is-root-container) :where(ol:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
	list-style: none;
	counter-reset: steps;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) :where(ol:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) > li {
	position: relative;
	min-height: 84px;
	padding: 22px 24px 22px 82px;
	border: 1px solid var(--sablona-line);
	border-radius: 24px;
	background: var(--sablona-white);
	font-size: 1.0625rem;
	counter-increment: steps;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) :where(ol:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) > li::before {
	content: counter(steps);
	position: absolute;
	top: 22px;
	left: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--sablona-ink);
	border-radius: 50%;
	font-family: var(--sablona-font-display);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) :where(ol:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) > li strong:first-child {
	display: block;
	margin-bottom: 6px;
	font-size: 1.1875rem;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-quote:where(:not(.section *, .subnav *)) {
	margin-block: 56px;
	padding: 8px 0 8px 28px;
	border-left: 4px solid var(--sablona-apricot);
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-quote:where(:not(.section *, .subnav *)) p {
	font-family: var(--sablona-font-hand);
	font-size: clamp(1.875rem, calc(0.762vw + 1.6875rem), 2.375rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--sablona-primary-dark);
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-quote:where(:not(.section *, .subnav *)) cite {
	display: block;
	margin-top: 10px;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 700;
	color: var(--sablona-ink-soft);
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-quote:where(:not(.section *, .subnav *)) cite::before {
	content: "— ";
}

/*
 * A coloured group with no style of its own is a callout card, on a page as in
 * a post; two in columns are the comparison. A styled group, such as Karta
 * s obrázkem, keeps its style's look. On a page a coloured free band stays
 * a band, and a section is neither.
 */
:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-group.has-background:not([class*="is-style-"], .section, .section *, .subnav *),
:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) .wp-block-group.has-background:not([class*="is-style-"], .alignfull, .section, .section *, .subnav *) {
	padding: 28px 32px;
	border-radius: var(--sablona-radius-lg);
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-group.has-background:not([class*="is-style-"], .section, .section *, .subnav *) > * + *,
:is(.page-content, :where(.editor-styles-wrapper) > .is-root-container) .wp-block-group.has-background:not([class*="is-style-"], .alignfull, .section, .section *, .subnav *) > * + * {
	margin-top: 10px;
}

/* A free pattern's band needs no gutter of its own: the post body has one. */
:is(.post-content, :where(.post-type-post) > .is-root-container) > .wp-block-group.alignfull:not(.section):not(.subnav) {
	padding-inline: 0;
}

/*
 * Nor does a section in a post. A coloured one cannot reach the screen's edges
 * from inside the post body, so it is a rounded panel there.
 */
:is(.post-content, :where(.post-type-post) > .is-root-container) > .wp-block-group.section {
	padding-inline: 0;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) > .wp-block-group.section.has-background {
	padding: var(--sablona-panel-pad);
	overflow: hidden;
	border-radius: var(--sablona-radius-xl);
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-columns:where(:not(.section *, .subnav *)) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-column:where(:not(.section *, .subnav *)) > .wp-block-group.has-background {
	height: 100%;
	padding: 28px;
	border-radius: 24px;
}

:is(.post-content, :where(.post-type-post) > .is-root-container) .wp-block-image:where(:not(.section *, .subnav *)) {
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
}

:is(.post-content, :where(.post-type-post) > .is-root-container) a:where(:not(.section *, .subnav *)) {
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 56px;
	padding: 16px 0 0;
	border-top: 1px solid var(--sablona-line);
	list-style: none;
}

.post-tags a {
	display: inline-flex;
	padding: 8px 16px;
	border-radius: var(--sablona-pill);
	background: var(--sablona-white);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--sablona-ink-hero);
	text-decoration: none;
}

.post-cta {
	padding: 0 var(--sablona-gutter) var(--sablona-section);
}

.post-cta.is-last {
	padding-bottom: calc(var(--sablona-section) + 40px);
}

.post-cta-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: var(--sablona-wide);
	margin-inline: auto;
	padding: clamp(32px, calc(3.048vw + 20.1px), 64px) var(--sablona-panel-pad);
	overflow: hidden;
	border-radius: var(--sablona-radius-xl);
	background: var(--sablona-sage-soft) url("../decor/wave-sage.svg") center bottom / 100% 100% no-repeat;
}

.post-cta-panel h2 {
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.post-cta-panel p {
	max-width: 760px;
	font-size: clamp(1.0625rem, calc(0.286vw + 0.99375rem), 1.25rem);
	line-height: 1.75;
}

.post-cta-panel .wp-block-buttons .wp-element-button.is-ghost {
	border-color: var(--sablona-line);
	background: var(--sablona-white);
	color: var(--sablona-ink);
}

.post-cta-panel .wp-block-buttons .wp-element-button.is-ghost:hover {
	border-color: var(--sablona-primary);
}

.post-cta-panel .arrow::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../decor/arrow.svg") center / contain no-repeat;
	mask: url("../decor/arrow.svg") center / contain no-repeat;
}

.post-related {
	display: flex;
	flex-direction: column;
	gap: 36px;
	max-width: calc(var(--sablona-wide) + 2 * var(--sablona-gutter));
	margin-inline: auto;
	padding: 0 var(--sablona-gutter) calc(var(--sablona-section) + 40px);
}

.post-related h2 {
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.post-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 16px 28px;
	border: 1px solid var(--sablona-line);
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-white);
}

.post-card-thumb {
	position: relative;
	height: 200px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--sablona-sand);
}

.post-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-thumb.is-empty::before {
	content: "";
	position: absolute;
	bottom: -40px;
	left: 50%;
	width: 180px;
	height: 150px;
	margin-left: -90px;
	border-radius: 90px 90px 0 0;
	background: var(--sablona-apricot);
}

.post-card-thumb.is-empty::after {
	content: "";
	position: absolute;
	top: 28px;
	right: 28px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sablona-white);
	opacity: 0.8;
}

.post-card:nth-child(3n + 2) .post-card-thumb.is-empty {
	background: var(--sablona-sage);
}

.post-card:nth-child(3n + 2) .post-card-thumb.is-empty::before {
	background: var(--sablona-sage-mid);
}

.post-card:nth-child(3n + 3) .post-card-thumb.is-empty {
	background: var(--sablona-sage-soft);
}

.post-card:nth-child(3n + 3) .post-card-thumb.is-empty::before {
	background: var(--sablona-sage-grey);
}

.post-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 0 12px;
}

.post-card-category {
	padding: 8px 16px;
	border-radius: var(--sablona-pill);
	background: var(--sablona-base);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--sablona-ink-hero);
}

.post-card-title {
	font-family: var(--sablona-font-body);
	font-size: var(--sablona-h4);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.post-card-title a {
	color: var(--sablona-ink);
	text-decoration: none;
}

/* The whole card is the title's link, stretched over it. */
.post-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.post-card:hover {
	border-color: var(--sablona-line-strong);
}

.post-card:focus-within {
	outline: 2px solid var(--sablona-rust);
	outline-offset: 3px;
}

.post-card-title a:focus-visible {
	outline: none;
}

.post-card-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--sablona-primary-dark);
}

.post-card-more::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../decor/arrow.svg") center / contain no-repeat;
	mask: url("../decor/arrow.svg") center / contain no-repeat;
}

/* The blog index and archives reuse the cards. */
.post-list-wrap {
	padding-block: var(--sablona-section) calc(var(--sablona-section) + 40px);
}

.post-list-wrap .post-cards {
	margin-bottom: 40px;
}

.pagination .nav-links,
.wp-block-query .wp-block-query-pagination,
.wp-block-query .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.wp-block-query .wp-block-query-pagination {
	margin-top: 40px;
}

.pagination .page-numbers,
.wp-block-query .wp-block-query-pagination .page-numbers,
.wp-block-query .wp-block-query-pagination > :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--sablona-pill);
	background: var(--sablona-white);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current,
.wp-block-query .wp-block-query-pagination .page-numbers.current {
	background: var(--sablona-sage);
}

/*
 * A Query Loop block lists the same cards, on any page or post. Its grid view
 * fits as many columns as the width takes, three at the content width; its
 * list view is one column at the text measure. Core's grid layout CSS is off,
 * so the column count set in the editor does not apply.
 */
.wp-block-query {
	max-width: var(--sablona-wide);
	margin-inline: auto;
}

/* Loose on a page, the loop is a band of its own with the page gutter. */
:is(.page-content, .subnav-scope, :where(.editor-styles-wrapper) > .is-root-container):not(.post-content, :where(.post-type-post) > .is-root-container) > .wp-block-query {
	max-width: calc(var(--sablona-wide) + 2 * var(--sablona-gutter));
	padding: var(--sablona-section) var(--sablona-gutter);
}

:is(.page-content, .subnav-scope, :where(.editor-styles-wrapper) > .is-root-container):not(.post-content, :where(.post-type-post) > .is-root-container) > .wp-block-query:last-child {
	padding-bottom: calc(var(--sablona-section) + 40px);
}

.wp-block-query .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-query .wp-block-post-template:not(.is-layout-grid) {
	grid-template-columns: minmax(0, 1fr);
}

.wp-block-query .wp-block-post-template:not(.is-layout-grid),
.wp-block-query .wp-block-post-template:not(.is-layout-grid) ~ .wp-block-query-pagination {
	max-width: 860px;
	margin-inline: auto;
}

.wp-block-post-template > .wp-block-post {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 16px 16px 28px;
	border: 1px solid var(--sablona-line);
	border-radius: var(--sablona-radius-lg);
	background: var(--sablona-white);
	font-size: 1rem;
	line-height: 1.6;
}

.wp-block-post-template > .wp-block-post > * {
	margin: 0;
	padding-inline: 12px;
}

.wp-block-post-template > .wp-block-post:hover {
	border-color: var(--sablona-line-strong);
}

.wp-block-post-template > .wp-block-post:focus-within {
	outline: 2px solid var(--sablona-rust);
	outline-offset: 3px;
}

.wp-block-post > .wp-block-post-featured-image {
	height: 200px;
	margin-bottom: 8px;
	padding: 0;
	overflow: hidden;
	border-radius: 20px;
	background: var(--sablona-sand);
}

.wp-block-post > .wp-block-post-featured-image :is(a, img) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-post > .wp-block-post-title {
	font-family: var(--sablona-font-body);
	font-size: var(--sablona-h4);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.wp-block-post > .wp-block-post-title a {
	color: var(--sablona-ink);
	text-decoration: none;
}

/* The whole card is the title's link, stretched over it, as on a news card. */
.wp-block-post > .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wp-block-post > .wp-block-post-title a:focus-visible {
	outline: none;
}

/* A category is the card's chip, and stays a link of its own above the card's. */
.wp-block-post > .wp-block-post-terms {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

.wp-block-post > .wp-block-post-terms a {
	padding: 8px 16px;
	border-radius: var(--sablona-pill);
	background: var(--sablona-base);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--sablona-ink-hero);
	text-decoration: none;
}

.wp-block-post > :is(.wp-block-post-date, .wp-block-post-author-name) {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--sablona-ink-soft);
}

.wp-block-post > :is(.wp-block-post-date, .wp-block-post-author-name) a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post > .wp-block-post-excerpt p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--sablona-ink-soft);
}

.wp-block-post :is(.wp-block-read-more, .wp-block-post-excerpt__more-link) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--sablona-primary-dark);
	text-decoration: none;
}

.wp-block-post :is(.wp-block-read-more, .wp-block-post-excerpt__more-link)::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../decor/arrow.svg") center / contain no-repeat;
	mask: url("../decor/arrow.svg") center / contain no-repeat;
}

@media (max-width: 1024px) {
	.post-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	:is(.post-content, :where(.post-type-post) > .is-root-container) > .wp-block-group.section.has-background {
		border-radius: var(--sablona-radius-lg);
	}
}

@media (max-width: 680px) {
	.post-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	:is(.post-content, :where(.post-type-post) > .is-root-container) :where(ol:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) > li {
		padding: 72px 20px 20px;
	}

	:is(.post-content, :where(.post-type-post) > .is-root-container) :where(ol:is(.wp-block-list, :not([class])):not([class*="is-style-"], .section *, .subnav *)) > li::before {
		top: 20px;
		left: 20px;
	}
}

/* ---------------------------------------------- picture card and its steps */

/*
 * Four block styles that build the card of the „Karta s obrázkem a postupem“
 * pattern, each usable on its own on any page or post. The card's columns
 * carry a class more than the article's and the free pages' columns rules,
 * so a post or page does not restyle them.
 */

/* Karta s obrázkem: a coloured panel, a picture beside its text. Sage unless
   the owner picks a colour. */
.wp-block-group.is-style-group-picture-card {
	max-width: var(--sablona-wide);
	margin-inline: auto;
	padding: var(--sablona-panel-pad);
	border-radius: var(--sablona-radius-xl);
	background-color: var(--sablona-sage);
}

.wp-block-group.is-style-group-picture-card > .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: clamp(24px, calc(3.81vw + 9.1px), 64px);
}

.wp-block-group.is-style-group-picture-card > .wp-block-columns > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

/* Centred against each other, unless the owner aligns a column herself. */
:where(.is-style-group-picture-card > .wp-block-columns) > .wp-block-column {
	align-self: center;
}

.wp-block-group.is-style-group-picture-card .wp-block-image {
	overflow: hidden;
	border-radius: var(--sablona-radius-lg);
}

.wp-block-group.is-style-group-picture-card .wp-block-image img {
	display: block;
	width: 100%;
}

/* Řada vedle sebe: its blocks side by side, wrapping, such as two chips. */
.wp-block-group.is-style-group-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Postup s poznámkami: numbered lines, not the article's step cards. */
.wp-block-list.is-style-list-steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
	list-style: none;
	counter-reset: steps;
}

.wp-block-list.is-style-list-steps > li {
	position: relative;
	min-height: 36px;
	padding: 4px 0 0 52px;
	font-size: 1.125rem;
	line-height: 1.6;
	counter-increment: steps;
}

.wp-block-list.is-style-list-steps > li::before {
	content: counter(steps);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--sablona-ink);
	border-radius: 50%;
	font-family: var(--sablona-font-display);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1;
}

/*
 * An italic phrase ending a step is its hand-written note, on its own line.
 * In the editor the step's text sits in a text box of its own.
 */
.wp-block-list.is-style-list-steps > li > em:last-child,
.wp-block-list.is-style-list-steps > li > :where(.rich-text) > em:last-child {
	display: block;
	margin-top: 2px;
	font-family: var(--sablona-font-hand);
	font-size: 1.625rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.15;
	color: var(--sablona-primary-dark);
}

/* Ručně psaná poznámka: a hand-written line; after the steps, their tip. */
p.is-style-text-hand-note {
	font-family: var(--sablona-font-hand);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.15;
	color: var(--sablona-accent);
}

.wp-block-list.is-style-list-steps + p.is-style-text-hand-note {
	padding-top: 16px;
	border-top: 1px solid color-mix(in srgb, var(--sablona-ink) 12%, transparent);
}

@media (max-width: 760px) {
	.wp-block-group.is-style-group-picture-card {
		border-radius: var(--sablona-radius-lg);
	}
}

/* ------------------------------------------------------------------ footer */

/*
 * The footer's rounded top overlaps the last section by 40 px; every page's
 * last section carries 40 px of extra bottom padding for it.
 */
.site-footer {
	position: relative;
	z-index: 1;
	margin-top: -40px;
	padding: 88px var(--sablona-gutter) 40px;
	border-radius: var(--sablona-radius-xl) var(--sablona-radius-xl) 0 0;
	background: var(--sablona-primary);
	color: var(--sablona-white);
}

/* The site's rust focus ring all but vanishes on the olive footer (1.07:1). */
.site-footer :focus-visible {
	outline-color: var(--sablona-white);
}

.footer-grid,
.footer-legal {
	max-width: var(--sablona-wide);
	margin-inline: auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 0.6fr;
	gap: 64px;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-brand {
	gap: 24px;
}

.footer-name {
	font-family: var(--sablona-font-display);
	font-size: clamp(1.625rem, calc(0.381vw + 1.53125rem), 1.875rem);
	font-weight: 800;
	line-height: 1.1;
}

.footer-role {
	margin-top: -14px;
	font-size: 1rem;
	line-height: 1.35;
	color: var(--sablona-footer-text);
}

.footer-invite {
	max-width: 360px;
	font-size: 1rem;
	line-height: 1.7;
}

.footer-invite a {
	font-weight: 700;
	color: var(--sablona-white);
}

.site-footer .footer-button {
	border-color: var(--sablona-line);
	background: var(--sablona-white);
	color: var(--sablona-ink);
}

.site-footer .footer-button:hover {
	border-color: var(--sablona-sage);
	background: var(--sablona-sage);
	color: var(--sablona-ink);
}

.footer-heading {
	font-family: var(--sablona-font-body);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sablona-footer-text);
}

.footer-facts {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: 36px;
	background: left top / 22px no-repeat;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--sablona-footer-text);
}

.footer-fact strong {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sablona-white);
}

.footer-fact-pin {
	background-image: url("../decor/footer-pin.svg");
}

.footer-fact-online {
	background-image: url("../decor/footer-online.svg");
}

.footer-fact-languages {
	background-image: url("../decor/footer-languages.svg");
}

.footer-nav {
	gap: 6px;
}

.footer-nav .footer-heading {
	margin-bottom: 0;
}

.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li {
	display: flex;
}

.footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--sablona-white);
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}

.footer-legal {
	margin-top: 64px;
	padding-top: 28px;
	border-top: 1px solid rgba(250, 246, 239, 0.22);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--sablona-footer-text);
}

.footer-legal a {
	color: var(--sablona-white);
}

/* „Nastavení cookies“ opens the consent banner, so it is a button set as the band's links. */
.footer-consent {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--sablona-white);
	text-decoration: underline;
	cursor: pointer;
}

.footer-sep {
	margin-inline: 0.25em;
}

@media (max-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.site-footer {
		margin-top: -28px;
		padding-top: 56px;
		border-radius: var(--sablona-radius-lg) var(--sablona-radius-lg) 0 0;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.footer-menu a {
		min-height: 40px;
	}

	.footer-legal {
		margin-top: 40px;
	}
}

/* --------------------------------------------------------- editor canvas */

/*
 * The editor has no header or footer and no sticky context, and locked
 * sections are edited in place, so a page's canvas only needs the page ground.
 * A post's canvas is laid out as single.php lays out the post: the title on
 * the hero's sage, the body in its column. The breadcrumb, the lead and the
 * reading time are the template's, not the post's, and stay out of it.
 */
.editor-styles-wrapper {
	background: var(--sablona-base);
	font-family: var(--sablona-font-body);
}

.editor-visual-editor__post-title-wrapper {
	padding-inline: var(--sablona-gutter);
}

/* The editor sets the title's 4rem top margin inline. */
.post-type-post > .editor-visual-editor__post-title-wrapper {
	margin: 0 !important;
	padding: clamp(32px, calc(2.286vw + 23.1px), 56px) max(var(--sablona-gutter), (100% - var(--sablona-wide)) / 2) clamp(48px, calc(2.286vw + 39.1px), 72px);
	background: var(--sablona-sage);
}

.post-type-post > .editor-visual-editor__post-title-wrapper .wp-block-post-title {
	max-width: 1000px;
	margin: 0;
	color: var(--sablona-ink-hero);
}

:where(.post-type-post) > .is-root-container {
	max-width: calc(var(--sablona-wide) + 2 * var(--sablona-gutter));
	margin-inline: auto;
	padding: clamp(48px, calc(3.81vw + 33.1px), 88px) var(--sablona-gutter);
}

.editor-styles-wrapper .wp-block-group.subnav {
	position: relative;
	top: 0;
}

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
