/*
 * Components: one section per template part, named like its file.
 * e.g. template-parts/layout/site-header.php  →  "=== site-header ==="
 */

/* ===================================================================
 * template-parts/layout/
 * =================================================================== */

/* === skip-link (header.php) === */
.skip-link:focus {
	position: fixed !important;
}

/* === site-header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--wp--preset--color--cream);
	border-block-end: 4px solid var(--wp--preset--color--gold);
}

/* Keep the sticky header below the admin bar. */
.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 14px;
}

.site-header__panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;

	@media (max-width: 999px) {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-block-end: 12px;
	}
}

/* Collapsed on small screens only when JS is running (see navigation.js). */
.js .site-header__panel:not(.is-open) {
	@media (max-width: 999px) {
		display: none;
	}
}

/* === site-branding === */
.site-branding {
	.custom-logo {
		display: block;
		max-height: 64px;
		width: auto;
	}
}

.site-branding__link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	&:hover {
		color: var(--wp--preset--color--ink);
	}

	.coat-of-arms {
		flex: none;
		width: 40px;
		height: 48px;

		@media (max-width: 479px) {
			width: 32px;
			height: 38px;
		}
	}
}

.site-branding__wordmark {
	display: flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
}

.site-branding__line1 {
	font-weight: 700;
	font-size: 19px;
	line-height: 1.1;
	letter-spacing: 0.03em;

	@media (max-width: 479px) {
		font-size: 15px;
	}
}

.site-branding__line2 {
	font-weight: 500;
	font-size: 15px;
	line-height: 1.15;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);

	@media (max-width: 479px) {
		font-size: 11.5px;
		letter-spacing: 0.04em;
	}
}

/* === menu-toggle === */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 44px;
	min-width: 44px;
	justify-content: center;
	padding: 0.5em 0.75em;
	background: none;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius-small);
	font-weight: 600;
	cursor: pointer;

	@media (min-width: 1000px) {
		display: none;
	}
}

/* Icon-only on narrow phones; the label stays available to screen readers. */
.menu-toggle__label {
	@media (max-width: 479px) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* Without JS there is nothing to toggle: keep the button hidden, menu open. */
html:not(.js) .menu-toggle {
	display: none;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 1.125em;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon {
	position: relative;

	&::before,
	&::after {
		content: "";
		position: absolute;
		left: 0;
	}

	&::before { top: -6px; }
	&::after { top: 6px; }
}

/* === primary-nav === */
.primary-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	font-size: 16px;
	font-weight: 600;

	@media (min-width: 1000px) {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 2px;
	}

	a {
		display: block;
		padding: 12px;
		color: var(--wp--preset--color--ink);
		text-decoration: none;
	}

	a:hover {
		color: var(--wp--preset--color--gold-dark);
	}

	.current-menu-item > a,
	.current-menu-ancestor > a,
	.current_page_parent > a {
		box-shadow: inset 0 -3px 0 var(--wp--preset--color--red);
	}
}

/* === header-actions === */
.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-actions__search {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--ink);

	&:hover {
		color: var(--wp--preset--color--gold-dark);
	}
}

.header-actions__cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius-small);
	font-weight: 600;
	text-decoration: none;

	&:hover {
		color: var(--wp--preset--color--ink);
		background: var(--wp--preset--color--line-strong);
	}
}

/* === site-footer === */
.site-footer {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--footer-text);
	font-size: 15px;

	a {
		color: var(--wp--preset--color--footer-text);
	}

	a:hover {
		color: var(--wp--preset--color--white);
	}
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding-block: 44px;
}

/* === footer-nav === */
.footer-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;

	a {
		display: inline-block;
		padding-block: 8px;
		text-decoration: none;
	}
}

/* === site-info === */
.site-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-style: normal;
}

.site-info__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 20px;
	color: var(--wp--preset--color--white);
}

/* === copyright === */
.copyright {
	flex-basis: 100%;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--footer-muted);
}

