/*
Theme Name: HundeFundus
Theme URI: https://hundefundus.de
Author: Simon Kern
Description: Eigenstaendiges Block-Theme fuer HundeFundus auf Basis der bewaehrten WordPress-Boundary-Architektur.
Version: 0.1.27
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: hundefundus
*/

:root {
	--hf-brand-red: #960a14;
	--hf-accent-orange: #fa8c00;
	--hf-warm-background: #faf5eb;
	--hf-warm-surface: #fffaf2;
	--hf-warm-surface-strong: #f4eadb;
	--hf-text-dark: #321e14;
	--hf-text-muted: #715f52;
	--hf-border-subtle: #e2d4c3;
	--hf-radius: 8px;
	--hf-content-width: 760px;
	--hf-wide-width: 1120px;
	--hf-space-1: 0.35rem;
	--hf-space-2: 0.65rem;
	--hf-space-3: 1rem;
	--hf-space-4: 1.5rem;
	--hf-space-5: 2.25rem;
	--hf-space-6: 3.5rem;
	--hf-font-body: Georgia, "Times New Roman", serif;
	--hf-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hf-type-small: 0.92rem;
	--hf-type-body: 1.1rem;
	--hf-type-h1: 3rem;
	--hf-type-h2: 1.85rem;
	--hf-type-h3: 1.35rem;
	--hf-color-text: var(--hf-text-dark);
	--hf-color-muted: var(--hf-text-muted);
	--hf-color-line: var(--hf-border-subtle);
	--hf-color-surface: var(--hf-warm-surface);
	--hf-color-accent: var(--hf-brand-red);
	--hf-color-accent-soft: rgba(250, 140, 0, 0.12);
	--hf-font-sans: var(--hf-font-ui);
}

body {
	margin: 0;
	background: var(--hf-warm-background);
	color: var(--hf-color-text);
	font-family: var(--hf-font-body);
	text-rendering: optimizeLegibility;
}

a {
	color: var(--hf-color-accent);
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.16em;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(body.single-post) {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	html:has(body.single-post) {
		scroll-behavior: auto;
	}
}

.hf-site-header {
	border-top: 5px solid var(--hf-accent-orange);
	border-bottom: 1px solid var(--hf-color-line);
	background: var(--hf-warm-background);
	--wp--style--block-gap: 0.25rem;
}

.hf-site-header__inner,
.hf-site-nav-row,
.hf-article-shell,
.hf-site-footer__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.hf-site-header__inner {
	display: grid;
	align-items: flex-start;
	grid-template-areas: "brand";
	justify-content: center;
	justify-items: center;
	padding-top: 0;
	padding-bottom: 0;
}

.hf-site-nav-row {
	margin-block-start: 0.5rem;
	padding-bottom: 3px;
}

.hf-site-header.wp-block-group > .wp-block-group,
.hf-site-header .wp-block-shortcode {
	margin-block-start: 0;
	margin-block-end: 0;
}

.hf-site-header.wp-block-group > .wp-block-group.hf-site-nav-row {
	margin-block-start: 0.5rem;
}

.hf-site-header__inner > p {
	grid-area: brand;
	margin: 0;
}

.hf-site-header__inner > .wp-block-shortcode {
	grid-area: brand;
}

.hf-site-header__inner > .wp-block-shortcode:last-child {
	align-self: end;
	justify-self: center;
	width: var(--hf-content-width);
	max-width: 100%;
}

.hf-header-logo-link {
	display: inline-flex;
	align-items: center;
	grid-area: brand;
	justify-content: center;
	width: clamp(540px, 46vw, 640px);
	max-width: 100%;
	color: var(--hf-color-text);
	text-decoration: none;
}

.hf-header-wordmark-image {
	display: block;
	width: 100%;
	height: auto;
}

.hf-primary-header-nav {
	font-family: var(--hf-font-ui);
}

.hf-primary-header-nav__panel {
	margin: 0;
}

.hf-primary-header-nav__panel > summary {
	list-style: none;
}

.hf-primary-header-nav__panel > summary::-webkit-details-marker {
	display: none;
}

.hf-primary-header-nav__toggle {
	display: none;
}

.hf-primary-header-nav__content {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	padding: 2px 0;
	min-height: 34px;
}

.hf-primary-header-nav--search-only .hf-primary-header-nav__content {
	justify-content: flex-end;
}

.hf-primary-header-nav__search-row {
	display: flex;
	grid-area: brand;
	align-self: end;
	justify-self: end;
	justify-content: flex-end;
	margin-block-start: 0;
	padding: 0;
}

@media (min-width: 1121px) {
	.hf-site-header__inner > .hf-primary-header-nav__search-row {
		margin-block-start: 0;
	}
}

.hf-primary-header-nav__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hf-primary-header-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding-block: 0.42rem;
	padding-inline: 0.34rem;
	border-radius: 6px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	color: var(--hf-color-text);
}

