/*
Theme Name: Einrichtungsblog Magazin
Theme URI: https://einrichtungsblog.test/
Author: Codex
Description: Custom magazine theme for Einrichtungsblog with editorial cards, category sections, and clean reading templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: einrichtungsblog
*/

:root {
	--eb-bg: #f5f1eb;
	--eb-paper: #fffdf8;
	--eb-paper-strong: #ffffff;
	--eb-ink: #211c17;
	--eb-muted: #71685f;
	--eb-soft: #e5ddd2;
	--eb-line: rgba(52, 42, 32, 0.13);
	--eb-accent: #8a4f33;
	--eb-accent-dark: #5f3424;
	--eb-sage: #7b876d;
	--eb-shadow: 0 24px 70px rgba(79, 61, 41, 0.14);
	--eb-radius: 8px;
	--eb-radius-lg: 14px;
	--eb-container: min(1180px, calc(100vw - 40px));
	--eb-display: "Satoshi", "Outfit", "Aptos Display", "Segoe UI", sans-serif;
	--eb-body: "Geist", "Aptos", "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 18% 0%, rgba(138, 79, 51, 0.14), transparent 34rem),
		linear-gradient(180deg, #fbf7ef 0%, var(--eb-bg) 44%, #efe7db 100%);
	color: var(--eb-ink);
	font-family: var(--eb-body);
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: 20;
	pointer-events: none;
	content: "";
	opacity: 0.24;
	background-image:
		linear-gradient(rgba(33, 28, 23, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(33, 28, 23, 0.025) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 62%);
}

a {
	color: inherit;
	text-decoration-color: rgba(138, 79, 51, 0.32);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 180ms ease, text-decoration-color 180ms ease, transform 180ms ease;
}

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

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

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

:focus-visible {
	outline: 3px solid rgba(138, 79, 51, 0.35);
	outline-offset: 4px;
}

.screen-reader-text,
.skip-link {
	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 {
	top: 14px;
	left: 14px;
	z-index: 30;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--eb-ink);
	color: #fff;
	border-radius: var(--eb-radius);
}

.eb-site-header {
	position: sticky;
	top: 0;
	z-index: 15;
	background: rgba(251, 247, 239, 0.86);
	border-bottom: 1px solid var(--eb-line);
	backdrop-filter: blur(18px);
}

.eb-header-inner {
	width: var(--eb-container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(180px, auto) minmax(0, 1fr) minmax(220px, 264px);
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	min-height: 82px;
}

.eb-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.eb-brand-link {
	display: grid;
	gap: 0.05rem;
	text-decoration: none;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.eb-brand .custom-logo {
	width: auto;
	max-width: 270px;
	max-height: 64px;
	object-fit: contain;
}

.eb-brand-mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	background: var(--eb-ink);
	color: var(--eb-paper);
	border-radius: 12px;
	font-family: var(--eb-display);
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.eb-brand-text {
	display: grid;
	gap: 0.05rem;
}

.eb-brand-name {
	font-family: var(--eb-display);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.eb-brand-kicker {
	color: var(--eb-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.eb-nav {
	justify-self: start;
	min-width: 0;
}

.eb-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.25rem 0.45rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.eb-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0.55rem 0.78rem;
	border-radius: 999px;
	color: var(--eb-muted);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.eb-nav .current-menu-item > a,
.eb-nav .current_page_item > a,
.eb-nav a:hover {
	background: rgba(138, 79, 51, 0.1);
	color: var(--eb-ink);
}

.eb-header-search {
	justify-self: end;
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, 1fr) 42px;
	align-items: center;
	border: 1px solid var(--eb-line);
	border-radius: 999px;
	background: rgba(255, 253, 248, 0.72);
	overflow: hidden;
}

.eb-header-search label {
	min-width: 0;
}

.eb-header-search input {
	width: 100%;
	height: 42px;
	padding: 0 0.1rem 0 0.9rem;
	background: transparent;
	border: 0;
	color: var(--eb-ink);
	font-size: 0.9rem;
	font-weight: 650;
	outline: 0;
}

.eb-header-search input::placeholder {
	color: rgba(113, 104, 95, 0.82);
}

.eb-header-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--eb-ink);
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease;
}

.eb-header-search button:hover {
	background: rgba(138, 79, 51, 0.1);
	color: var(--eb-accent-dark);
}

.eb-menu-toggle,
.eb-mobile-panel,
.eb-mobile-overlay,
.eb-header-search--mobile {
	display: none;
}

.eb-menu-toggle {
	justify-self: end;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	width: 46px;
	height: 46px;
	padding: 0;
	background: rgba(255, 253, 248, 0.78);
	border: 1px solid var(--eb-line);
	border-radius: 999px;
	cursor: pointer;
}

.eb-menu-line {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0;
	background: var(--eb-ink);
	border-radius: 999px;
	transition: transform 180ms ease, opacity 180ms ease;
}

.eb-menu-line + .eb-menu-line {
	margin-top: 0;
}

.eb-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 18;
	background: rgba(33, 28, 23, 0.38);
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.eb-mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 19;
	width: min(88vw, 380px);
	height: 100dvh;
	padding: 1rem;
	overflow-y: auto;
	background: #fffdf8;
	border-left: 1px solid var(--eb-line);
	box-shadow: -28px 0 70px rgba(33, 28, 23, 0.18);
	transform: translateX(102%);
	visibility: hidden;
	transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.eb-mobile-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--eb-line);
}

.eb-mobile-panel-head strong {
	font-family: var(--eb-display);
	font-size: 1.4rem;
	letter-spacing: -0.02em;
}

.eb-mobile-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #efe9e0;
	border: 1px solid var(--eb-line);
	border-radius: 999px;
	color: var(--eb-ink);
	cursor: pointer;
}

.eb-mobile-nav ul {
	display: grid;
	gap: 0;
	padding: 1rem 0 0;
	margin: 0;
	list-style: none;
}

.eb-mobile-nav a {
	display: block;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--eb-line);
	color: var(--eb-ink);
	font-family: var(--eb-display);
	font-size: 1.15rem;
	font-weight: 820;
	line-height: 1.2;
	text-decoration: none;
}