/* ===================================================================
 * template-parts/front/
 * =================================================================== */

/* === hero === */
.hero {
	background: var(--wp--preset--color--sand);
}

.hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 40px 56px;
	padding-block-start: 80px;
}

.hero__content {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-block-end: 80px;
}

.hero__eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-darker);
}

.hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.04;

	.is-highlight {
		color: var(--wp--preset--color--red);
	}
}

.hero__text {
	margin: 0;
	max-width: 620px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.65;
}

.hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__media {
	flex: 1 1 420px;
	height: 420px;
	display: flex;

	@media (max-width: 640px) {
		height: 280px;
	}
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* === name-strip === */
.name-strip {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--footer-text);
}

.name-strip__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	padding-block: 26px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	line-height: 1.3;
	text-align: center;
}

.name-strip__name.is-italic {
	font-style: italic;
}

.name-strip__star {
	color: var(--wp--preset--color--gold);
}

/* === intro === */
.intro__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px 96px;
	padding-block: 112px;

	@media (max-width: 640px) {
		padding-block: 64px;
	}
}

.intro__poem {
	flex: 1 1 380px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	text-align: center;
}

.intro__ornament {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 28px;
	color: var(--wp--preset--color--gold);
}

.intro__verse {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-weight: 500;
	font-size: 27px;
	line-height: 1.55;
	color: var(--wp--preset--color--ink);
}

.intro__caption {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark);
}

.intro__text {
	flex: 999 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;

	.entry-content {
		font-size: var(--wp--preset--font-size--medium);
		line-height: 1.7;

		/* The column is already narrow: no content-width centering or breakout here.
		 * :is() lifts specificity above the alignment rules in blocks.css. */
		> :is(*, .alignwide, .alignfull) {
			max-width: 100%;
			width: auto;
			margin-inline: 0;
		}

		> :last-child {
			margin-block-end: 0;
		}
	}
}

.intro__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.intro__link {
	align-self: flex-start;
	font-weight: 700;
	text-decoration: none;
}

/* === study === */
.study {
	background: var(--wp--preset--color--parchment);
	border-block: 1px solid var(--wp--preset--color--line);
}

.study__inner {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding-block: 96px;

	@media (max-width: 640px) {
		padding-block: 64px;
	}
}

.study__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 20px;
}

.study__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.study__image {
	width: 100%;
	height: 380px;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);

	@media (max-width: 640px) {
		height: 240px;
	}
}

.study__caption {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

/* === get-involved === */
.get-involved__inner {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding-block: 96px;

	@media (max-width: 640px) {
		padding-block: 64px;
	}
}

.get-involved__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 20px;
}

.involved-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 220px;
	padding: 32px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	&:hover {
		color: var(--wp--preset--color--ink);
		border-color: var(--wp--preset--color--gold);
	}

	&:first-child {
		background: var(--wp--preset--color--gold);
		border-color: var(--wp--preset--color--gold);

		&:hover {
			border-color: var(--wp--preset--color--ink);
		}

		.involved-card__title {
			font-weight: 700;
		}

		.involved-card__text,
		.involved-card__more {
			color: var(--wp--preset--color--ink);
		}
	}
}

.involved-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 28px;
	line-height: 1.1;
}

.involved-card__text {
	font-size: 16px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

.involved-card__more {
	margin-block-start: auto;
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

/* === partners === */
.partners__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-block: 0 96px;
}

/* Partners right after the hero/name strip (no get-involved) need top spacing too. */
.name-strip + .partners .partners__inner,
.hero + .partners .partners__inner {
	padding-block-start: 96px;
}

.partners__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark);
}

.partners__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: 12px;
}

.partners__item,
.partners__link {
	display: flex;
	align-items: center;
	justify-content: center;
}

.partners__item {
	height: 80px;
	padding: 12px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius-small);
}

.partners__link {
	width: 100%;
	height: 100%;
}

.partners__logo {
	max-height: 56px;
	width: auto;
	object-fit: contain;
}

