/**
 * For Gleam — front-end styles.
 *
 * Mobile-first. Everything references the global CSS custom properties defined
 * in inc/dynamic-css.php (forgleam_dynamic_css), generated from Customizer settings in
 * later phases. Nothing here hard-codes a color or size that the design system
 * exposes as a token.
 */

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

body {
	margin: 0;
	font-family: var(--forgleam-font-body);
	font-size: var(--forgleam-font-size);
	font-weight: var(--forgleam-body-weight);
	line-height: var(--forgleam-body-lh);
	letter-spacing: var(--forgleam-body-ls);
	text-transform: var(--forgleam-body-transform);
	color: var(--forgleam-color-4);
	background-color: var(--forgleam-color-8);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--forgleam-font-heading);
	font-weight: var(--forgleam-heading-weight);
	line-height: var(--forgleam-heading-lh);
	letter-spacing: var(--forgleam-heading-ls);
	text-transform: var(--forgleam-heading-transform);
	color: var(--forgleam-color-3);
	margin: 0 0 var(--forgleam-space-md);
}

h1 { font-size: var(--forgleam-h1-size); }
h2 { font-size: var(--forgleam-h2-size); }
h3 { font-size: var(--forgleam-h3-size); }
h4 { font-size: var(--forgleam-h4-size); }
h5 { font-size: var(--forgleam-h5-size); }
h6 { font-size: var(--forgleam-h6-size); }

p { margin: 0 0 var(--forgleam-space-md); }

a {
	color: var(--forgleam-link-color);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--forgleam-link-hover);
}

/* ---------- Link animations (scoped to content text links) ---------------- */
/* Applies to in-content links only, so nav and buttons keep their own styles. */
.forgleam-content-link,
.entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.entry-summary a,
.page-content a {
	transition: color 0.2s ease, background-size 0.3s ease, opacity 0.2s ease;
}

/* none: color change only */
.forgleam-link-anim-none .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.forgleam-link-anim-none .entry-summary a {
	text-decoration: none;
}

/* underline: always underlined */
.forgleam-link-anim-underline .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.forgleam-link-anim-underline .entry-summary a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* underline-slide: underline grows from the left on hover */
.forgleam-link-anim-underline-slide .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.forgleam-link-anim-underline-slide .entry-summary a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
}
.forgleam-link-anim-underline-slide .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover,
.forgleam-link-anim-underline-slide .entry-summary a:hover {
	background-size: 100% 1.5px;
}

/* underline-center: underline expands from the center on hover */
.forgleam-link-anim-underline-center .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.forgleam-link-anim-underline-center .entry-summary a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1.5px;
	background-position: 50% 100%;
	background-repeat: no-repeat;
}
.forgleam-link-anim-underline-center .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover,
.forgleam-link-anim-underline-center .entry-summary a:hover {
	background-size: 100% 1.5px;
}

/* fade: dims slightly on hover */
.forgleam-link-anim-fade .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.forgleam-link-anim-fade .entry-summary a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.forgleam-link-anim-fade .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover,
.forgleam-link-anim-fade .entry-summary a:hover {
	opacity: 0.65;
}

/* highlight: soft tinted highlight sweeps in on hover */
.forgleam-link-anim-highlight .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.forgleam-link-anim-highlight .entry-summary a {
	text-decoration: none;
	background-image: linear-gradient(
		color-mix(in srgb, var(--forgleam-link-color) 18%, transparent),
		color-mix(in srgb, var(--forgleam-link-color) 18%, transparent)
	);
	background-size: 0% 100%;
	background-position: 0 0;
	background-repeat: no-repeat;
	border-radius: 2px;
	padding: 0 2px;
}
.forgleam-link-anim-highlight .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover,
.forgleam-link-anim-highlight .entry-summary a:hover {
	background-size: 100% 100%;
}

/* color-shift: smooth color transition only (no underline) */
.forgleam-link-anim-color-shift .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn),
.forgleam-link-anim-color-shift .entry-summary a {
	text-decoration: none;
	font-weight: 600;
}

img { display: block; }

:focus-visible {
	outline: 2px solid var(--forgleam-color-1);
	outline-offset: 2px;
}

/* ---------- Layout containers --------------------------------------------- */
.forgleam-container {
	width: 100%;
	max-width: var(--forgleam-container-width, 1140px);
	margin-inline: auto;
	padding-inline: var(--forgleam-gutter, 24px);
}

/* Content + main always fill their available width. */
.site-content__inner,
.site-main {
	width: 100%;
	min-width: 0;
}

/* Sticky footer: keep the footer flush to the bottom of the viewport so no
 * background gap shows beneath it on pages whose content is shorter than the
 * screen (home, single, archives — every device). The content area grows to
 * absorb the slack; on tall pages this is a no-op. */
.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh; /* track the live viewport so the footer stays flush when
	                       mobile browser chrome shows/hides — no gap beneath it */
}
.site-content {
	flex: 1 0 auto;
}

/* Site layout: boxed / content-boxed (full-width is the default). */
.forgleam-layout-boxed {
	background: var(--forgleam-site-bg);
}

.forgleam-layout-boxed .site-wrapper {
	width: 100%;
	max-width: var(--forgleam-container-width);
	margin-inline: auto;
	overflow-x: clip; /* clip (not hidden) so sticky sidebar/header still work */
	background: var(--forgleam-color-8);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

.forgleam-layout-content-boxed .site-main {
	background: var(--forgleam-color-9);
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	padding: var(--forgleam-space-xl);
}

.site-content__inner {
	display: block;
	padding-block: var(--forgleam-space-xl);
}

/* Two-column layout once a sidebar is present and there's room. */
@media (min-width: 992px) {
	.forgleam-has-sidebar .site-content__inner {
		display: grid;
		gap: var(--forgleam-sidebar-gap, 40px);
		/* stretch (default) so the <aside> becomes a full-height track for the
		 * sticky inner wrap and the ad network's sticky sidebar ad. */
		align-items: stretch;
	}
	.forgleam-sidebar-right .site-content__inner {
		grid-template-columns: minmax(0, 1fr) var(--forgleam-sidebar-w, 320px);
	}
	.forgleam-sidebar-left .site-content__inner {
		grid-template-columns: var(--forgleam-sidebar-w, 320px) minmax(0, 1fr);
	}
	.forgleam-sidebar-left .site-main { order: 2; }
	.forgleam-sidebar-left .widget-area.sidebar { order: 1; }
	/* Mediavine/Raptive structure (Astra/Kadence pattern):
	 * #secondary.widget-area > .sidebar-inner-wrap > .widget.
	 * The <aside> stays full height (grid stretch); the INNER wrap is the sticky
	 * element, so the network can target the sidebar and stick its ad reliably. */
	.forgleam-sidebar-sticky #secondary .sidebar-inner-wrap {
		position: sticky;
		top: var(--forgleam-sidebar-sticky-top, 90px);
	}
}

.site-main {
	min-width: 0;
}

.entry-single {
	max-width: var(--forgleam-single-content-w, var(--forgleam-content-width));
	margin-inline: auto;
}
.entry-page {
	max-width: var(--forgleam-content-width);
	margin-inline: auto;
}

/* ---------- Skip link ----------------------------------------------------- */
.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100000;
	padding: var(--forgleam-space-sm) var(--forgleam-space-md);
	background: var(--forgleam-color-9);
	color: var(--forgleam-color-3);
}

.skip-link:focus {
	left: var(--forgleam-space-sm);
	top: var(--forgleam-space-sm);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	padding: var(--forgleam-space-sm) var(--forgleam-space-md);
	background: var(--forgleam-color-9);
}

/* ---------- Header builder ------------------------------------------------ */
.forgleam-header {
	background: var(--forgleam-hdr-bg);
	color: var(--forgleam-hdr-text);
	border-bottom: var(--forgleam-hdr-border-w) solid var(--forgleam-hdr-border-c);
}

.forgleam-header-row__inner {
	display: flex;
	align-items: center;
	gap: var(--forgleam-space-lg);
	padding-block: var(--forgleam-hdr-pad-y);
}

.forgleam-header-main .forgleam-header-row__inner {
	position: relative;
	justify-content: space-between;
}

.forgleam-header-topbar {
	background: var(--forgleam-hdr-topbar-bg);
	color: var(--forgleam-hdr-topbar-text);
	font-size: var(--forgleam-hdr-topbar-size);
}
.forgleam-header-topbar .forgleam-header-row__inner {
	padding-block: 6px;
	justify-content: space-between;
}
.forgleam-header-topbar a { color: var(--forgleam-hdr-topbar-text); }

/* Zones */
.forgleam-hzone {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--forgleam-space-md);
	min-width: 0;
}
/* Left/right zones take available space and align to their edges so the
 * elements spread out instead of bunching in the middle. */
.forgleam-header-main .forgleam-hzone--left { justify-content: flex-start; flex: 1 1 0; }
.forgleam-header-main .forgleam-hzone--right { justify-content: flex-end; flex: 1 1 0; }
.forgleam-header-main .forgleam-hzone--center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: 60%;
	justify-content: center;
}
.forgleam-hzone.is-empty { gap: 0; }
/* Break long brand names only at spaces, never mid-word ("Decorati-on"). */
.site-title { overflow-wrap: break-word; }

/* Branding */
.site-branding { display: flex; flex-direction: column; }
.site-title {
	font-family: var(--forgleam-font-heading);
	font-size: var(--forgleam-hdr-title-size);
	margin: 0;
	line-height: 1.1;
}
.site-title a { color: var(--forgleam-hdr-text); text-decoration: none; }
.site-description { margin: 0; font-size: 0.8rem; color: var(--forgleam-color-5); }
.forgleam-header .custom-logo {
	width: var(--forgleam-logo-w);
	max-width: 100%;
	height: auto;
}

/* Header navigation */
/* Hard reset: never show list bullets on any header/drawer menu (some plugins
 * or content styles set li{list-style} which would otherwise leak through). */
.forgleam-nav .menu,
.forgleam-nav .menu li,
.forgleam-nav .sub-menu,
.forgleam-nav .sub-menu li,
.forgleam-mobile-menu,
.forgleam-mobile-menu li {
	list-style: none !important;
}
.forgleam-nav .menu li::marker,
.forgleam-nav .sub-menu li::marker,
.forgleam-mobile-menu li::marker { content: none; }
.forgleam-nav .sub-menu { margin: 0; }
.forgleam-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--forgleam-hdr-menu-gap);
}
.forgleam-nav li { position: relative; }
.forgleam-nav a {
	display: block;
	padding: var(--forgleam-space-sm);
	color: var(--forgleam-hdr-link);
	font-size: var(--forgleam-hdr-menu-size);
	font-weight: var(--forgleam-hdr-menu-weight);
	text-transform: var(--forgleam-hdr-menu-transform);
	text-decoration: none;
}
.forgleam-nav a:hover,
.forgleam-nav a:focus { color: var(--forgleam-hdr-link-hover); }

/* Dropdowns */
.forgleam-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: var(--forgleam-sub-width);
	background: var(--forgleam-sub-bg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	padding: var(--forgleam-space-xs) 0;
	border-radius: var(--forgleam-radius);
	z-index: 50;
}
.forgleam-nav li:hover > .sub-menu,
.forgleam-nav li:focus-within > .sub-menu { display: block; }
.forgleam-nav .sub-menu a { color: var(--forgleam-sub-text); }
.forgleam-nav .sub-menu a:hover,
.forgleam-nav .sub-menu a:focus {
	background: var(--forgleam-sub-hover-bg);
	color: var(--forgleam-sub-hover-text);
}
.forgleam-sub-divider .forgleam-nav .sub-menu li + li { border-top: 1px solid var(--forgleam-color-6); }
.forgleam-sub-accent .forgleam-nav .sub-menu { border-top: 3px solid var(--forgleam-color-1); }

/* Dropdown caret on parent items */
.forgleam-caret .forgleam-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.4em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	vertical-align: middle;
}

/* Dropdown animations */
.forgleam-sub-anim-fade .forgleam-nav li:hover > .sub-menu,
.forgleam-sub-anim-fade .forgleam-nav li:focus-within > .sub-menu { animation: forgleam-sub-fade 0.18s ease; }
.forgleam-sub-anim-slide .forgleam-nav li:hover > .sub-menu,
.forgleam-sub-anim-slide .forgleam-nav li:focus-within > .sub-menu { animation: forgleam-sub-slide 0.2s ease; }
@keyframes forgleam-sub-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes forgleam-sub-slide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Top-level menu hover styles (presets) */
.forgleam-menu-hover-underline .forgleam-header .forgleam-nav > .menu > .menu-item > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.forgleam-menu-hover-underline-grow .forgleam-header .forgleam-nav > .menu > .menu-item > a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.25s ease;
}
.forgleam-menu-hover-underline-grow .forgleam-header .forgleam-nav > .menu > .menu-item > a:hover { background-size: 100% 2px; }
.forgleam-menu-hover-highlight .forgleam-header .forgleam-nav > .menu > .menu-item > a {
	border-radius: var(--forgleam-radius);
	transition: background 0.2s ease;
}
.forgleam-menu-hover-highlight .forgleam-header .forgleam-nav > .menu > .menu-item > a:hover {
	background: color-mix(in srgb, var(--forgleam-hdr-link) 12%, transparent);
}
.forgleam-menu-hover-bottom-border .forgleam-header .forgleam-nav > .menu > .menu-item > a {
	border-bottom: 2px solid transparent;
}
.forgleam-menu-hover-bottom-border .forgleam-header .forgleam-nav > .menu > .menu-item > a:hover { border-bottom-color: currentColor; }

/* Mega menu: add the CSS class "forgleam-mega" to a top-level menu item. */
.forgleam-nav li.forgleam-mega { position: static; }
.forgleam-nav li.forgleam-mega > .sub-menu {
	left: 0;
	right: 0;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: var(--forgleam-space-lg);
	padding: var(--forgleam-space-lg);
}
.forgleam-nav li.forgleam-mega > .sub-menu > li { flex: 1 1 180px; }
.forgleam-nav li.forgleam-mega .sub-menu { position: static; display: block; box-shadow: none; min-width: 0; background: transparent; }

/* Header font family */
.forgleam-header { font-family: var(--forgleam-hdr-font, inherit); }