.eb-menu-open {
	overflow: hidden;
}

.eb-menu-open .eb-mobile-overlay {
	opacity: 1;
	pointer-events: auto;
}

.eb-menu-open .eb-mobile-panel {
	transform: translateX(0);
	visibility: visible;
}

.eb-menu-open .eb-menu-line:nth-of-type(2) {
	transform: translateY(6px) rotate(45deg);
}

.eb-menu-open .eb-menu-line:nth-of-type(3) {
	opacity: 0;
}

.eb-menu-open .eb-menu-line:nth-of-type(4) {
	transform: translateY(-6px) rotate(-45deg);
}

.eb-container {
	width: var(--eb-container);
	margin: 0 auto;
}

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

.eb-hero {
	padding: clamp(3.5rem, 7vw, 6.8rem) 0 3.2rem;
}

.eb-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
}

.eb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	color: var(--eb-accent-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.eb-eyebrow::before {
	width: 34px;
	height: 1px;
	background: currentColor;
	content: "";
}

.eb-hero h1,
.eb-page-title,
.eb-section-title,
.eb-entry-title {
	margin: 0;
	font-family: var(--eb-display);
	font-weight: 850;
	letter-spacing: -0.035em;
	line-height: 0.98;
	text-wrap: balance;
}

.eb-hero h1 {
	max-width: 12ch;
	font-size: clamp(3.25rem, 8.4vw, 7.6rem);
}

.eb-hero-copy {
	max-width: 62ch;
	margin: 1.4rem 0 0;
	color: var(--eb-muted);
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.eb-hero-note {
	display: grid;
	gap: 1.25rem;
	padding: 1.25rem;
	background: rgba(255, 253, 248, 0.7);
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius-lg);
	box-shadow: var(--eb-shadow);
}

.eb-hero-note p {
	margin: 0;
	color: var(--eb-muted);
}

.eb-hero-stat {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.9rem;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid var(--eb-line);
}

.eb-hero-number {
	font-family: var(--eb-display);
	font-size: 2.45rem;
	font-weight: 850;
	line-height: 1;
	color: var(--eb-accent-dark);
	font-variant-numeric: tabular-nums;
}

.eb-section {
	padding: clamp(1.8rem, 6vw, 1.8rem) 0;
}

.eb-section--featured {
	background-color: #efe9e0;
}

.eb-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 1.45rem;
}