/* ===================================================================
 * template-parts/content/
 * =================================================================== */

/* === page-hero === */
.page-hero {
	background: var(--wp--preset--color--sand);
	border-block-end: 1px solid var(--wp--preset--color--sand-line);
}

.page-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-block: 56px 48px;
}

.page-hero__eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-darker);
}

.page-hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.02;
}

.page-hero__summary {
	margin: 0;
	font-size: 16px;
}

.page-hero .search-form {
	margin-block-start: 8px;
}

.page-hero__intro {
	margin: 0;
	max-width: 680px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	color: var(--wp--preset--color--text);
}

/* === breadcrumbs === */
.breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);

	a {
		color: var(--wp--preset--color--gold-darker);
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "/";
	padding-inline: 0.4em;
	color: var(--wp--preset--color--muted);
}

/* comments after a page or post */
.entry + .comments-area {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* === search-tabs === */
.search-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-end: 24px;
}

.search-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;

	&:hover {
		border-color: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--ink);
	}

	&[aria-current="true"] {
		background: var(--wp--preset--color--ink);
		border-color: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--cream);
	}
}

.search-tabs__count {
	font-weight: 400;
}

/* search.php result list (not .search-results: core adds that class to <body>) */
.search-page {
	max-width: 960px;
}

.search-page__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-result {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-block: 24px;
	border-block-start: 1px solid var(--wp--preset--color--line);

	&:last-child {
		border-block-end: 1px solid var(--wp--preset--color--line);
	}

	mark {
		padding: 0 2px;
		background: var(--wp--preset--color--highlight);
		color: inherit;
	}
}

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

.search-result__type {
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

.search-result__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

.search-result__excerpt {
	margin: 0;
	font-size: 17px;
	line-height: 1.55;
}

.search-page__hint {
	color: var(--wp--preset--color--muted);
}

/* === section-nav === */
.section-nav {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
}

.section-nav__title {
	display: block;
	padding: 14px 18px;
	border-block-end: 1px solid var(--wp--preset--color--line);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark);
}

.section-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.section-nav__item + .section-nav__item {
	border-block-start: 1px solid var(--wp--preset--color--parchment);
}

.section-nav__link {
	display: block;
	padding: 14px 18px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	.is-nested & {
		padding-inline-start: 34px;
	}

	&:hover {
		background: var(--wp--preset--color--parchment);
		color: var(--wp--preset--color--ink);
	}

	&[aria-current="page"] {
		background: var(--wp--preset--color--parchment);
		box-shadow: inset 3px 0 0 var(--wp--preset--color--red);
		font-weight: 700;
	}
}

/* === support-box === */
.support-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius);
	color: var(--wp--preset--color--parchment);
}

.support-box__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.support-box__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--footer-text);
}

.support-box__button {
	align-self: flex-start;
	min-height: 44px;
	padding: 0 16px;
}

/* === content-page === */
.page .entry-content {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.75;

	h2 {
		font-size: 34px;
		line-height: 1.15;
	}
}

/* === content-single === */
.single .entry-header {
	max-width: 820px;
	margin-inline: auto;
	padding-block-end: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.entry-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.entry-meta__category {
	padding: 5px 12px;
	border-radius: 3px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--gold-darker);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: none;

	&:hover {
		background: var(--wp--preset--color--line);
		color: var(--wp--preset--color--gold-darker);
	}
}

.entry-title {
	margin: 0;
	font-size: clamp(2.375rem, 4.6vw, 3.625rem);
	line-height: 1.06;
}

.entry-lead {
	margin: 0;
	font-size: 21px;
	line-height: 1.55;
}

.single .entry-content {
	padding-block-start: 56px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.75;
	color: var(--wp--preset--color--ink);

	h2 {
		font-size: 32px;
		line-height: 1.15;
	}
}

.page-links {
	margin-block: var(--wp--preset--spacing--40);
}

/* === content-none === */
.no-results {
	margin-block-end: var(--wp--preset--spacing--50);
}

