/*
 * Evergreen Framework – base stylesheet.
 * Every color, font, size and radius comes from custom properties defined in
 * the per-site compiled stylesheet (skin + Customizer). The fallbacks below
 * keep the site readable if that file is ever missing.
 */

/* ---------- 1. Defaults & reset ---------- */
:root {
	--eg-c-primary: #2450c8;
	--eg-c-secondary: #1c2430;
	--eg-c-accent: #e8a317;
	--eg-c-bg: #fff;
	--eg-c-surface: #f5f6f8;
	--eg-c-text: #1c2430;
	--eg-c-muted: #5d6675;
	--eg-c-border: #e3e6eb;
	--eg-c-link: #2450c8;
	--eg-c-link-hover: #1c2430;
	--eg-c-on-primary: #fff;
	--eg-c-on-secondary: #fff;
	--eg-c-on-accent: #16181d;
	--eg-c-inverse: #1c2430;
	--eg-c-on-inverse: #fff;
	--eg-font-heading: system-ui, sans-serif;
	--eg-font-body: system-ui, sans-serif;
	--eg-font-button: var(--eg-font-body);
	--eg-fs-base: 1.0625rem;
	--eg-fs-sm: .9375rem;
	--eg-fs-xs: .8125rem;
	--eg-fs-h1: 2.5rem;
	--eg-fs-h2: 2rem;
	--eg-fs-h3: 1.5rem;
	--eg-fs-h4: 1.25rem;
	--eg-fs-h5: 1.125rem;
	--eg-fs-h6: 1rem;
	--eg-lh-body: 1.65;
	--eg-lh-heading: 1.15;
	--eg-fw-heading: 700;
	--eg-ls-heading: 0;
	--eg-tt-heading: none;
	--eg-tt-button: none;
	--eg-radius: 8px;
	--eg-radius-btn: 8px;
	--eg-radius-img: 8px;
	--eg-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.07);
	--eg-container: 1240px;
	--eg-reading: 740px;
	--eg-sidebar-w: 320px;
	--eg-gap-section: 3rem;
	--eg-logo-w: 180px;
	--eg-logo-w-m: 130px;
	--eg-card-ratio: 16 / 10;
	--eg-pad: clamp(1rem, 4vw, 2rem);
	--eg-gap: clamp(1.25rem, 3vw, 2.5rem);
	--eg-header-h: 4.5rem;
	--eg-ease: cubic-bezier(.2, .7, .2, 1);
}

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

/* Height of the WordPress admin bar (only fixed above 600px), used by every sticky element. */
html { --eg-adminbar: 0px; }
html:has(body.admin-bar) { --eg-adminbar: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { html:has(body.admin-bar) { --eg-adminbar: 0px; } }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* Anchor jumps land below the real sticky header (+ WP admin bar when logged in). */
	scroll-padding-top: calc(var(--eg-sticky-offset, 0px) + var(--eg-adminbar, 0px) + 1rem);
}

/* Lock page scroll while a dialog is open (no JS needed). */
html:has(dialog[open]) { overflow: hidden; }

body {
	margin: 0;
	background: var(--eg-c-bg);
	color: var(--eg-c-text);
	font-family: var(--eg-font-body);
	font-size: var(--eg-fs-base);
	line-height: var(--eg-lh-body);
	overflow-x: clip; /* full-bleed blocks never cause horizontal scroll */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--eg-c-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--eg-c-link-hover); }

:focus-visible {
	outline: 2px solid var(--eg-c-primary);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--eg-c-primary); color: var(--eg-c-on-primary); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--eg-font-heading);
	font-weight: var(--eg-fw-heading);
	line-height: var(--eg-lh-heading);
	letter-spacing: var(--eg-ls-heading);
	text-transform: var(--eg-tt-heading);
	color: var(--eg-c-text);
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: var(--eg-fs-h1); }
h2 { font-size: var(--eg-fs-h2); }
h3 { font-size: var(--eg-fs-h3); }
h4 { font-size: var(--eg-fs-h4); }
h5 { font-size: var(--eg-fs-h5); }
h6 { font-size: var(--eg-fs-h6); }
p { margin: 0 0 1.15em; text-wrap: pretty; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; width: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; white-space: nowrap; word-wrap: normal !important;
}
.eg-skip-link:focus {
	clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000;
	top: .5rem; left: .5rem; padding: .75rem 1rem;
	background: var(--eg-c-bg); color: var(--eg-c-text); box-shadow: var(--eg-shadow);
}

/* ---------- 2. Containers & layout ---------- */
.eg-container {
	width: 100%;
	max-width: calc(var(--eg-container) + 2 * var(--eg-pad));
	margin-inline: auto;
	padding-inline: var(--eg-pad);
}

.eg-site { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.eg-content { flex: 1; padding-block: var(--eg-gap-section); }

.eg-site-boxed { background: var(--eg-c-surface); }
.eg-site-boxed .eg-site {
	max-width: calc(var(--eg-container) + 4 * var(--eg-pad));
	margin-inline: auto;
	background: var(--eg-c-bg);
	box-shadow: var(--eg-shadow);
}

.eg-layout {
	display: grid;
	gap: var(--eg-gap) calc(var(--eg-gap) * 1.25);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}
@media (min-width: 992px) {
	.eg-sidebar-right .eg-layout { grid-template-columns: minmax(0, 1fr) var(--eg-sidebar-w); }
	.eg-sidebar-left .eg-layout { grid-template-columns: var(--eg-sidebar-w) minmax(0, 1fr); }
	.eg-sidebar-left .eg-sidebar { order: -1; }
	.eg-sticky-sidebar .eg-sidebar__inner {
		position: sticky;
		top: calc(var(--eg-sticky-offset, 0px) + var(--eg-adminbar, 0px) + 1.5rem);
	}
}
.eg-main { min-width: 0; }

/* Centered reading column when there is no sidebar. */
.eg-sidebar-none.single .eg-main,
.eg-sidebar-none.page .eg-main {
	width: 100%;
	max-width: var(--eg-reading);
	margin-inline: auto;
}

/* ---------- 3. Header (row builder) ---------- */
.eg-header {
	--eg-h-bg: var(--eg-c-bg);
	--eg-h-fg: var(--eg-c-text);
	--eg-h-border: var(--eg-c-border);
	position: relative;
	z-index: 50;
	color: var(--eg-h-fg);
	transition: transform .3s var(--eg-ease), box-shadow .3s;
}
.eg-header-tinted .eg-header { --eg-h-bg: var(--eg-c-surface); }
.eg-header-dark .eg-header { --eg-h-bg: var(--eg-c-inverse); --eg-h-fg: var(--eg-c-on-inverse); --eg-h-border: transparent; }
.eg-header-primary .eg-header { --eg-h-bg: var(--eg-c-primary); --eg-h-fg: var(--eg-c-on-primary); --eg-h-border: transparent; }

/* Row backgrounds (shared by header and footer rows). */
.eg-rbg-auto    { --eg-r-bg: var(--eg-h-bg); --eg-r-fg: var(--eg-h-fg); }
.eg-rbg-bg      { --eg-r-bg: var(--eg-c-bg); --eg-r-fg: var(--eg-c-text); }
.eg-rbg-surface { --eg-r-bg: var(--eg-c-surface); --eg-r-fg: var(--eg-c-text); }
.eg-rbg-inverse { --eg-r-bg: var(--eg-c-inverse); --eg-r-fg: var(--eg-c-on-inverse); }
.eg-rbg-primary { --eg-r-bg: var(--eg-c-primary); --eg-r-fg: var(--eg-c-on-primary); }
.eg-hrow, .eg-frow { background: var(--eg-r-bg); color: var(--eg-r-fg); }
.eg-hrow a:not(.eg-btn), .eg-frow a:not(.eg-btn) { color: inherit; }

.eg-sticky-header { --eg-sticky-offset: var(--eg-header-h); }
.eg-sticky-header .eg-header { position: sticky; top: 0; }
.admin-bar.eg-sticky-header .eg-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar.eg-sticky-header .eg-header { top: 0; } }
.eg-header.is-hidden { transform: translateY(-100%); }
.eg-header--compact.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.eg-header--compact .eg-logo-img { transition: transform .3s var(--eg-ease); transform-origin: left center; }
.eg-header--compact.is-scrolled .eg-logo-img { transform: scale(.82); }
.eg-zone--center .eg-logo-img { transform-origin: center; }