.eb-section-title {
	font-size: clamp(2rem, 4vw, 2.6rem);
}

.eb-section-link {
	flex: 0 0 auto;
	color: var(--eb-accent-dark);
	font-size: 0.95rem;
	font-weight: 800;
	text-decoration: none;
}

.eb-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
	gap: 1.25rem;
	align-items: stretch;
}

.eb-feature-card {
	position: relative;
	min-height: clamp(420px, 52vw, 620px);
	overflow: hidden;
	background: #ddd1c2;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--eb-radius-lg);
	box-shadow: var(--eb-shadow);
	isolation: isolate;
}

.eb-feature-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	z-index: -2;
}

.eb-feature-card::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: linear-gradient(180deg, rgba(20, 16, 12, 0.06) 0%, rgba(20, 16, 12, 0.84) 100%);
}

.eb-feature-content {
	position: absolute;
	inset: auto 0 0;
	padding: clamp(1.35rem, 4vw, 3rem);
	color: #fffdf8;
}

.eb-feature-content a {
	color: inherit;
	text-decoration: none;
}

.eb-feature-title {
	max-width: 15ch;
	margin: 0.45rem 0 0;
	font-family: var(--eb-display);
	font-size: clamp(2.1rem, 4vw, 4.4rem);
	font-weight: 850;
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.eb-feature-excerpt {
	max-width: 58ch;
	margin: 1rem 0 0;
	color: rgba(255, 253, 248, 0.82);
}

.eb-side-stack {
	display: grid;
	gap: 1.25rem;
}

.eb-card-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 1.25rem;
}

.eb-card-grid > .eb-card {
	grid-column: span 4;
}

.eb-card-grid > .eb-card:nth-child(1),
.eb-card-grid > .eb-card:nth-child(5) {
	grid-column: span 5;
}

.eb-card-grid > .eb-card:nth-child(2),
.eb-card-grid > .eb-card:nth-child(6) {
	grid-column: span 3;
}

.eb-card {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	min-width: 0;
	background: rgba(255, 253, 248, 0.72);
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius-lg);
	box-shadow: 0 18px 50px rgba(75, 58, 40, 0.08);
	text-decoration: none;
	transform: translateY(0);
	transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.eb-card:hover {
	border-color: rgba(138, 79, 51, 0.32);
	box-shadow: 0 26px 65px rgba(75, 58, 40, 0.14);
	transform: translateY(-4px);
}

.eb-card:active {
	transform: translateY(-1px) scale(0.99);
}

.eb-card-media {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background:
		linear-gradient(135deg, rgba(138, 79, 51, 0.2), rgba(123, 135, 109, 0.22)),
		#ddd1c2;
}

.eb-card--compact {
	grid-template-columns: 132px 1fr;
	grid-template-rows: auto;
	min-height: 132px;
}

.eb-card--compact .eb-card-media {
	aspect-ratio: auto;
	height: 100%;
}

.eb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.eb-card:hover .eb-card-media img {
	transform: scale(1.045);
}

.eb-card-body {
	display: grid;
	align-content: start;
	gap: 0.75rem;
	padding: 1.05rem;
}

.eb-card-title {
	margin: 0;
	font-family: var(--eb-display);
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	font-weight: 820;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.eb-card--compact .eb-card-title {
	font-size: 1.02rem;
	line-height: 1.16;
}

.eb-card-excerpt {
	margin: 0;
	color: var(--eb-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.eb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.65rem;
	color: var(--eb-muted);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.eb-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.eb-meta span + span::before {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	content: "";
	opacity: 0.45;
}

.eb-category-band {
	margin-top: 1.25rem;
	padding: clamp(1.2rem, 3vw, 2rem);
	background: rgba(33, 28, 23, 0.92);
	color: var(--eb-paper);
	border-radius: var(--eb-radius-lg);
}

.eb-category-band .eb-section-head {
	margin-bottom: 1.2rem;
}

.eb-category-band .eb-section-title {
	font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.eb-category-band .eb-section-link,
.eb-category-band .eb-meta,
.eb-category-band .eb-card-excerpt {
	color: rgba(255, 253, 248, 0.7);
}

.eb-category-band .eb-card {
	background: rgba(255, 253, 248, 0.08);
	border-color: rgba(255, 253, 248, 0.14);
	box-shadow: none;
	color: var(--eb-paper);
}

.eb-intro-panel {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.38fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
	padding: clamp(1.6rem, 4vw, 3rem);
	background: rgba(255, 253, 248, 0.64);
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius-lg);
}

.eb-intro-panel p {
	margin: 0;
	color: var(--eb-muted);
	font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}

.eb-topic-list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eb-topic-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--eb-line);
	font-weight: 800;
	text-decoration: none;
}

.eb-topic-list span {
	color: var(--eb-muted);
	font-size: 0.86rem;
	font-weight: 700;
}

.eb-content-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	padding: clamp(1rem, 6vw, 1.5rem) 0;
}