/* === content-404 === */
.error-404 {
	background: var(--wp--preset--color--sand);
}

.error-404__inner {
	max-width: 1120px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 72px;
	padding-block: 96px;

	@media (max-width: 640px) {
		padding-block: 56px;
	}
}

.error-404__content {
	flex: 999 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.error-404__eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-darker);
}

.error-404__title {
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1.05;
}

.error-404__text {
	margin: 0;
	max-width: 560px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.65;
}

.error-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-weight: 700;

	a {
		padding-block: 8px;
		color: var(--wp--preset--color--gold-darker);
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}
}

.error-404__media {
	flex: 1 1 320px;
}

.error-404__image {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

/* === contact-card === */
.contact-card,
.bank-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px;
	border-radius: var(--wp--custom--radius);
}

.contact-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
}

.contact-card__title,
.bank-card__title {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
}

/* Label / value grid shared by contact-card and bank-card. */
.details-list {
	margin: 0;
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 12px 16px;
	font-size: 17px;
	line-height: 1.45;

	dt {
		color: var(--wp--preset--color--muted);
	}

	dd {
		margin: 0;
		overflow-wrap: anywhere;
	}
}

/* === bank-card === */
.bank-card {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--parchment);

	.bank-card__title {
		color: var(--wp--preset--color--parchment);
	}
}

.details-list--dark {
	dt {
		color: var(--wp--preset--color--footer-muted);
	}

	dd {
		font-weight: 700;
		letter-spacing: 0.03em;
	}
}

.bank-card__copy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.bank-card__button {
	min-height: 44px;
	padding: 0 18px;

	&[hidden] {
		display: none;
	}
}

.bank-card__status {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--footer-text);
}

/* Kontakt template layout (page-templates/kontakt.php) */
.contact-layout.has-cards {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 64px;
}

.contact-layout__cards {
	flex: 1 1 400px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-layout__main {
	flex: 999 1 520px;
	min-width: 0;

	.entry-content > :is(*, .alignwide, .alignfull) {
		max-width: 100%;
		width: auto;
		margin-inline: 0;
	}

	.entry-content h2 {
		margin-block-start: 0;
		font-size: 36px;
	}
}

/* === map-image === */
.map-image {
	width: min(100% - 2 * var(--vys-gutter), var(--wp--style--global--wide-size, 1280px));
	margin: 0 auto 96px;
}

.map-image__link {
	position: relative;
	display: block;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.map-image__img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
}

.map-image__label {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 10px 16px;
	border-radius: var(--wp--custom--radius-small);
	background: var(--wp--preset--color--white);
	font-weight: 700;
}

/* === contact-form (Contact Form 7 markup in the Kontakt page content) === */
.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 20px;

	p {
		margin: 0;
	}

	label {
		display: flex;
		flex-direction: column;
		gap: 8px;
		font-size: 15px;
		font-weight: 600;
		color: var(--wp--preset--color--ink);
	}

	.wpcf7-form-control-wrap {
		display: block;
	}

	:is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea) {
		width: 100%;
		min-height: 52px;
		padding: 14px 16px;
		border: 1px solid var(--wp--preset--color--gold-dark);
		border-radius: var(--wp--custom--radius-small);
		background: var(--wp--preset--color--white);
		color: var(--wp--preset--color--ink);
		font-size: 17px;
		font-weight: 400;
	}

	textarea {
		resize: vertical;
	}

	.wpcf7-acceptance label,
	.wpcf7-list-item label {
		flex-direction: row;
		align-items: flex-start;
		gap: 10px;
		font-weight: 400;
	}

	.wpcf7-list-item {
		margin: 0;
	}

	input[type="checkbox"] {
		width: 20px;
		height: 20px;
		margin-block-start: 3px;
		accent-color: var(--wp--preset--color--red);
	}

	.wpcf7-submit {
		align-self: flex-start;
		min-height: 52px;
		padding: 0 28px;
		border: 0;
		border-radius: var(--wp--custom--radius-small);
		background: var(--wp--preset--color--red);
		color: var(--wp--preset--color--white);
		font-size: 17px;
		font-weight: 700;
		cursor: pointer;

		&:hover {
			background: var(--wp--preset--color--ink);
		}
	}

	.wpcf7-not-valid-tip {
		margin-block-start: 6px;
		font-size: var(--wp--preset--font-size--small);
		font-weight: 600;
		color: var(--wp--preset--color--red);
	}

	.wpcf7-response-output {
		margin: 0;
		padding: 14px 16px;
		border: 1px solid var(--wp--preset--color--line-strong);
		border-radius: var(--wp--custom--radius-small);
		background: var(--wp--preset--color--parchment);
	}
}