.hf-primary-header-nav__link[aria-current="page"],
.hf-primary-header-nav__link:hover {
	background: var(--hf-color-accent-soft);
	color: var(--hf-color-accent);
}

.hf-primary-header-nav__link:focus-visible,
.hf-primary-header-nav__toggle:focus-visible,
.hf-primary-header-nav__search-input:focus-visible,
.hf-primary-header-nav__search-button:focus-visible,
.hf-search-card a:focus-visible,
.hf-table-of-contents a:focus-visible,
.hf-category-card a:focus-visible {
	outline: 2px solid var(--hf-color-accent);
	outline-offset: 3px;
}

.hf-primary-header-nav__search {
	display: flex;
	align-items: center;
	width: min(14rem, 100%);
	min-width: 12rem;
	height: 2rem;
	border: 1px solid var(--hf-color-line);
	border-radius: 6px;
	overflow: hidden;
}

.hf-primary-header-nav__search-input {
	flex: 1;
	min-width: 0;
	width: 100%;
	border: 0;
	padding: 0 0.75rem;
	opacity: 1;
	font: inherit;
}

.hf-primary-header-nav__search-button {
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	min-width: 2.25rem;
	padding: 0;
	background: var(--hf-color-accent);
	color: #ffffff;
	cursor: pointer;
}

.hf-article-shell {
	padding-top: 38px;
	padding-bottom: 48px;
}

.hf-article-header,
.hf-article-content,
.hf-article-footer,
.hf-search-shell,
.hf-category-shell {
	max-width: 760px;
	margin: 0 auto;
}

.hf-article-kicker {
	color: var(--hf-color-muted);
	font-size: 0.92rem;
}

.hf-article-meta,
.hf-search-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--hf-color-muted);
	font-size: 0.94rem;
}

.hf-short-answer,
.hf-transparency-note,
.hf-sources,
.hf-table-of-contents,
.hf-related-articles {
	margin: 28px 0;
	padding: 18px;
	border: 1px solid var(--hf-color-line);
	border-radius: 8px;
	background: var(--hf-color-surface);
}

.hf-short-answer h2,
.hf-transparency-note h2,
.hf-sources h2,
.hf-table-of-contents__title,
.hf-related-articles h2 {
	margin-top: 0;
}

.hf-table-of-contents {
	font-size: 0.98rem;
	line-height: 1.5;
}

.hf-table-of-contents__title {
	margin-bottom: 10px;
	font-weight: 700;
}

.hf-table-of-contents__list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding-left: 22px;
}

.hf-table-of-contents__item a {
	color: inherit;
}

.hf-article-content h2,
.hf-article-content h3 {
	scroll-margin-top: 96px;
	text-wrap: balance;
}

.hf-article-featured-image {
	max-width: 920px;
	margin: 26px auto;
}

.hf-article-featured-image__image {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.hf-article-featured-image figcaption {
	margin-top: 8px;
	color: var(--hf-color-muted);
	font-size: 0.92rem;
}

.hf-site-footer {
	margin-top: clamp(3rem, 7vw, 5rem);
	border-top: 1px solid var(--hf-color-line);
	background: var(--hf-color-surface);
}

.hf-site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.hf-site-footer p {
	margin: 0;
}

.hf-site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.1rem;
}