.eg-hrow--border { border-bottom: 1px solid var(--eg-h-border); }
.eg-hrow--top { font-size: var(--eg-fs-xs); }
.eg-hrow--top .eg-hrow__inner { min-height: var(--eg-hrow-top-h); }
.eg-hrow--main .eg-hrow__inner { min-height: var(--eg-hrow-main-h); }
.eg-hrow--bottom .eg-hrow__inner { min-height: var(--eg-hrow-bottom-h); }

.eg-full { width: 100%; padding-inline: var(--eg-pad); }
.eg-hrow__inner { display: flex; align-items: center; gap: 1rem; }
.eg-zone { display: flex; align-items: center; gap: .5rem 1rem; min-width: 0; }
.eg-zone--right { margin-inline-start: auto; justify-content: flex-end; }
.has-center .eg-hrow__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.has-center .eg-zone--center { justify-content: center; }
.eg-zone .eg-icon-btn + .eg-icon-btn { margin-inline-start: -.75rem; }

.eg-brand { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; }
.eg-brand .custom-logo-link { display: block; }
.eg-logo-img { width: var(--eg-logo-w); max-width: 100%; height: auto; }
.has-dark-logo .eg-logo-img--dark { display: none; }
[data-theme="dark"] .has-dark-logo .eg-logo-img { display: none; }
[data-theme="dark"] .has-dark-logo .eg-logo-img--dark { display: block; }
.eg-brand__title {
	margin: 0;
	font-family: var(--eg-font-heading);
	font-weight: var(--eg-fw-heading);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
	line-height: 1.1;
	letter-spacing: var(--eg-ls-heading);
}
.eg-brand__title a { color: inherit; text-decoration: none; }
.eg-brand__tagline { margin: .2rem 0 0; font-size: var(--eg-fs-xs); opacity: .75; }

.eg-menu, .eg-menu ul { list-style: none; margin: 0; padding: 0; }
.eg-menu { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.eg-menu li { position: relative; display: flex; align-items: center; }
.eg-menu a {
	display: block;
	padding: .55rem .7rem;
	color: inherit;
	text-decoration: none;
	font-family: var(--eg-font-button);
	font-size: var(--eg-fs-sm);
	font-weight: 600;
	border-radius: calc(var(--eg-radius) / 2);
}
.eg-menu > li > a:hover,
.eg-menu > .current-menu-item > a,
.eg-menu > .current-menu-ancestor > a { background: color-mix(in srgb, currentColor 9%, transparent); }
.eg-menu--secondary a { font-weight: 500; font-size: inherit; padding: .35rem .6rem; }

.eg-sub-toggle {
	display: inline-grid; place-items: center;
	width: 1.6rem; height: 1.6rem; margin-inline-start: -.4rem;
	background: none; border: 0; color: inherit; border-radius: 4px;
}
.eg-sub-toggle svg { transition: transform .2s var(--eg-ease); }
.eg-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.eg-menu .sub-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 14rem; padding: .4rem;
	background: var(--eg-c-bg); color: var(--eg-c-text);
	border: 1px solid var(--eg-c-border); border-radius: var(--eg-radius);
	box-shadow: var(--eg-shadow);
	display: block; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s var(--eg-ease), visibility .18s;
	z-index: 60;
}
.eg-menu .sub-menu .sub-menu { top: -.4rem; left: 100%; }
.eg-menu .sub-menu li { display: flex; }
.eg-menu .sub-menu a { flex: 1; font-weight: 500; }
.eg-menu .sub-menu a:hover { background: var(--eg-c-surface); }
.eg-menu li:hover > .sub-menu,
.eg-menu li:focus-within > .sub-menu,
.eg-menu .eg-sub-toggle[aria-expanded="true"] + .sub-menu { opacity: 1; visibility: visible; transform: none; }

.eg-icon-btn {
	display: inline-grid; place-items: center;
	width: 2.75rem; height: 2.75rem; /* 44px touch target */
	padding: 0; background: none; border: 0; border-radius: 50%; color: inherit;
}
.eg-icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.eg-mode-toggle .eg-icon--sun { display: none; }
[data-theme="dark"] .eg-mode-toggle .eg-icon--sun { display: block; }
[data-theme="dark"] .eg-mode-toggle .eg-icon--moon { display: none; }

.eg-hcta { white-space: nowrap; min-height: 2.5rem; padding: .6rem 1.15rem; }
.eg-btn--outline { background: transparent !important; color: inherit !important; box-shadow: inset 0 0 0 2px currentColor; }
.eg-btn--accent { background: var(--eg-c-accent) !important; color: var(--eg-c-on-accent) !important; }
.eg-hsearch { width: min(16rem, 30vw); }
.eg-hsearch .eg-searchform__input { padding-block: .5rem; }
.eg-hhtml > :last-child { margin-bottom: 0; }

.eg-social { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.eg-social a { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; color: inherit; border-radius: 50%; transition: background-color .15s, color .15s; }
.eg-social a:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.eg-social--circle a, .eg-social--square a { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); }
.eg-social--square a { border-radius: calc(var(--eg-radius) / 1.5); }
.eg-social--circle a:hover, .eg-social--square a:hover { background: var(--eg-c-primary); color: var(--eg-c-on-primary); box-shadow: none; }
.eg-social svg { width: 1.05rem; height: 1.05rem; }

/* Mobile bar: replaces desktop rows below the chosen breakpoint. */
.eg-mobilebar { display: none; background: var(--eg-h-bg); color: var(--eg-h-fg); border-bottom: 1px solid var(--eg-h-border); }
.eg-mobilebar__inner { display: flex; align-items: center; gap: .5rem; min-height: 4rem; }
.eg-mobilebar__actions { display: flex; align-items: center; margin-inline-start: auto; margin-inline-end: -.6rem; }
.eg-mobilebar .eg-logo-img { width: var(--eg-logo-w-m); }
@media (max-width: 1199.98px) {
	.eg-mbp-1200 .eg-hrow { display: none; }
	.eg-mbp-1200 .eg-hrow--on-mobile { display: block; }
	.eg-mbp-1200 .eg-hrow--on-mobile .eg-nav, .eg-mbp-1200 .eg-hrow--on-mobile .eg-icon-btn, .eg-mbp-1200 .eg-hrow--on-mobile .eg-brand, .eg-mbp-1200 .eg-hrow--on-mobile .eg-hsearch { display: none; }
	.eg-mbp-1200 .eg-hrow--on-mobile .eg-hrow__inner { display: flex; justify-content: center; min-height: 2.25rem; text-align: center; }
	.eg-mbp-1200 .eg-mobilebar { display: block; }
	.eg-mbp-1200 { --eg-header-h: 4rem; }
}
@media (max-width: 991.98px) {
	.eg-mbp-992 .eg-hrow { display: none; }
	.eg-mbp-992 .eg-hrow--on-mobile { display: block; }
	.eg-mbp-992 .eg-hrow--on-mobile .eg-nav, .eg-mbp-992 .eg-hrow--on-mobile .eg-icon-btn, .eg-mbp-992 .eg-hrow--on-mobile .eg-brand, .eg-mbp-992 .eg-hrow--on-mobile .eg-hsearch { display: none; }
	.eg-mbp-992 .eg-hrow--on-mobile .eg-hrow__inner { display: flex; justify-content: center; min-height: 2.25rem; text-align: center; }
	.eg-mbp-992 .eg-mobilebar { display: block; }
	.eg-mbp-992 { --eg-header-h: 4rem; }
}
@media (max-width: 767.98px) {
	.eg-mbp-768 .eg-hrow { display: none; }
	.eg-mbp-768 .eg-hrow--on-mobile { display: block; }
	.eg-mbp-768 .eg-hrow--on-mobile .eg-nav, .eg-mbp-768 .eg-hrow--on-mobile .eg-icon-btn, .eg-mbp-768 .eg-hrow--on-mobile .eg-brand, .eg-mbp-768 .eg-hrow--on-mobile .eg-hsearch { display: none; }
	.eg-mbp-768 .eg-hrow--on-mobile .eg-hrow__inner { display: flex; justify-content: center; min-height: 2.25rem; text-align: center; }
	.eg-mbp-768 .eg-mobilebar { display: block; }
	.eg-mbp-768 { --eg-header-h: 4rem; }
}