/* Header search */
.forgleam-header-search { position: relative; }
/* Responsive search form: field + button on one row, wraps gracefully. */
.search-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.search-form label { flex: 1 1 150px; min-width: 0; margin: 0; }
.search-form .search-field {
	width: 100%;
	padding: 0.55em 0.8em;
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	background: #fff;
	color: var(--forgleam-color-1);
	font: inherit;
}
.search-form .search-submit {
	flex: 0 0 auto;
	background: var(--forgleam-search-btn-bg, var(--forgleam-btn-bg));
	color: var(--forgleam-search-btn-color, var(--forgleam-btn-color));
	border: 0;
	border-radius: var(--forgleam-radius);
	padding: 0.55em 1.1em;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.search-form .search-submit:hover { background: var(--forgleam-search-btn-hover, var(--forgleam-btn-bg-hover)); }
/* Header social icon color */
.forgleam-header .forgleam-social__link { color: var(--forgleam-hdr-social-color, var(--forgleam-hdr-link)); }
.forgleam-search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--forgleam-hdr-link);
	padding: 6px;
	display: inline-flex;
}
.forgleam-search-toggle svg {
	width: var(--forgleam-hdr-search-icon);
	height: var(--forgleam-hdr-search-icon);
}
.forgleam-search-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	background: var(--forgleam-color-9);
	padding: var(--forgleam-space-md);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: var(--forgleam-radius);
	width: 330px;
	max-width: calc(100vw - 2 * var(--forgleam-gutter));
	z-index: 60;
}
.forgleam-search-dropdown .search-form,
.forgleam-search-dropdown input[type="search"] { max-width: 100%; }

/* Header social */
.forgleam-social {
	list-style: none;
	display: flex;
	gap: var(--forgleam-space-sm);
	margin: 0;
	padding: 0;
}
.forgleam-social__link { display: inline-flex; color: inherit; }
.forgleam-social svg {
	width: var(--forgleam-hdr-social-size);
	height: var(--forgleam-hdr-social-size);
}

/* Menu toggle (hamburger) — shown on mobile via the dynamic breakpoint query */
.menu-toggle,
.forgleam-drawer-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-left: auto;
	background: transparent;
	border: 1px solid var(--forgleam-hdr-border-c);
	border-radius: var(--forgleam-radius);
	cursor: pointer;
}
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--forgleam-hdr-text);
	position: relative;
	transition: transform 0.2s ease;
}
.menu-toggle__bar::before,
.menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after { top: 7px; }

/* Mobile drawer */
.forgleam-mobile-drawer { position: fixed; inset: 0; z-index: 9999; }
.forgleam-mobile-drawer[hidden] { display: none; }
.forgleam-mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--forgleam-drawer-backdrop, 0.5));
}
.forgleam-mobile-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 86%;
	max-width: var(--forgleam-drawer-width, 330px);
	background: var(--forgleam-drawer-bg, var(--forgleam-color-9));
	color: var(--forgleam-drawer-text, var(--forgleam-color-3));
	padding: calc(var(--forgleam-space-xl) + 12px) var(--forgleam-space-lg) var(--forgleam-space-xl);
	overflow-y: auto;
	z-index: 1;
}
.forgleam-drawer-right .forgleam-mobile-drawer__panel { right: 0; }
.forgleam-drawer-left .forgleam-mobile-drawer__panel { left: 0; }

/* Drawer open/close animations (driven by the .is-open class from navigation.js) */
.forgleam-mobile-drawer__backdrop { opacity: 0; transition: opacity var(--forgleam-drawer-speed, 300ms) ease; }
.forgleam-mobile-drawer.is-open .forgleam-mobile-drawer__backdrop { opacity: 1; }
.forgleam-mobile-drawer__panel { transition: transform var(--forgleam-drawer-speed, 300ms) ease, opacity var(--forgleam-drawer-speed, 300ms) ease; }
/* Slide */
.forgleam-drawer-anim-slide.forgleam-drawer-right .forgleam-mobile-drawer__panel { transform: translateX(100%); }
.forgleam-drawer-anim-slide.forgleam-drawer-left .forgleam-mobile-drawer__panel { transform: translateX(-100%); }
.forgleam-drawer-anim-slide.is-open .forgleam-mobile-drawer__panel { transform: none; }
/* Fade */
.forgleam-drawer-anim-fade .forgleam-mobile-drawer__panel { opacity: 0; }
.forgleam-drawer-anim-fade.is-open .forgleam-mobile-drawer__panel { opacity: 1; }
/* Slide + fade */
.forgleam-drawer-anim-slide-fade .forgleam-mobile-drawer__panel { opacity: 0; transform: translateY(18px); }
.forgleam-drawer-anim-slide-fade.is-open .forgleam-mobile-drawer__panel { opacity: 1; transform: none; }
/* Scale */
.forgleam-drawer-anim-scale .forgleam-mobile-drawer__panel { opacity: 0; transform: scale(0.96); }
.forgleam-drawer-anim-scale.is-open .forgleam-mobile-drawer__panel { opacity: 1; transform: none; }
/* None */
.forgleam-drawer-anim-none .forgleam-mobile-drawer__panel,
.forgleam-drawer-anim-none .forgleam-mobile-drawer__backdrop { transition: none; }
.forgleam-mobile-menu { list-style: none; margin: 0 0 var(--forgleam-space-lg); padding: 0; }
.forgleam-mobile-menu a {
	display: block;
	padding: var(--forgleam-space-sm) 0;
	color: var(--forgleam-drawer-text, var(--forgleam-color-3));
	text-decoration: none;
	border-bottom: 1px solid var(--forgleam-color-6);
}
.forgleam-mobile-menu a:hover,
.forgleam-mobile-menu .current-menu-item > a { color: var(--forgleam-drawer-accent, var(--forgleam-color-1)); }
.forgleam-mobile-menu .sub-menu { list-style: none; padding-left: var(--forgleam-space-md); }
/* Collapsible drawer sub-menus */
.forgleam-mobile-menu .menu-item-has-children { position: relative; }
.forgleam-mobile-menu .menu-item-has-children > .sub-menu { display: none; }
.forgleam-mobile-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
.forgleam-submenu-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 2.8em;
	height: 2.8em;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--forgleam-drawer-text, var(--forgleam-color-3));
}
.forgleam-submenu-toggle__icon { display: block; position: relative; transition: transform 0.2s ease; }

/* --- Chevron (down arrow head): a clean V that flips up when open --- */
.forgleam-subtoggle-chevron .forgleam-submenu-toggle__icon {
	width: 0.7em;
	height: 0.7em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-0.18em) rotate(45deg);
}
.forgleam-subtoggle-chevron .menu-item-has-children.is-open > .forgleam-submenu-toggle .forgleam-submenu-toggle__icon { transform: translateY(0.1em) rotate(-135deg); }

/* --- Plus / minus --- */
.forgleam-subtoggle-plus .forgleam-submenu-toggle__icon { width: 0.95em; height: 0.95em; }
.forgleam-subtoggle-plus .forgleam-submenu-toggle__icon::before,
.forgleam-subtoggle-plus .forgleam-submenu-toggle__icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.forgleam-subtoggle-plus .forgleam-submenu-toggle__icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.forgleam-subtoggle-plus .forgleam-submenu-toggle__icon::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); transition: opacity 0.2s ease; }
.forgleam-subtoggle-plus .menu-item-has-children.is-open > .forgleam-submenu-toggle .forgleam-submenu-toggle__icon::after { opacity: 0; }

/* --- Triangle (filled down arrow head) --- */
.forgleam-subtoggle-triangle .forgleam-submenu-toggle__icon {
	width: 0; height: 0;
	border-left: 0.36em solid transparent;
	border-right: 0.36em solid transparent;
	border-top: 0.42em solid currentColor;
}
.forgleam-subtoggle-triangle .menu-item-has-children.is-open > .forgleam-submenu-toggle .forgleam-submenu-toggle__icon { transform: rotate(180deg); }
.forgleam-drawer-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: calc(var(--forgleam-drawer-close-size, 22px) + 18px);
	height: calc(var(--forgleam-drawer-close-size, 22px) + 18px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--forgleam-drawer-close-size, 22px);
	line-height: 1;
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: var(--forgleam-drawer-close-color, var(--forgleam-drawer-text, var(--forgleam-color-3)));
}
.forgleam-drawer-close:hover { background: var(--forgleam-drawer-close-hover, rgba(0, 0, 0, 0.06)); }
/* Close button shapes */
.forgleam-drawer-close--plain { background: none !important; }
.forgleam-drawer-close--circle { background: var(--forgleam-drawer-close-bg, var(--forgleam-color-7)); border-radius: 50%; }
.forgleam-drawer-close--rounded { background: var(--forgleam-drawer-close-bg, var(--forgleam-color-7)); border-radius: 8px; }
.forgleam-drawer-close--square { background: var(--forgleam-drawer-close-bg, var(--forgleam-color-7)); border-radius: 0; }
.forgleam-drawer-close--bordered { background: none; border: 2px solid currentColor; border-radius: 50%; }
.forgleam-drawer-close--plain:hover { background: none !important; }
.forgleam-drawer-open { overflow: hidden; }

/* Drawer menu layouts */
.forgleam-drawer-menu-plain .forgleam-mobile-menu a { border-bottom: 0; }
.forgleam-drawer-menu-centered .forgleam-mobile-menu { text-align: center; }
.forgleam-drawer-menu-large .forgleam-mobile-menu a { font-size: 1.25rem; padding: 0.6em 0; }
.forgleam-drawer-menu-pill .forgleam-mobile-menu a {
	border-bottom: 0;
	border-radius: 999px;
	padding: 0.55em 1em;
	margin-bottom: 6px;
	background: var(--forgleam-color-7);
}
.forgleam-drawer-menu-pill .forgleam-mobile-menu a:hover { background: var(--forgleam-drawer-accent, var(--forgleam-color-1)); color: #fff; }

/* ---------- Post grid & cards --------------------------------------------- */
/* Column count comes from --forgleam-card-cols (responsive), with a safe minimum
 * track so cards never collapse into a tiny column. */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(var(--forgleam-card-cols, 3), minmax(0, 1fr));
	gap: var(--forgleam-card-gap, 32px);
}