.hf-site-footer__links a {
	font-size: 13px;
}

.hf-search-shell,
.hf-category-shell {
	padding: 38px 20px 48px;
}

.hf-search-results__list,
.hf-category-results__list {
	display: grid;
	gap: 18px;
}

.hf-search-card,
.hf-category-card {
	display: grid;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--hf-color-line);
	border-radius: 8px;
	background: var(--hf-color-surface);
}

.hf-search-card {
	grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
	align-items: start;
}

.hf-search-card__image,
.hf-category-card__image {
	margin: 0;
}

.hf-search-card__image img,
.hf-category-card__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
}

.hf-search-card__title,
.hf-category-card__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.25;
	text-wrap: balance;
}

.hf-search-card__title a,
.hf-category-card__title a {
	color: inherit;
}

.hf-search-card__excerpt,
.hf-category-card__excerpt {
	margin: 10px 0 0;
	line-height: 1.55;
}

.hf-search-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 12px;
	color: var(--hf-color-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

@media (max-width: 720px) {
	.hf-primary-header-nav__content {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (max-width: 1120px) {
	.hf-primary-header-nav__panel {
		position: relative;
		display: block;
		text-align: center;
	}

	.hf-primary-header-nav__toggle {
		display: inline-flex;
		gap: 7px;
		align-items: center;
		min-height: 36px;
		padding: 3px 9px;
		border-radius: 999px;
		color: var(--hf-color-text);
		font-weight: 650;
		cursor: pointer;
	}

	.hf-primary-header-nav__toggle-icon,
	.hf-primary-header-nav__toggle-icon::before,
	.hf-primary-header-nav__toggle-icon::after {
		display: block;
		width: 16px;
		height: 2px;
		border-radius: 999px;
		background: currentColor;
	}

	.hf-primary-header-nav__toggle-icon {
		position: relative;
	}

	.hf-primary-header-nav__toggle-icon::before,
	.hf-primary-header-nav__toggle-icon::after {
		position: absolute;
		left: 0;
		content: "";
	}

	.hf-primary-header-nav__toggle-icon::before {
		top: -5px;
	}

	.hf-primary-header-nav__toggle-icon::after {
		top: 5px;
	}

	.hf-primary-header-nav__content {
		display: grid;
		gap: 14px;
		width: min(84vw, 352px);
		margin: 10px auto 0;
		padding: 16px;
		border: 1px solid var(--hf-color-line);
		border-radius: 8px;
		background: #ffffff;
		box-shadow: 0 16px 32px rgba(23, 33, 28, 0.12);
		text-align: left;
	}

	.hf-primary-header-nav__panel:not([open]) .hf-primary-header-nav__content {
		display: none;
	}

	.hf-primary-header-nav__list {
		display: grid;
		gap: 3px;
	}

	.hf-primary-header-nav__search {
		min-width: 0;
		width: 100%;
	}
}

@media (max-width: 700px) {
	.hf-search-card {
		grid-template-columns: 1fr;
	}
}

body,
.editor-styles-wrapper {
	background: var(--hf-warm-background);
	color: var(--hf-text-dark);
}

.hf-site-nav-row {
	background: transparent;
}

.hf-primary-header-nav__content {
	gap: 0.5rem;
}

.hf-primary-header-nav__nav {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.78rem;
	font-weight: 650;
	line-height: 1;
}

.hf-primary-header-nav__link {
	min-height: 2rem;
	padding-block: 0.42rem;
	padding-inline: 0.34rem;
	color: var(--hf-text-dark);
}

.hf-primary-header-nav__link:hover,
.hf-primary-header-nav__link:focus,
.hf-primary-header-nav__link[aria-current="page"] {
	background: rgba(250, 140, 0, 0.13);
	color: var(--hf-brand-red);
}

.hf-primary-header-nav__link:focus-visible,
.hf-primary-header-nav__toggle:focus-visible,
.hf-primary-header-nav__search-input:focus-visible,
.hf-primary-header-nav__search-button:focus-visible,
.hf-search-card a:focus-visible,
.hf-table-of-contents a:focus-visible,
.hf-category-card a:focus-visible,
.hf-site-footer a:focus-visible {
	outline: 2px solid var(--hf-accent-orange);
	outline-offset: 3px;
}

.hf-primary-header-nav__search {
	border-color: rgba(50, 30, 20, 0.18);
	background: var(--hf-warm-surface);
}

.hf-primary-header-nav__search-input {
	background: transparent;
	color: var(--hf-text-dark);
	font-family: var(--hf-font-ui);
}

.hf-primary-header-nav__search-button {
	background: var(--hf-brand-red);
	color: var(--hf-warm-surface);
}

.hf-primary-header-nav__search-button:hover,
.hf-primary-header-nav__search-button:focus {
	background: var(--hf-accent-orange);
	color: var(--hf-text-dark);
}

.hf-article-shell {
	padding-top: clamp(2rem, 5vw, 4rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hf-article-header,
.hf-article-content,
.hf-article-footer,
.hf-search-shell,
.hf-category-shell {
	max-width: var(--hf-content-width);
}

.hf-article-header {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hf-article-kicker {
	color: var(--hf-brand-red);
	font-family: var(--hf-font-ui);
	font-size: var(--hf-type-small);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.hf-article-header .wp-block-post-title {
	max-width: 22ch;
	margin-top: var(--hf-space-2);
	margin-bottom: var(--hf-space-3);
	font-family: var(--hf-font-body);
	font-size: var(--hf-type-h1);
	line-height: 1.06;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
	-webkit-hyphens: manual;
	hyphens: manual;
	text-wrap: balance;
}

.hf-article-meta,
.hf-search-card__meta {
	color: var(--hf-text-muted);
	font-family: var(--hf-font-ui);
}

.hf-article-content {
	font-size: var(--hf-type-body);
	line-height: 1.78;
}

.hf-article-content > * {
	margin-block-start: 1.15em;
	margin-block-end: 1.15em;
}

.hf-article-content p,
.hf-article-content li {
	max-width: 68ch;
}

.hf-article-content h2 {
	margin-top: 2.25em;
	font-size: var(--hf-type-h2);
	line-height: 1.2;
}

.hf-article-content h3 {
	margin-top: 1.8em;
	font-size: var(--hf-type-h3);
	line-height: 1.28;
}

.hf-article-content ul,
.hf-article-content ol {
	padding-left: 1.35em;
}

.hf-article-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-family: var(--hf-font-ui);
	font-size: 0.96rem;
}

.hf-article-content th,
.hf-article-content td {
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--hf-border-subtle);
}

.hf-short-answer,
.hf-transparency-note,
.hf-sources,
.hf-table-of-contents,
.hf-related-articles {
	border-color: var(--hf-border-subtle);
	border-radius: var(--hf-radius);
	background: rgba(255, 250, 242, 0.76);
	box-shadow: none;
}

.hf-short-answer {
	border-left: 4px solid var(--hf-brand-red);
	background: #fff7ea;
}

.hf-short-answer h2,
.hf-transparency-note h2,
.hf-sources h2,
.hf-related-articles h2 {
	color: var(--hf-text-dark);
	font-size: var(--hf-type-h3);
	line-height: 1.25;
}

.hf-table-of-contents {
	font-family: var(--hf-font-ui);
}

.hf-table-of-contents__title {
	color: var(--hf-brand-red);
}

.hf-sources,
.hf-transparency-note {
	color: var(--hf-text-muted);
	font-family: var(--hf-font-ui);
	font-size: 0.96rem;
}

.hf-article-content:has(.hf-sources) + .hf-article-footer .hf-related-articles {
	margin-top: 3.75rem;
}

.hf-article-featured-image {
	max-width: min(920px, calc(100vw - 40px));
	margin: clamp(1.75rem, 4vw, 3rem) auto clamp(2.25rem, 5vw, 4rem);
}

.hf-article-featured-image__image {
	display: block;
	border-radius: var(--hf-radius);
	background: var(--hf-warm-surface);
}

.hf-article-featured-image figcaption {
	color: var(--hf-text-muted);
	font-family: var(--hf-font-ui);
	line-height: 1.5;
}

.hf-search-shell,
.hf-category-shell {
	padding-top: clamp(2rem, 5vw, 4rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hf-search-card,
.hf-category-card {
	border-color: var(--hf-border-subtle);
	border-radius: var(--hf-radius);
	background: rgba(255, 250, 242, 0.82);
	box-shadow: none;
}

.hf-search-card__title,
.hf-category-card__title {
	font-family: var(--hf-font-body);
}

.hf-search-card__excerpt,
.hf-category-card__excerpt {
	color: var(--hf-text-dark);
}

.hf-related-articles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--hf-space-4);
}

.hf-related-articles__item {
	min-width: 0;
}

.hf-related-articles__image-link {
	display: block;
	margin-bottom: 0.65rem;
}

.hf-related-articles__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--hf-radius);
}

.hf-related-articles__item-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.hf-related-articles__item-title a {
	color: inherit;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.16em;
}

.hf-related-articles__excerpt {
	margin: 0.45rem 0 0;
	color: var(--hf-text-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.hf-home {
	padding-top: clamp(1.75rem, 4vw, 3.5rem);
	padding-bottom: clamp(2.75rem, 6vw, 5rem);
}

.hf-home-hero {
	max-width: 58rem;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.hf-home-hero__title {
	max-width: 54rem;
	margin-bottom: 1rem;
	font-family: var(--hf-font-body);
	font-size: clamp(2.15rem, 1.8rem + 1.1vw, 3rem);
	line-height: 1.08;
	text-wrap: balance;
}

.hf-home-hero__intro {
	max-width: 54rem;
	color: var(--hf-text-dark);
	font-size: 1.14rem;
	line-height: 1.72;
}

.hf-home-section {
	max-width: 54rem;
	margin-top: clamp(2rem, 5vw, 4rem);
}

.hf-home-section > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 54rem;
}

.hf-home-section__title {
	margin-bottom: clamp(1rem, 2.5vw, 1.4rem);
	font-family: var(--hf-font-body);
	font-size: clamp(1.45rem, 1.25rem + 0.75vw, 2rem);
	line-height: 1.25;
	text-wrap: balance;
}

.hf-home-topic-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hf-home-topic-card {
	display: grid;
	gap: 0.85rem;
	overflow: hidden;
	border: 1px solid rgba(150, 10, 20, 0.16);
	border-radius: var(--hf-radius);
	background: #fff0df;
	color: var(--hf-text-dark);
	font-family: var(--hf-font-ui);
	font-size: 1.03rem;
	font-weight: 750;
	line-height: 1.35;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.16em;
}

.hf-home-topic-card__media {
	display: block;
	background: rgba(255, 250, 242, 0.58);
}

.hf-home-topic-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hf-home-topic-card__label {
	display: block;
	padding: 0 clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.35;
}

.hf-home-topic-card:hover,
.hf-home-topic-card:focus {
	border-color: rgba(250, 140, 0, 0.62);
	background: #ffe7c4;
	color: var(--hf-brand-red);
}

.hf-home-entry-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.35rem);
}

.hf-home-entry-card {
	overflow: hidden;
	border: 1px solid var(--hf-border-subtle);
	border-radius: var(--hf-radius);
	background: rgba(255, 250, 242, 0.9);
}

.hf-home-entry-card__image-link {
	display: block;
}

.hf-home-entry-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hf-home-entry-card__body {
	padding: clamp(1rem, 2.5vw, 1.25rem);
}

.hf-home-entry-card__title {
	margin: 0;
	font-family: var(--hf-font-body);
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.35rem);
	line-height: 1.3;
	text-wrap: balance;
}

.hf-home-entry-card__title a {
	color: inherit;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.16em;
}

.hf-home-entry-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	margin: 0.7rem 0 0;
	color: var(--hf-text-dark);
	line-height: 1.55;
}

.hf-home-entry-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	margin-top: 0.8rem;
	color: var(--hf-text-muted);
	font-family: var(--hf-font-ui);
	font-size: 0.9rem;
	line-height: 1.45;
}