/* ---------- 4. Dialogs (drawer + search) ---------- */
dialog { color: var(--eg-c-text); background: var(--eg-c-bg); border: 0; padding: 0; }
dialog::backdrop { background: rgba(10, 12, 16, .55); }

.eg-drawer {
	margin: 0 0 0 auto;
	width: min(24rem, 88vw);
	max-width: none;
	height: 100%;
	max-height: none;
	padding: 1rem 1.25rem 2rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.eg-drawer[open] { animation: eg-slide-in .28s var(--eg-ease); }
.eg-drawer--left { margin: 0 auto 0 0; }
.eg-drawer--left[open] { animation-name: eg-slide-in-left; }
@keyframes eg-slide-in { from { transform: translateX(100%); } }
@keyframes eg-slide-in-left { from { transform: translateX(-100%); } }
.eg-drawer__search { margin: 0 0 1rem; }
.eg-drawer__menu--secondary { margin-top: 1rem; }
.eg-drawer__cta { margin-top: 1.5rem; }
.eg-drawer__cta .eg-btn { width: 100%; }
.eg-drawer__social { margin-top: 1.5rem; }
.eg-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.eg-drawer__title { font-family: var(--eg-font-heading); font-weight: var(--eg-fw-heading); font-size: var(--eg-fs-h5); }
.eg-drawer__menu, .eg-drawer__menu ul { list-style: none; margin: 0; padding: 0; }
.eg-drawer__menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--eg-c-border); }
.eg-drawer__menu a { flex: 1; padding: .85rem 0; color: inherit; text-decoration: none; font-weight: 600; }
.eg-drawer__menu .sub-menu { display: none; width: 100%; padding-inline-start: 1rem; }
.eg-drawer__menu .sub-menu li:last-child { border-bottom: 0; }
.eg-drawer__menu .sub-menu a { font-weight: 400; }
.eg-drawer__menu .eg-sub-toggle { width: 2.75rem; height: 2.75rem; margin: 0; }
.eg-drawer__menu .eg-sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }

.eg-search-dialog {
	margin: 0 auto auto;
	width: 100%;
	max-width: none;
	padding: 1.25rem var(--eg-pad);
	box-shadow: var(--eg-shadow);
}
.eg-search-dialog[open] { animation: eg-drop .22s var(--eg-ease); }
@keyframes eg-drop { from { transform: translateY(-100%); } }
.eg-search-dialog__inner { max-width: 48rem; margin-inline: auto; display: flex; align-items: center; gap: .75rem; }
.eg-search-dialog .eg-searchform { flex: 1; }

/* ---------- 5. Forms & buttons ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%;
	padding: .7rem .9rem;
	background: var(--eg-c-bg);
	border: 1px solid var(--eg-c-border);
	border-radius: min(var(--eg-radius), 10px);
	line-height: 1.4;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--eg-c-primary); }

.eg-btn, .wp-block-button__link, button[type="submit"]:not(.eg-searchform__btn), input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .75rem 1.4rem;
	min-height: 2.75rem;
	background: var(--eg-c-primary);
	color: var(--eg-c-on-primary);
	border: 0;
	border-radius: var(--eg-radius-btn);
	font-family: var(--eg-font-button);
	font-weight: 600;
	font-size: var(--eg-fs-sm);
	text-transform: var(--eg-tt-button);
	text-decoration: none;
	line-height: 1.2;
	transition: filter .15s, transform .15s;
}
.eg-btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:not(.eg-searchform__btn):hover {
	color: var(--eg-c-on-primary);
	filter: brightness(1.08);
}
.eg-btn:active, input[type="submit"]:active { transform: translateY(1px); }

.eg-searchform { position: relative; display: flex; }
.eg-searchform__input { padding-inline-end: 3rem; }
.eg-searchform__btn {
	position: absolute; inset-inline-end: .25rem; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	background: none; border: 0; color: var(--eg-c-muted); border-radius: 50%;
}
.eg-searchform__btn:hover { color: var(--eg-c-primary); }

/* ---------- 6. Meta, categories, chips ---------- */
.eg-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem;
	color: var(--eg-c-muted);
	font-size: var(--eg-fs-sm);
}
.eg-meta a { color: var(--eg-c-text); text-decoration: none; font-weight: 600; }
.eg-meta a:hover { color: var(--eg-c-link); }
.eg-meta__read { display: inline-flex; align-items: center; gap: .3rem; }
.eg-meta--card { font-size: var(--eg-fs-xs); margin-top: .75rem; }

.eg-cat {
	display: inline-block;
	margin-bottom: .6rem;
	font-family: var(--eg-font-button);
	font-size: var(--eg-fs-xs);
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--eg-c-primary);
	text-decoration: none;
}
.eg-cat:hover { color: var(--eg-c-link-hover); }

.eg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; }
.eg-chips a {
	display: inline-block; padding: .35em .9em;
	border: 1px solid var(--eg-c-border); border-radius: 999px;
	color: var(--eg-c-text); font-size: var(--eg-fs-sm); text-decoration: none;
}
.eg-chips a:hover { border-color: var(--eg-c-primary); color: var(--eg-c-primary); }

.eg-breadcrumbs { font-size: var(--eg-fs-xs); color: var(--eg-c-muted); margin-bottom: 1rem; }
.eg-breadcrumbs a { color: inherit; }
.eg-breadcrumbs .separator { margin-inline: .35em; opacity: .6; }

/* ---------- 7. Archive grid & cards ---------- */
.eg-archive-head { margin-bottom: calc(var(--eg-gap) * 1.2); }
.eg-archive-head__title { margin-bottom: .3em; }
.eg-archive-head__desc { color: var(--eg-c-muted); max-width: 60ch; }
.eg-archive-head__search { max-width: 32rem; margin-top: 1rem; }

.eg-grid {
	--eg-cols-eff: var(--eg-grid-cols, 3);
	display: grid;
	gap: var(--eg-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
@media (min-width: 900px) {
	.eg-sidebar-none .eg-grid { grid-template-columns: repeat(var(--eg-cols-eff), minmax(0, 1fr)); }
	.eg-sidebar-left .eg-grid, .eg-sidebar-right .eg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.eg-card { display: flex; flex-direction: column; min-width: 0; }
.eg-card__media {
	display: block;
	aspect-ratio: var(--eg-card-ratio);
	overflow: hidden;
	border-radius: var(--eg-radius-img);
	background: var(--eg-c-surface);
	margin-bottom: 1rem;
}
.eg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--eg-ease), filter .4s; }
.eg-card__title { font-size: var(--eg-fs-h4); margin-bottom: .45rem; }
.eg-card__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--eg-ease); }
.eg-card:hover .eg-card__title a { background-size: 100% 1px; }
.eg-card__excerpt { color: var(--eg-c-muted); font-size: var(--eg-fs-sm); }
.eg-card__excerpt p { margin: 0; }