/* ===================================================================
 * template-parts/post/
 * =================================================================== */

/* === post-thumbnail === */
.post-thumbnail {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.post-thumbnail__image {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

.post-thumbnail__caption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* === post-tags === */
.post-tags {
	max-width: var(--wp--style--global--content-size, 760px);
	margin: 48px auto 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-block-start: 20px;
	border-block-start: 1px solid var(--wp--preset--color--line);
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.post-tags__tag {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	&:hover {
		border-color: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--ink);
	}
}

/* === post-navigation === */
.post-navigation {
	max-width: 1120px;
	margin: 64px auto 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 16px;
}

.post-navigation__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 28px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	&:hover {
		border-color: var(--wp--preset--color--gold);
		color: var(--wp--preset--color--ink);
	}
}

.post-navigation__card--archive {
	text-align: end;
}

.post-navigation__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.post-navigation__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

/* === lightbox (assets/js/lightbox.js) === */
.lightbox {
	width: min(100vw - 32px, 1200px);
	max-height: calc(100vh - 32px);
	padding: 56px 64px 24px;
	border: 0;
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--footer-text);

	&::backdrop {
		background: rgb(20 12 9 / 0.85);
	}

	@media (max-width: 640px) {
		padding: 56px 12px 16px;
	}
}

.lightbox__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.lightbox__image {
	max-width: 100%;
	max-height: calc(100vh - 200px);
	object-fit: contain;
}

.lightbox__caption,
.lightbox__count {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.lightbox__count {
	margin-block-start: 8px;
	color: var(--wp--preset--color--footer-muted);
}

.lightbox__button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--footer-muted);
	border-radius: 999px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;

	&:hover,
	&:focus-visible {
		background: var(--wp--preset--color--gold);
		color: var(--wp--preset--color--ink);
	}

	&[hidden] {
		display: none;
	}
}

.lightbox__close {
	top: 8px;
	right: 8px;
}

.lightbox__prev,
.lightbox__next {
	top: 50%;
	transform: translateY(-50%);

	@media (max-width: 640px) {
		top: 8px;
		transform: none;
	}
}

.lightbox__prev {
	left: 10px;
}

.lightbox__next {
	right: 10px;

	@media (max-width: 640px) {
		right: 60px;
	}
}

@media (max-width: 640px) {
	.lightbox__prev {
		left: auto;
		right: 112px;
	}
}

/* === card === */
.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 24px;

	@media (min-width: 640px) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	@media (min-width: 1000px) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--sand);
}

.card:nth-child(3n + 2) .card__media {
	background: var(--wp--preset--color--parchment);
}

.card:nth-child(3n) .card__media {
	background: var(--wp--preset--color--line);
}

.card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.card__category {
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

.card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.18;
}

.card__link {
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	/* Whole card clickable. */
	&::after {
		content: "";
		position: absolute;
		inset: 0;
	}

	&:hover {
		color: var(--wp--preset--color--gold-darker);
		text-decoration: underline;
	}
}

/* === card-featured === */
.card-featured {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	margin-block-end: 48px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
}

.card-featured__media {
	flex: 1 1 520px;
	min-height: 380px;
	background: var(--wp--preset--color--sand);

	@media (max-width: 640px) {
		min-height: 220px;
	}
}

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

