/**
 * Kontur - component styles.
 *
 * Design tokens come from theme.json. This file only styles the block style
 * variations and the pattern helper classes, so it is safe to load in both the
 * editor and the front end.
 *
 * 1.  Tokens & helpers
 * 2.  Block style variations
 * 3.  Header & navigation
 * 4.  Hero & decorative bands
 * 5.  Mockups: meters, charts, threads, badges
 * 6.  Process steps & numbered lists
 * 7.  Statistics
 * 8.  Forms
 * 9.  Footer
 * 10. Motion & reveal
 */

/* ------------------------------------------------------------------ *
 * 1. Tokens & helpers
 * ------------------------------------------------------------------ */

:root {
	/*
	 * Derived from the palette instead of fixed greys, so every color variation
	 * brings matching tones: a warm palette gets warm hairlines, a cool one cool.
	 */
	--kontur-track: color-mix(in srgb, var(--wp--preset--color--border) 45%, var(--wp--preset--color--surface));
	--kontur-hairline: color-mix(in srgb, var(--wp--preset--color--border) 70%, var(--wp--preset--color--base));
	--kontur-hatch: color-mix(in srgb, var(--wp--preset--color--border) 35%, var(--wp--preset--color--surface));
	--kontur-radius: 6px;
	--kontur-radius-sm: 4px;
	--kontur-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/*
 * A reading-width limit on a block sitting directly in a constrained layout
 * throws it out of line: core centers every child, so a box narrower than the
 * content width drifts to the middle while the heading above stays left.
 *
 * Pinning the margin to zero would overshoot in the other direction, because
 * the container is the full-bleed section, not the text column. The offset the
 * siblings get is therefore recreated here - half the difference between the
 * container and the content width, and never less than zero, which is what a
 * block inside a column needs. Blocks centered on purpose keep their alignment.
 */
.kontur-measure {
	max-width: 62ch;
}

.kontur-measure:not(.has-text-align-center):not(.has-text-align-right),
p.is-style-statement:not(.has-text-align-center):not(.has-text-align-right) {
	margin-inline-start: max(0px, calc((100% - var(--wp--style--global--content-size, 1140px)) / 2)) !important;
	margin-inline-end: auto !important;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-wrap: pretty;
}

::selection {
	background: var(--wp--preset--color--tint);
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input, textarea, select):focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: var(--kontur-radius-sm);
}

/* ------------------------------------------------------------------ *
 * 2. Block style variations
 * ------------------------------------------------------------------ */

.wp-block-group.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius);
	padding: clamp(28px, 3.5vw, 44px);
	transition: transform 0.25s var(--kontur-ease), box-shadow 0.25s var(--kontur-ease);
}

.wp-block-group.is-style-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--soft);
}

.wp-block-group.is-style-panel {
	background: color-mix(in srgb, var(--wp--preset--color--surface) 45%, var(--wp--preset--color--base));
	border: 1px solid var(--kontur-hairline);
	border-radius: var(--kontur-radius-sm);
	padding: 18px;
}

.wp-block-group.is-style-framed,
.wp-block-image.is-style-framed img {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius);
	background: var(--wp--preset--color--base);
}

.wp-block-group.is-style-framed {
	padding: clamp(20px, 2.4vw, 28px);
	box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-columns.is-style-divided {
	border-top: 1px solid var(--wp--preset--color--border);
	gap: 0 clamp(40px, 6vw, 72px);
}

.wp-block-columns.is-style-divided > .wp-block-column > * {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 30px 0;
	margin-block: 0;
}

/*
 * The kicker is registered for paragraphs, but the theme also puts it on
 * dates, category lists and comment dates, which render as divs. They get the
 * same small capitals; a category link keeps the kicker color instead of the
 * link color.
 */
p.is-style-kicker,
.wp-block-post-date.is-style-kicker,
.wp-block-post-terms.is-style-kicker,
.wp-block-comment-date.is-style-kicker {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wp-block-post-terms.is-style-kicker a,
.wp-block-post-date.is-style-kicker a,
.wp-block-comment-date.is-style-kicker a {
	color: inherit;
	text-decoration: none;
}

p.is-style-lead,
.wp-block-term-description.is-style-lead {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.75;
}

p.is-style-statement {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.1875rem, 2vw, 1.5rem);
	font-weight: 500;
	line-height: 1.55;
	max-width: 46ch;
}

.is-style-underlined {
	display: inline-block;
	background: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) left 92% / 100% 3px no-repeat;
	padding-bottom: 4px;
}

/*
 * The centered rule is a small box that the constrained layout centers for us.
 */
.wp-block-separator.is-style-rule {
	background: var(--wp--preset--color--primary);
	border: 0;
	float: none;
	height: var(--wp--custom--rule--height, 3px);
	width: var(--wp--custom--rule--width, 48px);
	max-width: var(--wp--custom--rule--width, 48px);
	margin-inline: auto;
	opacity: 1;
}

/*
 * The left-aligned rule works the other way round: the element keeps the full
 * width of the text column and only paints a short bar at its left edge.
 *
 * Shrinking the element instead would pin it to the left edge of its *group*,
 * and a group is often wider than the text inside it - a heading limited to a
 * 680px column would then start well to the right of the rule. Letting the
 * core layout size and center the element the same way it sizes the heading
 * keeps the two flush in every container.
 *
 * The two :not() clauses only exist to outweigh the core rule that gives every
 * separator a width of 100px.
 */
.wp-block-separator.is-style-rule-left:not(.is-style-wide):not(.is-style-dots) {
	background-color: transparent;
	background-image: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary));
	background-position: left center;
	background-repeat: no-repeat;
	background-size: var(--wp--custom--rule--width, 48px) var(--wp--custom--rule--height, 3px);
	border: 0;
	float: none;
	height: var(--wp--custom--rule--height, 3px);
	opacity: 1;
	width: 100%;
}

.wp-block-list.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-checklist li {
	padding-left: 32px;
	position: relative;
	margin-bottom: 12px;
}

.wp-block-list.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 16px;
	height: 9px;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg);
}

.wp-block-button.is-style-arrow .wp-block-button__link {
	background: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) left bottom / 0% 2px no-repeat;
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--heading);
	padding: 0 0 4px;
	transition: background-size 0.25s var(--kontur-ease), color 0.15s;
}

.wp-block-button.is-style-arrow .wp-block-button__link:hover,
.wp-block-button.is-style-arrow .wp-block-button__link:focus {
	background-size: 100% 2px;
	color: var(--wp--preset--color--primary-light);
	text-decoration: none;
}

.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: " \2192";
	white-space: nowrap;
}

/* Buttons placed on the brand gradient / dark surfaces. */
.has-brand-gradient-background .wp-block-button__link,
.has-primary-dark-background-color .wp-block-button__link {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}

.has-brand-gradient-background .wp-block-button__link:hover,
.has-primary-dark-background-color .wp-block-button__link:hover {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
}