.eg-card-boxed .eg-card,
.eg-card-outline .eg-card { background: var(--eg-c-bg); border-radius: var(--eg-radius); overflow: hidden; }
.eg-card-boxed .eg-card { box-shadow: var(--eg-shadow); background: var(--eg-c-surface); }
.eg-card-outline .eg-card { border: 1px solid var(--eg-c-border); }
.eg-card-boxed .eg-card__media, .eg-card-outline .eg-card__media { border-radius: 0; margin: 0; }
.eg-card-boxed .eg-card__body, .eg-card-outline .eg-card__body { padding: 1.1rem 1.25rem 1.35rem; }

/* Image hover effects (Customizer). */
.eg-hover-zoom .eg-card:hover .eg-card__media img { transform: scale(1.045); }
.eg-hover-grayscale .eg-card__media img { filter: grayscale(1); }
.eg-hover-grayscale .eg-card:hover .eg-card__media img { filter: none; }
.eg-hover-dim .eg-card:hover .eg-card__media img { filter: brightness(.8); }

.eg-pagination { margin-top: calc(var(--eg-gap) * 1.5); }
.eg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.eg-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: .8rem;
	border: 1px solid var(--eg-c-border); border-radius: var(--eg-radius-btn);
	color: var(--eg-c-text); text-decoration: none; font-weight: 600; font-size: var(--eg-fs-sm);
}
.eg-pagination .page-numbers.current { background: var(--eg-c-primary); border-color: var(--eg-c-primary); color: var(--eg-c-on-primary); }
.eg-pagination a.page-numbers:hover { border-color: var(--eg-c-primary); color: var(--eg-c-primary); }

/* ---------- 8. Single article ---------- */
.eg-article__head { margin-bottom: 1.75rem; }
.eg-article__title { margin-bottom: .6em; }
.eg-article__media { margin: 0 0 2rem; }
.eg-article__media img { width: 100%; border-radius: var(--eg-radius-img); }
.eg-article__media figcaption { margin-top: .6rem; font-size: var(--eg-fs-xs); color: var(--eg-c-muted); }

.eg-prose { overflow-wrap: break-word; }
.eg-prose > * { margin-block: 0 1.25em; }
.eg-prose > h2, .eg-prose > h3, .eg-prose > h4 { margin-top: 1.8em; margin-bottom: .6em; }
.eg-prose > h2:first-child, .eg-prose > h3:first-child { margin-top: 0; }
.eg-prose ul, .eg-prose ol { padding-inline-start: 1.4em; }
.eg-prose li { margin-bottom: .4em; }
.eg-prose li::marker { color: var(--eg-c-primary); }
.eg-prose img { border-radius: var(--eg-radius-img); }
.eg-prose figcaption, .eg-prose .wp-element-caption { font-size: var(--eg-fs-xs); color: var(--eg-c-muted); margin-top: .5rem; text-align: center; }
.eg-prose blockquote {
	margin-inline: 0;
	padding: .25em 0 .25em 1.25em;
	border-inline-start: 3px solid var(--eg-c-primary);
	font-size: 1.1em;
}
.eg-prose blockquote cite { display: block; margin-top: .5em; font-size: var(--eg-fs-sm); color: var(--eg-c-muted); font-style: normal; }
.eg-prose table { width: 100%; border-collapse: collapse; font-size: var(--eg-fs-sm); }
.eg-prose th, .eg-prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--eg-c-border); text-align: start; }
.eg-prose th { font-weight: 700; }
.eg-prose .wp-block-table { overflow-x: auto; }
.eg-prose code { font-size: .9em; padding: .1em .35em; background: var(--eg-c-surface); border-radius: 4px; }
.eg-prose pre { overflow-x: auto; padding: 1rem 1.25rem; background: var(--eg-c-surface); border-radius: var(--eg-radius); font-size: var(--eg-fs-sm); }
.eg-prose pre code { padding: 0; background: none; }
.eg-prose hr { border: 0; border-top: 1px solid var(--eg-c-border); margin-block: 2.5em; }

/* Alignments. With a sidebar, wide/full stay inside the content column. */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.eg-sidebar-none .eg-prose > .alignwide {
	width: min(var(--eg-container), 100vw - 2 * var(--eg-pad));
	max-width: none;
	margin-inline: calc(50% - min(var(--eg-container), 100vw - 2 * var(--eg-pad)) / 2);
}
.eg-sidebar-none .eg-prose > .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}
.eg-sidebar-none .eg-prose > .alignfull img { border-radius: 0; }

.eg-article__tags { margin-top: 2rem; }

.eg-author {
	display: flex; gap: 1.25rem; align-items: flex-start;
	margin-top: 2.5rem; padding: 1.5rem;
	background: var(--eg-c-surface);
	border-radius: var(--eg-radius);
}
img.avatar { object-fit: cover; }
.eg-author__avatar { border-radius: 50%; flex-shrink: 0; width: 72px; height: 72px; }
.eg-author__name { margin: 0 0 .3rem; font-family: var(--eg-font-heading); font-weight: var(--eg-fw-heading); font-size: var(--eg-fs-h5); }
.eg-author__name a { color: inherit; text-decoration: none; }
.eg-author__bio { margin: 0; font-size: var(--eg-fs-sm); color: var(--eg-c-muted); }

