/*
Theme Name: Immobilien Fachwissen
Theme URI: https://immobilien-fachwissen.test/
Author: Immobilien Fachwissen
Description: Ein schnelles, redaktionelles WordPress-Theme für Immobilienwissen, Ratgeber und Marktanalysen.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: immobilien-fachwissen
*/

:root {
	--ifw-bg: #f7f4ee;
	--ifw-surface: #fffdf8;
	--ifw-surface-strong: #ece5d8;
	--ifw-ink: #1f2521;
	--ifw-muted: #646a61;
	--ifw-line: #d9d0c2;
	--ifw-accent: rgb(131 98 74);
	--ifw-accent-dark: #154c41;
	--ifw-alert: #9f4f2d;
	--ifw-radius: 8px;
	--ifw-max: 1180px;
	--ifw-shadow: 0 24px 70px rgba(42, 38, 31, .10);
	--ifw-font: "Satoshi", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
	--ifw-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ifw-ink);
	background:
		linear-gradient(90deg, rgba(31, 111, 91, .07) 1px, transparent 1px) 0 0 / 72px 72px,
		linear-gradient(180deg, rgba(31, 111, 91, .04), transparent 42rem),
		var(--ifw-bg);
	font-family: var(--ifw-font);
	font-size: 17px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: 30;
	pointer-events: none;
	content: "";
	opacity: .055;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

a {
	color: inherit;
	text-decoration-color: rgba(31, 111, 91, .38);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	transition: color .2s ease, text-decoration-color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

a:hover {
	color: var(--ifw-accent-dark);
	text-decoration-color: var(--ifw-accent);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 10px 14px;
	color: var(--ifw-surface);
	background: var(--ifw-ink);
	clip: auto;
}

.ifw-wrap {
	width: min(calc(100% - 40px), var(--ifw-max));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(31, 37, 33, .11);
	background: rgba(247, 244, 238, .86);
	backdrop-filter: blur(18px);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 22px;
	min-height: 78px;
}

.site-branding {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.site-branding__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: var(--ifw-surface);
	background: var(--ifw-ink);
	border-radius: 50%;
	position: relative;
	flex: 0 0 auto;
}

.site-branding__mark::before,
.site-branding__mark::after {
	position: absolute;
	content: "";
	border: 2px solid currentColor;
}

.site-branding__mark::before {
	width: 15px;
	height: 13px;
	bottom: 12px;
	border-top: 0;
}

.site-branding__mark::after {
	width: 13px;
	height: 13px;
	top: 11px;
	border-right: 0;
	border-bottom: 0;
	transform: rotate(45deg);
}

.site-title {
	display: block;
	font-size: 17px;
	font-weight: 780;
	line-height: 1.1;
	letter-spacing: 0;
}

.site-description {
	display: block;
	margin-top: 2px;
	color: var(--ifw-muted);
	font-size: 12px;
	line-height: 1.2;
}

.primary-nav {
	justify-self: end;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 3px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--ifw-muted);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--ifw-ink);
	background: rgba(255, 253, 248, .82);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ifw-search {
	position: relative;
	width: min(240px, 26vw);
}

.ifw-search input[type="search"] {
	width: 100%;
	min-height: 42px;
	padding: 10px 42px 10px 15px;
	border: 1px solid rgba(31, 37, 33, .15);
	border-radius: 999px;
	outline: 0;
	background: rgba(255, 253, 248, .85);
	color: var(--ifw-ink);
}

.ifw-search input[type="search"]:focus {
	border-color: rgba(31, 111, 91, .65);
	box-shadow: 0 0 0 3px rgba(31, 111, 91, .12);
}

.ifw-search button {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--ifw-surface);
	background: var(--ifw-accent);
	cursor: pointer;
	line-height: 0;
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(31, 37, 33, .16);
	border-radius: 999px;
	background: var(--ifw-surface);
	color: var(--ifw-ink);
	cursor: pointer;
}

.menu-toggle svg,
.ifw-search svg {
	width: 18px;
	height: 18px;
	display: block;
}

.site-main {
	min-height: 62vh;
}

.hero {
	padding: 38px 0 26px;
}