.eb-article {
	min-width: 0;
}

.eb-page-header {
	padding: clamp(3rem, 7vw, 3.5rem) 0 1rem;
}

.eb-page-title,
.eb-entry-title {
	margin-bottom: 16px;
	font-size: clamp(2.45rem, 6vw, 4.6rem);
}

.eb-entry-title {
}

.eb-entry-media {
	overflow: hidden;
	margin: 2rem 0;
	border-radius: var(--eb-radius-lg);
	box-shadow: var(--eb-shadow);
}

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

.eb-image-credit {
	margin: 0;
	padding: 0.5rem 0.8rem;
	background: rgba(255, 253, 248, 0.82);
	border-top: 1px solid var(--eb-line);
	color: var(--eb-muted);
	font-size: 0.78rem;
	font-weight: 650;
	line-height: 1.35;
}

.eb-entry-content {
	max-width: 760px;
	color: #2b251f;
}

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

.eb-entry-content p,
.eb-entry-content li {
	line-height: 1.82;
}

.eb-entry-content h2,
.eb-entry-content h3,
.eb-entry-content h4 {
	margin: 2.1em 0 0.65em;
	font-family: var(--eb-display);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.eb-entry-content h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.eb-entry-content h3 {
	font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.eb-entry-content blockquote {
	margin: 2rem 0;
	padding: 1.1rem 0 1.1rem 1.3rem;
	border-left: 4px solid var(--eb-accent);
	color: var(--eb-accent-dark);
	font-family: var(--eb-display);
	font-size: 1.25rem;
	font-weight: 720;
	line-height: 1.45;
}

.eb-entry-content .wp-block-table {
	margin: 2rem 0;
	overflow-x: auto;
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius-lg);
	background: rgba(255, 253, 248, 0.7);
	box-shadow: 0 16px 44px rgba(75, 58, 40, 0.08);
}

.eb-entry-content table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 0.96rem;
	line-height: 1.5;
}

.eb-entry-content th,
.eb-entry-content td {
	padding: 0.9rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--eb-line);
	text-align: left;
	vertical-align: top;
}