.entry-card {
	background: var(--forgleam-card-bg);
	border: var(--forgleam-card-border-w) solid var(--forgleam-card-border-c);
	border-radius: var(--forgleam-card-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-thumbnail {
	display: block;
	aspect-ratio: var(--forgleam-card-ratio, 3 / 2);
	background: var(--forgleam-color-7);
	overflow: hidden;
}

.post-thumbnail__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.entry-card__body {
	padding: var(--forgleam-card-pad);
	display: flex;
	flex-direction: column;
	gap: var(--forgleam-space-sm);
}

.entry-title {
	font-size: var(--forgleam-card-title-size);
	margin: 0;
}

.entry-title a {
	color: var(--forgleam-card-title-color);
	text-decoration: none;
}

.entry-title a:hover { color: var(--forgleam-color-1); }

.entry-summary { color: var(--forgleam-card-excerpt-color); }

.entry-meta {
	font-size: 0.85rem;
	color: var(--forgleam-card-meta-color);
	display: flex;
	flex-wrap: wrap;
	gap: var(--forgleam-space-sm);
}

.entry-meta a { color: var(--forgleam-card-meta-color); }

.cat-links a {
	display: inline-block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--forgleam-color-1);
	text-decoration: none;
}

.more-link {
	align-self: flex-start;
	margin-top: var(--forgleam-space-sm);
	font-weight: 600;
	text-decoration: none;
	color: var(--forgleam-color-1);
}

/* ---------- Single / page ------------------------------------------------- */
.entry-single .entry-header { margin-bottom: var(--forgleam-space-lg); }
.entry-single .post-thumbnail {
	border-radius: var(--forgleam-radius);
	margin-bottom: var(--forgleam-space-xl);
	aspect-ratio: 16 / 9;
}

.entry-content > * { margin-bottom: var(--forgleam-space-lg); }
.entry-content img { border-radius: var(--forgleam-radius); }
.entry-content blockquote {
	border-left: 3px solid var(--forgleam-color-1);
	margin-left: 0;
	padding-left: var(--forgleam-space-lg);
	color: var(--forgleam-color-3);
	font-style: italic;
}

.entry-footer {
	margin-top: var(--forgleam-space-xl);
	padding-top: var(--forgleam-space-lg);
	border-top: 1px solid var(--forgleam-color-6);
	font-size: 0.85rem;
	color: var(--forgleam-color-5);
}

.page-header { margin-bottom: var(--forgleam-space-xl); }
.page-title { margin: 0; }

/* ---------- Sidebar & widgets --------------------------------------------- */
.widget-area .widget {
	margin-bottom: var(--forgleam-space-xl);
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: var(--forgleam-space-md);
	padding-bottom: var(--forgleam-space-sm);
	border-bottom: 2px solid var(--forgleam-color-1);
}

/* (Sticky sidebar is handled by the .forgleam-sidebar-sticky body class.) */

/* ---------- Sidebar style presets ----------------------------------------- */
.forgleam-sidebar-style-boxed .widget-area.sidebar .widget,
.forgleam-sidebar-style-card .widget-area.sidebar .widget {
	background: var(--forgleam-color-9);
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	padding: var(--forgleam-space-lg);
}
.forgleam-sidebar-style-card .widget-area.sidebar .widget {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	border: none;
}
.forgleam-sidebar-style-separated .widget-area.sidebar .widget {
	border-bottom: 1px solid var(--forgleam-color-6);
	padding-bottom: var(--forgleam-space-lg);
}
.forgleam-sidebar-style-underline .widget-area.sidebar .widget-title {
	border-bottom: 2px solid var(--forgleam-color-1);
}
.forgleam-sidebar-style-minimal .widget-area.sidebar .widget-title {
	border: none;
	padding-bottom: 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.9rem;
}
.forgleam-sidebar-style-plain .widget-area.sidebar .widget-title {
	border: none;
	padding-bottom: 0;
}

/* ---------- Buttons / forms ----------------------------------------------- */
/* ---------- Buttons (token-driven, with style presets) -------------------- */
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.more-link,
.forgleam-button {
	display: inline-block;
	background: var(--forgleam-btn-bg);
	color: var(--forgleam-btn-color);
	border: 2px solid transparent;
	border-radius: var(--forgleam-btn-radius);
	padding: var(--forgleam-btn-pad-y) var(--forgleam-btn-pad-x);
	font-family: inherit;
	font-size: var(--forgleam-btn-size);
	font-weight: var(--forgleam-btn-weight);
	letter-spacing: var(--forgleam-btn-ls);
	text-transform: var(--forgleam-btn-transform);
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.more-link:hover,
.forgleam-button:hover,
button:focus-visible,
.wp-block-button__link:focus-visible,
.more-link:focus-visible,
.forgleam-button:focus-visible {
	background: var(--forgleam-btn-bg-hover);
	color: var(--forgleam-btn-color-hover);
}

/* Preset: Outline */
.forgleam-btn-style-outline button,
.forgleam-btn-style-outline input[type="submit"],
.forgleam-btn-style-outline .wp-block-button__link,
.forgleam-btn-style-outline .more-link,
.forgleam-btn-style-outline .forgleam-button {
	background: transparent;
	color: var(--forgleam-btn-bg);
	border-color: var(--forgleam-btn-bg);
}
.forgleam-btn-style-outline button:hover,
.forgleam-btn-style-outline .wp-block-button__link:hover,
.forgleam-btn-style-outline .more-link:hover,
.forgleam-btn-style-outline .forgleam-button:hover {
	background: var(--forgleam-btn-bg);
	color: var(--forgleam-btn-color);
}

/* Preset: Soft (tinted) */
.forgleam-btn-style-soft button,
.forgleam-btn-style-soft input[type="submit"],
.forgleam-btn-style-soft .wp-block-button__link,
.forgleam-btn-style-soft .more-link,
.forgleam-btn-style-soft .forgleam-button {
	background: color-mix(in srgb, var(--forgleam-btn-bg) 16%, transparent);
	color: var(--forgleam-btn-bg);
}
.forgleam-btn-style-soft button:hover,
.forgleam-btn-style-soft .wp-block-button__link:hover,
.forgleam-btn-style-soft .more-link:hover,
.forgleam-btn-style-soft .forgleam-button:hover {
	background: var(--forgleam-btn-bg);
	color: var(--forgleam-btn-color);
}

/* Preset: Text */
.forgleam-btn-style-text button,
.forgleam-btn-style-text input[type="submit"],
.forgleam-btn-style-text .wp-block-button__link,
.forgleam-btn-style-text .more-link,
.forgleam-btn-style-text .forgleam-button {
	background: transparent;
	color: var(--forgleam-btn-bg);
	padding-inline: 0;
	border-color: transparent;
}
.forgleam-btn-style-text .more-link:hover,
.forgleam-btn-style-text .wp-block-button__link:hover,
.forgleam-btn-style-text .forgleam-button:hover {
	color: var(--forgleam-btn-bg-hover);
	background: transparent;
}

/* Preset: Gradient */
.forgleam-btn-style-gradient button,
.forgleam-btn-style-gradient input[type="submit"],
.forgleam-btn-style-gradient .wp-block-button__link,
.forgleam-btn-style-gradient .more-link,
.forgleam-btn-style-gradient .forgleam-button {
	background: linear-gradient(135deg, var(--forgleam-btn-bg), var(--forgleam-btn-bg-hover));
	color: var(--forgleam-btn-color);
}
.forgleam-btn-style-gradient .more-link:hover,
.forgleam-btn-style-gradient .wp-block-button__link:hover,
.forgleam-btn-style-gradient .forgleam-button:hover {
	filter: brightness(1.06);
	color: var(--forgleam-btn-color);
}

/* Preset: Underline */
.forgleam-btn-style-underline button,
.forgleam-btn-style-underline input[type="submit"],
.forgleam-btn-style-underline .wp-block-button__link,
.forgleam-btn-style-underline .more-link,
.forgleam-btn-style-underline .forgleam-button {
	background: transparent;
	color: var(--forgleam-btn-bg);
	padding-inline: 0;
	border-bottom: 2px solid var(--forgleam-btn-bg);
	border-radius: 0;
}
.forgleam-btn-style-underline .more-link:hover,
.forgleam-btn-style-underline .wp-block-button__link:hover,
.forgleam-btn-style-underline .forgleam-button:hover {
	background: transparent;
	color: var(--forgleam-btn-bg-hover);
	border-bottom-color: var(--forgleam-btn-bg-hover);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	font: inherit;
	background: var(--forgleam-color-9);
}

/* ---------- Pagination ---------------------------------------------------- */
.pagination,
.comments-pagination,
.post-navigation {
	margin-top: var(--forgleam-space-xl);
}

.pagination .page-numbers {
	display: inline-block;
	padding: var(--forgleam-space-sm) var(--forgleam-space-md);
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	text-decoration: none;
	color: var(--forgleam-color-3);
	margin: 0 2px;
}

.pagination .page-numbers.current {
	background: var(--forgleam-color-1);
	color: var(--forgleam-color-9);
	border-color: var(--forgleam-color-1);
}

/* ---------- Footer builder ------------------------------------------------ */
.forgleam-footer {
	margin-top: var(--forgleam-space-xxl);
	background: var(--forgleam-ftr-bg);
	color: var(--forgleam-ftr-text);
	font-family: var(--forgleam-ftr-font, inherit);
	font-size: var(--forgleam-ftr-font-size);
	border-top: var(--forgleam-ftr-border-w) solid var(--forgleam-ftr-border-c);
}
.forgleam-footer a { color: var(--forgleam-ftr-link); }
.forgleam-footer a:hover,
.forgleam-footer a:focus { color: var(--forgleam-ftr-link-hover); }
/* Footer social icon color */
.forgleam-footer .forgleam-social__link { color: var(--forgleam-ftr-social-color, var(--forgleam-ftr-link)); }
.forgleam-footer .forgleam-social__link:hover { color: var(--forgleam-ftr-link-hover); }

/* Widget columns */
.forgleam-footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--forgleam-ftr-col-gap);
	padding-block: var(--forgleam-ftr-pad-y);
}
@media (min-width: 600px) {
	.forgleam-footer-cols-2 .forgleam-footer-widgets,
	.forgleam-footer-widgets.forgleam-footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 782px) {
	.forgleam-footer-widgets.forgleam-footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.forgleam-footer-widgets.forgleam-footer-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.forgleam-footer-widgets.forgleam-footer-cols-5 { grid-template-columns: repeat(3, 1fr); }
	.forgleam-footer-widgets.forgleam-footer-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.forgleam-footer-widgets.forgleam-footer-cols-4 { grid-template-columns: repeat(4, 1fr); }
	.forgleam-footer-widgets.forgleam-footer-cols-5 { grid-template-columns: repeat(5, 1fr); }
	.forgleam-footer-widgets.forgleam-footer-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.forgleam-footer .widget-title { color: var(--forgleam-ftr-title-color); font-size: var(--forgleam-ftr-title-size); }
.forgleam-footer-col-placeholder { opacity: 0.6; font-size: 0.85rem; }

/* Upper row */
.forgleam-footer-upper {
	border-bottom: 1px solid rgba(127, 127, 127, 0.18);
	font-size: var(--forgleam-ftr-upper-size, var(--forgleam-ftr-font-size));
	color: var(--forgleam-ftr-upper-text, var(--forgleam-ftr-text));
}
/* Middle (widgets) row — its own font, size and text color */
.forgleam-footer-widgets-row {
	font-family: var(--forgleam-ftr-mid-font, var(--forgleam-ftr-font));
	font-size: var(--forgleam-ftr-mid-size, var(--forgleam-ftr-font-size));
	color: var(--forgleam-ftr-mid-text, var(--forgleam-ftr-text));
}
.forgleam-footer-upper__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--forgleam-space-md);
	padding-block: var(--forgleam-space-lg);
}
.forgleam-footer-upper--split .forgleam-footer-upper__inner { justify-content: space-between; }
.forgleam-footer-upper--centered .forgleam-footer-upper__inner { justify-content: center; text-align: center; }

/* Bottom row (copyright only) */
.forgleam-footer-bottom {
	background: var(--forgleam-ftr-bottom-bg);
	color: var(--forgleam-ftr-bottom-text);
	font-size: var(--forgleam-ftr-bottom-size, var(--forgleam-ftr-font-size));
	border-top: 1px solid rgba(127, 127, 127, 0.18);
}
.forgleam-footer-bottom__inner { padding-block: var(--forgleam-space-lg); }
.forgleam-footer-bottom--align-left .forgleam-footer-bottom__inner { text-align: left; }
.forgleam-footer-bottom--align-center .forgleam-footer-bottom__inner { text-align: center; }
.forgleam-footer-bottom--align-right .forgleam-footer-bottom__inner { text-align: right; }

.forgleam-fzone { display: flex; align-items: center; flex-wrap: wrap; gap: var(--forgleam-space-md); }
.forgleam-fzone--center { justify-content: center; flex-direction: column; width: 100%; }
.footer-menu-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--forgleam-space-md);
	margin: 0;
	padding: 0;
}
.site-info { margin: 0; font-size: 0.85rem; }

/* ---------- Comments ------------------------------------------------------ */
.comments-area { margin-top: var(--forgleam-space-xxl); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: var(--forgleam-space-lg); }

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------- Post meta: icons, avatar, separators -------------------------- */
.entry-meta--items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--forgleam-space-sm);
}
.entry-meta--items > * {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}
/* Separator between meta items (driven by --forgleam-meta-sep). */
.entry-meta--items > * + *::before {
	content: var(--forgleam-meta-sep, "\2022");
	margin-right: 0.2em;
	opacity: 0.5;
}
.forgleam-meta-icon {
	display: inline-flex;
	align-items: center;
	opacity: 0.7;
}
.forgleam-meta-label {
	opacity: 0.85;
}
.forgleam-author-avatar {
	border-radius: 50%;
	vertical-align: middle;
}

/* ---------- Breadcrumbs --------------------------------------------------- */
.forgleam-breadcrumbs-wrap {
	margin-bottom: var(--forgleam-space-md);
}
.forgleam-breadcrumbs {
	font-size: var(--forgleam-bc-size);
}
.forgleam-bc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em;
}
.forgleam-bc-align-center .forgleam-bc-list { justify-content: center; }
.forgleam-bc-align-right .forgleam-bc-list { justify-content: flex-end; }

.forgleam-bc-item { display: inline-flex; align-items: center; }
.forgleam-bc-item a {
	color: var(--forgleam-bc-link);
	text-decoration: none;
}
.forgleam-bc-item a:hover { text-decoration: underline; }
.forgleam-bc-current { color: var(--forgleam-bc-current); }
.forgleam-bc-sep { color: var(--forgleam-bc-current); opacity: 0.5; }
.forgleam-bc-prefix { color: var(--forgleam-bc-current); opacity: 0.7; margin-right: 0.25em; }
.forgleam-bc-home-icon {
	display: inline-flex;
	vertical-align: -0.1em;
	margin-right: 0.3em;
}

/* Style: Pills */
.forgleam-bc-style-pill .forgleam-bc-item {
	background: var(--forgleam-bc-bg);
	padding: 0.15em 0.65em;
	border-radius: 999px;
}
.forgleam-bc-style-pill .forgleam-bc-sep { display: none; }

/* Style: Bordered bar */
.forgleam-bc-style-bordered .forgleam-bc-list,
.forgleam-breadcrumbs.forgleam-bc-style-bordered {
	background: var(--forgleam-bc-bg);
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	padding: 0.5em 0.8em;
}

/* Style: Arrow chain */
.forgleam-bc-style-arrow .forgleam-bc-sep { font-weight: 700; opacity: 0.65; }

/* Style: Minimal */
.forgleam-bc-style-minimal {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.85;
	font-size: calc(var(--forgleam-bc-size) - 1px);
}

/* ---------- Sticky & Transparent header ----------------------------------- */
/* Sticky positioning, gated per device. */
@media (min-width: 1025px) {
	.forgleam-header.forgleam-has-sticky.forgleam-sticky-d { position: sticky; top: 0; z-index: 100; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.forgleam-header.forgleam-has-sticky.forgleam-sticky-t { position: sticky; top: 0; z-index: 100; }
}
@media (max-width: 767px) {
	.forgleam-header.forgleam-has-sticky.forgleam-sticky-m { position: sticky; top: 0; z-index: 100; }
}

/* Give rows a background so a stuck/sticky header is opaque over content. */
.forgleam-header-main { background: var(--forgleam-hdr-bg); }

.forgleam-header-row__inner { transition: padding 0.2s ease; }

/* Stuck appearance (added by JS once scrolled). */
.forgleam-header.is-stuck {
	--forgleam-hdr-bg: var(--forgleam-hdr-sticky-bg);
	--forgleam-hdr-text: var(--forgleam-hdr-sticky-text-c);
	--forgleam-hdr-link: var(--forgleam-hdr-sticky-link-c);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.forgleam-header.is-stuck.forgleam-no-shadow { box-shadow: none; }
.forgleam-shrink.forgleam-header.is-stuck .forgleam-header-main .forgleam-header-row__inner {
	padding-block: calc(var(--forgleam-hdr-pad-y) * 0.55);
}

/* Transparent overlay header. */
body.forgleam-header-transparent .forgleam-header {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 100;
}
body.forgleam-header-transparent .forgleam-header-main { background: transparent; }

/* Transparent + sticky: once scrolled, become a fixed solid bar (sticky colors win). */
.forgleam-header.forgleam-fixed {
	position: fixed !important;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1000;
	animation: forgleam-slide-down 0.3s ease;
}
body.forgleam-header-transparent .forgleam-header.is-stuck {
	--forgleam-hdr-bg: var(--forgleam-hdr-sticky-bg);
	--forgleam-hdr-text: var(--forgleam-hdr-sticky-text-c);
	--forgleam-hdr-link: var(--forgleam-hdr-sticky-link-c);
}
body.forgleam-header-transparent .forgleam-header.is-stuck .forgleam-header-main { background: var(--forgleam-hdr-sticky-bg); }

@keyframes forgleam-slide-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.forgleam-header.forgleam-fixed { animation: none; }
}

/* ---------- Header social shapes ------------------------------------------ */
.forgleam-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	transition: color 0.2s ease, background 0.2s ease;
}
.forgleam-social__link:hover { color: var(--forgleam-social-hover); }
.forgleam-social-circle .forgleam-social__link,
.forgleam-social-rounded .forgleam-social__link,
.forgleam-social-square .forgleam-social__link {
	width: calc(var(--forgleam-hdr-social-size) + 16px);
	height: calc(var(--forgleam-hdr-social-size) + 16px);
	background: var(--forgleam-social-bg);
}
.forgleam-social-circle .forgleam-social__link { border-radius: 50%; }
.forgleam-social-rounded .forgleam-social__link { border-radius: var(--forgleam-radius); }
.forgleam-social-square .forgleam-social__link { border-radius: 0; }