.hero--posts {
	padding-top: 32px;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
	gap: clamp(28px, 5vw, 76px);
	align-items: end;
}

.eyebrow,
.post-card__meta,
.entry-meta,
.archive-label {
	color: var(--ifw-accent-dark);
	font-family: var(--ifw-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hero h1,
.page-title,
.entry-title {
	margin: 0;
	font-size: clamp(42px, 7.2vw, 86px);
	line-height: .96;
	letter-spacing: 0;
}

.hero p {
	max-width: 680px;
	margin: 24px 0 0;
	color: var(--ifw-muted);
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.55;
}

.hero__panel {
	position: relative;
	padding: 24px;
	border: 1px solid rgba(31, 37, 33, .12);
	border-radius: var(--ifw-radius);
	background: var(--ifw-surface);
	box-shadow: var(--ifw-shadow);
	overflow: hidden;
}

.hero__panel::before {
	position: absolute;
	inset: 0;
	content: "";
	background:
		linear-gradient(135deg, rgba(31, 111, 91, .12), transparent 42%),
		radial-gradient(circle at 84% 16%, rgba(159, 79, 45, .17), transparent 26%);
	pointer-events: none;
}

.hero__panel > * {
	position: relative;
}

.hero__panel-number {
	margin: 0;
	font-family: var(--ifw-mono);
	font-size: clamp(44px, 7vw, 78px);
	line-height: .9;
	letter-spacing: -.04em;
}

.hero__panel-text {
	margin: 18px 0 0;
	color: var(--ifw-muted);
	font-size: 15px;
	line-height: 1.55;
}

.hero-posts {
	display: grid;
	grid-template-columns: minmax(0, 1.48fr) minmax(280px, .52fr);
	gap: 16px;
	align-items: start;
}

.hero-post {
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: var(--ifw-surface);
	overflow: hidden;
}

.hero-post--lead {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
	min-height: 456px;
	box-shadow: var(--ifw-shadow);
}

.hero-post__media,
.hero-post__thumb {
	display: block;
	background: var(--ifw-surface-strong);
	overflow: hidden;
	text-decoration: none;
}

.hero-post__media img,
.hero-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.hero-post:hover .hero-post__media img,
.hero-post:hover .hero-post__thumb img {
	transform: scale(1.035);
}

.hero-post__content {
	align-content: center;
	display: grid;
	gap: 14px;
	padding: clamp(20px, 2.4vw, 30px);
}

.hero-post__content h1 {
	margin: 0;
	max-width: 640px;
	font-size: clamp(28px, 3.15vw, 42px);
	line-height: 1.04;
	letter-spacing: 0;
}

.hero-post__content h1 a,
.hero-post--compact h2 a {
	text-decoration: none;
}

.hero-post__content p {
	max-width: 620px;
	margin: 0;
	color: var(--ifw-muted);
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: 1.52;
}

.hero-post__content .ifw-button {
	justify-self: start;
}

.hero-posts__side {
	display: grid;
	gap: 10px;
}

.hero-post--compact {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	min-height: 0;
	box-shadow: none;
}

.hero-post--compact:hover {
	background: #fffaf0;
}

.hero-post__thumb {
	width: 100%;
	height: 100%;
	min-height: 0;
	border-right: 1px solid var(--ifw-line);
}

.hero-post__compact-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	min-width: 0;
}

.hero-post--compact h2 {
	margin: 0;
	font-size: clamp(16px, 1.06vw, 18px);
	line-height: 1.18;
	overflow-wrap: anywhere;
}

.hero-post--compact .post-card__read {
	margin-top: auto;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.ifw-button,
.post-navigation a,
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid rgba(31, 37, 33, .16);
	border-radius: 999px;
	background: var(--ifw-surface);
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.ifw-button--primary {
	color: var(--ifw-surface);
	background: var(--ifw-accent);
	border-color: var(--ifw-accent);
}

.ifw-button:hover,
.post-navigation a:hover,
.pagination .page-numbers:hover {
	transform: translateY(-1px);
}

.section {
	padding: 48px 0;
}

.section--ruled {
	border-top: 1px solid var(--ifw-line);
}

.home-intro-section {
	padding-top: 22px;
}

.home-intro {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: clamp(22px, 5vw, 68px);
	align-items: start;
	padding: 26px 0 10px;
	border-top: 1px solid var(--ifw-line);
	border-bottom: 1px solid var(--ifw-line);
}

.home-intro p {
	max-width: 860px;
	margin: 0;
	color: var(--ifw-muted);
	font-size: clamp(18px, 1.5vw, 18px);
	line-height: 1.6;
}

.partners-section {
	padding-top: 36px;
}

.partners-section--inline {
	padding: 34px 0;
	border-top: 1px solid var(--ifw-line);
}

.partners-section__header {
	margin-bottom: 18px;
}

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

.partner-card {
	display: grid;
	gap: 16px;
	min-height: 176px;
	padding: 22px;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	text-decoration: none;
}

.partner-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 86px;
	padding: 10px;
}

.partner-card__logo img {
	max-height: 72px;
	width: auto;
	object-fit: contain;
}

.partner-card__label {
	align-self: end;
	color: var(--ifw-muted);
	font-family: var(--ifw-mono);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.partner-card:hover {
	border-color: rgba(131, 98, 74, .38);
	transform: translateY(-1px);
}

.section-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.section-title {
	margin: 0;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.05;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 18px;
}

.post-card {
	grid-column: span 4;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	overflow: hidden;
}

.post-card--featured {
	grid-column: span 8;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 0;
	border: 1px solid var(--ifw-line);
	background: var(--ifw-surface);
	box-shadow: var(--ifw-shadow);
}

.post-card__media {
	aspect-ratio: 16 / 10;
	background: var(--ifw-surface-strong);
	overflow: hidden;
}

.post-card--featured .post-card__media {
	aspect-ratio: auto;
	min-height: 360px;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.post-card:hover .post-card__media img {
	transform: scale(1.035);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
}

.post-card--featured .post-card__body {
	padding: clamp(24px, 3vw, 38px);
}

.post-card__title {
	margin: 0;
	font-size: clamp(21px, 2.3vw, 31px);
	line-height: 1.12;
	letter-spacing: 0;
}

.post-card:not(.post-card--featured) .post-card__title {
	font-size: 22px;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__excerpt {
	margin: 0;
	color: var(--ifw-muted);
	font-size: 15px;
	line-height: 1.62;
}

.post-card__read {
	margin-top: auto;
	color: var(--ifw-accent-dark);
	font-size: 14px;
	font-weight: 780;
	text-decoration: none;
}

.category-band {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 28px;
	align-items: start;
	padding: 30px;
	border: 1px solid var(--ifw-line);
	background: var(--ifw-ink);
	color: var(--ifw-surface);
}

.category-band p {
	margin: 12px 0 0;
	color: rgba(255, 253, 248, .68);
}

.category-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 10px 14px;
	border: 1px solid rgba(255, 253, 248, .16);
	border-radius: var(--ifw-radius);
	color: var(--ifw-surface);
	text-decoration: none;
}

.category-list a:hover {
	background: rgba(255, 253, 248, .08);
	color: var(--ifw-surface);
}

.category-count {
	color: rgba(255, 253, 248, .62);
	font-family: var(--ifw-mono);
	font-size: 12px;
}

.category-sections {
	padding-top: 24px;
}

.category-section {
	padding: 34px 0;
	border-top: 1px solid var(--ifw-line);
}

.category-section:first-child {
	padding-top: 0;
	border-top: 0;
}

.category-section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.category-section__title {
	margin: 4px 0 0;
	font-size: clamp(25px, 2.5vw, 36px);
	line-height: 1.06;
}

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

.category-post {
	min-width: 0;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	overflow: hidden;
}

.category-post__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--ifw-surface-strong);
	overflow: hidden;
}

.category-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.category-post:hover .category-post__media img {
	transform: scale(1.035);
}

.category-post__body {
	display: grid;
	gap: 8px;
	padding: 14px;
}

.category-post h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.16;
	overflow-wrap: anywhere;
}