.has-brand-gradient-background .is-style-arrow .wp-block-button__link,
.has-primary-dark-background-color .is-style-arrow .wp-block-button__link {
	background: linear-gradient(#ffffff, #ffffff) left bottom / 0% 2px no-repeat;
	color: var(--wp--preset--color--base);
}

.has-brand-gradient-background .is-style-arrow .wp-block-button__link:hover,
.has-primary-dark-background-color .is-style-arrow .wp-block-button__link:hover {
	background-size: 100% 2px;
	color: var(--wp--preset--color--base);
}

/* ------------------------------------------------------------------ *
 * 3. Header & navigation
 * ------------------------------------------------------------------ */

.kontur-header {
	/*
	 * The navigation block spaces every menu item equally; this must match
	 * the block gap set on the navigation in the header template part.
	 * The pair gap is the tighter spacing wanted between the two buttons.
	 */
	--kontur-nav-gap: 32px;
	--kontur-cta-pair-gap: 10px;
	transition: box-shadow 0.3s ease;
}

/*
 * A header set to Position: Sticky in the block settings stays at the top
 * while the page scrolls. WordPress applies that setting to the group inside
 * the template part, but it also wraps the template part in an element of its
 * own, exactly as tall as the header - and a sticky element can only move
 * inside its parent. So the wrapper is the one that sticks, and only while the
 * header block asks for it. With the admin bar showing it sits just below it;
 * on narrow screens the admin bar scrolls away, so it goes to the very top.
 */
.wp-site-blocks > .wp-block-template-part:has(> .kontur-header.is-position-sticky) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
}

@media (max-width: 600px) {
	.wp-site-blocks > .wp-block-template-part:has(> .kontur-header.is-position-sticky) {
		top: 0;
	}
}

.kontur-header.is-scrolled {
	box-shadow: var(--wp--preset--shadow--header);
}

.kontur-header .wp-block-navigation .wp-block-navigation-item__content {
	background: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) left bottom / 0% 2px no-repeat;
	padding-bottom: 3px;
	transition: background-size 0.25s var(--kontur-ease);
}

.kontur-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.kontur-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	background-size: 100% 2px;
	color: var(--wp--preset--color--heading);
	text-decoration: none;
}

.kontur-header .wp-block-navigation .wp-block-navigation-submenu__toggle + .wp-block-navigation__submicon-container,
.kontur-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius);
	box-shadow: 0 12px 32px rgba(33, 33, 33, 0.08);
	padding: 6px;
	min-width: 250px;
}

.kontur-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	background: none;
	border-radius: var(--kontur-radius-sm);
	padding: 11px 14px;
}

.kontur-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary-light);
}

/* ------------------------------------------------------------------ *
 * 4. Hero & decorative bands
 * ------------------------------------------------------------------ */

.kontur-band {
	position: relative;
	overflow: hidden;
}

.kontur-band::before {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 38%;
	background: var(--wp--preset--color--tint);
	opacity: 0.55;
	pointer-events: none;
}

.kontur-band > * {
	position: relative;
}

@media (max-width: 781px) {
	.kontur-band::before {
		display: none;
	}
}