.eg-postnav { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--eg-c-border); }
.eg-postnav .nav-links { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.eg-postnav .nav-next { text-align: end; grid-column: 2; }
.eg-postnav a { display: block; color: inherit; text-decoration: none; }
.eg-postnav__label { display: block; font-size: var(--eg-fs-xs); color: var(--eg-c-muted); }
.eg-postnav__title { display: block; font-family: var(--eg-font-heading); font-weight: var(--eg-fw-heading); line-height: var(--eg-lh-heading); margin-top: .2rem; }
.eg-postnav a:hover .eg-postnav__title { color: var(--eg-c-link); }

/* ---------- 9. Comments ---------- */
.eg-comments { margin-top: 3rem; }
.eg-comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.eg-comment-list .children { list-style: none; padding-inline-start: clamp(1rem, 4vw, 2.5rem); }
.eg-comment-list .comment-body { padding: 1.1rem 0; border-bottom: 1px solid var(--eg-c-border); }
.eg-comment-list .avatar { float: left; margin-inline-end: .85rem; border-radius: 50%; }
.eg-comment-list .comment-meta { font-size: var(--eg-fs-xs); color: var(--eg-c-muted); }
.eg-comment-list .comment-meta a { color: inherit; }
.eg-comment-list .fn { font-size: var(--eg-fs-sm); color: var(--eg-c-text); font-style: normal; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: var(--eg-fs-sm); font-weight: 600; margin-bottom: .3rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- 10. Sidebar & widgets ---------- */
.eg-sidebar__inner { display: grid; gap: calc(var(--eg-gap) * .9); }
.widget { font-size: var(--eg-fs-sm); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--eg-c-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--eg-c-text); text-decoration: none; }
.widget a:hover { color: var(--eg-c-link); }
.widget-title, .widget .wp-block-heading {
	font-size: var(--eg-fs-h6);
	margin-bottom: 1rem;
}
.eg-wtitle-underline .widget-title { padding-bottom: .55rem; border-bottom: 2px solid var(--eg-c-text); }
.eg-wtitle-bar .widget-title { padding-inline-start: .7rem; border-inline-start: 4px solid var(--eg-c-primary); }
.eg-wtitle-pill .widget-title {
	display: inline-block; padding: .3em .9em;
	background: var(--eg-c-primary); color: var(--eg-c-on-primary);
	border-radius: var(--eg-radius-btn);
}

/* ---------- 11. Footer (row builder) ---------- */
.eg-footer { margin-top: auto; font-size: var(--eg-fs-sm); }
.eg-frow { --eg-h-bg: var(--eg-c-surface); --eg-h-fg: var(--eg-c-text); }
.eg-frow + .eg-frow { border-top: 1px solid var(--eg-c-border); }
.eg-frow--main + .eg-frow--below { border-top-color: color-mix(in srgb, currentColor 14%, transparent); }
.eg-footer > .eg-frow:first-child { border-top: 1px solid var(--eg-c-border); }
.eg-frow--above .eg-frow__inner { padding-block: var(--eg-frow-above-pad); }
.eg-frow--main .eg-frow__inner { padding-block: var(--eg-frow-main-pad); }
.eg-frow--below .eg-frow__inner { padding-block: var(--eg-frow-below-pad); }
.eg-frow__inner { display: grid; gap: var(--eg-gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
.eg-fmob-two .eg-frow__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eg-frow--below .eg-frow__inner { align-items: center; }
.eg-fcol { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.eg-fcol:empty { display: none; }
.eg-falign-center { text-align: center; }
.eg-falign-center .eg-fcol { justify-items: center; }
@media (min-width: 768px) {
	.eg-falign-split .eg-fcol:last-child:not(:first-child) { text-align: end; justify-items: end; }
	.eg-falign-split .eg-fcol:empty { display: block; }
}
.eg-footer .widget li { border-color: color-mix(in srgb, currentColor 14%, transparent); }
.eg-flogo img { max-width: 180px; height: auto; }
.eg-flogo .eg-brand__title { text-decoration: none; display: inline-block; }
.eg-ftagline { margin: 0; opacity: .8; max-width: 36ch; }
.eg-fhtml > :last-child { margin-bottom: 0; }
.eg-copyright { margin: 0; opacity: .8; }
.eg-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; }
.eg-footer-menu--vertical { flex-direction: column; }
.eg-falign-center .eg-footer-menu, .eg-falign-center .eg-social { justify-content: center; }
.eg-falign-split .eg-fcol:last-child .eg-footer-menu, .eg-falign-split .eg-fcol:last-child .eg-social { justify-content: flex-end; }
.eg-footer-menu a { opacity: .85; text-decoration: none; }
.eg-footer-menu a:hover { opacity: 1; text-decoration: underline; }

.eg-top {
	position: fixed; inset-inline-end: var(--eg-top-off, 20px); bottom: var(--eg-top-off, 20px); z-index: 40; transition: transform .2s ease;
	display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
	background: var(--eg-c-primary); color: var(--eg-c-on-primary);
	border-radius: 50%; box-shadow: var(--eg-shadow);
}
.eg-top:hover { color: var(--eg-c-on-primary); filter: brightness(1.08); }
.eg-top[hidden] { display: none; }
.eg-top--left { inset-inline-end: auto; inset-inline-start: var(--eg-top-off, 20px); }
@media (prefers-reduced-motion: reduce) { .eg-top { transition: none; } }

/* ---------- 12. Empty state & 404 ---------- */
.eg-empty, .eg-404 { max-width: 40rem; }
.eg-404 { margin-inline: auto; text-align: center; padding-block: 2rem 3rem; }
.eg-404 .eg-searchform { max-width: 28rem; margin: 1.5rem auto; }
.eg-404__code {
	margin: 0;
	font-family: var(--eg-font-heading);
	font-weight: var(--eg-fw-heading);
	font-size: clamp(5rem, 3rem + 10vw, 9rem);
	line-height: 1;
	color: var(--eg-c-primary);
}
.eg-empty .eg-searchform { max-width: 28rem; margin-block: 1rem; }

/* ---------- 13. Core block tweaks ---------- */
.wp-block-image img { border-radius: var(--eg-radius-img); }
/* Images narrower than the column: the figure hugs the photo (frames, tape, pin button and caption line up with it). */
.eg-prose figure.wp-block-image:not(.alignwide, .alignfull, .alignleft, .alignright) { width: fit-content; max-width: 100%; margin-inline: auto; }
.eg-prose figure.wp-block-image > figcaption { contain: inline-size; }
.wp-block-separator { border: 0; border-top: 1px solid var(--eg-c-border); }
.wp-block-pullquote { border-block: 3px solid var(--eg-c-primary); padding-block: 1.5em; }
.wp-block-search__button { background: var(--eg-c-primary); color: var(--eg-c-on-primary); border: 0; border-radius: var(--eg-radius-btn); }
.wp-block-latest-posts__post-date { color: var(--eg-c-muted); font-size: var(--eg-fs-xs); }
.gallery-caption, .wp-caption-text { font-size: var(--eg-fs-xs); color: var(--eg-c-muted); }
.sticky .eg-card__title::before { content: "★ "; color: var(--eg-c-accent); }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--eg-c-primary); }

/* ---------- 15. Sidebar options ---------- */
@media (max-width: 991.98px) {
	.eg-sbm-above .eg-sidebar { order: -1; }
	.eg-sbm-hide .eg-sidebar { display: none; }
}
.eg-sbcard-boxed .eg-sidebar .widget,
.eg-sbcard-outline .eg-sidebar .widget { padding: 1.25rem; border-radius: var(--eg-radius); }
.eg-sbcard-boxed .eg-sidebar .widget { background: var(--eg-c-surface); }
.eg-sbcard-outline .eg-sidebar .widget { border: 1px solid var(--eg-c-border); }
.eg-sblist-plain .eg-sidebar .widget li { border-bottom: 0; padding: .3rem 0; }
.eg-sblist-arrow .eg-sidebar .widget li { border-bottom: 0; padding: .3rem 0 .3rem 1.1em; position: relative; }
.eg-sblist-arrow .eg-sidebar .widget li::before { content: "›"; position: absolute; left: 0; color: var(--eg-c-primary); font-weight: 700; }

/* ---------- 16. Single: meta, media, share, related, TOC ---------- */
.eg-meta__avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-inline-end: .45rem; }
.eg-meta__author { display: inline-flex; align-items: center; }
.eg-meta__author a { margin-inline-start: .3em; }
.eg-meta__comments { display: inline-flex; align-items: center; gap: .3rem; font-weight: 400 !important; color: var(--eg-c-muted) !important; }
.eg-meta--sep-dot, .eg-meta--sep-slash, .eg-meta--sep-bar { column-gap: 0; }
.eg-meta--sep-dot > * + *::before, .eg-meta--sep-slash > * + *::before, .eg-meta--sep-bar > * + *::before { margin-inline: .6em; opacity: .6; }
.eg-meta--sep-dot > * + *::before { content: "·"; }
.eg-meta--sep-slash > * + *::before { content: "/"; }
.eg-meta--sep-bar > * + *::before { content: "|"; }

.eg-article__media[style] img { aspect-ratio: var(--eg-feat-ratio); object-fit: cover; }
.eg-article__media--above_title { margin-bottom: 1.75rem; }

.eg-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.eg-share--top { margin-top: 1.25rem; }
.eg-share--bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--eg-c-border); }
.eg-share__label { font-family: var(--eg-font-button); font-weight: 700; font-size: var(--eg-fs-sm); }
.eg-share__list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.eg-share__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	min-width: 2.5rem; height: 2.5rem; padding: 0;
	color: var(--eg-c-text); background: var(--eg-c-surface);
	border: 0; border-radius: 999px; text-decoration: none; font-size: var(--eg-fs-sm); font-weight: 600;
	transition: background-color .15s, color .15s;
}
.eg-share__btn:hover, .eg-share__btn.is-done { background: var(--eg-c-primary); color: var(--eg-c-on-primary); }
.eg-share--icons .eg-share__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eg-share--labels .eg-share__btn { padding-inline: .95rem; border-radius: var(--eg-radius-btn); }