.category-post h3 a {
	text-decoration: none;
}

.home-about-section {
	padding-top: 26px;
}

.home-about {
	display: grid;
	gap: 24px;
	padding-top: 36px;
	border-top: 1px solid var(--ifw-line);
}

.home-about__intro {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(24px, 5vw, 70px);
	align-items: end;
}

.home-about__intro h2 {
	margin: 4px 0 0;
	font-size: clamp(30px, 4vw, 54px);
	line-height: 1;
}

.home-about__intro p {
	margin: 0;
	color: var(--ifw-muted);
	font-size: 18px;
	line-height: 1.6;
}

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

.home-about__grid article,
.home-about__closing {
	padding: 20px;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
}

.home-about__grid h3,
.home-about__closing h3 {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.15;
}

.home-about__grid p,
.home-about__closing p {
	margin: 0;
	color: var(--ifw-muted);
	font-size: 15px;
	line-height: 1.58;
}

.home-about__closing {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	background: var(--ifw-ink);
	color: #fff;
}

.home-about__closing p {
	color: rgba(255, 253, 248, .72);
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(30px, 5vw, 72px);
	align-items: start;
	padding: 58px 0;
}

.archive-header,
.entry-header {
	padding: 58px 0 34px;
	border-bottom: 1px solid var(--ifw-line);
}