/* ---------- Card style presets -------------------------------------------- */
/* Classic / borderless: drop the card chrome, keep image rounded. */
.forgleam-card-style-classic .entry-card,
.forgleam-card-style-borderless .entry-card { background: transparent; border: none; }
.forgleam-card-style-classic .entry-card__body,
.forgleam-card-style-borderless .entry-card__body { padding-inline: 0; }
.forgleam-card-style-classic .post-thumbnail { border-radius: var(--forgleam-card-radius); }

/* Boxed / grid / magazine: add a soft shadow. */
.forgleam-card-style-boxed .entry-card,
.forgleam-card-style-grid .entry-card,
.forgleam-card-style-magazine .entry-card { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05); }
.forgleam-card-style-magazine .entry-title { font-size: calc(var(--forgleam-card-title-size) * 1.25); }

/* Minimal text: no image. */
.forgleam-card-style-minimal-text .post-thumbnail { display: none; }

/* Horizontal: image left, content right (one per row). */
@media (min-width: 600px) {
	.forgleam-card-style-horizontal .posts-grid { grid-template-columns: 1fr; }
	.forgleam-card-style-horizontal .entry-card { flex-direction: row; align-items: stretch; }
	.forgleam-card-style-horizontal .post-thumbnail { flex: 0 0 42%; aspect-ratio: auto; }
	.forgleam-card-style-horizontal .entry-card__body { flex: 1; justify-content: center; }
}

/* Overlay: text over the image. */
.forgleam-card-style-overlay .entry-card { position: relative; }
.forgleam-card-style-overlay .entry-card__body {
	position: absolute;
	inset: auto 0 0 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}
.forgleam-card-style-overlay .entry-title a,
.forgleam-card-style-overlay .entry-meta,
.forgleam-card-style-overlay .entry-meta a { color: #fff; }
.forgleam-card-style-overlay .entry-summary,
.forgleam-card-style-overlay .more-link { display: none; }

/* Masonry: CSS columns of varying height. */
.forgleam-card-style-masonry .posts-grid {
	display: block;
	column-count: var(--forgleam-card-cols, 3);
	column-gap: var(--forgleam-card-gap, 32px);
}
.forgleam-card-style-masonry .entry-card {
	break-inside: avoid;
	margin-bottom: var(--forgleam-card-gap, 32px);
}

/* ---------- Card hover effects -------------------------------------------- */
.forgleam-card-hover-lift .entry-card:hover { transform: translateY(-5px); }
.forgleam-card-hover-shadow .entry-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.forgleam-card-hover-border .entry-card:hover { border-color: var(--forgleam-color-1); }
.forgleam-card-hover-zoom .entry-card:hover .post-thumbnail__img { transform: scale(1.06); }

/* ---------- Pagination styles --------------------------------------------- */
.forgleam-pagination-rounded .page-numbers { border-radius: 999px; }
.forgleam-pagination-arrows .page-numbers,
.forgleam-pagination-minimal .page-numbers { border-color: transparent; background: transparent; }
.forgleam-pagination-arrows .page-numbers.current,
.forgleam-pagination-minimal .page-numbers.current {
	background: transparent;
	color: var(--forgleam-color-1);
	font-weight: 700;
	border-color: transparent;
}
.forgleam-pagination-minimal .page-numbers:hover { color: var(--forgleam-color-1); }

/* ---------- Single post: title area / hero -------------------------------- */
/* Standard (non-hero) headers align to the single content width. */
.forgleam-single-header { max-width: var(--forgleam-single-content-w, var(--forgleam-content-width)); margin-inline: auto; margin-bottom: var(--forgleam-space-xl); }
.forgleam-single-header .entry-header { padding-block: var(--forgleam-title-pad); }
.forgleam-single-header .entry-title { font-size: var(--forgleam-single-title-size); color: var(--forgleam-single-title-color); margin-bottom: var(--forgleam-space-md); }
.forgleam-single-header .entry-meta--items { margin-top: var(--forgleam-space-sm); }

/* Featured image inside the single header (above/below the title). */
.forgleam-single-header .post-thumbnail {
	display: block;
	margin-block: var(--forgleam-space-lg);
	border-radius: var(--forgleam-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--forgleam-color-7);
}
.forgleam-single-header .post-thumbnail__img { width: 100%; height: 100%; object-fit: cover; }
.forgleam-title-align-center .entry-header { text-align: center; }
.forgleam-title-align-right .entry-header { text-align: right; }

.forgleam-overline {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--forgleam-overline-color);
	margin-bottom: var(--forgleam-space-sm);
	text-decoration: none;
}

/* Boxed title */
.forgleam-title-boxed .entry-header {
	background: var(--forgleam-title-bg);
	padding: var(--forgleam-title-pad) var(--forgleam-space-xl);
	border-radius: var(--forgleam-radius);
}
/* Divider title */
.forgleam-title-divider .entry-header { border-bottom: 2px solid var(--forgleam-color-6); }
/* Minimal title */
.forgleam-title-minimal .entry-title { font-size: calc(var(--forgleam-single-title-size) * 1.25); }
.forgleam-title-minimal .entry-header { padding-block: calc(var(--forgleam-title-pad) * 1.4); }

/* Hero presets span the full content container. */
.forgleam-title-hero-image .forgleam-single-header,
.forgleam-title-hero-gradient .forgleam-single-header,
.forgleam-title-magazine-cover .forgleam-single-header,
.forgleam-title-split .forgleam-single-header { max-width: none; }

.forgleam-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--forgleam-hero-min-h);
	background-size: cover;
	background-position: center;
	color: var(--forgleam-hero-text);
	margin-bottom: var(--forgleam-space-xl);
	border-radius: var(--forgleam-radius);
	overflow: hidden;
}
.forgleam-hero__overlay { position: absolute; inset: 0; background: var(--forgleam-hero-overlay-color); opacity: var(--forgleam-hero-overlay); }
.forgleam-hero__inner { position: relative; z-index: 1; width: 100%; padding-block: var(--forgleam-title-pad); }
.forgleam-hero__content { max-width: var(--forgleam-content-width); }
.forgleam-title-align-center .forgleam-hero__content { margin-inline: auto; }
.forgleam-hero .entry-title { color: var(--forgleam-hero-text); }
.forgleam-hero .entry-meta,
.forgleam-hero .entry-meta a,
.forgleam-hero .forgleam-bc-item a,
.forgleam-hero .forgleam-bc-current,
.forgleam-hero .forgleam-bc-sep,
.forgleam-hero .forgleam-overline { color: var(--forgleam-hero-text); }

/* Gradient hero (ignores image) */
.forgleam-title-hero-gradient .forgleam-hero {
	background-image: linear-gradient(135deg, var(--forgleam-color-1), var(--forgleam-color-2)) !important;
}
/* Magazine cover: taller, content anchored to the bottom */
.forgleam-title-magazine-cover .forgleam-hero { align-items: flex-end; min-height: calc(var(--forgleam-hero-min-h) * 1.25); }

/* Split: image on the right half, content left, dark text (desktop) */
@media (min-width: 782px) {
	.forgleam-title-split .forgleam-hero {
		background-size: 50% 100%;
		background-position: right center;
		background-repeat: no-repeat;
		color: var(--forgleam-color-3);
		align-items: center;
	}
	.forgleam-title-split .forgleam-hero__overlay { display: none; }
	.forgleam-title-split .forgleam-hero__content { width: 48%; }
	.forgleam-title-split .forgleam-hero .entry-title { color: var(--forgleam-color-3); }
	.forgleam-title-split .forgleam-hero .entry-meta,
	.forgleam-title-split .forgleam-hero .entry-meta a,
	.forgleam-title-split .forgleam-hero .forgleam-bc-item a,
	.forgleam-title-split .forgleam-hero .forgleam-overline { color: var(--forgleam-color-4); }
}

/* ---------- Single title: funky / textured presets ------------------------ */
/* Torn paper: title on a paper card with a torn bottom edge. */
.forgleam-title-torn-paper .entry-header {
	position: relative;
	background: var(--forgleam-color-9);
	padding: var(--forgleam-title-pad) var(--forgleam-space-xl) calc(var(--forgleam-title-pad) + 18px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.forgleam-title-torn-paper .entry-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 16px;
	background:
		linear-gradient(-45deg, transparent 11px, var(--forgleam-color-8) 0) 0 100% / 22px 16px repeat-x,
		linear-gradient(45deg, transparent 11px, var(--forgleam-color-8) 0) 0 100% / 22px 16px repeat-x;
}

/* Highlighter: marker swipe behind the title text. */
.forgleam-title-highlight .entry-title {
	display: inline;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	background: linear-gradient(transparent 55%, color-mix(in srgb, var(--forgleam-title-accent) 38%, transparent) 0);
	padding: 0 0.15em;
}

/* Outline text: stroked title, transparent fill. */
.forgleam-title-outline-text .entry-title {
	color: transparent;
	-webkit-text-stroke: 2px var(--forgleam-single-title-color);
	text-stroke: 2px var(--forgleam-single-title-color);
}

/* Gradient text. */
.forgleam-title-gradient-text .entry-title {
	background: linear-gradient(120deg, var(--forgleam-color-1), var(--forgleam-color-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Polka dots background. */
.forgleam-title-dots .entry-header {
	background-image: radial-gradient(color-mix(in srgb, var(--forgleam-title-accent) 28%, transparent) 2px, transparent 2px);
	background-size: 18px 18px;
	padding: var(--forgleam-title-pad) var(--forgleam-space-xl);
	border-radius: var(--forgleam-radius);
}

/* Lined / notebook paper. */
.forgleam-title-lined-paper .entry-header {
	background-color: var(--forgleam-color-9);
	background-image:
		linear-gradient(var(--forgleam-color-6) 1px, transparent 1px),
		linear-gradient(90deg, transparent 38px, color-mix(in srgb, var(--forgleam-color-1) 40%, transparent) 38px, color-mix(in srgb, var(--forgleam-color-1) 40%, transparent) 40px, transparent 40px);
	background-size: 100% 2.2em, 100% 100%;
	padding: var(--forgleam-title-pad) var(--forgleam-space-xl) var(--forgleam-title-pad) 56px;
	border-radius: var(--forgleam-radius);
}

/* Stamp / badge frame. */
.forgleam-title-stamp .entry-header {
	border: 2px solid var(--forgleam-color-3);
	outline: 2px dashed var(--forgleam-color-3);
	outline-offset: 5px;
	padding: var(--forgleam-title-pad) var(--forgleam-space-xl);
	display: inline-block;
}
.forgleam-title-stamp.forgleam-title-align-center .entry-header { display: block; }

/* Ribbon: category overline becomes a ribbon banner. */
.forgleam-title-ribbon .forgleam-overline {
	position: relative;
	background: var(--forgleam-title-accent);
	color: var(--forgleam-color-9);
	padding: 0.35em 1.2em 0.35em 0.9em;
	margin-bottom: var(--forgleam-space-md);
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}

/* Diagonal slanted band behind the title. */
.forgleam-title-diagonal .entry-header {
	position: relative;
	padding: var(--forgleam-title-pad) var(--forgleam-space-xl);
	z-index: 0;
}
.forgleam-title-diagonal .entry-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--forgleam-title-bg);
	transform: skewY(-2.5deg);
	transform-origin: top left;
	z-index: -1;
	border-radius: var(--forgleam-radius);
}

/* Duotone hero: tint the featured image with the palette. */
.forgleam-title-duotone-hero .forgleam-hero { background-blend-mode: multiply; background-color: var(--forgleam-color-1); }
.forgleam-title-duotone-hero .forgleam-hero__overlay {
	background: var(--forgleam-color-3);
	mix-blend-mode: screen;
}

/* ---------- Single-post components ---------------------------------------- */
.forgleam-single-after { max-width: var(--forgleam-single-content-w, var(--forgleam-content-width)); margin-inline: auto; }

/* Table of contents */
.forgleam-toc {
	background: var(--forgleam-color-7);
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	padding: var(--forgleam-space-md) var(--forgleam-space-lg);
	margin-bottom: var(--forgleam-space-xl);
}
.forgleam-toc__title { font-weight: 700; margin: 0 0 var(--forgleam-space-sm); cursor: pointer; font-family: var(--forgleam-font-heading); }
.forgleam-toc__list { margin: 0; padding-left: 1.2em; }
.forgleam-toc__list:not(.forgleam-toc--numbered) { list-style: none; padding-left: 0; }
.forgleam-toc__item { margin: 0.25em 0; }
.forgleam-toc__item a { text-decoration: none; }
.forgleam-toc__item a:hover { text-decoration: underline; }
.forgleam-toc__lvl-3 { margin-left: 1em; }
.forgleam-toc__lvl-4 { margin-left: 2em; }

/* Share buttons */
.forgleam-share { display: flex; align-items: center; flex-wrap: wrap; gap: var(--forgleam-space-sm); margin-block: var(--forgleam-space-lg); }
.forgleam-share__label { font-weight: 600; }
.forgleam-share__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--forgleam-space-sm); margin: 0; padding: 0; }
.forgleam-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--forgleam-color-1);
	color: var(--forgleam-color-9);
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.forgleam-share__link:hover { transform: translateY(-2px); color: var(--forgleam-color-9); }
.forgleam-share--outline .forgleam-share__link {
	background: transparent;
	color: var(--forgleam-color-1);
	border: 2px solid var(--forgleam-color-1);
}

/* Author box */
.forgleam-author-box {
	display: flex;
	gap: var(--forgleam-space-lg);
	align-items: flex-start;
	background: var(--forgleam-color-7);
	border-radius: var(--forgleam-radius);
	padding: var(--forgleam-space-lg);
	margin-block: var(--forgleam-space-xl);
}
.forgleam-author-box__avatar img { border-radius: 50%; display: block; }
.forgleam-author-box__name { font-family: var(--forgleam-font-heading); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.25em; }
.forgleam-author-box__bio { margin: 0 0 0.5em; color: var(--forgleam-color-4); }
.forgleam-author-box__link { font-weight: 600; text-decoration: none; }