.eg-related { margin-top: 3rem; }
.eg-related__title { font-size: var(--eg-fs-h4); margin-bottom: 1.25rem; }
.eg-related__grid { display: grid; gap: var(--eg-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 700px) { .eg-related__grid { grid-template-columns: repeat(var(--eg-rel-cols, 3), minmax(0, 1fr)); } }
.eg-rel__media { display: block; aspect-ratio: var(--eg-card-ratio); overflow: hidden; border-radius: var(--eg-radius-img); background: var(--eg-c-surface); margin-bottom: .75rem; }
.eg-rel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--eg-ease); }
.eg-rel:hover .eg-rel__media img { transform: scale(1.04); }
.eg-rel__title { font-size: var(--eg-fs-h6); margin: 0; }
.eg-rel__title a { color: inherit; text-decoration: none; }
.eg-rel__title a:hover { color: var(--eg-c-link); }
.eg-rel__excerpt { margin: .4rem 0 0; font-size: var(--eg-fs-sm); color: var(--eg-c-muted); }

.eg-toc {
	margin-block: 0 2rem !important;
	padding: 1rem 1.25rem;
	background: var(--eg-c-surface);
	border-radius: var(--eg-radius);
	border-inline-start: 3px solid var(--eg-c-primary);
	font-size: var(--eg-fs-sm);
}
.eg-toc__title { cursor: pointer; font-family: var(--eg-font-heading); font-weight: var(--eg-fw-heading); font-size: var(--eg-fs-base); list-style-position: inside; }
.eg-toc__title::marker { color: var(--eg-c-primary); }
.eg-toc nav { margin-top: .75rem; }
.eg-toc ol, .eg-toc ul { margin: 0; padding-inline-start: 1.3em; }
.eg-toc ol ol, .eg-toc ul ul { margin-top: .25rem; }
.eg-toc li { margin: 0 0 .3rem; }
.eg-toc a { color: var(--eg-c-text); text-decoration: none; }
.eg-toc a:hover { color: var(--eg-c-link); text-decoration: underline; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.eg-author__cred { margin: 0 0 .5rem; font-size: var(--eg-fs-xs); font-weight: 600; color: var(--eg-c-primary); }
.eg-author__links { display: flex; flex-wrap: wrap; gap: 1rem; margin: .75rem 0 0; font-size: var(--eg-fs-sm); }
.eg-author__links a { font-weight: 600; }

/* ---------- 17. Card styles ---------- */
.eg-grid > .eg-ad, .eg-grid > .eg-card--hero { grid-column: 1 / -1; }
.eg-grid--list, .eg-grid--minimal, .eg-grid--text { grid-template-columns: minmax(0, 1fr) !important; }

.eg-grid--list .eg-card { flex-direction: row; gap: 1.5rem; align-items: center; }
.eg-grid--list .eg-card__media { flex: 0 0 38%; margin: 0; }
.eg-grid--list .eg-card__title { font-size: var(--eg-fs-h3); }
@media (max-width: 599.98px) { .eg-grid--list .eg-card { flex-direction: column; align-items: stretch; } .eg-grid--list .eg-card__media { flex-basis: auto; } }

.eg-grid--minimal { gap: 0; }
.eg-grid--minimal .eg-card { padding-block: 1.5rem; border-bottom: 1px solid var(--eg-c-border); }
.eg-grid--minimal .eg-card:first-child { padding-top: 0; }
.eg-grid--minimal .eg-card__title { font-size: var(--eg-fs-h3); }

.eg-grid--text { gap: 0; counter-reset: none; }
.eg-grid--text .eg-card { flex-direction: row; gap: 1.25rem; padding-block: 1.25rem; border-bottom: 1px solid var(--eg-c-border); }
.eg-card__num { font-family: var(--eg-font-heading); font-weight: var(--eg-fw-heading); font-size: var(--eg-fs-h2); line-height: 1; color: var(--eg-c-primary); min-width: 2.2ch; }

.eg-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)) !important; gap: 1.25rem var(--eg-gap); }
.eg-grid--compact .eg-card { flex-direction: row; gap: 1rem; align-items: center; }
.eg-grid--compact .eg-card__media { flex: 0 0 96px; width: 96px; aspect-ratio: 1; margin: 0; }
.eg-grid--compact .eg-card__title { font-size: var(--eg-fs-h6); margin-bottom: .25rem; }
.eg-grid--compact .eg-meta--card { margin-top: 0; }