.archive-description,
.entry-summary {
	max-width: 760px;
	margin-top: 18px;
	color: var(--ifw-muted);
	font-size: 19px;
	line-height: 1.62;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.entry-media {
	margin: 34px 0 0;
	overflow: hidden;
	border-radius: var(--ifw-radius);
	background: var(--ifw-surface-strong);
}

.entry-media img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.entry-content {
	max-width: 780px;
	font-size: 18px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 2em 0 .65em;
	line-height: 1.15;
	letter-spacing: 0;
	scroll-margin-top: 112px;
}

.entry-content h2 {
	font-size: clamp(30px, 3vw, 42px);
}

.entry-content h3 {
	font-size: clamp(24px, 2.2vw, 31px);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.35em;
}

.entry-content a {
	color: var(--ifw-accent-dark);
	font-weight: 650;
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--ifw-accent);
	color: var(--ifw-ink);
	font-size: 22px;
	line-height: 1.45;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	padding: 12px;
	border-bottom: 1px solid var(--ifw-line);
	text-align: left;
}

.entry-content h2 + details {
	margin-top: 1.2rem;
}

.entry-content details {
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	box-shadow: 0 14px 34px rgba(42, 38, 31, .055);
	overflow: hidden;
}

.entry-content details + details {
	margin-top: 10px;
}

.entry-content summary {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28px;
	gap: 16px;
	align-items: center;
	padding: 18px 20px;
	color: var(--ifw-ink);
	font-size: 17px;
	font-weight: 780;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.entry-content summary::-webkit-details-marker {
	display: none;
}

.entry-content summary::after {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(31, 37, 33, .13);
	border-radius: 50%;
	color: var(--ifw-accent);
	background: #f7f4ee;
	content: "+";
	font-family: var(--ifw-mono);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.entry-content details[open] summary {
	border-bottom: 1px solid var(--ifw-line);
}

.entry-content details[open] summary::after {
	content: "-";
}

.entry-content summary:focus-visible {
	outline: 3px solid rgba(131, 98, 74, .22);
	outline-offset: -3px;
}

.entry-content details .answer {
	padding: 18px 20px 20px;
	color: var(--ifw-muted);
	font-size: 16px;
	line-height: 1.65;
}

.entry-content details .answer > *:last-child {
	margin-bottom: 0;
}

.lexicon-hero {
	padding: 58px 0 34px;
	border-bottom: 1px solid var(--ifw-line);
}

.lexicon-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: clamp(28px, 5vw, 70px);
	align-items: end;
}

.lexicon-hero p {
	margin: 0;
	color: var(--ifw-muted);
	font-size: 19px;
	line-height: 1.5;
}

.lexicon-layout {
	padding: 44px 0 24px;
}

.lexicon-content {
	max-width: none;
}

.lexicon-content > .container,
.lexicon-content .container {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

.lexicon-content .gloss-search {
	display: grid;
	gap: 14px;
	width: 100% !important;
	margin-bottom: 18px;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	box-shadow: var(--ifw-shadow);
	text-align: left !important;
}

.lexicon-content .gloss-search strong {
	display: block;
	max-width: 620px;
	padding: 0;
	color: var(--ifw-ink);
	font-size: clamp(24px, 3vw, 38px);
	font-style: normal;
	line-height: 1.08;
	letter-spacing: 0;
}

.lexicon-content #em-glossary-search {
	width: 100%;
	min-height: 54px;
	padding: 13px 16px;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fffdf8;
	color: var(--ifw-ink);
	outline: 0;
}

.lexicon-content #em-glossary-search:focus {
	border-color: rgba(131, 98, 74, .68);
	box-shadow: 0 0 0 3px rgba(131, 98, 74, .14);
}