.card-featured__body {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 44px;

	@media (max-width: 640px) {
		padding: 24px;
	}
}

.card-featured__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.card-featured__badge {
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--wp--preset--color--red);
	color: var(--wp--preset--color--white);
	font-size: 13px;
	font-weight: 700;
}

.card-featured__title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.375rem);
	line-height: 1.1;
}

.card-featured__link {
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	&::after {
		content: "";
		position: absolute;
		inset: 0;
	}

	&:hover {
		text-decoration: underline;
	}
}

.card-featured__excerpt {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}

.card-featured__more {
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

/* === archive-filter === */
.archive-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-block-end: 32px;
}

.archive-filter__years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.archive-filter__pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;

	&:hover {
		border-color: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--ink);
	}

	&[aria-current="page"] {
		background: var(--wp--preset--color--ink);
		border-color: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--cream);
	}
}

.archive-filter__categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 15px;
}

.archive-filter__label {
	color: var(--wp--preset--color--muted);
}

.archive-filter__select {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius-small);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.js .archive-filter__submit {
	display: none;
}

/* === pagination === */
.pagination {
	margin-block-start: 40px;

	.nav-links {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
	}

	.page-numbers {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		padding: 0 14px;
		border: 1px solid var(--wp--preset--color--line-strong);
		border-radius: var(--wp--custom--radius-small);
		color: var(--wp--preset--color--ink);
		font-weight: 600;
		text-decoration: none;

		&:hover {
			border-color: var(--wp--preset--color--ink);
		}
	}

	.page-numbers.dots {
		border-color: transparent;
	}

	.current {
		background: var(--wp--preset--color--ink);
		border-color: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--cream);
		font-weight: 700;
	}
}

/* === media-links === */
.media-links {
	background: var(--wp--preset--color--parchment);
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.media-links__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 80px;
	padding-block: 72px;
}

.media-links__intro {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.media-links__title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.media-links__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.media-links__list {
	flex: 999 1 560px;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.media-links__item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	padding-block: 16px;
	border-block-start: 1px solid var(--wp--preset--color--line);

	&:last-child {
		border-block-end: 1px solid var(--wp--preset--color--line);
	}
}

.media-links__link {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

.media-links__source {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* ===================================================================
 * Root-level components
 * =================================================================== */

/* === searchform (searchform.php) === */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 760px;
}

.search-form__input {
	flex: 1 1 280px;
	min-width: 0;
	min-height: 56px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--gold-dark);
	border-radius: var(--wp--custom--radius-small);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
}

.search-form__submit {
	min-height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--wp--custom--radius-small);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	font-weight: 700;
	cursor: pointer;

	&:hover {
		background: var(--wp--preset--color--red);
	}
}

/* === comments (comments.php) === */
.comments-area {
	margin-block-start: var(--wp--preset--spacing--60);
}

.comment-list {
	list-style: none;
	padding: 0;

	.children {
		list-style: none;
		padding-inline-start: var(--wp--preset--spacing--40);
	}
}

.comment-body {
	padding-block: var(--wp--preset--spacing--30);
	border-block-end: 1px solid var(--wp--preset--color--parchment);
}

.comment-meta {
	font-size: var(--wp--preset--font-size--small);

	.avatar {
		border-radius: 50%;
		vertical-align: middle;
		margin-inline-end: 0.5em;
	}
}

.comment-form {
	display: grid;
	gap: var(--wp--preset--spacing--30);

	:where(input[type="text"], input[type="email"], input[type="url"], textarea) {
		width: 100%;
		padding: 0.5em 0.75em;
		border: 1px solid var(--wp--preset--color--muted);
		border-radius: 4px;
	}

	label {
		display: block;
		margin-block-end: 0.25em;
	}

	.submit {
		padding: 0.75em 1.5em;
		background: var(--wp--preset--color--gold-dark);
		color: var(--wp--preset--color--cream);
		border: 0;
		border-radius: 4px;
		cursor: pointer;
	}
}