/* Related posts */
.forgleam-related { margin-block: var(--forgleam-space-xxl); }
.forgleam-related__title { margin-bottom: var(--forgleam-space-lg); }
.forgleam-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--forgleam-space-lg); }
.forgleam-related__thumb { display: block; aspect-ratio: var(--forgleam-card-ratio, 3 / 2); border-radius: var(--forgleam-radius); overflow: hidden; background: var(--forgleam-color-7); }
.forgleam-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.forgleam-related__post-title { font-size: 1.05rem; margin: var(--forgleam-space-sm) 0 0.25em; }
.forgleam-related__post-title a { text-decoration: none; color: var(--forgleam-color-3); }
.forgleam-related__date { font-size: 0.8rem; color: var(--forgleam-color-5); }

/* Post navigation (prev/next) */
.post-navigation { margin-block: var(--forgleam-space-xl); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: var(--forgleam-space-lg); flex-wrap: wrap; }
.post-navigation .nav-subtitle { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--forgleam-color-5); }
.post-navigation .nav-title { font-family: var(--forgleam-font-heading); font-weight: 600; }
.post-navigation a { text-decoration: none; }
.post-navigation .nav-next { text-align: right; margin-left: auto; }

/* Reading progress bar */
.forgleam-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--forgleam-progress-h);
	background: transparent;
	z-index: 2000;
	pointer-events: none;
}
.forgleam-reading-progress__bar { display: block; height: 100%; width: 0; background: var(--forgleam-progress-color); transition: width 0.1s linear; }

/* ---------- Share: shapes + floating bar ---------------------------------- */
.forgleam-share--shape-rounded .forgleam-share__link { border-radius: var(--forgleam-radius); }
.forgleam-share--shape-square .forgleam-share__link { border-radius: 0; }

.forgleam-share-floating {
	position: fixed;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 500;
}
.forgleam-share-floating .forgleam-share { flex-direction: column; margin: 0; }
.forgleam-share-floating .forgleam-share__list { flex-direction: column; }
@media (max-width: 1100px) { .forgleam-share-floating { display: none; } }

/* ---------- Related posts: layout styles ---------------------------------- */
.forgleam-author-box__avatar img { width: var(--forgleam-author-avatar, 72px); height: var(--forgleam-author-avatar, 72px); object-fit: cover; border-radius: 50%; display: block; }

/* List */
.forgleam-related--list .forgleam-related__grid { grid-template-columns: 1fr; gap: var(--forgleam-space-md); }
.forgleam-related--list .forgleam-related__item { display: flex; gap: var(--forgleam-space-md); align-items: center; }
.forgleam-related--list .forgleam-related__thumb { flex: 0 0 128px; margin: 0; }
.forgleam-related--list .forgleam-related__post-title { margin-top: 0; }

/* Overlay */
.forgleam-related--overlay .forgleam-related__item { position: relative; border-radius: var(--forgleam-radius); overflow: hidden; }
.forgleam-related--overlay .forgleam-related__thumb { margin: 0; }
.forgleam-related--overlay .forgleam-related__post-title,
.forgleam-related--overlay .forgleam-related__date {
	position: absolute;
	left: 0;
	right: 0;
	padding: 0 var(--forgleam-space-md);
	color: #fff;
	z-index: 1;
}
.forgleam-related--overlay .forgleam-related__post-title { bottom: 1.6em; margin: 0; }
.forgleam-related--overlay .forgleam-related__post-title a { color: #fff; }
.forgleam-related--overlay .forgleam-related__date { bottom: 0.6em; }
.forgleam-related--overlay .forgleam-related__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.78));
}

/* Minimal (no thumbnail) */
.forgleam-related--minimal .forgleam-related__thumb { display: none; }

/* Boxed */
.forgleam-related--boxed .forgleam-related__item {
	background: var(--forgleam-color-9);
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-radius);
	overflow: hidden;
}
.forgleam-related--boxed .forgleam-related__thumb { margin: 0; border-radius: 0; }
.forgleam-related--boxed .forgleam-related__post-title,
.forgleam-related--boxed .forgleam-related__date { padding-inline: var(--forgleam-space-md); }
.forgleam-related--boxed .forgleam-related__date { padding-bottom: var(--forgleam-space-md); display: block; }

/* Related: card + image shape overrides */
.forgleam-related--card-square .forgleam-related__item { border-radius: 0; }
.forgleam-related--card-rounded .forgleam-related__item { border-radius: var(--forgleam-radius); overflow: hidden; }
.forgleam-related--card-circle .forgleam-related__item { border-radius: 22px; overflow: hidden; }
.forgleam-related--img-square .forgleam-related__thumb { border-radius: 0; }
.forgleam-related--img-rounded .forgleam-related__thumb { border-radius: var(--forgleam-radius); }
.forgleam-related--img-circle .forgleam-related__thumb { border-radius: 50%; aspect-ratio: 1 / 1; }
.forgleam-related--img-circle .forgleam-related__thumb img { border-radius: 50%; }

/* ---------- Author box: themed styles ------------------------------------- */
.forgleam-author-box__social { margin-top: var(--forgleam-space-sm); }
.forgleam-author-box--lifestyle,
.forgleam-author-box--fashion {
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: transparent;
}
.forgleam-author-box--lifestyle .forgleam-author-box__social,
.forgleam-author-box--fashion .forgleam-author-box__social { justify-content: center; }

/* Home decor — warm, serif, accent edge */
.forgleam-author-box--home-decor {
	background: var(--forgleam-color-7);
	border-left: 4px solid var(--forgleam-color-1);
}
.forgleam-author-box--home-decor .forgleam-author-box__name { font-family: var(--forgleam-font-heading); }

/* Lifestyle — airy bordered card */
.forgleam-author-box--lifestyle { border: 1px solid var(--forgleam-color-6); }

/* Crafts — playful dashed frame */
.forgleam-author-box--crafts {
	background: color-mix(in srgb, var(--forgleam-color-1) 8%, var(--forgleam-color-9));
	border: 2px dashed var(--forgleam-color-1);
	border-radius: 18px;
}

/* Organization — minimal, tidy rules */
.forgleam-author-box--organization {
	background: transparent;
	border-top: 1px solid var(--forgleam-color-6);
	border-bottom: 1px solid var(--forgleam-color-6);
	border-radius: 0;
	padding-inline: 0;
}

/* Fashion — editorial, uppercase, square avatar */
.forgleam-author-box--fashion .forgleam-author-box__name {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
}
.forgleam-author-box--fashion .forgleam-author-box__avatar img { border-radius: 0; }
.forgleam-author-box--fashion .forgleam-author-box__bio { font-style: italic; }

/* ---------- Share: explicit shapes + brand colors ------------------------- */
.forgleam-share--shape-circle .forgleam-share__link { border-radius: 50%; }