.lexicon-content .em-glossary-count {
	display: none;
	color: var(--ifw-muted);
	font-family: var(--ifw-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.lexicon-content .em-glossary-index {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 6px;
	margin: 0 0 28px !important;
	padding: 0 !important;
	list-style: none;
	box-shadow: none;
	text-align: left;
}

.lexicon-content .em-glossary-index li {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--ifw-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .62);
	color: rgba(31, 37, 33, .42);
	font-family: var(--ifw-mono);
	font-size: 13px;
	font-weight: 800;
}

.lexicon-content .em-glossary-index a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: calc(100% + 20px);
	height: 36px;
	margin: 0 -10px;
	padding: 0 10px;
	border-radius: inherit;
	color: var(--ifw-ink);
	text-decoration: none;
}

.lexicon-content .em-glossary-index a:hover,
.lexicon-content .em-glossary-index a.active {
	color: #fff;
	background: var(--ifw-accent);
}

.lexicon-content .em-glossary-list {
	display: grid;
	gap: 22px;
}

.lexicon-content .em-glossary-items {
	clear: both;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	overflow: hidden;
}

.lexicon-content .em-glossary-title {
	float: none !important;
	width: 100% !important;
	margin: 0 0 10px !important;
	padding: 0 0 10px !important;
	border-bottom: 1px solid var(--ifw-line);
	border-radius: 0;
	background: transparent !important;
	color: var(--ifw-accent);
	font-family: var(--ifw-mono);
	font-size: 18px;
	font-weight: 900;
	letter-spacing: .08em;
}

.lexicon-content .gloss-box {
	clear: both;
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100% !important;
	margin: 0 0 22px !important;
}

.lexicon-content .post-item {
	float: none !important;
	width: auto !important;
	margin: 0;
	padding: 0 !important;
	list-style: none;
}

.lexicon-content .gloss-item-inner {
	display: block;
	min-height: 48px;
	height: 100%;
	padding: 0 !important;
	background: transparent !important;
}

.lexicon-content .gloss-item-inner a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	color: var(--ifw-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.lexicon-content .gloss-item-inner a:hover {
	border-color: rgba(131, 98, 74, .42);
	background: #fffaf0;
	color: var(--ifw-accent);
	transform: translateY(-1px);
}

.entry-footer {
	max-width: 780px;
	margin-top: 38px;
	padding-top: 24px;
	border-top: 1px solid var(--ifw-line);
	color: var(--ifw-muted);
	font-size: 14px;
}

.related-posts {
	max-width: 780px;
	margin-top: 36px;
	padding-top: 30px;
	border-top: 1px solid var(--ifw-line);
}

.related-posts__header {
	margin-bottom: 16px;
}

.related-posts__header h2 {
	margin: 4px 0 0;
	font-size: clamp(25px, 2.4vw, 34px);
	line-height: 1.08;
}

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

.related-post {
	min-width: 0;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	overflow: hidden;
}

.related-post__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--ifw-surface-strong);
	overflow: hidden;
}

.related-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.related-post:hover .related-post__media img {
	transform: scale(1.035);
}

.related-post__body {
	display: grid;
	gap: 8px;
	padding: 14px;
}

.related-post h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.16;
	overflow-wrap: anywhere;
}

.related-post h3 a {
	text-decoration: none;
}