.kontur-float {
	animation: kontur-float 6s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------------ *
 * 5. Mockups: meters, charts, threads, badges
 * ------------------------------------------------------------------ */

.kontur-mock {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 28px;
	max-width: 440px;
	margin-inline: auto;
}

.kontur-mock__head {
	align-items: baseline;
	border-bottom: 1px solid var(--kontur-hairline);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding-bottom: 14px;
}

.kontur-mock__title {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0;
}

.kontur-mock__meta {
	color: var(--wp--preset--color--primary);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
}

.kontur-mock__foot {
	border-top: 1px solid var(--kontur-hairline);
	color: var(--wp--preset--color--subtle);
	font-size: 0.75rem;
	margin: 0;
	padding-top: 14px;
}

/* Meter rows - the value is set with a `kontur-meter--<n>` class. */
.kontur-meter {
	--kontur-meter-target: 0%;
	--kontur-meter: var(--kontur-meter-target);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 12px;
}

.kontur-meter > p {
	margin: 0;
	font-size: 0.78125rem;
	line-height: 1.4;
}

.kontur-meter__label {
	color: var(--wp--preset--color--muted);
}

.kontur-meter__value {
	color: var(--wp--preset--color--heading);
	font-weight: 600;
	text-align: right;
}

.kontur-meter::after {
	content: "";
	grid-column: 1 / -1;
	height: 6px;
	background-color: var(--kontur-track);
	background-image: linear-gradient(var(--kontur-meter-color, var(--wp--preset--color--primary)), var(--kontur-meter-color, var(--wp--preset--color--primary)));
	background-repeat: no-repeat;
	background-size: var(--kontur-meter) 100%;
	transition: background-size 1.1s var(--kontur-ease);
}

.kontur-meter--inline {
	grid-template-columns: 90px 1fr;
	align-items: center;
	gap: 0 12px;
}

.kontur-meter--inline > .kontur-meter__label {
	font-size: 0.6875rem;
	color: var(--wp--preset--color--subtle);
}

.kontur-meter--inline > .kontur-meter__value {
	display: none;
}

.kontur-meter--inline::after {
	grid-column: 2;
	height: 5px;
}

.kontur-meter--0 { --kontur-meter-target: 0%; }
.kontur-meter--5 { --kontur-meter-target: 5%; }
.kontur-meter--10 { --kontur-meter-target: 10%; }
.kontur-meter--15 { --kontur-meter-target: 15%; }
.kontur-meter--20 { --kontur-meter-target: 20%; }
.kontur-meter--25 { --kontur-meter-target: 25%; }
.kontur-meter--30 { --kontur-meter-target: 30%; }
.kontur-meter--35 { --kontur-meter-target: 35%; }
.kontur-meter--40 { --kontur-meter-target: 40%; }
.kontur-meter--45 { --kontur-meter-target: 45%; }
.kontur-meter--50 { --kontur-meter-target: 50%; }
.kontur-meter--55 { --kontur-meter-target: 55%; }
.kontur-meter--60 { --kontur-meter-target: 60%; }
.kontur-meter--65 { --kontur-meter-target: 65%; }
.kontur-meter--70 { --kontur-meter-target: 70%; }
.kontur-meter--75 { --kontur-meter-target: 75%; }
.kontur-meter--80 { --kontur-meter-target: 80%; }
.kontur-meter--85 { --kontur-meter-target: 85%; }
.kontur-meter--90 { --kontur-meter-target: 90%; }
.kontur-meter--95 { --kontur-meter-target: 95%; }
.kontur-meter--100 { --kontur-meter-target: 100%; }

/* Message thread */
.kontur-thread {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
}

.kontur-bubble {
	border-radius: 8px;
	font-size: 0.75rem;
	line-height: 1.5;
	margin: 0;
	max-width: 90%;
	padding: 8px 12px;
}

.kontur-bubble--in {
	align-self: flex-start;
	background: var(--kontur-track);
	border-bottom-left-radius: 2px;
	color: var(--wp--preset--color--body);
}

.kontur-bubble--out {
	align-self: flex-end;
	background: var(--wp--preset--color--tint);
	border-bottom-right-radius: 2px;
	color: var(--wp--preset--color--heading);
}

.kontur-badge {
	align-items: center;
	background: var(--wp--preset--color--tint);
	border-radius: 3px;
	color: var(--wp--preset--color--primary);
	display: inline-flex;
	font-size: 0.65625rem;
	font-weight: 600;
	gap: 6px;
	line-height: 1.4;
	margin: 0;
	padding: 4px 10px;
}

/*
 * A badge that labels the panel it sits in, pinned to the top right corner
 * inside the frame. It used to hang 22px above the panel, which is more than
 * the gap to the row above, so it landed on the label beside the card number.
 */
.kontur-badge--float {
	align-self: flex-end;
}

.kontur-icon {
	align-items: center;
	background: var(--wp--preset--color--tint);
	border-radius: 50%;
	color: var(--wp--preset--color--primary);
	display: inline-flex;
	flex-shrink: 0;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.kontur-icon svg {
	display: block;
	height: 24px;
	width: 24px;
}

.kontur-chart {
	display: block;
	margin-inline: auto;
	max-width: 300px;
	width: 100%;
}

.kontur-chart__shape {
	stroke-dasharray: 620;
	stroke-dashoffset: 0;
}

/*
 * The chart's colors sit in the SVG as fixed attributes. Any CSS rule beats a
 * presentation attribute, so these take over and the chart follows the color
 * variation - on new pages and on pages that hold an older copy alike.
 */
.kontur-chart polygon:not(.kontur-chart__shape),
.kontur-chart line {
	stroke: var(--kontur-hairline);
}

.kontur-chart .kontur-chart__shape {
	fill: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	stroke: var(--wp--preset--color--primary);
}

.kontur-chart .kontur-chart__point {
	fill: var(--wp--preset--color--base);
	stroke: var(--wp--preset--color--primary);
}

.kontur-map {
	align-items: center;
	background: repeating-linear-gradient(45deg, var(--wp--preset--color--surface), var(--wp--preset--color--surface) 12px, var(--kontur-hatch) 12px, var(--kontur-hatch) 24px);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius);
	color: var(--wp--preset--color--subtle);
	display: flex;
	font-size: 0.8125rem;
	justify-content: center;
	min-height: 280px;
	text-align: center;
}

.kontur-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kontur-tag {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	margin: 0;
	padding: 5px 14px;
}

.kontur-tag.is-active {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * 6. Process steps & numbered lists
 * ------------------------------------------------------------------ */

.kontur-steps {
	counter-reset: kontur-step;
	position: relative;
	max-width: 820px;
	margin-inline: auto;
}

.kontur-steps::before {
	content: "";
	position: absolute;
	left: 23px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--wp--preset--color--border);
}

.kontur-steps::after {
	content: "";
	position: absolute;
	left: 23px;
	top: 12px;
	width: 2px;
	height: var(--kontur-steps-progress, 100%);
	background: var(--wp--preset--color--primary);
	transition: height 0.8s ease;
}

.kontur-step {
	counter-increment: kontur-step;
	display: flex;
	gap: 32px;
	padding-bottom: clamp(40px, 5vw, 56px);
	position: relative;
}

.kontur-step:last-child {
	padding-bottom: 0;
}

.kontur-step::before {
	content: counter(kontur-step);
	align-items: center;
	background: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	box-sizing: border-box;
	color: var(--wp--preset--color--base);
	display: inline-flex;
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 600;
	height: 48px;
	justify-content: center;
	position: relative;
	transition: background 0.5s ease, color 0.5s ease;
	width: 48px;
	z-index: 1;
}

.kontur-step__body {
	padding-top: 8px;
	flex: 1;
	min-width: 0;
}

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

@media (max-width: 600px) {
	.kontur-step {
		gap: 20px;
	}

	.kontur-steps::before,
	.kontur-steps::after {
		left: 19px;
	}

	.kontur-step::before {
		height: 40px;
		width: 40px;
		font-size: 0.9375rem;
	}
}

/* Numbered benefit rows */
.kontur-numbered {
	counter-reset: kontur-num;
}

.kontur-numbered .kontur-num {
	counter-increment: kontur-num;
	border-bottom: 1px solid var(--wp--preset--color--border);
	display: flex;
	gap: 24px;
	padding: 30px 0;
}

.kontur-numbered .kontur-num::before {
	content: "0" counter(kontur-num);
	color: var(--wp--preset--color--primary);
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

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

.kontur-num__body > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * 7. Statistics
 * ------------------------------------------------------------------ */

.kontur-kpi {
	border-top: 3px solid var(--wp--preset--color--primary);
	padding-top: 20px;
}

.kontur-kpi__value {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 8px;
}

.kontur-kpi__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * 8. Forms
 * ------------------------------------------------------------------ */

.kontur-form input[type="text"],
.kontur-form input[type="email"],
.kontur-form input[type="tel"],
.kontur-form input[type="url"],
.kontur-form input[type="number"],
.kontur-form select,
.kontur-form textarea,
.wp-block-search__input,
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"],
.wp-block-post-comments-form textarea {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius-sm);
	color: var(--wp--preset--color--heading);
	font-family: inherit;
	font-size: 1rem;
	padding: 12px 14px;
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kontur-form input:focus,
.kontur-form select:focus,
.kontur-form textarea:focus,
.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px var(--wp--preset--color--tint);
	outline: none;
}

.kontur-form label {
	color: var(--wp--preset--color--heading);
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	margin-bottom: 6px;
}

.kontur-form button[type="submit"],
.kontur-form input[type="submit"],
.wp-block-search__button {
	background: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: var(--kontur-radius-sm);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	padding: 13px 32px;
	transition: background 0.15s ease;
}

.kontur-form button[type="submit"]:hover,
.kontur-form input[type="submit"]:hover,
.wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-light);
	border-color: var(--wp--preset--color--primary-light);
}

.kontur-form__placeholder {
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: var(--kontur-radius);
	color: var(--wp--preset--color--subtle);
	font-size: var(--wp--preset--font-size--small);
	padding: 28px;
	text-align: center;
}

/* ------------------------------------------------------------------ *
 * 9. Footer
 * ------------------------------------------------------------------ */

/*
 * The dark footer writes in white at reduced strength rather than in fixed
 * greys, so its text stays readable on the dark tone of every color variation
 * (at least 5:1 on the lightest of them).
 */
.kontur-footer {
	color: color-mix(in srgb, var(--wp--preset--color--base) 72%, transparent);
}

/* Footers saved before this release still carry the subtle text color class. */
.kontur-footer.has-subtle-color {
	color: color-mix(in srgb, var(--wp--preset--color--base) 72%, transparent) !important;
}

.kontur-footer a {
	color: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent);
	text-decoration: none;
}

.kontur-footer a:hover,
.kontur-footer a:focus {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.kontur-footer .is-style-kicker {
	color: color-mix(in srgb, var(--wp--preset--color--base) 68%, transparent);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
}

.kontur-footer .wp-block-navigation {
	--wp--preset--color--body: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent);
}

.kontur-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent);
}

.kontur-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--base);
}

/*
 * The two light footers. Links read in the body color and take the primary
 * color on hover; buttons keep their own colors, so they are left out.
 */
.kontur-footer-light a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--body);
	text-decoration: none;
}

.kontur-footer-light a:not(.wp-block-button__link):hover,
.kontur-footer-light a:not(.wp-block-button__link):focus-visible {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.kontur-footer-light .kontur-footer-light__email a {
	color: var(--wp--preset--color--primary);
}

.kontur-footer-light .kontur-footer-light__legal a {
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------------ *
 * 10. Motion & reveal
 * ------------------------------------------------------------------ */

@keyframes kontur-float {
	from { transform: translateY(0); }
	to   { transform: translateY(-8px); }
}

@keyframes kontur-line-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: none; }
}

/*
 * Delay steps for staggered reveals.
 */