/* Official brand colors (filled) */
.forgleam-share--colors-brand .forgleam-share__link { color: #fff; }
.forgleam-share--colors-brand .forgleam-share__link--pinterest { background: #e60023; }
.forgleam-share--colors-brand .forgleam-share__link--facebook { background: #1877f2; }
.forgleam-share--colors-brand .forgleam-share__link--twitter { background: #1d9bf0; }
.forgleam-share--colors-brand .forgleam-share__link--linkedin { background: #0a66c2; }
.forgleam-share--colors-brand .forgleam-share__link--whatsapp { background: #25d366; }
.forgleam-share--colors-brand .forgleam-share__link--reddit { background: #ff4500; }
.forgleam-share--colors-brand .forgleam-share__link--telegram { background: #229ed9; }
.forgleam-share--colors-brand .forgleam-share__link--tumblr { background: #36465d; }
.forgleam-share--colors-brand .forgleam-share__link--email { background: #777; }

/* Brand colors as outline (icon + border take the brand color) */
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link { background: transparent; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--pinterest { color: #e60023; border-color: #e60023; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--facebook { color: #1877f2; border-color: #1877f2; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--twitter { color: #1d9bf0; border-color: #1d9bf0; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--linkedin { color: #0a66c2; border-color: #0a66c2; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--whatsapp { color: #25d366; border-color: #25d366; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--reddit { color: #ff4500; border-color: #ff4500; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--telegram { color: #229ed9; border-color: #229ed9; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--tumblr { color: #36465d; border-color: #36465d; }
.forgleam-share--colors-brand.forgleam-share--outline .forgleam-share__link--email { color: #777; border-color: #777; }

/* ---------- Author box social: alignment / shape / size ------------------- */
.forgleam-author-box__social .forgleam-social__link svg {
	width: var(--forgleam-author-social-size, 20px);
	height: var(--forgleam-author-social-size, 20px);
}
.forgleam-asoc--align-center { justify-content: center; }
.forgleam-asoc--align-right { justify-content: flex-end; }
.forgleam-asoc--shape-circle .forgleam-social__link,
.forgleam-asoc--shape-rounded .forgleam-social__link,
.forgleam-asoc--shape-square .forgleam-social__link {
	width: calc(var(--forgleam-author-social-size, 20px) + 16px);
	height: calc(var(--forgleam-author-social-size, 20px) + 16px);
	background: var(--forgleam-color-1);
	color: var(--forgleam-color-9);
}
.forgleam-asoc--shape-circle .forgleam-social__link { border-radius: 50%; }
.forgleam-asoc--shape-rounded .forgleam-social__link { border-radius: var(--forgleam-radius); }
.forgleam-asoc--shape-square .forgleam-social__link { border-radius: 0; }

/* ---------- Per-post content-width override ------------------------------- */
.forgleam-single-cw-narrow .entry-single,
.forgleam-single-cw-narrow .forgleam-single-header:not([class*="hero"]) { max-width: 680px; }
.forgleam-single-cw-normal .entry-single,
.forgleam-single-cw-normal .forgleam-single-header:not([class*="hero"]) { max-width: var(--forgleam-content-width); }
.forgleam-single-cw-wide .entry-single,
.forgleam-single-cw-wide .forgleam-single-header:not([class*="hero"]) { max-width: 920px; }
.forgleam-single-cw-full .entry-single,
.forgleam-single-cw-full .forgleam-single-header { max-width: none; }
.forgleam-single-cw-narrow .forgleam-single-after { max-width: 680px; }
.forgleam-single-cw-wide .forgleam-single-after { max-width: 920px; }
.forgleam-single-cw-full .forgleam-single-after { max-width: none; }

/* ---------- Global image shape (square / rounded / circle) ---------------- */
/* Applies to card thumbnails, featured images, in-content images, related
 * thumbnails and core image blocks. */
body.forgleam-img-square .post-thumbnail,
body.forgleam-img-square .forgleam-single-header .post-thumbnail,
body.forgleam-img-square .forgleam-related__thumb,
body.forgleam-img-square .entry-content img,
body.forgleam-img-square .entry-content .wp-block-image img,
body.forgleam-img-square .wp-block-image > img { border-radius: 0; }

body.forgleam-img-rounded .post-thumbnail,
body.forgleam-img-rounded .forgleam-single-header .post-thumbnail,
body.forgleam-img-rounded .forgleam-related__thumb,
body.forgleam-img-rounded .entry-content img,
body.forgleam-img-rounded .entry-content .wp-block-image img,
body.forgleam-img-rounded .wp-block-image > img { border-radius: var(--forgleam-img-radius); }

body.forgleam-img-circle .post-thumbnail,
body.forgleam-img-circle .forgleam-single-header .post-thumbnail,
body.forgleam-img-circle .forgleam-related__thumb,
body.forgleam-img-circle .entry-content img,
body.forgleam-img-circle .entry-content .wp-block-image img,
body.forgleam-img-circle .wp-block-image > img { border-radius: 50%; }

/* ---------- Card-specific image shape (overrides global on cards) --------- */
body.forgleam-card-img-square .entry-card .post-thumbnail { border-radius: 0; }
body.forgleam-card-img-rounded .entry-card .post-thumbnail { border-radius: var(--forgleam-card-img-radius); }
body.forgleam-card-img-circle .entry-card .post-thumbnail { border-radius: 50%; }

/* ---------- Card box shape (square / rounded) ----------------------------- */
body.forgleam-card-shape-square .entry-card { border-radius: 0; }
body.forgleam-card-shape-rounded .entry-card { border-radius: var(--forgleam-card-radius); }

/* ---------- Homepage sections --------------------------------------------- */
.forgleam-homepage .site-content__inner { padding: 0; }
.forgleam-home-section { padding-block: var(--forgleam-space-xxl); }
/* Keep adjacent full-width bands (e.g. Newsletter + CTA) visually separated
 * with a strip of page background between them. */
.forgleam-home-section + .forgleam-home-section,
.forgleam-home-hero + .forgleam-home-section,
.forgleam-home-section + .forgleam-home-hero { margin-top: var(--forgleam-home-section-gap, var(--forgleam-space-lg)); }
.forgleam-home-section__title { text-align: center; margin-bottom: var(--forgleam-space-xl); }
.forgleam-home-grid {
	display: grid;
	grid-template-columns: repeat(var(--forgleam-home-cols, 3), minmax(0, 1fr));
	gap: var(--forgleam-space-xl);
}
@media (max-width: 900px) { .forgleam-home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .forgleam-home-grid { grid-template-columns: 1fr; } }

/* Hero */
.forgleam-home-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--forgleam-home-hero-h, 480px);
	background: var(--forgleam-home-hero-bg);
	background-size: cover;
	background-position: center;
	color: var(--forgleam-home-hero-text);
}
.forgleam-home-hero.has-bg { color: #fff; }
.forgleam-home-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.forgleam-home-hero__inner { position: relative; z-index: 1; padding-block: var(--forgleam-space-xxl); }
.forgleam-home-hero--center .forgleam-home-hero__inner { text-align: center; margin-inline: auto; max-width: 760px; }
.forgleam-home-hero--right .forgleam-home-hero__inner { text-align: right; margin-left: auto; }
.forgleam-home-hero__title { color: inherit; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); margin-bottom: var(--forgleam-space-md); }
.forgleam-home-hero__subtitle { font-size: 1.15rem; opacity: 0.9; margin-bottom: var(--forgleam-space-lg); }
.forgleam-home-hero.has-bg .forgleam-home-hero__title { color: #fff; }

/* Category showcase */
.forgleam-home-cat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.25em;
	min-height: 120px;
	padding: var(--forgleam-space-lg);
	background: var(--forgleam-color-7);
	border-radius: var(--forgleam-card-radius, var(--forgleam-radius));
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.forgleam-home-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08); }
.forgleam-home-cat__name { font-family: var(--forgleam-font-heading); font-size: 1.2rem; color: var(--forgleam-color-3); }
.forgleam-home-cat__count { font-size: 0.8rem; color: var(--forgleam-color-5); }

/* CTA band */
.forgleam-home-cta { background: var(--forgleam-home-cta-bg); color: var(--forgleam-home-cta-text); }
.forgleam-home-cta__inner { text-align: center; max-width: 680px; margin-inline: auto; }
.forgleam-home-cta__title { color: var(--forgleam-home-cta-text); margin-bottom: var(--forgleam-space-sm); }
.forgleam-home-cta__text { opacity: 0.9; margin-bottom: var(--forgleam-space-lg); }

/* ---------- Homepage: expanded sections ----------------------------------- */
.forgleam-home-section__title--left { text-align: left; }
.forgleam-home-section__title--right { text-align: right; }
.forgleam-home-hero__kicker { display: inline-block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; opacity: 0.85; margin-bottom: var(--forgleam-space-sm); }
.forgleam-home-hero__buttons { display: flex; gap: var(--forgleam-space-md); flex-wrap: wrap; margin-top: var(--forgleam-space-md); }
.forgleam-home-hero--center .forgleam-home-hero__buttons { justify-content: center; }
.forgleam-home-hero--right .forgleam-home-hero__buttons { justify-content: flex-end; }
.forgleam-button--ghost { background: transparent; border: 2px solid currentColor; color: inherit; }

/* Posts cards reuse the global card styles via .forgleam-card-style-* */
.forgleam-home-cards .entry-card { background: var(--forgleam-card-bg); border-radius: var(--forgleam-card-radius); overflow: hidden; }

/* Category styles -- image now lives in a .forgleam-home-cat__img span so every
   layout can decide how to use it. */
.forgleam-home-cat__img { display: block; width: 100%; background-size: cover; background-position: center; }

/* Image-corner shape (applies to the image span where it shows as a thumbnail) */
.forgleam-home-cats--shape-square  .forgleam-home-cat__img { border-radius: 0; }
.forgleam-home-cats--shape-rounded .forgleam-home-cat__img { border-radius: var(--forgleam-radius); }
.forgleam-home-cats--shape-circle  .forgleam-home-cat__img { border-radius: 50%; }

/* Cards: image on top, text below */
.forgleam-home-cats--cards .forgleam-home-cat { padding: 0; overflow: hidden; gap: 0; }
.forgleam-home-cats--cards .forgleam-home-cat__img { aspect-ratio: 4 / 3; border-radius: 0; }
.forgleam-home-cats--cards .forgleam-home-cat__inner { padding: var(--forgleam-space-md); display: flex; flex-direction: column; align-items: center; gap: 0.2em; }

/* Tile: square image with text below */
.forgleam-home-cats--tile .forgleam-home-cat { padding: 0; background: transparent; }
.forgleam-home-cats--tile .forgleam-home-cat:hover { box-shadow: none; }
.forgleam-home-cats--tile .forgleam-home-cat__img { aspect-ratio: 1 / 1; }
.forgleam-home-cats--tile .forgleam-home-cat__inner { padding-top: var(--forgleam-space-sm); }

/* Image (tall) + Overlay: text sits over the image */
.forgleam-home-cats--image .forgleam-home-cat,
.forgleam-home-cats--overlay .forgleam-home-cat { padding: 0; position: relative; overflow: hidden; justify-content: flex-end; align-items: flex-start; text-align: left; min-height: 220px; }
.forgleam-home-cats--image .forgleam-home-cat__img,
.forgleam-home-cats--overlay .forgleam-home-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.forgleam-home-cats--overlay .forgleam-home-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.forgleam-home-cats--image .forgleam-home-cat__inner,
.forgleam-home-cats--overlay .forgleam-home-cat__inner { position: relative; z-index: 1; padding: var(--forgleam-space-lg); }
.forgleam-home-cats--image .forgleam-home-cat__name,
.forgleam-home-cats--overlay .forgleam-home-cat__name { color: #fff; }
.forgleam-home-cats--image .forgleam-home-cat__count,
.forgleam-home-cats--overlay .forgleam-home-cat__count { color: rgba(255,255,255,.85); }
.forgleam-home-cats--image .forgleam-home-cat__img { filter: brightness(.7); }

/* Circle: round image above name */
.forgleam-home-cats--circle .forgleam-home-cat { background: transparent; padding: 0; }
.forgleam-home-cats--circle .forgleam-home-cat:hover { box-shadow: none; transform: translateY(-3px); }
.forgleam-home-cats--circle .forgleam-home-cat__img { aspect-ratio: 1 / 1; border-radius: 50%; max-width: 140px; margin: 0 auto var(--forgleam-space-sm); box-shadow: 0 8px 22px rgba(0,0,0,.1); }

/* Side: image left, text right */
.forgleam-home-cats--side .forgleam-home-cat { flex-direction: row; align-items: center; text-align: left; gap: var(--forgleam-space-md); padding: var(--forgleam-space-sm); }
.forgleam-home-cats--side .forgleam-home-cat__img { flex: 0 0 72px; width: 72px; height: 72px; aspect-ratio: 1 / 1; }
.forgleam-home-cats--side .forgleam-home-cat__inner { align-items: flex-start; }

/* Minimal: a clean text list */
.forgleam-home-cats--minimal .forgleam-home-cat { background: transparent; min-height: 0; padding: 0.6em 0; border-bottom: 1px solid var(--forgleam-color-6); align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; }
.forgleam-home-cats--minimal .forgleam-home-cat:hover { box-shadow: none; transform: none; color: var(--forgleam-color-1); }

/* Pills + Buttons: compact inline chips */
.forgleam-home-cats--pills .forgleam-home-cats__grid,
.forgleam-home-cats--buttons .forgleam-home-cats__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--forgleam-space-sm); }
.forgleam-home-cats--pills .forgleam-home-cat,
.forgleam-home-cats--buttons .forgleam-home-cat { min-height: 0; padding: 0.55em 1.2em; flex-direction: row; gap: 0.5em; }
.forgleam-home-cats--pills .forgleam-home-cat { border-radius: 999px; }
.forgleam-home-cats--buttons .forgleam-home-cat { background: var(--forgleam-color-1); }
.forgleam-home-cats--buttons .forgleam-home-cat__name,
.forgleam-home-cats--buttons .forgleam-home-cat__count { color: #fff; }
.forgleam-home-cats--pills .forgleam-home-cat__name,
.forgleam-home-cats--buttons .forgleam-home-cat__name { font-size: 1rem; }

/* About */
.forgleam-home-about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--forgleam-space-xxl); align-items: center; }
.forgleam-home-about--img-right .forgleam-home-about__media { order: 2; }
.forgleam-home-about__media img { width: 100%; border-radius: var(--forgleam-radius); }
@media (max-width: 768px) { .forgleam-home-about__inner { grid-template-columns: 1fr; } .forgleam-home-about--img-right .forgleam-home-about__media { order: 0; } }

/* Banner */
.forgleam-home-banner { position: relative; background-size: cover; background-position: center; color: #fff; text-align: center; }
.forgleam-home-banner__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.forgleam-home-banner__inner { position: relative; z-index: 1; }
.forgleam-home-banner__title { color: #fff; }

/* Gallery */
.forgleam-home-gallery__item { margin: 0; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--forgleam-img-radius); }
.forgleam-home-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Testimonials */
.forgleam-home-testi__item { background: var(--forgleam-color-9); border: 1px solid var(--forgleam-color-6); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-lg); margin: 0; }
.forgleam-home-testi__quote { font-style: italic; margin-bottom: var(--forgleam-space-sm); }
.forgleam-home-testi__name { font-weight: 700; font-style: normal; display: flex; flex-direction: column; gap: 0.1em; }
.forgleam-home-testi__role { font-weight: 400; font-size: 0.85rem; color: var(--forgleam-color-5); }
.forgleam-home-testi__avatar { display: block; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin-bottom: var(--forgleam-space-sm); }
.forgleam-home-testi__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Testimonial styles */
.forgleam-home-testi--bubble .forgleam-home-testi__quote { background: var(--forgleam-color-7); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-md); position: relative; }
.forgleam-home-testi--bubble .forgleam-home-testi__item { background: transparent; border: 0; padding: 0; }
.forgleam-home-testi--bubble .forgleam-home-testi__name { margin-top: var(--forgleam-space-md); flex-direction: row; align-items: center; gap: var(--forgleam-space-sm); }
.forgleam-home-testi--bubble .forgleam-home-testi__avatar { margin: 0; width: 44px; height: 44px; }
.forgleam-home-testi--minimal .forgleam-home-testi__item { background: transparent; border: 0; border-left: 3px solid var(--forgleam-color-2); border-radius: 0; padding: var(--forgleam-space-sm) var(--forgleam-space-lg); }
.forgleam-home-testi--centered .forgleam-home-testi__item { text-align: center; }
.forgleam-home-testi--centered .forgleam-home-testi__avatar { margin-inline: auto; width: 72px; height: 72px; }
.forgleam-home-testi--centered .forgleam-home-testi__name { align-items: center; }

/* Stats */
.forgleam-home-stat { text-align: center; }
.forgleam-home-stat__num { display: block; font-family: var(--forgleam-font-heading); font-size: 2.6rem; color: var(--forgleam-color-1); line-height: 1; }
.forgleam-home-stat__label { display: block; color: var(--forgleam-color-5); margin-top: 0.3em; }

/* Logos */
.forgleam-home-logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--forgleam-space-xl); }
.forgleam-home-logos__item { max-height: 48px; width: auto; opacity: 0.8; transition: filter 0.25s ease, opacity 0.25s ease; }
/* Grayscale by default, original color on hover. */
.forgleam-home-logos.is-grayscale .forgleam-home-logos__item { filter: grayscale(1); opacity: 0.65; }
.forgleam-home-logos.is-grayscale .forgleam-home-logos__item:hover { filter: grayscale(0); opacity: 1; }

/* Newsletter */
.forgleam-home-news { background: var(--forgleam-color-7); text-align: center; }
.forgleam-home-news__inner { max-width: 640px; margin-inline: auto; }

/* ---------- Homepage post-card styles (extra) ----------------------------- */
.forgleam-card-style-shadow .entry-card { border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.forgleam-card-style-minimal .entry-card { background: transparent; border: 0; box-shadow: none; }
.forgleam-card-style-minimal .post-thumbnail { display: none; }
.forgleam-card-style-minimal .entry-card__body { padding-inline: 0; }

/* Gradient overlay (text over image, like overlay but with a softer scrim) */
.forgleam-card-style-gradient .entry-card { position: relative; }
.forgleam-card-style-gradient .entry-card__body {
	position: absolute; inset: auto 0 0 0; z-index: 1;
	padding: var(--forgleam-space-lg);
	background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.forgleam-card-style-gradient .entry-title a,
.forgleam-card-style-gradient .entry-meta,
.forgleam-card-style-gradient .entry-meta a { color: #fff; }
.forgleam-card-style-gradient .entry-summary { display: none; }

/* Magazine: first card spans two columns and goes full-bleed */
@media (min-width: 769px) {
	.forgleam-card-style-magazine.forgleam-home-grid { grid-template-columns: repeat(var(--forgleam-home-cols, 3), 1fr); }
	.forgleam-card-style-magazine .entry-card:first-child { grid-column: span 2; grid-row: span 2; }
	.forgleam-card-style-magazine .entry-card:first-child .post-thumbnail__img { height: 100%; object-fit: cover; }
}

/* Per-section card image shape overrides */
.forgleam-home-cards--img-square .post-thumbnail__img { border-radius: 0; }
.forgleam-home-cards--img-rounded .post-thumbnail__img { border-radius: var(--forgleam-radius); }
.forgleam-home-cards--img-circle .post-thumbnail { aspect-ratio: 1 / 1; }
.forgleam-home-cards--img-circle .post-thumbnail__img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Built-in subscribe form --------------------------------------- */
.forgleam-subscribe-form { margin-top: var(--forgleam-space-md); }
.forgleam-subscribe-form__row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 460px; margin-inline: auto; }
.forgleam-subscribe-form__input {
	flex: 1 1 220px; min-width: 0;
	padding: 0.75em 1em;
	border: 1px solid var(--forgleam-color-6);
	border-radius: var(--forgleam-button-radius, var(--forgleam-radius));
	background: #fff; color: var(--forgleam-color-1);
	font: inherit;
}
.forgleam-subscribe-form__btn { flex: 0 0 auto; white-space: nowrap; }
.forgleam-subscribe-form__msg { margin: 0.6em 0 0; font-size: 0.9rem; }
.forgleam-subscribe-form__msg--ok { color: #1a7f4b; }
.forgleam-subscribe-form__msg--err { color: #c0392b; }
/* Stacked layout: each field on its own line. */
.forgleam-subscribe-form--stacked .forgleam-subscribe-form__row { flex-direction: column; align-items: stretch; }
.forgleam-subscribe-form--stacked .forgleam-subscribe-form__input,
.forgleam-subscribe-form--stacked .forgleam-subscribe-form__btn { flex: 1 1 auto; width: 100%; }
/* Privacy consent checkbox. */
.forgleam-subscribe-form__consent { display: flex; gap: 8px; align-items: flex-start; justify-content: center; max-width: 460px; margin: 0.6em auto 0; font-size: 0.85rem; text-align: left; }
.forgleam-subscribe-form__consent input { margin-top: 0.2em; flex: 0 0 auto; }
.forgleam-home-cta--left .forgleam-subscribe-form__consent,
.forgleam-home-cta--right .forgleam-subscribe-form__consent { margin-inline: 0; }
/* On dark CTA backgrounds keep the input readable. */
.forgleam-home-cta .forgleam-subscribe-form__input { color: #111; }

/* ===========================================================================
 * Section style variations (5 per section)
 * ======================================================================== */

/* ---------- Hero types ---------------------------------------------------- */
.forgleam-home-hero--style-minimal { min-height: 0 !important; padding-block: var(--forgleam-space-xxl); }
.forgleam-home-hero--style-minimal .forgleam-home-hero__title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.forgleam-home-hero--style-fullscreen { min-height: 88vh; }
.forgleam-home-hero--style-fullscreen .forgleam-home-hero__title { font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem); }
.forgleam-home-hero--style-split.has-bg { background-size: 50% 100%; background-position: right center; background-repeat: no-repeat; }
.forgleam-home-hero--style-split .forgleam-home-hero__overlay { display: none; }
.forgleam-home-hero--style-split .forgleam-home-hero__inner { max-width: 50%; margin-inline: 0; text-align: left; }
.forgleam-home-hero--style-split.has-bg .forgleam-home-hero__title { color: inherit; }
.forgleam-home-hero--style-card .forgleam-home-hero__inner {
	background: var(--forgleam-color-9); color: var(--forgleam-color-1);
	padding: var(--forgleam-space-xxl); border-radius: var(--forgleam-radius);
	box-shadow: 0 20px 60px rgba(0,0,0,.18); max-width: 620px;
}
.forgleam-home-hero--style-card.has-bg .forgleam-home-hero__title { color: var(--forgleam-color-1); }
@media (max-width: 768px) {
	.forgleam-home-hero--style-split.has-bg { background-image: none !important; }
	.forgleam-home-hero--style-split .forgleam-home-hero__inner { max-width: 100%; }
}

/* ---------- Banner styles ------------------------------------------------- */
.forgleam-home-banner--left .forgleam-home-banner__inner { text-align: left; }
.forgleam-home-banner--right .forgleam-home-banner__inner { text-align: right; }
.forgleam-home-banner--gradient .forgleam-home-banner__overlay { background: linear-gradient(120deg, rgba(0,0,0,.65), rgba(0,0,0,.15)); }
.forgleam-home-banner--split,
.forgleam-home-banner--card,
.forgleam-home-banner--outline { color: var(--forgleam-color-1); background: var(--forgleam-color-7); }
.forgleam-home-banner--split .forgleam-home-banner__overlay,
.forgleam-home-banner--card .forgleam-home-banner__overlay,
.forgleam-home-banner--outline .forgleam-home-banner__overlay { display: none; }
.forgleam-home-banner--split .forgleam-home-banner__title,
.forgleam-home-banner--card .forgleam-home-banner__title,
.forgleam-home-banner--outline .forgleam-home-banner__title { color: var(--forgleam-color-1); }
.forgleam-home-banner--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--forgleam-space-xxl); align-items: center; }
.forgleam-home-banner--split .forgleam-home-banner__media img,
.forgleam-home-banner--card .forgleam-home-banner__media img { width: 100%; border-radius: var(--forgleam-radius); display: block; }
.forgleam-home-banner--split .forgleam-home-banner__inner { max-width: none; margin: 0; text-align: left; }
.forgleam-home-banner--card { text-align: center; }
.forgleam-home-banner--card .forgleam-home-banner__media { max-width: 920px; margin: 0 auto var(--forgleam-space-lg); }
.forgleam-home-banner--outline { background: transparent; border: 2px solid var(--forgleam-color-6); border-radius: var(--forgleam-radius); }
@media (max-width: 768px) { .forgleam-home-banner--split { grid-template-columns: 1fr; } }

/* ---------- Gallery styles ------------------------------------------------ */
.forgleam-home-gallery__grid { gap: var(--forgleam-home-gallery-gap, 12px); }
.forgleam-home-gallery--masonry .forgleam-home-gallery__grid { display: block; column-count: var(--forgleam-home-cols, 4); column-gap: var(--forgleam-home-gallery-gap, 12px); }
.forgleam-home-gallery--masonry .forgleam-home-gallery__item { break-inside: avoid; margin-bottom: var(--forgleam-home-gallery-gap, 12px); aspect-ratio: auto; }
.forgleam-home-gallery--masonry .forgleam-home-gallery__item img { height: auto; }
.forgleam-home-gallery--carousel .forgleam-home-gallery__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.forgleam-home-gallery--carousel .forgleam-home-gallery__item { flex: 0 0 clamp(220px, 40%, 320px); scroll-snap-align: start; }
.forgleam-home-gallery--framed .forgleam-home-gallery__item { padding: 6px; background: var(--forgleam-color-9); border: 1px solid var(--forgleam-color-6); border-radius: var(--forgleam-radius); }
.forgleam-home-gallery--rounded .forgleam-home-gallery__item { border-radius: 50%; }

/* ---------- Stats styles -------------------------------------------------- */
.forgleam-home-stats--boxed .forgleam-home-stat { background: var(--forgleam-color-7); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-lg); }
.forgleam-home-stats--cards .forgleam-home-stat { background: var(--forgleam-color-9); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-lg); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.forgleam-home-stats--divided .forgleam-home-stat { border-right: 1px solid var(--forgleam-color-6); }
.forgleam-home-stats--divided .forgleam-home-stat:last-child { border-right: 0; }
.forgleam-home-stats--bigaccent .forgleam-home-stat__num { font-size: 3.6rem; color: var(--forgleam-color-2); }

/* ---------- Newsletter styles --------------------------------------------- */
.forgleam-home-news--card .forgleam-home-news__inner,
.forgleam-home-news--boxed .forgleam-home-news__inner { padding: var(--forgleam-space-xxl); border-radius: var(--forgleam-radius); }
.forgleam-home-news--card .forgleam-home-news__inner { background: var(--forgleam-color-9); box-shadow: 0 16px 44px rgba(0,0,0,.1); }
.forgleam-home-news--boxed .forgleam-home-news__inner { border: 2px solid var(--forgleam-color-6); }
.forgleam-home-news--minimal { background: transparent !important; }
.forgleam-home-news--split .forgleam-home-news__inner { max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--forgleam-space-xl); align-items: center; text-align: left; }
.forgleam-home-news--split .forgleam-subscribe-form { margin-top: 0; }
@media (max-width: 768px) { .forgleam-home-news--split .forgleam-home-news__inner { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Testimonial extra style --------------------------------------- */
.forgleam-home-testi--quote .forgleam-home-testi__item { position: relative; padding-top: var(--forgleam-space-xl); }
.forgleam-home-testi--quote .forgleam-home-testi__item::before { content: "\201C"; position: absolute; top: -0.1em; left: 0.2em; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--forgleam-color-2); opacity: .5; }

/* ---------- Back to Top button -------------------------------------------- */
.forgleam-totop {
	position: fixed;
	z-index: 998;
	width: var(--forgleam-totop-size, 46px);
	height: var(--forgleam-totop-size, 46px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: var(--forgleam-totop-bg, var(--forgleam-color-1));
	color: var(--forgleam-totop-color, var(--forgleam-color-9));
	border-radius: var(--forgleam-totop-radius, 50%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.forgleam-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.forgleam-totop svg { width: 48%; height: 48%; display: block; }
.forgleam-totop__text { font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.forgleam-totop--bottom-right { right: var(--forgleam-totop-s, 24px); bottom: var(--forgleam-totop-b, 24px); }
.forgleam-totop--bottom-left { left: var(--forgleam-totop-s, 24px); bottom: var(--forgleam-totop-b, 24px); }
.forgleam-totop:hover { filter: brightness(1.08); }

/* ---------- In-content subscribe form ------------------------------------ */
.forgleam-inline-sub { margin: var(--forgleam-space-xl) 0; padding: var(--forgleam-space-xl); border-radius: var(--forgleam-radius); text-align: center; }
.forgleam-inline-sub__title { margin: 0 0 0.3em; }
.forgleam-inline-sub__text { margin: 0 0 1em; opacity: 0.9; }
.forgleam-inline-sub--card { background: var(--forgleam-color-7); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07); }
.forgleam-inline-sub--band { background: var(--forgleam-color-7); border-radius: 0; }
.forgleam-inline-sub--boxed { background: transparent; border: 2px solid var(--forgleam-color-6); }
.forgleam-inline-sub--minimal { background: transparent; padding-inline: 0; }
.forgleam-inline-sub .forgleam-subscribe-form { margin-top: 0.5em; }

/* ---------- Disclosure / custom text (single) ---------------------------- */
.forgleam-disclosure { margin: 0 0 var(--forgleam-space-lg); line-height: 1.5; font-family: var(--forgleam-disc-font, inherit); font-size: var(--forgleam-disc-size, 14px); }
.forgleam-disclosure a { text-decoration: underline; color: var(--forgleam-link-color, var(--forgleam-color-1)); }
.forgleam-disclosure--center { text-align: center; }
.forgleam-disclosure--right { text-align: right; }
.forgleam-disclosure--note { background: var(--forgleam-color-7); color: var(--forgleam-color-4); padding: 0.7em 1em; border-radius: var(--forgleam-radius); }
.forgleam-disclosure--boxed { background: var(--forgleam-color-9); border: 1px solid var(--forgleam-color-6); padding: 0.8em 1.1em; border-radius: var(--forgleam-radius); }
.forgleam-disclosure--outline { border: 2px solid var(--forgleam-color-6); padding: 0.8em 1.1em; border-radius: var(--forgleam-radius); }
.forgleam-disclosure--shadow { background: var(--forgleam-color-9); padding: 0.9em 1.2em; border-radius: var(--forgleam-radius); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.forgleam-disclosure--bordered { border-left: 4px solid var(--forgleam-color-1); padding: 0.3em 0 0.3em 1em; }
.forgleam-disclosure--italic { font-style: italic; color: var(--forgleam-color-5); }

/* ---------- Bylines (Written / Reviewed / Published by) ------------------- */
.forgleam-bylines { display: flex; flex-wrap: wrap; gap: 0.5em 1.4em; margin: 0 0 var(--forgleam-space-lg); font-size: 0.88rem; }
.forgleam-bylines__item { display: inline-flex; align-items: center; gap: 0.5em; }
.forgleam-bylines__text { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em; }
.forgleam-bylines__role { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78em; color: var(--forgleam-byline-label, var(--forgleam-color-5)); }
.forgleam-bylines__name { color: var(--forgleam-byline-name, var(--forgleam-color-1)); font-weight: 700; text-decoration: none; }
.forgleam-bylines__name:hover { text-decoration: underline; }
.forgleam-bylines__role-title { flex-basis: 100%; font-size: 0.78em; color: var(--forgleam-color-5); }
.forgleam-bylines__avatar { display: inline-flex; flex: 0 0 auto; }
.forgleam-bylines__avatar img { display: block; width: 30px; height: 30px; object-fit: cover; }
.forgleam-bylines--cards .forgleam-bylines__avatar img { width: 44px; height: 44px; }
.forgleam-bylines--avatar-circle .forgleam-bylines__avatar img { border-radius: 50% !important; }
.forgleam-bylines--avatar-rounded .forgleam-bylines__avatar img { border-radius: 8px !important; }
.forgleam-bylines--avatar-square .forgleam-bylines__avatar img { border-radius: 0 !important; }
.forgleam-bylines--align-center { justify-content: center; }
.forgleam-bylines--align-right { justify-content: flex-end; }
.forgleam-bylines--divider .forgleam-bylines__item:not(:last-child)::after { content: ""; width: 1px; height: 1.4em; background: var(--forgleam-color-6); margin-left: 1.4em; align-self: center; }
.forgleam-bylines--boxed { background: var(--forgleam-color-7); border: 1px solid var(--forgleam-color-6); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-md) var(--forgleam-space-lg); }
.forgleam-bylines--cards { gap: var(--forgleam-space-md); }
.forgleam-bylines--cards .forgleam-bylines__item { background: var(--forgleam-color-9); border: 1px solid var(--forgleam-color-6); border-radius: var(--forgleam-radius); padding: 0.6em 0.9em; box-shadow: 0 6px 18px rgba(0,0,0,.05); }

/* ---------- Image captions ------------------------------------------------ */
.wp-caption-text,
.wp-element-caption,
figcaption,
.post-thumbnail__caption {
	text-align: var(--forgleam-caption-align, center);
	font-size: var(--forgleam-caption-size, 13px);
	color: var(--forgleam-caption-color, var(--forgleam-color-5));
	margin-top: 0.5em;
	line-height: 1.4;
}
.post-thumbnail__caption { margin-bottom: var(--forgleam-space-md); }
.forgleam-caption-italic .wp-caption-text,
.forgleam-caption-italic figcaption,
.forgleam-caption-italic .post-thumbnail__caption { font-style: italic; }
.forgleam-caption-boxed .wp-caption-text,
.forgleam-caption-boxed figcaption,
.forgleam-caption-boxed .post-thumbnail__caption { background: var(--forgleam-color-7); padding: 0.5em 0.8em; border-radius: var(--forgleam-radius); }
.forgleam-caption-underline .wp-caption-text,
.forgleam-caption-underline figcaption,
.forgleam-caption-underline .post-thumbnail__caption { border-bottom: 2px solid var(--forgleam-color-6); padding-bottom: 0.4em; display: inline-block; }

/* ---------- Auto-numbered headings (listicles) --------------------------- *
 * Single-line layout: the number sits in its own column and the heading fills
 * the rest of the row (its text wraps inside that column, never below the
 * number). "Stacked + divider" is the one intentional two-row exception.       */
.forgleam-numbered-heading {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 1.8em 0 0.6em;
}
.forgleam-numbered-heading > h2,
.forgleam-numbered-heading > h3,
.forgleam-numbered-heading > h4 { margin: 0; flex: 1 1 auto; min-width: 0; }
.forgleam-nh__num { display: inline-flex; align-items: center; gap: 0.3em; flex: 0 0 auto; line-height: 1; font-family: var(--forgleam-font-heading, inherit); white-space: nowrap; }
.forgleam-nh__count { font-weight: 800; color: var(--forgleam-color-1); }
.forgleam-nh__of { font-size: 0.6em; font-weight: 700; color: var(--forgleam-color-5); letter-spacing: 0.04em; text-transform: uppercase; }

/* Shared circular/square chip sizing */
.forgleam-nh--circle .forgleam-nh__count,
.forgleam-nh--square .forgleam-nh__count,
.forgleam-nh--gradient .forgleam-nh__count {
	width: 2.2em; height: 2.2em;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--forgleam-color-9); font-size: 1.02em;
}
.forgleam-nh--circle .forgleam-nh__count { border-radius: 50%; background: var(--forgleam-color-1); }
.forgleam-nh--square .forgleam-nh__count { border-radius: 5px; background: var(--forgleam-color-1); }
.forgleam-nh--gradient .forgleam-nh__count { border-radius: 50%; background: linear-gradient(135deg, var(--forgleam-color-1), var(--forgleam-color-2)); }
.forgleam-nh--badge .forgleam-nh__count { background: var(--forgleam-color-1); color: var(--forgleam-color-9); padding: 0.2em 0.55em; border-radius: 7px; }
.forgleam-nh--pill .forgleam-nh__count { border: 2px solid var(--forgleam-color-1); color: var(--forgleam-color-1); border-radius: 999px; padding: 0.18em 0.7em; }
.forgleam-nh--underline .forgleam-nh__count { font-size: 1.5em; border-bottom: 3px solid var(--forgleam-color-1); padding-bottom: 0.04em; }
.forgleam-nh--ribbon .forgleam-nh__count { background: var(--forgleam-color-1); color: var(--forgleam-color-9); padding: 0.25em 0.7em 0.25em 0.5em; clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%); }
.forgleam-nh--large .forgleam-nh__count { font-size: 2.4em; opacity: 0.8; }
.forgleam-nh--plain .forgleam-nh__count { font-size: 1.5em; }

/* Stacked + divider: the number block (count above "of N") sits BESIDE the
 * heading with a vertical divider between them — all on one row. */
.forgleam-nh--stacked .forgleam-nh__num {
	flex-direction: column;
	align-items: center;
	line-height: 1;
	margin: 0;
	padding-right: 0.8em;
	border-right: 3px solid var(--forgleam-color-1);
}
.forgleam-nh--stacked .forgleam-nh__count { font-size: 2.4em; }
.forgleam-nh--stacked .forgleam-nh__of { display: block; margin-top: 0.25em; font-size: 0.78em; }
@media (max-width: 600px) { .forgleam-nh--stacked .forgleam-nh__count { font-size: 2em; } }

@media (max-width: 600px) {
	.forgleam-nh--circle .forgleam-nh__count,
	.forgleam-nh--square .forgleam-nh__count,
	.forgleam-nh--gradient .forgleam-nh__count { width: 2em; height: 2em; }
	.forgleam-nh--stacked .forgleam-nh__count { font-size: 2em; }
}

@media (max-width: 600px) {
	.forgleam-nh--circle .forgleam-nh__count,
	.forgleam-nh--outline .forgleam-nh__count { width: 1.9em; height: 1.9em; }
}

/* ---------- Posts by Category -------------------------------------------- */
.forgleam-home-catposts__block { margin-bottom: var(--forgleam-space-xxl); }
.forgleam-home-catposts__block:last-child { margin-bottom: 0; }
.forgleam-home-catposts__head { margin-bottom: var(--forgleam-space-lg); border-bottom: 1px solid var(--forgleam-color-6); padding-bottom: var(--forgleam-space-sm); }
.forgleam-home-catposts__cat { margin: 0; }
.forgleam-home-catposts__cat a { text-decoration: none; color: inherit; }
.forgleam-home-catposts--inline .forgleam-home-catposts__head { border-bottom: 0; }
/* "View all" button below the posts */
.forgleam-home-catposts__actions { display: flex; margin-top: var(--forgleam-space-lg); }
.forgleam-home-catposts__actions--left { justify-content: flex-start; }
.forgleam-home-catposts__actions--center { justify-content: center; }
.forgleam-home-catposts__actions--right { justify-content: flex-end; }
.forgleam-catbtn--ghost { background: transparent; border: 1px solid currentColor; }
.forgleam-catbtn--outline { background: transparent; border: 2px solid var(--forgleam-color-1); color: var(--forgleam-color-1); }
.forgleam-catbtn--pill { border-radius: 999px; }
.forgleam-catbtn--text { background: transparent; box-shadow: none; padding-inline: 0; text-decoration: underline; color: var(--forgleam-color-1); }

/* ---------- Feature Highlights (replaces Stats) -------------------------- */
.forgleam-home-feature { display: block; text-align: center; text-decoration: none; color: inherit; }
.forgleam-home-feature__icon { display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; line-height: 1; margin-bottom: var(--forgleam-space-sm); }
.forgleam-home-feature__icon img { width: 56px; height: 56px; object-fit: contain; }
.forgleam-home-feature__title { font-size: 1.25rem; margin: 0 0 0.3em; }
.forgleam-home-feature__text { color: var(--forgleam-color-5); margin: 0; }
a.forgleam-home-feature:hover .forgleam-home-feature__title { color: var(--forgleam-color-2); }
.forgleam-home-features--boxed .forgleam-home-feature { background: var(--forgleam-color-7); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-xl); }
.forgleam-home-features--cards .forgleam-home-feature { background: var(--forgleam-color-9); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-xl); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.forgleam-home-features--bordered .forgleam-home-feature { border: 1px solid var(--forgleam-color-6); border-radius: var(--forgleam-radius); padding: var(--forgleam-space-xl); }
.forgleam-home-features--circleicon .forgleam-home-feature__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--forgleam-color-7); margin-inline: auto; }

/* ---------- CTA style variations ----------------------------------------- */
.forgleam-home-cta__buttons { display: flex; gap: var(--forgleam-space-md); flex-wrap: wrap; justify-content: center; }
.forgleam-home-cta--left .forgleam-home-cta__inner,
.forgleam-home-cta--left .forgleam-home-cta__text-wrap { text-align: left; }
.forgleam-home-cta--left .forgleam-home-cta__buttons,
.forgleam-home-cta--left .forgleam-subscribe-form__row { justify-content: flex-start; margin-inline: 0; }
.forgleam-home-cta--right .forgleam-home-cta__inner,
.forgleam-home-cta--right .forgleam-home-cta__text-wrap { text-align: right; }
.forgleam-home-cta--right .forgleam-home-cta__buttons,
.forgleam-home-cta--right .forgleam-subscribe-form__row { justify-content: flex-end; margin-inline: 0; }
/* Card / boxed wrap the inner in a panel */
.forgleam-home-cta--card .forgleam-home-cta__inner,
.forgleam-home-cta--boxed .forgleam-home-cta__inner { padding: var(--forgleam-space-xxl); border-radius: var(--forgleam-radius); max-width: 820px; }
.forgleam-home-cta--card .forgleam-home-cta__inner { background: rgba(0,0,0,.04); box-shadow: 0 16px 44px rgba(0,0,0,.08); }
.forgleam-home-cta--boxed .forgleam-home-cta__inner { border: 2px solid currentColor; }
/* Split: text and action side by side */
.forgleam-home-cta--split .forgleam-home-cta__inner { display: grid; grid-template-columns: 1fr auto; gap: var(--forgleam-space-xl); align-items: center; max-width: 1040px; text-align: left; }
.forgleam-home-cta--split .forgleam-home-cta__text-wrap { text-align: left; }
@media (max-width: 768px) { .forgleam-home-cta--split .forgleam-home-cta__inner { grid-template-columns: 1fr; text-align: center; } }
/* Banner: background image + overlay, white text */
.forgleam-home-cta--banner { position: relative; background-size: cover; background-position: center; color: #fff; }
.forgleam-home-cta--banner .forgleam-home-cta__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.forgleam-home-cta--banner .forgleam-home-cta__inner { position: relative; z-index: 1; }
.forgleam-home-cta--banner .forgleam-home-cta__title { color: #fff; }

/* ===========================================================================
 * Expanded option sets (v1.0.0): link animations, button styles, image
 * shapes, site layouts, menu toggle styles.
 * ======================================================================== */

/* ---- Link animations (content links) ---- */
.forgleam-link-anim-underline-expand .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn) {
	text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
	background-position: 50% 100%; background-repeat: no-repeat; background-size: 0% 2px;
	transition: background-size 0.25s ease;
}
.forgleam-link-anim-underline-expand .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover { background-size: 100% 2px; }

.forgleam-link-anim-thick .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn) { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }

.forgleam-link-anim-dashed .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn) { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }

.forgleam-link-anim-highlighter .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn) {
	text-decoration: none;
	background-image: linear-gradient(transparent 58%, color-mix(in srgb, var(--forgleam-color-2) 45%, transparent) 0);
	background-size: 100% 100%;
}

.forgleam-link-anim-bgfill .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn) { text-decoration: none; padding: 0 0.15em; border-radius: 3px; transition: background 0.2s ease, color 0.2s ease; }
.forgleam-link-anim-bgfill .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover { background: var(--forgleam-link-color); color: var(--forgleam-color-9); }

.forgleam-link-anim-brackets .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn) { text-decoration: none; }
.forgleam-link-anim-brackets .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn)::before,
.forgleam-link-anim-brackets .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn)::after { opacity: 0; transition: opacity 0.18s ease; color: var(--forgleam-link-color); }
.forgleam-link-anim-brackets .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn)::before { content: "["; margin-right: 0.12em; }
.forgleam-link-anim-brackets .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn)::after { content: "]"; margin-left: 0.12em; }
.forgleam-link-anim-brackets .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover::before,
.forgleam-link-anim-brackets .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover::after { opacity: 1; }