.eb-entry-content th {
	background: #efe9e0;
	color: var(--eb-ink);
	font-family: var(--eb-display);
	font-size: 0.82rem;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.eb-entry-content tbody tr:nth-child(even) {
	background: rgba(239, 233, 224, 0.42);
}

.eb-entry-content tbody tr:hover {
	background: rgba(138, 79, 51, 0.08);
}

.eb-entry-content tr:last-child td,
.eb-entry-content tr:last-child th {
	border-bottom: 0;
}

.eb-entry-content .wp-block-table figcaption {
	padding: 0.65rem 1rem;
	border-top: 1px solid var(--eb-line);
	color: var(--eb-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.eb-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: clamp(2rem, 5vw, 3.2rem) 0 0;
	padding-top: 1.3rem;
	border-top: 1px solid var(--eb-line);
}

.eb-post-nav-link {
	display: grid;
	gap: 0.35rem;
	min-height: 128px;
	padding: 1rem;
	background: rgba(255, 253, 248, 0.74);
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius-lg);
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.eb-post-nav-link:hover {
	background: #fffdf8;
	border-color: rgba(138, 79, 51, 0.32);
	transform: translateY(-2px);
}

.eb-post-nav-link span {
	color: var(--eb-accent-dark);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.eb-post-nav-link strong {
	color: var(--eb-ink);
	font-family: var(--eb-display);
	font-size: 1.12rem;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

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

.eb-post-nav-link:only-child {
	grid-column: 1 / -1;
}

.eb-related {
	padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(2.2rem, 6vw, 4.5rem);
	border-top: 1px solid var(--eb-line);
}

.eb-related .eb-section-title {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.eb-entry-content img {
	border-radius: var(--eb-radius);
}

.single .eb-entry-content .ez-toc-container {
	display: none;
}

.eb-sidebar {
	position: sticky;
	top: 108px;
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.eb-widget {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 1.15rem;
	background: rgba(255, 253, 248, 0.72);
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius-lg);
}

.eb-widget-title {
	margin: 0 0 0.75rem;
	font-family: var(--eb-display);
	font-size: 1.1rem;
	font-weight: 850;
	letter-spacing: -0.015em;
}

.eb-toc {
	background: rgba(239, 233, 224, 0.82);
}

.eb-toc ol {
	display: grid;
	gap: 0.35rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.eb-toc a {
	display: block;
	padding: 0.48rem 0;
	border-bottom: 1px solid var(--eb-line);
	color: var(--eb-muted);
	font-size: 0.94rem;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: none;
}

.eb-toc a:hover {
	color: var(--eb-accent-dark);
}

.eb-toc-level-3 a {
	padding-left: 1rem;
	font-size: 0.88rem;
	font-weight: 650;
}

.eb-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.eb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0.45rem 0.75rem;
	background: rgba(255, 253, 248, 0.74);
	border: 1px solid var(--eb-line);
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
}

.eb-pagination .current {
	background: var(--eb-ink);
	color: var(--eb-paper);
}

.eb-form {
	display: grid;
	gap: 0.75rem;
}

.eb-form-row {
	display: grid;
	gap: 0.35rem;
}

.eb-form label {
	font-size: 0.85rem;
	font-weight: 800;
}

.eb-form input,
.eb-form textarea,
.search-field {
	width: 100%;
	min-height: 46px;
	padding: 0.75rem 0.85rem;
	background: var(--eb-paper-strong);
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius);
	color: var(--eb-ink);
}

.eb-button,
.search-submit,
.form-submit .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.75rem 1.05rem;
	background: var(--eb-ink);
	border: 0;
	border-radius: var(--eb-radius);
	color: var(--eb-paper);
	font-weight: 850;
	text-decoration: none;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease;
}

.eb-button:hover,
.search-submit:hover,
.form-submit .submit:hover {
	background: var(--eb-accent-dark);
	color: var(--eb-paper);
}

.eb-button:active,
.search-submit:active,
.form-submit .submit:active {
	transform: translateY(1px) scale(0.99);
}

.eb-site-footer {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.4rem;
	background: #211c17;
	color: rgba(255, 253, 248, 0.76);
}

.eb-footer-grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.05fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr) minmax(280px, 1fr);
	gap: clamp(1.4rem, 4vw, 3rem);
	align-items: start;
	padding-bottom: clamp(2rem, 5vw, 3.4rem);
}

.eb-site-footer a {
	color: var(--eb-paper);
}

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

.eb-footer-title {
	margin: 0 0 0.7rem;
	color: var(--eb-paper);
	font-family: var(--eb-display);
	font-size: clamp(1.55rem, 2.6vw, 1.35rem);
	line-height: 1;
	letter-spacing: -0.03em;
	overflow-wrap: anywhere;
}

.eb-footer-brand p {
	max-width: 30ch;
	font-size: 1.02rem;
	line-height: 1.7;
}

.eb-footer-column h3,
.eb-footer-search h3 {
	margin: 0 0 0.85rem;
	color: var(--eb-paper);
	font-family: var(--eb-display);
	font-size: 1rem;
	font-weight: 850;
	letter-spacing: 0.02em;
}

.eb-footer-list,
.eb-footer-nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.eb-footer-list,
.eb-footer-nav ul {
	display: grid;
	gap: 0.55rem;
}

.eb-footer-list a,
.eb-footer-nav a,
.eb-footer-bottom a {
	color: rgba(255, 253, 248, 0.78);
	font-weight: 750;
	text-decoration: none;
}

.eb-footer-list a:hover,
.eb-footer-nav a:hover,
.eb-footer-bottom a:hover {
	color: var(--eb-paper);
}

.eb-footer-search {
	display: grid;
	gap: 0.8rem;
	padding: 1rem;
	background: rgba(255, 253, 248, 0.06);
	border: 1px solid rgba(255, 253, 248, 0.12);
	border-radius: var(--eb-radius-lg);
}

.eb-footer-search p {
	color: rgba(255, 253, 248, 0.66);
	font-size: 0.95rem;
	line-height: 1.55;
}

.eb-footer-search .eb-form {
	gap: 0.55rem;
}

.eb-footer-search .eb-form-row span {
	color: rgba(255, 253, 248, 0.72);
}

.eb-footer-search .search-field {
	background: rgba(255, 253, 248, 0.96);
}

.eb-footer-search .search-submit {
	width: 100%;
	background: var(--eb-paper);
	color: var(--eb-ink);
}

.eb-footer-search .search-submit:hover {
	background: #efe9e0;
	color: var(--eb-ink);
}

.eb-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(255, 253, 248, 0.12);
	color: rgba(255, 253, 248, 0.56);
	font-size: 0.9rem;
}