.kontur-reveal--d1 { --kontur-delay: 0.12s; }
.kontur-reveal--d2 { --kontur-delay: 0.24s; }
.kontur-reveal--d3 { --kontur-delay: 0.36s; }

/*
 * Reveal is opt-in through the `kontur-js` class that the script adds to the
 * document element. Without JavaScript - and inside the block editor - every
 * element stays visible.
 */
.kontur-js .kontur-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.65s ease var(--kontur-delay, 0s), transform 0.65s var(--kontur-ease) var(--kontur-delay, 0s);
}

.kontur-js .kontur-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

.kontur-js .kontur-meter {
	--kontur-meter: 0%;
}

.kontur-js .kontur-meter.is-revealed,
.kontur-js .is-revealed .kontur-meter {
	--kontur-meter: var(--kontur-meter-target);
}

.kontur-js .kontur-steps {
	--kontur-steps-progress: 0%;
}

.kontur-js .kontur-step:not(.is-active)::before {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}

.kontur-js .kontur-chart__shape {
	stroke-dashoffset: 620;
	transition: stroke-dashoffset 1.7s ease 0.3s;
}

.kontur-js .is-revealed .kontur-chart__shape,
.kontur-js .kontur-chart__shape.is-revealed {
	stroke-dashoffset: 0;
}

.kontur-js .kontur-chart__point {
	opacity: 0;
	transition: opacity 0.35s ease;
}

.kontur-js .is-revealed .kontur-chart__point {
	opacity: 1;
}

.kontur-js .kontur-chart__point:nth-of-type(2) { transition-delay: 1.1s; }
.kontur-js .kontur-chart__point:nth-of-type(3) { transition-delay: 1.25s; }
.kontur-js .kontur-chart__point:nth-of-type(4) { transition-delay: 1.4s; }
.kontur-js .kontur-chart__point:nth-of-type(5) { transition-delay: 1.55s; }
.kontur-js .kontur-chart__point:nth-of-type(6) { transition-delay: 1.7s; }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.kontur-js .kontur-reveal {
		opacity: 1;
		transform: none;
	}

	.kontur-js .kontur-meter {
		--kontur-meter: var(--kontur-meter-target);
	}

	.kontur-js .kontur-steps {
		--kontur-steps-progress: 100%;
	}

	.kontur-js .kontur-chart__shape {
		stroke-dashoffset: 0;
	}

	.kontur-js .kontur-chart__point {
		opacity: 1;
	}
}

.kontur-footer__rule {
	background-color: rgba(255, 255, 255, 0.1);
	border: 0;
	height: 1px;
	opacity: 1;
}

/* ------------------------------------------------------------------ *
 * 11. Flush section stacking
 * ------------------------------------------------------------------ */

/*
 * WordPress puts the global block gap between the top level blocks of a page -
 * header, main, footer - and between the blocks inside the content area. For a
 * theme built from full-bleed bands that is wrong: every band already carries
 * its own vertical padding, so the gap shows up as a stripe of background
 * color between two sections, and as a light line above the footer.
 *
 * Core defines those rules inside :where(), so a plain class selector wins
 * without needing !important.
 */