.forgleam-link-anim-color-fade .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn) { text-decoration: none; transition: color 0.25s ease; }
.forgleam-link-anim-color-fade .entry-content a:not(.wp-block-button__link):not(.more-link):not(.forgleam-share__link):not(.forgleam-social__link):not(.forgleam-pin__btn):hover { color: var(--forgleam-link-hover); }

/* ---- Button styles ---- */
.forgleam-btn-style-raised .forgleam-button { box-shadow: 0 4px 0 rgba(0,0,0,.22); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.forgleam-btn-style-raised .forgleam-button:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.forgleam-btn-style-glow .forgleam-button { box-shadow: 0 0 0 0 rgba(0,0,0,0); transition: box-shadow 0.2s ease; }
.forgleam-btn-style-glow .forgleam-button:hover { box-shadow: 0 0 18px -2px var(--forgleam-btn-bg); }
.forgleam-btn-style-pill .forgleam-button { border-radius: 999px; }
.forgleam-btn-style-sharp .forgleam-button { border-radius: 0; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Image shapes ---- */
body.forgleam-img-soft .post-thumbnail,
body.forgleam-img-soft .forgleam-single-header .post-thumbnail,
body.forgleam-img-soft .forgleam-related__thumb,
body.forgleam-img-soft .entry-content img,
body.forgleam-img-soft .entry-content .wp-block-image img,
body.forgleam-img-soft .wp-block-image > img { border-radius: 22px; }
body.forgleam-img-arch .post-thumbnail,
body.forgleam-img-arch .forgleam-single-header .post-thumbnail,
body.forgleam-img-arch .forgleam-related__thumb,
body.forgleam-img-arch .entry-content img,
body.forgleam-img-arch .entry-content .wp-block-image img,
body.forgleam-img-arch .wp-block-image > img { border-radius: 999px 999px 8px 8px; }
body.forgleam-img-beveled .post-thumbnail,
body.forgleam-img-beveled .forgleam-single-header .post-thumbnail,
body.forgleam-img-beveled .forgleam-related__thumb,
body.forgleam-img-beveled .entry-content img,
body.forgleam-img-beveled .entry-content .wp-block-image img,
body.forgleam-img-beveled .wp-block-image > img { border-radius: 0; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }

/* ---- Site layouts ---- */
.forgleam-layout-wide .forgleam-container { max-width: min(1480px, 96vw); }
.forgleam-layout-narrow .forgleam-container { max-width: 860px; }
.forgleam-layout-framed { padding: 14px; background: var(--forgleam-color-1); }
.forgleam-layout-framed .site-wrapper { background: var(--forgleam-color-8); border-radius: 6px; overflow: clip; }

/* ---- Menu toggle styles ---- */
.menu-toggle.forgleam-toggle-boxed,
.menu-toggle.forgleam-toggle-rounded,
.menu-toggle.forgleam-toggle-circle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid currentColor; }
.menu-toggle.forgleam-toggle-boxed { border-radius: 6px; }
.menu-toggle.forgleam-toggle-rounded { border-radius: 12px; }
.menu-toggle.forgleam-toggle-circle { border-radius: 50%; }
/* Dots (kebab): turn the bars into three dots */
.menu-toggle.forgleam-toggle-dots .menu-toggle__bar,
.menu-toggle.forgleam-toggle-dots .menu-toggle__bar::before,
.menu-toggle.forgleam-toggle-dots .menu-toggle__bar::after { width: 5px; height: 5px; border-radius: 50%; left: 50%; transform: translateX(-50%); }
.menu-toggle.forgleam-toggle-dots .menu-toggle__bar::before { top: -8px; }
.menu-toggle.forgleam-toggle-dots .menu-toggle__bar::after { top: 8px; }

/* ===========================================================================
 * Customizer-driven sidebar modules (About / Popular / Categories / Social /
 * HTML) — editorial sidebar like ad-optimised themes.
 * ======================================================================== */
.forgleam-swidget__img { width: 100%; height: auto; display: block; border-radius: var(--forgleam-img-radius, 8px); margin-bottom: 14px; }
.forgleam-swidget__text { color: var(--forgleam-color-5); line-height: 1.7; margin: 0 0 16px; }
.forgleam-swidget--about .forgleam-swidget__btn { display: block; text-align: center; }

/* Popular posts */
.forgleam-swidget__posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.forgleam-swidget__posts li { padding: 0; border: 0; }
.forgleam-swidget__posts a { display: flex; gap: 13px; align-items: center; text-decoration: none; color: var(--forgleam-color-3); }
.forgleam-swidget__thumb { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--forgleam-img-radius, 8px); overflow: hidden; display: block; background: var(--forgleam-color-7); }
.forgleam-swidget__thumb img { width: 100%; height: 100%; object-fit: cover; }
.forgleam-swidget__pt { display: block; font-weight: 600; line-height: 1.35; font-size: 0.95em; }
.forgleam-swidget__posts a:hover .forgleam-swidget__pt { color: var(--forgleam-color-1); }
.forgleam-swidget__date { display: block; font-weight: 400; font-size: 0.78em; color: var(--forgleam-color-5); margin-top: 3px; }

/* Categories list */
.forgleam-swidget__cats { list-style: none; margin: 0; padding: 0; }
.forgleam-swidget__cats li { border-bottom: 1px solid var(--forgleam-color-6); }
.forgleam-swidget__cats li:last-child { border-bottom: 0; }
.forgleam-swidget__cats a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; color: var(--forgleam-color-3); }
.forgleam-swidget__cats a:hover { color: var(--forgleam-color-1); }
.forgleam-swidget__count { flex: 0 0 auto; min-width: 1.8em; text-align: center; font-size: 0.78em; color: var(--forgleam-color-5); background: var(--forgleam-color-7); border-radius: 999px; padding: 0.1em 0.6em; }

/* Social */
.forgleam-swidget__social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