.related-post p {
	margin: 0;
	color: var(--ifw-muted);
	font-size: 14px;
	line-height: 1.45;
}

.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	max-width: 780px;
	margin-top: 36px;
}

.post-navigation .nav-next {
	text-align: right;
}

.sidebar {
	position: sticky;
	top: 112px;
}

.toc-panel {
	padding: 20px;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: #fff;
	box-shadow: 0 16px 44px rgba(42, 38, 31, .07);
}

.toc-panel + .widget-panel {
	margin-top: 16px;
}

.toc-panel__label {
	margin-bottom: 14px;
	color: var(--ifw-accent);
	font-family: var(--ifw-mono);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.toc-list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.toc-list__item {
	counter-increment: toc;
}

.toc-list__item a {
	position: relative;
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 8px;
	padding: 9px 8px;
	border-radius: 6px;
	color: var(--ifw-muted);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.28;
	text-decoration: none;
}

.toc-list__item a::before {
	content: counter(toc, decimal-leading-zero);
	color: rgba(31, 37, 33, .38);
	font-family: var(--ifw-mono);
	font-size: 11px;
	line-height: 1.5;
}

.toc-list__item--h3 a {
	padding-left: 18px;
	font-size: 13px;
	font-weight: 600;
}

.toc-list__item a:hover,
.toc-list__item a:focus {
	color: var(--ifw-ink);
	background: #f7f4ee;
	outline: 0;
}

.toc-list__item a:hover::before,
.toc-list__item a:focus::before {
	color: var(--ifw-accent);
}

.widget-panel {
	padding: 22px;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: rgba(255, 253, 248, .64);
}

.widget-panel + .widget-panel {
	margin-top: 16px;
}

.widget-title {
	margin: 0 0 12px;
	font-size: 17px;
}

.widget-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget-panel li + li {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(31, 37, 33, .1);
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 20px;
}

.pagination {
	margin-top: 38px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .current {
	color: var(--ifw-surface);
	background: var(--ifw-ink);
}

.empty-state,
.not-found {
	max-width: 720px;
	padding: 52px 0;
}

.site-footer {
	margin-top: 44px;
	padding: 44px 0 26px;
	border-top: 1px solid var(--ifw-line);
	background:
		linear-gradient(135deg, rgba(131, 98, 74, .12), transparent 36%),
		rgba(236, 229, 216, .72);
}

.site-footer__top {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 24px;
}

.site-footer__top p {
	max-width: 520px;
	margin: 0;
	color: var(--ifw-muted);
	font-size: 18px;
	line-height: 1.45;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.25fr .85fr .9fr;
	gap: 14px;
	align-items: start;
}

.footer-panel {
	min-height: 100%;
	padding: 22px;
	border: 1px solid var(--ifw-line);
	border-radius: var(--ifw-radius);
	background: rgba(255, 255, 255, .74);
}

.footer-label {
	margin-bottom: 12px;
	color: var(--ifw-accent);
	font-family: var(--ifw-mono);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.footer-panel h2 {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.12;
}

.footer-panel p {
	margin: 14px 0 0;
	color: var(--ifw-muted);
	font-size: 14px;
	line-height: 1.5;
}

.footer-panel .ifw-search {
	width: 100%;
}

.footer-topic-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-topic-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid rgba(31, 37, 33, .1);
	border-radius: 6px;
	background: #fff;
	text-decoration: none;
}

.footer-topic-list a span:last-child {
	color: var(--ifw-muted);
	font-family: var(--ifw-mono);
	font-size: 12px;
}

.footer-topic-list a:hover {
	border-color: rgba(131, 98, 74, .38);
	color: var(--ifw-accent);
	transform: translateY(-1px);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--ifw-line);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 650;
}

.footer-meta {
	color: var(--ifw-muted);
	font-family: var(--ifw-mono);
	font-size: 12px;
	text-align: right;
}

.alignwide {
	max-width: min(100vw - 40px, var(--ifw-max));
	margin-left: calc((780px - min(100vw - 40px, var(--ifw-max))) / 2);
	width: min(100vw - 40px, var(--ifw-max));
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

@media (max-width: 980px) {
	.site-header__inner {
		grid-template-columns: auto auto;
		justify-content: space-between;
	}

	.primary-nav,
	.header-actions .ifw-search {
		display: none;
	}

	.menu-toggle {
		display: grid;
		place-items: center;
	}

	body.nav-open .primary-nav {
		display: block;
		grid-column: 1 / -1;
		width: 100%;
		padding-bottom: 18px;
	}

	body.nav-open .primary-nav ul {
		display: grid;
		justify-content: stretch;
		gap: 6px;
	}

	body.nav-open .primary-nav a {
		border-radius: var(--ifw-radius);
		background: rgba(255, 253, 248, .72);
	}

	.hero__grid,
	.hero-posts,
	.home-intro,
	.home-about__intro,
	.home-about__closing,
	.category-band,
	.content-layout,
	.site-footer__top,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__top,
	.site-footer__bottom {
		display: grid;
		justify-items: start;
	}

	.hero-post--lead {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.post-card,
	.post-card--featured {
		grid-column: span 12;
	}

	.post-card--featured {
		grid-template-columns: 1fr;
	}

	.category-posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.partner-grid,
	.home-about__grid {
		grid-template-columns: 1fr;
	}

	.lexicon-hero__grid {
		grid-template-columns: 1fr;
	}

	.lexicon-content .gloss-box {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sidebar {
		position: static;
	}

	.footer-links,
	.footer-meta {
		justify-content: flex-start;
		text-align: left;
	}
}

@media (max-width: 700px) {
	body {
		font-size: 16px;
	}

	.ifw-wrap {
		width: min(calc(100% - 28px), var(--ifw-max));
	}

	.site-header__inner {
		min-height: 68px;
	}

	.site-description {
		display: none;
	}

	.hero {
		padding: 28px 0 18px;
	}

	.hero__grid h1,
	.page-title,
	.entry-title {
		font-size: clamp(38px, 12vw, 54px);
	}

	.hero-post--lead {
		grid-template-columns: 1fr;
	}

	.hero-post__media {
		aspect-ratio: 4 / 3;
	}

	.hero-post__content {
		padding: 18px;
	}

	.hero-post__content h1 {
		font-size: clamp(27px, 8vw, 38px);
	}

	.hero-post--compact {
		grid-template-columns: 92px minmax(0, 1fr);
	}

	.hero-post__thumb {
		min-height: 0;
	}

	.hero-post__compact-content {
		padding: 11px;
	}

	.hero-post--compact h2 {
		font-size: 16px;
	}

	.section-header {
		display: block;
	}

	.section-header .ifw-button {
		margin-top: 14px;
	}

	.archive-grid,
	.category-list {
		grid-template-columns: 1fr;
	}

	.category-band,
	.hero__panel,
	.widget-panel {
		padding: 18px;
	}

	.category-section__header {
		display: block;
	}

	.category-section__header .ifw-button {
		margin-top: 14px;
	}

	.category-posts {
		grid-template-columns: 1fr;
	}

	.category-post {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.footer-topic-list {
		grid-template-columns: 1fr;
	}

	.category-post__media {
		aspect-ratio: auto;
		height: 100%;
		min-height: 116px;
		border-right: 1px solid var(--ifw-line);
	}

	.post-card--featured .post-card__media {
		min-height: 240px;
	}

	.entry-content {
		font-size: 17px;
	}

	.entry-content summary {
		grid-template-columns: minmax(0, 1fr) 26px;
		padding: 16px;
		font-size: 16px;
	}

	.entry-content summary::after {
		width: 26px;
		height: 26px;
	}

	.entry-content details .answer {
		padding: 16px;
	}

	.related-posts__grid {
		grid-template-columns: 1fr;
	}

	.related-post {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
	}

	.related-post__media {
		aspect-ratio: auto;
		height: 100%;
		min-height: 126px;
		border-right: 1px solid var(--ifw-line);
	}

	.lexicon-hero {
		padding: 38px 0 24px;
	}

	.lexicon-layout {
		padding-top: 28px;
	}

	.lexicon-content .gloss-search {
		padding: 18px;
	}

	.lexicon-content .gloss-box {
		grid-template-columns: 1fr;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}
}