.hf-home-entry-card__meta a {
	color: inherit;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.16em;
}

.hf-home-section--trust {
	max-width: 54rem;
	padding: clamp(1.1rem, 3vw, 1.5rem);
	border: 1px solid var(--hf-border-subtle);
	border-radius: var(--hf-radius);
	background: #f4eadb;
}

.hf-home-trust__text {
	margin-top: 0;
	line-height: 1.65;
}

.hf-home a:focus-visible {
	outline: 2px solid var(--hf-accent-orange);
	outline-offset: 3px;
}

.hf-site-footer {
	background: var(--hf-warm-surface-strong);
	color: var(--hf-text-muted);
	font-family: var(--hf-font-ui);
	font-size: var(--hf-type-small);
}

.hf-site-footer a {
	color: inherit;
}

.hf-site-footer a:hover,
.hf-site-footer a:focus {
	color: var(--hf-brand-red);
}

@media (max-width: 1120px) {
	.hf-site-header__inner {
		display: flex;
		align-items: center;
		flex-direction: column;
	}

	.hf-site-header__inner > .wp-block-shortcode {
		grid-area: auto;
	}

	.hf-site-header__inner > .wp-block-shortcode:last-child {
		width: min(84vw, 352px);
	}

	.hf-header-logo-link {
		width: min(88vw, 560px);
	}

	.hf-primary-header-nav__search-row {
		width: min(84vw, 352px);
		margin: 0 auto 8px;
		padding-bottom: 0;
	}

	.hf-site-header__inner > .hf-primary-header-nav__search-row {
		margin: 0 auto 8px;
	}

	.hf-primary-header-nav__toggle {
		color: var(--hf-text-dark);
		font-family: var(--hf-font-ui);
	}

	.hf-primary-header-nav__content {
		border-color: var(--hf-border-subtle);
		background: var(--hf-warm-surface);
		box-shadow: 0 14px 28px rgba(50, 30, 20, 0.1);
	}

	.hf-primary-header-nav__list {
		display: grid;
		gap: 3px;
	}

	.hf-primary-header-nav__link {
		justify-content: flex-start;
		min-height: 2.3rem;
		padding-block: 0.55rem;
		padding-inline: 0.7rem;
	}

	.hf-primary-header-nav__search {
		width: 100%;
		min-width: 0;
	}

	.hf-primary-header-nav__search-input,
	.hf-primary-header-nav__search:hover .hf-primary-header-nav__search-input,
	.hf-primary-header-nav__search:focus-within .hf-primary-header-nav__search-input {
		width: 100%;
		padding: 0 0.75rem;
		opacity: 1;
	}
}

@media (max-width: 520px) {
	.hf-site-header__inner,
	.hf-site-nav-row,
	.hf-article-shell,
	.hf-site-footer__inner {
		padding-right: 16px;
		padding-left: 16px;
	}

	.hf-header-logo-link {
		width: min(88vw, 340px);
	}

	.hf-article-header .wp-block-post-title {
		max-width: 100%;
		font-size: 2.2rem;
	}

	.hf-article-content {
		font-size: 1.04rem;
	}

	.hf-site-footer__inner,
	.hf-site-footer__links {
		display: grid;
		gap: 0.55rem;
	}

	.hf-short-answer,
	.hf-transparency-note,
	.hf-sources,
	.hf-table-of-contents,
	.hf-related-articles,
	.hf-search-card,
	.hf-category-card {
		padding: 16px;
	}

	.hf-article-content:has(.hf-sources) + .hf-article-footer .hf-related-articles {
		margin-top: 3rem;
	}
}

@media (max-width: 760px) {
	.hf-home-topic-list,
	.hf-home-entry-grid {
		grid-template-columns: 1fr;
	}
}