.eg-grid--overlay .eg-card, .eg-card--big { position: relative; isolation: isolate; border-radius: var(--eg-radius-img); overflow: hidden; color: #fff; min-height: 18rem; justify-content: flex-end; }
.eg-grid--overlay .eg-card__media, .eg-card--big .eg-card__media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
.eg-grid--overlay .eg-card__media::after, .eg-card--big .eg-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.25) 55%, rgba(0,0,0,0)); }
.eg-grid--overlay .eg-card__body, .eg-card--big .eg-card__body { padding: 1.25rem; }
.eg-grid--overlay .eg-card__title, .eg-card--big .eg-card__title, .eg-grid--overlay .eg-meta, .eg-card--big .eg-meta, .eg-card--big .eg-card__excerpt { color: #fff; }
.eg-grid--overlay .eg-card--no-media, .eg-card--big.eg-card--no-media { background: var(--eg-c-inverse); }
.eg-grid--overlay .eg-cat, .eg-card--big .eg-cat { color: #fff; }
/* Text over images stays white on hover (underline shows the hover instead of a dark color). */
.eg-grid--overlay .eg-card a:hover, .eg-card--big a:hover, .eg-card--hero .eg-card__media + .eg-card__body a:hover { color: #fff; }
.eg-grid--overlay .eg-card__title a:hover, .eg-card--big .eg-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.eg-card-boxed .eg-grid--overlay .eg-card, .eg-card-boxed .eg-card--big { background: transparent; box-shadow: none; }

.eg-card--hero .eg-card__title { font-size: var(--eg-fs-h2); }
@media (min-width: 800px) {
	.eg-card--hero { flex-direction: row; gap: 2rem; align-items: center; }
	.eg-card--hero .eg-card__media { flex: 0 0 58%; margin: 0; }
	.eg-card--big { grid-column: span 2; grid-row: span 2; min-height: 26rem; }
	.eg-card--big .eg-card__title { font-size: var(--eg-fs-h2); }
}

.eg-grid--minimal .eg-card, .eg-grid--text .eg-card { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border-width: 0 0 1px !important; border-style: solid !important; border-color: var(--eg-c-border) !important; }
.eg-grid--minimal .eg-card__body, .eg-grid--text .eg-card__body { padding: 0 !important; }

/* ---------- 18. Archive headers ---------- */
.eg-archive-head--boxed .eg-archive-head__inner { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--eg-c-surface); border-radius: var(--eg-radius); }
.eg-archive-head--banner { position: relative; isolation: isolate; display: grid; min-height: clamp(14rem, 30vw, 20rem); align-items: end; border-radius: var(--eg-radius-img); overflow: hidden; color: #fff; }
.eg-archive-head__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.eg-archive-head--banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.2)); }
.eg-archive-head--banner .eg-archive-head__inner { padding: clamp(1.25rem, 4vw, 2.5rem); }
.eg-archive-head--banner .eg-archive-head__title, .eg-archive-head--banner .eg-archive-head__desc, .eg-archive-head--banner .eg-breadcrumbs, .eg-archive-head--banner .eg-archive-head__count { color: #fff; }
.eg-archive-head--banner .eg-chips a { color: #fff; border-color: rgba(255,255,255,.5); }
.eg-archive-head__count { margin: .25rem 0 0; font-size: var(--eg-fs-sm); color: var(--eg-c-muted); }
.eg-author-head { display: flex; gap: 1.25rem; align-items: center; }
.eg-author-head__avatar { border-radius: 50%; width: 88px; height: 88px; flex-shrink: 0; }
.eg-author-head .eg-archive-head__title { margin-bottom: .2rem; }

/* ---------- 19. Load more ---------- */
.eg-loadmore { display: flex; justify-content: center; margin-top: calc(var(--eg-gap) * 1.5); }
.eg-loadmore__btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.eg-pagination--simple .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.eg-pagination--simple a { font-weight: 600; text-decoration: none; }

/* ---------- 20. Ads (space reserved = no layout shift) ---------- */
.eg-ad { display: grid; justify-items: center; align-content: start; gap: .35rem; margin-block: 2rem; min-height: var(--eg-ad-h, 280px); clear: both; }
.eg-ad__label { font-size: .6875rem; letter-spacing: .04em; color: var(--eg-c-muted); }
.eg-ad__slot { width: 100%; min-height: calc(var(--eg-ad-h, 280px) - 1.25rem); display: grid; justify-items: center; }
.eg-ad__slot > * { max-width: 100%; }
.eg-ad--below_header { margin-block: 1rem 0; }
.eg-sidebar .eg-ad { margin-block: 0; }
body:not(.eg-sticky-sidebar) .eg-sidebar { align-self: stretch; }
body:not(.eg-sticky-sidebar) .eg-ad--sidebar_bottom { position: sticky; top: calc(var(--eg-sticky-offset, 0px) + var(--eg-adminbar, 0px) + 1rem); }
.eg-grid > .eg-ad { margin-block: 0; }

/* ---------- 21. Home page ---------- */
/* Page "Content width" option (front page defaults to site width). */
.eg-width-wide.eg-sidebar-none .eg-main { max-width: none; }
.eg-width-reading .eg-main { width: 100%; max-width: var(--eg-reading); margin-inline: auto; }
.eg-width-wide .entry-content > .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.eg-is-home .eg-content { padding-top: 0; }
.eg-is-home .eg-content > .eg-layout { padding-top: var(--eg-gap-section); }
.eg-home__title { margin-bottom: 1.5rem; }
.eg-home__content > * { margin-block: 0 var(--eg-gap-section); }
.eg-home__content > .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.eg-sidebar-none .eg-home__content > .alignwide { width: min(var(--eg-container) + 8rem, 100vw - 2 * var(--eg-pad)); max-width: none; margin-inline: calc(50% - min(var(--eg-container) + 8rem, 100vw - 2 * var(--eg-pad)) / 2); }
.eg-home__content > .wp-block-cover:first-child, .eg-home__content > .alignfull:first-child { margin-top: calc(-1 * var(--eg-gap-section)); }

/* Transparent header over the first (hero) block. */
.eg-transparent-header .eg-header { position: absolute; inset-inline: 0; top: 0; --eg-h-bg: transparent; --eg-h-fg: #fff; --eg-h-border: rgba(255, 255, 255, .25); }
.admin-bar.eg-transparent-header .eg-header { top: var(--wp-admin--admin-bar--height, 32px); }
.eg-transparent-header .eg-hrow { --eg-r-bg: transparent; --eg-r-fg: #fff; }
.eg-transparent-header .eg-mobilebar { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.eg-transparent-header.eg-sticky-header .eg-header { position: fixed; }
.eg-transparent-header .eg-header { transition: background-color .25s, color .25s, transform .3s var(--eg-ease); }
.eg-transparent-header .eg-header.is-solid { background: var(--eg-c-bg); --eg-h-fg: var(--eg-c-text); --eg-h-border: var(--eg-c-border); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.eg-transparent-header .eg-header.is-solid :is(.eg-hrow, .eg-mobilebar) { --eg-r-bg: transparent; --eg-r-fg: var(--eg-c-text); color: var(--eg-c-text); }
.eg-transparent-header .eg-content { padding-top: 0; }
.eg-transparent-header .eg-content > .eg-layout { padding-top: 0; }
.eg-transparent-header .eg-home__content > :first-child { margin-top: 0; }
.eg-transparent-header .eg-home__content > .wp-block-cover:first-child .wp-block-cover__inner-container { padding-top: calc(var(--eg-header-h) + 1rem); }

/* ---------- 22. Author box designs + post navigation ---------- */
.eg-meta__by { margin-inline-end: .3em; }
.eg-meta__author a { margin-inline-start: 0; }
.eg-author__label { display: block; font-size: var(--eg-fs-xs); letter-spacing: .03em; color: var(--eg-c-muted); margin-bottom: .15rem; }
.eg-author--centered { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem; }
.eg-author--centered .eg-author__avatar { width: 96px; height: 96px; }
.eg-author--centered .eg-author__links { justify-content: center; }
.eg-author--outline { background: transparent; border: 1px solid var(--eg-c-border); }
.eg-author--minimal { background: transparent; padding: 1.5rem 0 0; border-radius: 0; border-top: 2px solid var(--eg-c-text); }
.eg-author--band { background: var(--eg-c-inverse); color: var(--eg-c-on-inverse); }
.eg-author--band .eg-author__name a, .eg-author--band .eg-author__links a { color: var(--eg-c-on-inverse); }
.eg-author--band .eg-author__bio, .eg-author--band .eg-author__label { color: color-mix(in srgb, var(--eg-c-on-inverse) 75%, transparent); }
.eg-author--band .eg-author__cred { color: var(--eg-c-accent); }

.eg-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--eg-c-border); }
.eg-postnav .eg-postnav__item { display: flex; align-items: center; gap: .85rem; color: inherit; text-decoration: none; min-width: 0; }
.eg-postnav .eg-postnav__item--next { flex-direction: row-reverse; text-align: end; }
.eg-postnav__text { min-width: 0; }
.eg-postnav__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--eg-radius-img); flex-shrink: 0; }
.eg-postnav__item:hover .eg-postnav__title { color: var(--eg-c-link); }
@media (max-width: 559.98px) { .eg-postnav { grid-template-columns: 1fr; } .eg-postnav .eg-postnav__item--empty { display: none; } .eg-postnav .eg-postnav__item--next { flex-direction: row; text-align: start; } }

/* ---------- 23. Builder elements: date, ticker, contact, topics ---------- */
.eg-date { white-space: nowrap; font-size: var(--eg-fs-xs); opacity: .85; }
.eg-ticker { display: flex; align-items: center; gap: .6rem; min-width: 0; max-width: 100%; font-size: var(--eg-fs-xs); }
.eg-ticker__label { flex-shrink: 0; padding: .2em .6em; background: var(--eg-c-accent); color: var(--eg-c-on-accent); border-radius: calc(var(--eg-radius) / 2); font-weight: 700; }
.eg-ticker__list { margin: 0; padding: 0; list-style: none; min-width: 0; flex: 1; }
.eg-ticker__item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: eg-tick-in .45s var(--eg-ease); }
.eg-ticker__item a { text-decoration: none; }
.eg-ticker__item a:hover { text-decoration: underline; }
@keyframes eg-tick-in { from { opacity: 0; transform: translateY(6px); } }
.eg-ticker__pause { flex-shrink: 0; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; background: none; border: 0; border-radius: 50%; color: inherit; opacity: .7; }
.eg-ticker__pause:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.eg-ticker__pause .eg-ticker__ico-play, .eg-ticker__pause[aria-pressed="true"] .eg-ticker__ico-pause { display: none; }
.eg-ticker__pause[aria-pressed="true"] .eg-ticker__ico-play { display: inline; }
.eg-zone:has(.eg-ticker) { flex: 1 1 auto; min-width: 0; }
.eg-contact { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: var(--eg-fs-xs); }
.eg-contact__item { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.eg-contact__item:hover { text-decoration: underline; }
.eg-topics ul { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; padding: 0; list-style: none; font-size: var(--eg-fs-xs); font-weight: 600; }
.eg-topics a { text-decoration: none; }
.eg-topics a:hover { text-decoration: underline; }
.eg-footer .eg-date, .eg-footer .eg-contact, .eg-footer .eg-topics ul { font-size: var(--eg-fs-sm); }
.eg-falign-center .eg-contact, .eg-falign-center .eg-topics ul { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .eg-ticker__item { animation: none; } }

/* ---------- 24. Style details (skin tokens) ---------- */
/* Buttons */
:is(.eg-btn, .wp-block-button__link, input[type="submit"], button[type="submit"]:not(.eg-searchform__btn), .egb-btn--primary) { transition: background-color .15s, color .15s, box-shadow .15s, transform .15s, filter .15s; }

/* Article H2 */
.eg-prose > h2 { position: relative; }

/* Quotes */

/* Links inside articles */
.eg-prose a:not(.eg-btn):not(.wp-block-button__link):not(.egb-btn):not(.eg-pin-btn) { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }

/* Footer tone (affects rows set to "Skin default") */

/* List bullets */

/* Cards on hover */

/* Section titles: home modules + related posts */

/* Page background texture (pure CSS, no images) */

/* Separators (block separator + <hr> in articles) */

/* Reading progress bar (transform only: no layout work) */
.eg-progress { position: fixed; inset-inline: 0; top: 0; height: var(--eg-pb-h, 4px); z-index: 100; background: var(--eg-pb-c, var(--eg-c-primary)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.eg-progress--bottom { top: auto !important; bottom: 0; }
@media (min-width: 992px) { .eg-toc--mobile-only { display: none; } }
.admin-bar .eg-progress { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .eg-progress { top: 0; } }

/* ---------- 25. Reviewed by ---------- */
.eg-reviewer { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; margin: .6rem 0 0; font-size: var(--eg-fs-sm); color: var(--eg-c-muted); }
.eg-reviewer__avatar { width: 24px; height: 24px; border-radius: 50%; margin-inline-end: .25rem; }
.eg-reviewer a { color: var(--eg-c-text); font-weight: 600; text-decoration: none; }
.eg-reviewer a:hover { color: var(--eg-c-link); text-decoration: underline; }
.eg-reviewer__label::before { content: "\2713"; margin-inline-end: .35em; color: var(--eg-c-primary); font-weight: 700; }

/* ---------- 26. Author profile page ---------- */
.eg-author-profile { align-items: flex-start; gap: clamp(1.25rem, 4vw, 2.5rem); padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--eg-c-surface); border-radius: var(--eg-radius); }
.eg-author-profile .eg-author-head__avatar { width: clamp(96px, 16vw, 160px); height: auto; aspect-ratio: 1; }
.eg-author-head__body { min-width: 0; }
.eg-author-profile .eg-archive-head__desc { max-width: 62ch; margin-top: .5rem; }
.eg-author-profile__expertise { margin-top: 1rem; }
.eg-author-profile__expertise span { display: inline-block; padding: .3em .85em; border: 1px solid var(--eg-c-border); border-radius: 999px; font-size: var(--eg-fs-xs); font-weight: 600; background: var(--eg-c-bg); }
.eg-author-profile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--eg-c-border); }
.eg-author-profile__stats { margin: 0; font-size: var(--eg-fs-sm); color: var(--eg-c-muted); }
.eg-author-profile__social .eg-social__site { width: auto; padding-inline: .9rem; border-radius: 999px; font-size: var(--eg-fs-xs); font-weight: 700; text-decoration: none; }
@media (max-width: 599.98px) { .eg-author-profile { flex-direction: column; } }

/* ---------- 27. Jump link + sidebar TOC ---------- */
.eg-jump { margin: 0 0 1.5rem; }
.eg-jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; background: var(--eg-c-surface); border: 1px solid var(--eg-c-border); border-radius: var(--eg-radius-btn); color: var(--eg-c-text) !important; font-family: var(--eg-font-button); font-size: var(--eg-fs-sm); font-weight: 700; text-decoration: none !important; background-image: none !important; }
.eg-jump a:hover { border-color: var(--eg-c-primary); color: var(--eg-c-link) !important; }
.eg-toc-side { display: none; }
@media (min-width: 992px) {
	body:has(.eg-toc-side) .eg-sidebar { align-self: stretch; }
	body:has(.eg-toc-side) .eg-sidebar__inner { position: static; display: flex; flex-direction: column; height: 100%; }
	.eg-toc-side { display: block; position: sticky; top: calc(var(--eg-sticky-offset, 0px) + var(--eg-adminbar, 0px) + 1.5rem); margin-top: 1rem; padding: 1rem 1.1rem; background: var(--eg-c-surface); border-radius: var(--eg-radius); font-size: var(--eg-fs-sm); max-height: calc(100vh - var(--eg-sticky-offset, 0px) - var(--eg-adminbar, 0px) - 3rem); overflow-y: auto; }
}
.eg-toc-side__title { margin: 0 0 .6rem; font-family: var(--eg-font-heading); font-weight: var(--eg-fw-heading); }
.eg-toc-side ol, .eg-toc-side ul { margin: 0; padding-inline-start: 1.2em; }
.eg-toc-side li { margin: .25rem 0; }
.eg-toc-side a { color: var(--eg-c-muted); text-decoration: none; }
.eg-toc-side a:hover { color: var(--eg-c-text); }
.eg-toc-side a.is-active { color: var(--eg-c-primary); font-weight: 700; }