.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Same treatment when sections are placed directly in a template. */
.wp-site-blocks .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Previous / next links under a post. */
.kontur-post-nav {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.kontur-post-nav .post-navigation-link-next {
	margin-inline-start: auto;
	text-align: right;
}

/* ------------------------------------------------------------------ *
 * 12. Logo strip, testimonials, plans, portraits, questions
 * ------------------------------------------------------------------ */

.kontur-logos {
	color: var(--wp--preset--color--subtle);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.kontur-logos > p {
	margin: 0;
	opacity: 0.75;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.kontur-logos > p:hover {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

/* Testimonials */
.kontur-quote {
	position: relative;
	padding-top: 8px;
}

.kontur-quote::before {
	content: "\201C";
	color: var(--wp--preset--color--tint);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 5rem;
	line-height: 1;
	position: absolute;
	right: 4px;
	top: -12px;
	pointer-events: none;
}

.kontur-quote__text {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-style: normal;
	line-height: 1.65;
	margin: 0;
	position: relative;
}

.kontur-quote__initials {
	align-items: center;
	background: var(--wp--preset--color--tint);
	border-radius: 50%;
	color: var(--wp--preset--color--primary);
	display: inline-flex;
	flex-shrink: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	height: 42px;
	justify-content: center;
	letter-spacing: 0.04em;
	margin: 0;
	width: 42px;
}

.kontur-quote__name {
	color: var(--wp--preset--color--heading);
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0;
}

.kontur-quote__role {
	color: var(--wp--preset--color--subtle);
	font-size: 0.8125rem;
	margin: 0;
}

/* Pricing */
.kontur-plan {
	position: relative;
	display: flex;
	flex-direction: column;
}

.kontur-plan--featured {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--card);
}

.kontur-plan__badge {
	background: var(--wp--preset--color--primary);
	border-radius: 3px;
	color: var(--wp--preset--color--base);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0;
	padding: 5px 12px;
	position: absolute;
	right: clamp(28px, 3.5vw, 44px);
	text-transform: uppercase;
	top: -13px;
}

.kontur-plan__price {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
}

.kontur-plan__unit,
.kontur-plan__billing {
	color: var(--wp--preset--color--subtle);
	font-size: 0.8125rem;
	margin: 0;
}

.kontur-plan__billing {
	border-bottom: 1px solid var(--kontur-hairline);
	padding-bottom: 18px;
}

/* Team */
.kontur-portrait {
	align-items: center;
	aspect-ratio: 4 / 5;
	background: repeating-linear-gradient(135deg, var(--wp--preset--color--surface), var(--wp--preset--color--surface) 10px, var(--kontur-hatch) 10px, var(--kontur-hatch) 20px);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius-sm);
	color: var(--wp--preset--color--subtle);
	display: flex;
	font-size: 0.75rem;
	justify-content: center;
	text-align: center;
}

.kontur-member__role {
	color: var(--wp--preset--color--primary);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

/* Questions - built on the core Details block, so it works without JavaScript */
.kontur-faq .wp-block-details {
	border-top: 1px solid var(--wp--preset--color--border);
	padding: 0;
}

.kontur-faq .wp-block-details:last-child {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.kontur-faq .wp-block-details > summary {
	align-items: center;
	color: var(--wp--preset--color--heading);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 600;
	gap: 24px;
	justify-content: space-between;
	list-style: none;
	padding: 22px 0;
	transition: color 0.15s ease;
}

.kontur-faq .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.kontur-faq .wp-block-details > summary::after {
	content: "+";
	color: var(--wp--preset--color--primary);
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s ease;
}

.kontur-faq .wp-block-details[open] > summary::after {
	content: "\2212";
}

.kontur-faq .wp-block-details > summary:hover {
	color: var(--wp--preset--color--primary);
}

.kontur-faq .wp-block-details > :not(summary) {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.75;
	margin: 0 0 22px;
	max-width: 68ch;
	padding-right: 48px;
}

/* Plan cards push their call to action to the bottom edge and full width. */
.kontur-plan .wp-block-buttons {
	margin-top: auto;
}

.kontur-plan .wp-block-button,
.kontur-plan .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* ------------------------------------------------------------------ *
 * 13. Pagination
 * ------------------------------------------------------------------ */

.kontur-pagination {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--40);
}

.kontur-pagination .wp-block-query-pagination-previous,
.kontur-pagination .wp-block-query-pagination-next {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius-sm);
	color: var(--wp--preset--color--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	padding: 10px 20px;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.kontur-pagination .wp-block-query-pagination-previous:hover,
.kontur-pagination .wp-block-query-pagination-next:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.kontur-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 6px;
}

.kontur-pagination .page-numbers {
	align-items: center;
	border-radius: var(--kontur-radius-sm);
	color: var(--wp--preset--color--muted);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	height: 38px;
	justify-content: center;
	min-width: 38px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.kontur-pagination .page-numbers:hover {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.kontur-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

@media (max-width: 600px) {
	.kontur-pagination .wp-block-query-pagination-numbers {
		display: none;
	}
}

/* ------------------------------------------------------------------ *
 * 14. Mobile menu - slide-in drawer
 * ------------------------------------------------------------------ */

/*
 * Built on the core navigation overlay rather than a hand-rolled menu, so the
 * focus trap, the Escape key and the aria wiring keep working. Core paints a
 * full-screen panel; here the container becomes the backdrop and the dialog
 * inside it becomes a drawer that slides in from the right.
 *
 * Core's own overlay rules are written as
 *   .wp-block-navigation__responsive-container.is-menu-open:where(...) .child
 * which carries two classes before the descendant. Every rule below therefore
 * goes through `.is-menu-open` as well - otherwise core wins on specificity and
 * quietly restores its padding and alignment.
 */
@keyframes kontur-drawer-in {
	from { transform: translateX(100%); }
	to   { transform: none; }
}

@keyframes kontur-backdrop-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* The heading only ever appears inside the open drawer. */
.kontur-drawer__title {
	display: none;
}

@media (max-width: 781px) {
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open {
		animation: kontur-backdrop-in 0.25s ease both;
		background-color: rgba(33, 33, 44, 0.45);
		inset: 0;
		padding: 0;
		position: fixed;

		/*
		 * Core aligns the overlay from this variable, filled in from the header
		 * navigation's justification. The header menu is right-justified, which
		 * would push every entry in the drawer against the right edge.
		 */
		--navigation-layout-justification-setting: stretch;

		/*
		 * The drawer inherits the header's 32px gap through core's `gap: inherit`
		 * chain. Spacing here comes from padding on the individual rows instead.
		 */
		gap: 0;
	}

	/*
	 * A flex column rather than a grid, and the close button taken out of the
	 * flow: the heading is added while the block renders, so it is absent in the
	 * editor. With a grid, its absence pushed the whole menu into the narrow
	 * second column.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open > .wp-block-navigation__responsive-close {
		animation: kontur-drawer-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
		background: var(--wp--preset--color--base);
		box-shadow: -16px 0 44px rgba(33, 33, 44, 0.18);
		display: flex;
		flex-direction: column;
		height: 100%;
		margin-left: auto;
		margin-right: 0;
		max-width: none;
		overflow-y: auto;
		width: min(82%, 380px);
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		align-items: stretch;
		display: flex;
		flex: 1;
		flex-direction: column;
		justify-content: flex-start;
		margin: 0;
		min-height: 0;
		padding: 0;
		position: relative;
		text-align: left;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .kontur-drawer__title {
		border-bottom: 1px solid var(--kontur-hairline);
		color: var(--wp--preset--color--heading);
		display: block;
		font-family: var(--wp--preset--font-family--heading);
		font-size: 1rem;
		font-weight: 700;
		margin: 0;
		padding: 44px 22px 18px;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		align-items: center;
		background: none;
		border: 1px solid var(--wp--preset--color--border);
		border-radius: var(--kontur-radius-sm);
		color: var(--wp--preset--color--heading);
		display: flex;
		height: 34px;
		justify-content: center;
		position: absolute;
		right: 22px;
		top: 42px;
		width: 34px;
		z-index: 1;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
		height: 18px;
		width: 18px;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		display: flex;
		flex: 1;
		flex-direction: column;
		justify-content: flex-start;
		min-height: 0;
		padding: 10px 22px 28px;
		text-align: left;
	}

	/* Without the heading - inside the editor - the close button needs the room. */
	.kontur-header .wp-block-navigation__responsive-dialog:not(:has(.kontur-drawer__title)) .wp-block-navigation__responsive-container-content {
		padding-top: 94px;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container {
		align-items: stretch;
		display: flex;
		flex: 1;
		flex-direction: column;
		gap: 0;
		justify-content: flex-start;
		padding: 0;
		text-align: left;
	}

	/*
	 * The list and each item redeclare the justification variable themselves, so
	 * setting it once on the container is not enough - the nearer declaration
	 * wins and the links end up hugging the right edge.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		--navigation-layout-justification-setting: stretch;
		align-items: stretch;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		border-bottom: 1px solid var(--kontur-hairline);
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		background: none;
		color: var(--wp--preset--color--heading);
		display: block;
		font-size: 1rem;
		font-weight: 600;
		padding: 16px 0;
		position: relative;
	}

	/*
	 * A chevron drawn from borders rather than an arrow character: purely
	 * decorative, and nothing for a screen reader to read out.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:not(.has-child):not([class*="kontur-nav-cta"]) > .wp-block-navigation-item__content::after {
		border-right: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 30%, var(--wp--preset--color--base));
		border-top: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 30%, var(--wp--preset--color--base));
		content: "";
		height: 7px;
		position: absolute;
		right: 2px;
		top: 50%;
		transform: translateY(-50%) rotate(45deg);
		width: 7px;
	}

	/*
	 * The rule above turns menu links into blocks, and a block-level <button>
	 * centers its label. The toggle therefore needs its flex layout restored.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
		align-items: center;
		color: var(--wp--preset--color--primary);
		display: flex;
		gap: 16px;
		justify-content: space-between;
		text-align: left;
		width: 100%;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
		display: block;
	}

	/*
	 * With "open on hover" the chevron is a sibling of the link, not part of a
	 * toggle button. In a stacked drawer it would drop onto its own line, so it
	 * is lifted onto the first row instead.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child {
		position: relative;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
		margin: 0;
		padding: 0;
		position: absolute;
		right: 0;
		top: 30px;
		transform: translateY(-50%);
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon svg {
		height: 12px;
		width: 12px;
	}

	/*
	 * Depending on how the submenu opens, the chevron is either part of a
	 * labelled toggle button or a toggle button of its own carrying both
	 * classes. In the second case the "full width" rule for a labelled toggle
	 * would stretch it across the row and drop the arrow onto the label, so it
	 * is pinned to the right and given a tap target of its own.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon.wp-block-navigation-submenu__toggle {
		align-items: center;
		height: 44px;
		justify-content: flex-end;
		left: auto;
		min-width: 0;
		right: 0;
		width: 44px;
	}

	/* Keep a long label clear of that button. */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-item__content {
		padding-right: 44px;
	}

	/* Sub-items sit slightly inset, with a marker instead of a border. */
	/*
	 * Core indents open submenus by 2rem through a selector carrying four
	 * classes; this one has to match it to keep the inset at the design value.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
		align-items: stretch;
		border: 0;
		box-shadow: none;
		gap: 0;
		min-width: 0;
		padding: 0 0 8px;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
		border-bottom: 0;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: var(--wp--preset--color--body);
		font-size: 0.90625rem;
		font-weight: 500;
		padding: 12px 0 12px 18px;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
		background: color-mix(in srgb, var(--wp--preset--color--primary) 30%, var(--wp--preset--color--base));
		border-radius: 50%;
		content: "";
		height: 5px;
		left: 0;
		position: absolute;
		top: 1.25em;
		width: 5px;
	}

	/*
	 * Menu items carrying one of these classes become the drawer's calls to
	 * action and sit in a block of their own along the bottom edge.
	 */
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta,
	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta-outline {
		border-bottom: 0;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta {
		border-top: 1px solid var(--kontur-hairline);
		margin-top: auto;
		padding-top: 20px;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta-outline {
		padding-top: 12px;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta .wp-block-navigation-item__content {
		background: var(--wp--preset--color--primary);
		border: 1px solid var(--wp--preset--color--primary);
		border-radius: var(--kontur-radius-sm);
		color: var(--wp--preset--color--base);
		font-size: 0.9375rem;
		padding: 13px 24px;
		text-align: center;
	}

	.kontur-header .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta-outline .wp-block-navigation-item__content {
		background: none;
		border: 1px solid var(--wp--preset--color--primary);
		border-radius: var(--kontur-radius-sm);
		color: var(--wp--preset--color--primary);
		font-size: 0.9375rem;
		padding: 12px 24px;
		text-align: center;
	}

	/* The header keeps only the logo and the toggle at this width. */
	.kontur-header .wp-block-buttons {
		display: none;
	}
}

/* On wider screens the call-to-action items read as buttons in the header. */
@media (min-width: 782px) {
	.kontur-header .kontur-nav-cta .wp-block-navigation-item__content {
		background: var(--wp--preset--color--primary);
		border: 1px solid var(--wp--preset--color--primary);
		border-radius: var(--kontur-radius-sm);
		color: var(--wp--preset--color--base);
		font-size: 0.875rem;
		font-weight: 600;
		padding: 9px 22px;
		transition: background 0.15s ease, border-color 0.15s ease,
			box-shadow 0.2s var(--kontur-ease);
	}

	/*
	 * The generic hover for a menu link paints the label in the heading
	 * color and draws an underline beneath it. On the filled call to
	 * action that reads as dark text on a dark button, so this rule takes
	 * one class more than the generic one and states the whole hover
	 * itself: the button brightens and keeps its white label, without
	 * shifting position. The same treatment answers keyboard focus.
	 */
	.kontur-header .wp-block-navigation .kontur-nav-cta .wp-block-navigation-item__content:hover,
	.kontur-header .wp-block-navigation .kontur-nav-cta .wp-block-navigation-item__content:focus-visible {
		background: var(--wp--preset--color--primary-light);
		border-color: var(--wp--preset--color--primary-light);
		box-shadow: 0 6px 18px color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
		color: var(--wp--preset--color--base);
		text-decoration: none;
	}

	.kontur-header .wp-block-navigation .kontur-nav-cta .wp-block-navigation-item__content:active {
		background: var(--wp--preset--color--primary-dark);
		border-color: var(--wp--preset--color--primary-dark);
		box-shadow: none;
	}

	.kontur-header .kontur-nav-cta-outline .wp-block-navigation-item__content {
		background: none;
		border: 1px solid var(--wp--preset--color--primary);
		border-radius: var(--kontur-radius-sm);
		color: var(--wp--preset--color--primary);
		font-size: 0.875rem;
		font-weight: 600;
		padding: 9px 22px;
		transition: background 0.15s ease, color 0.15s ease;
	}

	/*
	 * The two buttons read as one group, so they sit closer together than
	 * the text links beside them. The navigation block spaces all of its
	 * items equally, so the second button is pulled back by the difference
	 * between that spacing and the tighter one. Both orders are covered,
	 * whichever of the two a menu happens to list first.
	 */
	.kontur-header .wp-block-navigation .kontur-nav-cta + .kontur-nav-cta-outline,
	.kontur-header .wp-block-navigation .kontur-nav-cta-outline + .kontur-nav-cta {
		margin-inline-start: calc(var(--kontur-cta-pair-gap) - var(--kontur-nav-gap));
	}

	.kontur-header .wp-block-navigation .kontur-nav-cta-outline .wp-block-navigation-item__content:hover,
	.kontur-header .wp-block-navigation .kontur-nav-cta-outline .wp-block-navigation-item__content:focus-visible {
		background: var(--wp--preset--color--primary);
		border-color: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--base);
		text-decoration: none;
	}
}

/* ------------------------------------------------------------------ *
 * 15. Mobile menu - indigo drawer variant
 * ------------------------------------------------------------------ */

/*
 * Applied by the "Header with indigo drawer" pattern, which adds
 * `kontur-header--drawer-dark` to the header group. Everything below only
 * repaints the drawer from section 14; the layout is shared.
 */
@media (max-width: 781px) {
	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open {
		background-color: rgba(24, 25, 42, 0.5);
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open > .wp-block-navigation__responsive-close {
		background: linear-gradient(170deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
		width: min(84%, 400px);
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .kontur-drawer__title {
		border-bottom: 0;
		color: var(--wp--preset--color--base);
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		background: rgba(255, 255, 255, 0.12);
		border-color: rgba(255, 255, 255, 0.3);
		color: var(--wp--preset--color--base);
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		justify-content: center;
		padding: 0 24px 36px;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		border-bottom: 0;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		color: rgba(255, 255, 255, 0.9);
		font-family: var(--wp--preset--font-family--heading);
		font-size: 1.625rem;
		padding: 10px 0;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
		color: rgba(255, 255, 255, 0.9);
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon svg {
		fill: rgba(255, 255, 255, 0.7);
	}

	/* Sub-entries hang off a hairline instead of carrying dots. */
	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
		border-left: 2px solid rgba(255, 255, 255, 0.25);
		margin: 4px 0 18px;
		padding: 0 0 0 16px;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: var(--wp--preset--color--base);
		font-family: var(--wp--preset--font-family--heading);
		font-size: 1.5rem;
		font-weight: 600;
		padding: 8px 0;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before,
	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content::after {
		content: none;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta {
		border-top: 0;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta .wp-block-navigation-item__content {
		background: var(--wp--preset--color--base);
		border-color: var(--wp--preset--color--base);
		color: var(--wp--preset--color--primary);
		font-family: var(--wp--preset--font-family--body);
		font-size: 0.9375rem;
	}

	.kontur-header--drawer-dark .wp-block-navigation__responsive-container.is-menu-open .kontur-nav-cta-outline .wp-block-navigation-item__content {
		border-color: rgba(255, 255, 255, 0.5);
		color: var(--wp--preset--color--base);
		font-family: var(--wp--preset--font-family--body);
		font-size: 0.9375rem;
	}
}

/* ------------------------------------------------------------------ *
 * 16. Jump pills and stat cards
 * ------------------------------------------------------------------ */

/* Anchor links under a centered hero, one per section further down the page. */
.kontur-pill .wp-block-button__link {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--primary);
	font-size: 0.84375rem;
	font-weight: 600;
	padding: 9px 20px;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.kontur-pill .wp-block-button__link:hover,
.kontur-pill .wp-block-button__link:focus {
	background: var(--wp--preset--color--tint);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* A statistic presented as a bordered card rather than a bare figure. */
.kontur-stat-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--kontur-radius);
	padding: 22px;
	text-align: center;
}

.kontur-stat-card .kontur-kpi__value {
	color: var(--wp--preset--color--primary);
	font-size: clamp(1.75rem, 3vw, 2.125rem);
	margin-bottom: 6px;
}

.kontur-stat-card .kontur-kpi__label {
	font-size: 0.8125rem;
}

/* The quiet band that carries a single sentence between two sections. */
.kontur-statement-band p {
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	line-height: 1.6;
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * 17. Paired meters - target against current
 * ------------------------------------------------------------------ */

/* The lighter tone marks the target, the primary one the value reached. */
.kontur-meter--alt {
	--kontur-meter-color: var(--wp--preset--color--primary-light);
}

/* A narrower label column, so "target" and "current" sit close to their bars. */
.kontur-meter--compact {
	grid-template-columns: 54px 1fr;
	align-items: center;
	gap: 0 10px;
}

.kontur-meter--compact > .kontur-meter__label {
	color: var(--wp--preset--color--subtle);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kontur-meter--compact > .kontur-meter__value {
	display: none;
}

.kontur-meter--compact::after {
	grid-column: 2;
	height: 5px;
}

.kontur-compare {
	margin-inline: auto;
	max-width: 460px;
}

.kontur-compare__name {
	color: var(--wp--preset--color--subtle);
	font-size: 0.71875rem;
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * 18. Session card - avatar with a pulse
 * ------------------------------------------------------------------ */

/*
 * The ring is painted with a spreading box-shadow rather than a scaled
 * overlay. An overlay leaves a solid disc lying across the icon whenever
 * the animation is switched off - which is exactly what a reduced-motion
 * preference does - whereas a box-shadow simply rests at zero spread.
 */
@keyframes kontur-pulse-ring {
	from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent); }
	to   { box-shadow: 0 0 0 11px color-mix(in srgb, var(--wp--preset--color--primary) 0%, transparent); }
}

.kontur-avatar {
	align-items: center;
	background: var(--wp--preset--color--tint);
	border-radius: 50%;
	color: var(--wp--preset--color--primary);
	display: inline-flex;
	flex-shrink: 0;
	height: 38px;
	justify-content: center;
	position: relative;
	width: 38px;
}

.kontur-avatar::before {
	animation: kontur-pulse-ring 2.4s ease-out infinite;
	border-radius: 50%;
	content: "";
	inset: 0;
	position: absolute;
}

.kontur-avatar svg {
	height: 16px;
	position: relative;
	width: 16px;
}

/*
 * The head holds three items inside a card that can be as narrow as a
 * phone screen. The editor writes `flex-wrap: nowrap` into a generated
 * container rule, which forces the name, the role and the badge to share
 * a single row however little room is left over. The selectors below
 * carry one class more than that rule on purpose, so they win against it
 * and let the badge drop to a row of its own instead of squeezing the
 * text beside it. Carrying the fix in CSS also repairs copies of the
 * pattern that were placed on a page before this release.
 */
.kontur-mock .kontur-session__head {
	align-items: center;
	border-bottom: 1px solid var(--kontur-hairline);
	column-gap: 12px;
	display: flex;
	flex-wrap: wrap;
	padding-bottom: 14px;
	row-gap: 10px;
}

/*
 * Takes the free space, so the badge sits against the right edge. The
 * preferred 10rem keeps the role on one line on every phone; the min()
 * caps it at whatever is actually left beside the avatar, so a very
 * narrow card shortens the block rather than pushing it below the icon.
 */
.kontur-mock .kontur-session__ident {
	flex: 1 1 min(10rem, 100% - 3.125rem);
	min-width: 0;
}

/*
 * The automatic start margin keeps the badge against the right edge on
 * either row, so a wrapped badge lines up under the name rather than
 * under the avatar.
 */
.kontur-mock .kontur-session__head .kontur-badge {
	flex-shrink: 0;
	margin-inline-start: auto;
	white-space: nowrap;
}

.kontur-session__name {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.90625rem;
	font-weight: 600;
	margin: 0;
}

.kontur-session__role {
	color: var(--wp--preset--color--subtle);
	font-size: 0.71875rem;
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * 19. Blog - author, tags, lead story, keep reading
 * ------------------------------------------------------------------ */

/* The author box below an article: avatar, a small byline, name and bio. */
.kontur-author .wp-block-post-author {
	align-items: flex-start;
	gap: 16px;
}

.kontur-author .wp-block-post-author__avatar {
	margin: 0;
}

.kontur-author .wp-block-post-author__avatar img {
	border-radius: 50%;
	display: block;
}

.kontur-author .wp-block-post-author__byline {
	color: var(--wp--preset--color--subtle);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	margin: 0 0 2px;
	text-transform: uppercase;
}

.kontur-author .wp-block-post-author__name {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
}

.kontur-author .wp-block-post-author__bio {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	margin: 6px 0 0;
}

/*
 * Tags below an article as small chips. The row layout is the .kontur-tags
 * rule of the process steps; the comma separators core prints are not needed.
 */
.kontur-tags .wp-block-post-terms__separator {
	display: none;
}

.kontur-tags a {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--body);
	font-size: 0.8125rem;
	padding: 4px 12px;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.kontur-tags a:hover,
.kontur-tags a:focus-visible {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/*
 * The lead story sets its image beside the text. An article without a
 * featured image leaves that column empty, so it steps aside; the text
 * column has no fixed width and grows into the space.
 */
.kontur-feature-post .wp-block-column:not(:has(*)) {
	display: none;
}

/*
 * "Keep reading" lists the newest articles apart from the one being read.
 * On a site with a single article there is nothing to list, and the band
 * would be a heading above an empty space.
 */
.kontur-more-posts:not(:has(.wp-block-post)) {
	display: none;
}

/* ------------------------------------------------------------------ *
 * 20. Journal - blog layouts: topics, lead story, list, sidebar
 * ------------------------------------------------------------------ */

/*
 * The tinted panel of the split heading ends where the text column ends,
 * not at a fixed share of the window, so the topics always sit on it.
 */
.kontur-band--split::before {
	width: calc((100% - min(100%, var(--wp--style--global--content-size, 1140px))) / 2 + min(100%, var(--wp--style--global--content-size, 1140px)) * 0.36);
}

/* Topics as chips; "All articles" and the current category are filled. */
.kontur-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kontur-topics li {
	margin: 0;
}

.kontur-topics a {
	background: var(--wp--preset--color--base);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 18%, var(--wp--preset--color--border));
	border-radius: 999px;
	color: var(--wp--preset--color--body);
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.4;
	padding: 10px 18px;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.kontur-topics a:hover,
.kontur-topics a:focus-visible {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.kontur-topics .current-cat > a {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

.kontur-topics .kontur-count {
	display: none;
}

.kontur-feed-link a {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.kontur-feed-link a:hover {
	text-decoration: underline;
}

/*
 * Article cards. Meta line, title and excerpt share one rhythm; the card
 * fills its grid cell, so "Read the article" lines up at the bottom of a row.
 * Cards with an image leave the link out, the title already is the link.
 */
.kontur-entry {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wp-block-group.is-style-card.kontur-entry {
	padding: clamp(22px, 2.4vw, 28px);
}

.kontur-entry > .wp-block-post-featured-image {
	margin-bottom: var(--wp--preset--spacing--30);
}

.kontur-entry__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.kontur-entry__meta {
	align-items: baseline;
}

.kontur-entry__date {
	color: var(--wp--preset--color--subtle);
	font-size: 0.875rem;
}

.kontur-entry__title {
	font-size: 1.375rem;
	line-height: 1.3;
}

/* Titles read as headings; the link color only shows on hover. */
.kontur-entry__title a,
.kontur-row__title a {
	color: var(--wp--preset--color--heading);
}

.kontur-entry__title a:hover,
.kontur-entry__title a:focus-visible,
.kontur-row__title a:hover,
.kontur-row__title a:focus-visible {
	color: var(--wp--preset--color--primary);
}

.kontur-entry__excerpt {
	font-size: 0.9375rem;
}

.kontur-entry__excerpt p {
	margin: 0;
}

.kontur-entry__author {
	display: none;
}

.kontur-entry__body > .kontur-entry__more {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-top: auto;
	padding-top: 6px;
	text-decoration: none;
}

.kontur-entry__more:hover {
	text-decoration: underline;
}

.kontur-entry__more::after {
	content: "\00a0\2192";
}

.kontur-entry:has(> .wp-block-post-featured-image) .kontur-entry__more {
	display: none;
}

/*
 * The magazine layout: the first article of every page runs across the
 * whole row as the lead story, image beside the text, without the card
 * frame. Without an image it stays a single, narrower text column.
 */
.kontur-journal .wp-block-post-template > .wp-block-post:first-child {
	grid-column: 1 / -1;
}

.kontur-journal .wp-block-post:first-child > .kontur-entry {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	margin-bottom: var(--wp--preset--spacing--30);
	padding: 0 0 var(--wp--preset--spacing--60);
}

.kontur-journal .wp-block-post:first-child > .kontur-entry:hover {
	box-shadow: none;
	transform: none;
}

.kontur-journal .wp-block-post:first-child .kontur-entry__title {
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
	line-height: 1.2;
}

.kontur-journal .wp-block-post:first-child .kontur-entry__excerpt {
	font-size: var(--wp--preset--font-size--medium);
}

.kontur-journal .wp-block-post:first-child .kontur-entry__body {
	max-width: 760px;
}

.kontur-journal .wp-block-post:first-child .kontur-entry__author {
	align-items: center;
	display: flex;
	gap: 12px;
}

.kontur-journal .wp-block-post:first-child .kontur-entry__more {
	display: inline-block;
	font-size: 1rem;
	margin-top: 0;
}

.kontur-entry__author .wp-block-post-author__avatar {
	margin: 0;
}

.kontur-entry__author .wp-block-post-author__avatar img {
	border-radius: 50%;
	display: block;
}

.kontur-entry__author .wp-block-post-author__name {
	color: var(--wp--preset--color--heading);
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0;
}

@media (min-width: 782px) {
	.kontur-journal .wp-block-post:first-child > .kontur-entry:has(> .wp-block-post-featured-image) {
		align-items: center;
		display: grid;
		gap: clamp(32px, 5vw, 64px);
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.kontur-journal .wp-block-post:first-child > .kontur-entry:has(> .wp-block-post-featured-image) > * {
		margin-block: 0;
	}
}

/* The list layout: topics as tabs with their count. */
.kontur-topic-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kontur-topic-tabs li {
	align-items: center;
	display: flex;
	gap: 6px;
	margin: 0;
}

.kontur-topic-tabs a {
	box-shadow: inset 0 -2px 0 transparent;
	color: var(--wp--preset--color--muted);
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	padding: 18px 0;
	text-decoration: none;
	transition: color 0.15s ease, box-shadow 0.15s ease;
}

.kontur-topic-tabs a:hover,
.kontur-topic-tabs a:focus-visible {
	color: var(--wp--preset--color--heading);
}

.kontur-topic-tabs .current-cat > a {
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--primary);
	color: var(--wp--preset--color--heading);
	font-weight: 600;
}

.kontur-count {
	color: var(--wp--preset--color--subtle);
	font-size: 0.8125rem;
}

/* One row per article: date, text, image. */
.kontur-row.wp-block-columns {
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin: 0;
	padding-block: var(--wp--preset--spacing--50);
}

.kontur-row__day {
	color: var(--wp--preset--color--heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.25rem;
	font-weight: 500;
	line-height: 1;
}

.kontur-row__month {
	color: var(--wp--preset--color--subtle);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-top: 6px;
	text-transform: uppercase;
}

.kontur-row__title {
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
	line-height: 1.25;
}

.kontur-row__excerpt p {
	margin: 0;
	max-width: 62ch;
}

@media (max-width: 781px) {
	.kontur-row__date {
		align-items: baseline;
		display: flex;
		gap: 10px;
	}

	.kontur-row__date > * {
		margin: 0;
	}

	.kontur-row__day {
		font-size: 1.5rem;
	}
}

/* The search field above the list and in the sidebar. */
.kontur-journal-search .wp-block-search__label {
	color: var(--wp--preset--color--subtle);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.kontur-journal-search .wp-block-search__inside-wrapper {
	gap: 8px;
}

.kontur-journal-search .wp-block-search__button {
	margin: 0;
}

.kontur-journal-search .wp-block-search__button.has-icon {
	align-items: center;
	display: flex;
	justify-content: center;
	padding: 0 14px;
}

.kontur-journal-search .wp-block-search__button svg {
	fill: currentColor;
	height: 22px;
	width: 22px;
}

/* The sidebar: topics with counts, tags as chips, the newest articles. */
.kontur-topic-list {
	border-bottom: 1px solid var(--wp--preset--color--border);
	list-style: none;
	margin: 0;
	padding: 0;
}

.kontur-topic-list li {
	align-items: baseline;
	border-top: 1px solid var(--wp--preset--color--border);
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 12px 0;
}

.kontur-topic-list a {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.kontur-topic-list a:hover,
.kontur-topic-list .current-cat > a {
	color: var(--wp--preset--color--primary);
}

.wp-block-tag-cloud.kontur-tag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.wp-block-tag-cloud.kontur-tag-chips a {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--body);
	margin: 0;
	padding: 5px 12px;
	text-decoration: none;
}

.wp-block-tag-cloud.kontur-tag-chips a:hover,
.wp-block-tag-cloud.kontur-tag-chips a:focus-visible {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.kontur-recent.wp-block-latest-posts {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
}

.kontur-recent.wp-block-latest-posts li {
	column-gap: 14px;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	margin: 0;
}

.kontur-recent .wp-block-latest-posts__featured-image {
	float: none;
	grid-row: 1 / span 2;
	margin: 0;
}

.kontur-recent .wp-block-latest-posts__featured-image img {
	border-radius: 4px;
	height: 48px;
	object-fit: cover;
	width: 72px;
}

.kontur-recent .wp-block-latest-posts__post-title {
	color: var(--wp--preset--color--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.kontur-recent .wp-block-latest-posts__post-title:hover {
	color: var(--wp--preset--color--primary);
}

.kontur-recent .wp-block-latest-posts__post-date {
	color: var(--wp--preset--color--subtle);
	font-size: 0.8125rem;
	grid-column: 2;
}

.kontur-recent li:not(:has(.wp-block-latest-posts__featured-image)) .wp-block-latest-posts__post-title,
.kontur-recent li:not(:has(.wp-block-latest-posts__featured-image)) .wp-block-latest-posts__post-date {
	grid-column: 1 / -1;
}