.eb-empty {
	padding: clamp(2rem, 5vw, 4rem);
	background: rgba(255, 253, 248, 0.72);
	border: 1px solid var(--eb-line);
	border-radius: var(--eb-radius-lg);
}

@media (max-width: 980px) {
	.eb-header-inner {
		grid-template-columns: 1fr minmax(190px, 260px);
		min-height: auto;
		padding: 1rem 0;
	}

	.eb-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: start;
		width: 100%;
		overflow-x: auto;
	}

	.eb-header-search {
		grid-column: 2;
		grid-row: 1;
	}

	.eb-nav ul {
		justify-content: flex-start;
		flex-wrap: nowrap;
	}

	.eb-hero-grid,
	.eb-featured-grid,
	.eb-intro-panel,
	.eb-content-wrap,
	.eb-footer-grid {
		grid-template-columns: 1fr;
	}

	.eb-sidebar {
		position: static;
	}

	.eb-card-grid > .eb-card,
	.eb-card-grid > .eb-card:nth-child(1),
	.eb-card-grid > .eb-card:nth-child(2),
	.eb-card-grid > .eb-card:nth-child(5),
	.eb-card-grid > .eb-card:nth-child(6) {
		grid-column: span 6;
	}

	.eb-footer-nav ul {
		justify-content: flex-start;
	}
}

@media (max-width: 680px) {
	:root {
		--eb-container: min(100vw - 28px, 1180px);
	}

	body {
		font-size: 16px;
	}

	.eb-brand-kicker {
		display: none;
	}

	.eb-header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.eb-nav--desktop,
	.eb-header-search--desktop {
		display: none;
	}

	.eb-menu-toggle,
	.eb-mobile-overlay,
	.eb-mobile-panel {
		display: flex;
	}

	.eb-mobile-panel {
		display: block;
	}

	.eb-header-search--mobile {
		display: grid;
		width: 100%;
		grid-template-columns: minmax(0, 1fr) 42px;
		margin-top: 1rem;
	}

	.eb-nav {
		overflow: visible;
	}

	.eb-nav ul {
		flex-wrap: wrap;
	}

	.eb-nav a {
		min-height: 36px;
		padding: 0.45rem 0.62rem;
	}

	.eb-hero {
		padding-top: 2.4rem;
	}

	.eb-section-head {
		align-items: start;
		flex-direction: column;
	}

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

	.eb-card-grid > .eb-card,
	.eb-card-grid > .eb-card:nth-child(1),
	.eb-card-grid > .eb-card:nth-child(2),
	.eb-card-grid > .eb-card:nth-child(5),
	.eb-card-grid > .eb-card:nth-child(6) {
		grid-column: auto;
	}

	.eb-card--compact {
		grid-template-columns: 112px 1fr;
	}

	.eb-feature-card {
		min-height: 420px;
	}

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

	.eb-post-nav-link--next {
		text-align: left;
	}

	.eb-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.eb-page-title,
	.eb-entry-title {
		max-width: 100%;
	}
}