/* ---------- 28. Own photo credit ---------- */
.eg-credit { display: inline-flex; align-items: center; gap: .3em; font-size: var(--eg-fs-xs); color: var(--eg-c-muted); white-space: nowrap; }
.eg-credit svg { flex-shrink: 0; }

/* ---------- 29. Pinterest save button ---------- */
.eg-pin-holder { position: relative; }
.eg-pin-btn { position: absolute; top: .75rem; left: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; background: #e60023; color: #fff !important; border-radius: 999px; font: 700 .8125rem/1 var(--eg-font-button); text-decoration: none !important; background-image: none !important; background-color: #e60023 !important; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.eg-pin-holder:hover > .eg-pin-btn, .eg-pin-btn:focus-visible { opacity: 1; transform: none; }
.eg-pin-btn:hover { background-color: #ad081b !important; }
.eg-pin-btn.is-touch { opacity: .92; transform: none; padding: .35rem .6rem; }
.eg-pin-btn.is-touch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .eg-pin-btn { transition: none; } }

/* ---------- 30. Category hub ---------- */
.eg-hub__block { margin-bottom: calc(var(--eg-gap-section) * .9); }
.eg-hub__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.eg-hub__title { font-size: var(--eg-fs-h3); margin-bottom: 1.1rem; }
.eg-hub__more { font-weight: 700; font-size: var(--eg-fs-sm); text-decoration: none; }
.eg-hub__more:hover { text-decoration: underline; }
.eg-hub__all { margin-top: .5rem; }

.eg-hub .eg-grid--text .eg-card:first-child { padding-top: 0; }

/* HTML sitemap */
.eg-sitemap { display: grid; gap: 2rem var(--eg-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); margin-top: 1.5rem; }
.eg-sitemap__group h2 { font-size: var(--eg-fs-h5); margin-bottom: .6rem; }
.eg-sitemap__group h2 a { color: inherit; text-decoration: none; }
.eg-sitemap__group ul { margin: 0; padding-inline-start: 1.1em; font-size: var(--eg-fs-sm); }
.eg-sitemap__group li { margin-bottom: .3rem; }

/* Setup assistant home hero */
.eg-setup-hero { padding-block: clamp(2.5rem, 7vw, 5rem); background: var(--eg-c-surface); text-align: center; }
.eg-setup-hero h1 { margin-bottom: .4em; }
.eg-setup-hero p { max-width: 40rem; margin-inline: auto; font-size: 1.1em; color: var(--eg-c-muted); }

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