/*
 * Mandor — main stylesheet.
 * Colors, fonts and sizes come from CSS custom properties printed by inc/dynamic-css.php.
 */

/* ---------- Fallback tokens (overridden inline) ---------- */
:root {
	--m-primary: #2563eb;
	--m-on-primary: #fff;
	--m-accent: #06b6d4;
	--m-on-accent: #0b1120;
	--m-bg: #fff;
	--m-surface: #f1f5f9;
	--m-text: #334155;
	--m-heading: #0f172a;
	--m-border: #e2e8f0;
	--m-footer-bg: #0f172a;
	--m-footer-text: #cbd5e1;
	--m-radius: 12px;
	--m-btn-radius: 12px;
	--m-container: 1200px;
	--m-sidebar: 300px;
	--m-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--m-font-heading: var(--m-font-body);
	--m-font-size: 17px;
	--m-heading-wt: 700;

	--m-muted: color-mix(in srgb, var(--m-text) 70%, var(--m-bg));
	--m-primary-soft: color-mix(in srgb, var(--m-primary) 12%, var(--m-bg));
	--m-card: color-mix(in srgb, var(--m-surface) 35%, var(--m-bg));
	--m-shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px -8px rgb(15 23 42 / .12);
	--m-shadow-lg: 0 2px 4px rgb(15 23 42 / .06), 0 24px 48px -12px rgb(15 23 42 / .22);
	--m-gutter: clamp(16px, 4vw, 32px);
	--m-section: clamp(56px, 9vw, 112px);
	--m-header-h: 76px;
	--m-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--m-header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--m-bg);
	color: var(--m-text);
	font-family: var(--m-font-body);
	font-size: var(--m-font-size);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--m-heading);
	font-family: var(--m-font-heading);
	font-weight: var(--m-heading-wt);
	line-height: 1.2;
	letter-spacing: -.015em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }

p, ul, ol, dl, figure, blockquote, pre, table { margin: 0 0 1.25em; }
img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; display: block; }

a {
	color: var(--m-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .2s var(--m-ease);
}
a:hover { color: color-mix(in srgb, var(--m-primary) 75%, var(--m-heading)); }

:focus-visible {
	outline: 2px solid var(--m-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--m-border); margin: 2em 0; }

blockquote {
	margin-inline: 0;
	padding: .6em 1.4em;
	border-left: 4px solid var(--m-primary);
	background: var(--m-surface);
	border-radius: 0 var(--m-radius) var(--m-radius) 0;
	font-size: 1.1em;
}

code, kbd, pre, samp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
pre {
	overflow: auto;
	padding: 1.2em;
	background: var(--m-surface);
	border-radius: var(--m-radius);
}
:not(pre) > code { padding: .15em .4em; background: var(--m-surface); border-radius: 6px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .6em .8em; border-bottom: 1px solid var(--m-border); text-align: left; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none;
	width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100000;
	padding: 12px 20px;
	background: var(--m-bg);
	color: var(--m-heading);
	border-radius: var(--m-radius);
	box-shadow: var(--m-shadow-lg);
}

.mandor-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.15em; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select {
	width: 100%;
	padding: .7em .95em;
	font: inherit;
	font-size: .95em;
	color: var(--m-heading);
	background: var(--m-bg);
	border: 1px solid var(--m-border);
	border-radius: calc(var(--m-radius) * .7);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
	outline: 0;
	border-color: var(--m-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--m-primary) 18%, transparent);
}
label { font-weight: 600; color: var(--m-heading); font-size: .95em; }

/* ---------- Buttons ---------- */
.btn,
button.search-submit,
input[type="submit"], button[type="submit"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.5em;
	font: inherit;
	font-weight: 600;
	font-size: .95em;
	line-height: 1.2;
	text-decoration: none;
	color: var(--m-on-primary);
	background: var(--m-primary);
	border: 2px solid transparent;
	border-radius: var(--m-btn-radius);
	cursor: pointer;
	transition: transform .2s var(--m-ease), box-shadow .2s var(--m-ease), background .2s, color .2s;
}
.btn:hover,
input[type="submit"]:hover, button[type="submit"]:hover,
.wp-block-button__link:hover {
	color: var(--m-on-primary);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--m-primary) 70%, transparent);
}
.btn-outline { background: transparent; color: var(--m-primary); border-color: var(--m-primary); }
.btn-outline:hover { background: var(--m-primary); color: var(--m-on-primary); }
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { color: #0f172a; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .45); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--m-primary); border-color: currentColor; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn .mandor-icon { width: 20px; height: 20px; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: calc(var(--m-container) + var(--m-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--m-gutter);
}

.site-layout-boxed { background: var(--m-surface); }
.site-layout-boxed .site {
	max-width: calc(var(--m-container) + var(--m-gutter) * 2 + 48px);
	margin: 0 auto;
	background: var(--m-bg);
	box-shadow: var(--m-shadow-lg);
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

.content-layout {
	display: grid;
	gap: clamp(32px, 4vw, 56px);
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "main";
	padding-block: clamp(40px, 6vw, 72px);
}
.site-main { grid-area: main; min-width: 0; }
.sidebar-left { grid-area: left; }
.sidebar-right { grid-area: right; }

@media (min-width: 960px) {
	.layout-right .content-layout { grid-template-columns: minmax(0, 1fr) var(--m-sidebar); grid-template-areas: "main right"; }
	.layout-left .content-layout { grid-template-columns: var(--m-sidebar) minmax(0, 1fr); grid-template-areas: "left main"; }
	.layout-both .content-layout { grid-template-columns: calc(var(--m-sidebar) * .85) minmax(0, 1fr) calc(var(--m-sidebar) * .85); grid-template-areas: "left main right"; }
	.has-sticky-sidebar .sidebar__inner { position: sticky; top: calc(var(--m-header-sticky, 0px) + 24px); }
}
@media (max-width: 959px) {
	.layout-left .content-layout, .layout-right .content-layout, .layout-both .content-layout { grid-template-areas: "main" "left" "right"; }
}
/* Narrow reading column for single posts/pages without sidebars. */
.layout-none.single .site-main, .layout-none.page:not(.page-template-template-full-width):not(.is-sections-page) .site-main { max-width: 800px; margin-inline: auto; width: 100%; }

/* ---------- Header ---------- */
.site-header-wrap { position: relative; z-index: 50; }
.has-sticky-header .site-header-wrap { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.site-header {
	color: var(--m-heading);
	background: color-mix(in srgb, var(--m-bg) 88%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--m-border);
	transition: background .3s, box-shadow .3s, border-color .3s, color .3s;
}
.is-scrolled .site-header { box-shadow: 0 6px 24px -12px rgb(15 23 42 / .25); }

/* Builder rows: above (top bar), main, below. */
.header-row__inner { position: relative; display: flex; align-items: center; gap: 16px; }
.header-row.has-center .header-row__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.hb-zone { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hb-zone:empty { display: none; }
.has-center .hb-zone:empty { display: flex; }
.hb-zone--left { flex: 1 1 auto; }
.hb-zone--center { justify-content: center; }
.hb-zone--right { flex: 0 1 auto; justify-content: flex-end; margin-left: auto; }
.has-center .hb-zone--right { margin-left: 0; }
.hb-zone--left .hb-primary_menu, .hb-zone--left .hb-secondary_menu { margin-left: 20px; }
.hb-button { margin-left: 8px; }
.hb-button .btn { padding: .65em 1.2em; }
.header-row--main .header-row__inner { min-height: 76px; }
.header-row--above { font-size: .85rem; color: color-mix(in srgb, var(--m-footer-text) 90%, #fff); background: var(--m-footer-bg); }
.header-row--above .header-row__inner { min-height: 40px; }
.header-row--above a { color: inherit; text-decoration: none; }
.header-row--above a:hover { color: #fff; }
.header-row--above .social-links a { width: 28px; height: 28px; }
.header-row--above .social-links svg { width: 15px; height: 15px; }
.header-row--below { border-top: 1px solid var(--m-border); }
.header-row--below .header-row__inner { min-height: 54px; }
.header-html p { margin: 0; }
.secondary-menu { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.secondary-menu a { color: inherit; text-decoration: none; }
.secondary-menu a:hover { color: var(--m-primary); }
.header-row--above .secondary-menu a:hover { color: #fff; }

.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-branding .custom-logo { max-height: 52px; width: auto; }
.site-title { margin: 0; font-family: var(--m-font-heading); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: .78rem; color: var(--m-muted); line-height: 1.3; }
.site-branding:has(.site-description) { flex-direction: column; align-items: flex-start; gap: 0; }

.main-navigation { margin-left: auto; }
/* Desktop menu */
.primary-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu a {
	display: flex; align-items: center; gap: 4px;
	padding: .55em .9em;
	color: inherit;
	font-weight: 550;
	font-size: .96rem;
	text-decoration: none;
	border-radius: 999px;
	transition: background .2s, color .2s;
}
.primary-menu > li > a:hover,
.primary-menu > li:focus-within > a { background: color-mix(in srgb, var(--m-primary) 10%, transparent); color: var(--m-primary); }
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a,
.primary-menu > .is-active > a { color: var(--m-primary); background: color-mix(in srgb, var(--m-primary) 10%, transparent); }
.primary-menu .menu-item-has-children > a::after {
	content: ""; width: .45em; height: .45em; margin-left: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.primary-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 230px;
	margin: 0; padding: 8px;
	list-style: none;
	color: var(--m-heading);
	background: var(--m-bg);
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	box-shadow: var(--m-shadow-lg);
	opacity: 0; visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s var(--m-ease), visibility .2s;
}
.primary-menu .sub-menu .sub-menu { top: -9px; left: 100%; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { border-radius: calc(var(--m-radius) * .6); padding: .55em .8em; justify-content: space-between; }
.primary-menu .sub-menu a:hover { background: var(--m-surface); color: var(--m-primary); }
.primary-menu .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); }

.hb-toggle { display: none; }
@media (max-width: 1023px) {
	.hb-primary_menu, .hb-secondary_menu, .hb-button, .hb-social, .header-row.hide-on-mobile { display: none; }
	.hb-toggle { display: block; }
	.header-row.has-center .header-row__inner { display: flex; }
	.hb-zone--right { margin-left: auto; }
}

/* Mega menu */
.primary-menu > li.is-mega, .main-navigation, .hb-item, .hb-zone { position: static; }
.primary-menu > li.is-mega > .sub-menu {
	left: 0; right: 0;
	display: grid; grid-template-columns: repeat(var(--mega-cols, 3), minmax(0, 1fr)); gap: 8px 28px;
	min-width: 0; max-width: min(100%, 1100px); margin-inline: auto;
	padding: 24px 28px;
}
.mega-cols-2 { --mega-cols: 2; }
.mega-cols-4 { --mega-cols: 4; }
.mega-cols-5 { --mega-cols: 5; }
.primary-menu .is-mega .sub-menu .sub-menu {
	position: static;
	min-width: 0; padding: 0;
	background: none; border: 0; box-shadow: none;
	opacity: 1; visibility: inherit; transform: none;
}
.primary-menu .is-mega .mega-column > a {
	margin-bottom: 4px;
	font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--m-muted);
}
.primary-menu .is-mega .mega-column > a[href="#"] { pointer-events: none; }
.primary-menu .is-mega .sub-menu .menu-item-has-children > a::after { display: none; }
.primary-menu .is-mega .sub-menu .sub-menu a { flex-wrap: wrap; align-items: flex-start; }
.menu-desc { display: block; width: 100%; font-size: .8rem; font-weight: 400; color: var(--m-muted); }
.menu-icon { width: 1.05em; height: 1.05em; color: var(--m-primary); }
.primary-menu .menu-label { display: inline; }

/* Header search */
.header-search { padding: 16px 0 20px; border-top: 1px solid var(--m-border); }
.header-search .search-form { max-width: 640px; margin: 0 auto; }

/* Dark mode toggle icon swap */
.scheme-toggle .show-dark { display: none; }
:root[data-scheme="dark"] .scheme-toggle .show-dark { display: block; }
:root[data-scheme="dark"] .scheme-toggle .show-light { display: none; }

/* Transparent header over hero / banner */
.has-transparent-header .site-header-wrap { position: absolute; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; }
.has-transparent-header.has-sticky-header .site-header-wrap { position: fixed; }
.has-transparent-header:not(.is-scrolled) .site-header {
	color: #fff;
	background: transparent;
	border-color: rgb(255 255 255 / .15);
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.has-transparent-header:not(.is-scrolled) .site-description { color: rgb(255 255 255 / .75); }
.has-transparent-header:not(.is-scrolled) .primary-menu > li > a:hover,
.has-transparent-header:not(.is-scrolled) .primary-menu > li:focus-within > a,
.has-transparent-header:not(.is-scrolled) .primary-menu > .current-menu-item > a,
.has-transparent-header:not(.is-scrolled) .primary-menu > .current-menu-ancestor > a,
.has-transparent-header:not(.is-scrolled) .primary-menu > .is-active > a { color: #fff; background: rgb(255 255 255 / .14); }
.has-transparent-header:not(.is-scrolled) .header-cta { background: #fff; color: #0f172a; }
.has-transparent-header .hero { padding-top: var(--m-header-h); }
.has-transparent-header .page-banner { padding-top: calc(var(--m-header-h) + 32px); }

/* ---------- News ticker ---------- */
.news-ticker { background: var(--m-heading); color: var(--m-bg); font-size: .88rem; }
.news-ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.news-ticker__label {
	flex-shrink: 0;
	padding: .2em .75em;
	font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--m-on-accent); background: var(--m-accent);
	border-radius: 999px;
}
.news-ticker__viewport {
	display: flex; overflow: hidden; flex: 1;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.news-ticker__track { display: flex; flex-shrink: 0; gap: 40px; margin: 0; padding: 0 40px 0 0; list-style: none; white-space: nowrap; animation: mandor-ticker 40s linear infinite; }
.news-ticker__track li::before { content: "•"; margin-right: 40px; opacity: .45; }
.news-ticker__track li:first-child::before { content: none; }
.news-ticker a { color: inherit; text-decoration: none; }
.news-ticker a:hover { text-decoration: underline; }
.news-ticker:hover .news-ticker__track, .news-ticker:focus-within .news-ticker__track { animation-play-state: paused; }
@keyframes mandor-ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.news-ticker__track { animation: none; }
	.news-ticker__track[aria-hidden] { display: none; }
	.news-ticker__viewport { overflow-x: auto; }
}

/* ---------- Page banner ---------- */
.page-banner {
	position: relative;
	isolation: isolate;
	padding-block: clamp(48px, 7vw, 88px);
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--m-accent) 55%, transparent), transparent 45%),
		linear-gradient(135deg, var(--m-primary), color-mix(in srgb, var(--m-primary) 55%, #000));
}
.page-banner.has-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(2 6 23 / .45), rgb(2 6 23 / .75)); }
.page-banner__media { position: absolute; inset: 0; z-index: -2; }
.page-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner__title { margin: 0; color: inherit; max-width: 900px; }
.page-banner__sub { max-width: 680px; margin: .7em 0 0; font-size: 1.1rem; color: rgb(255 255 255 / .85); }
.page-banner .entry-meta { margin-top: 18px; color: rgb(255 255 255 / .85); }
.page-banner .entry-meta a { color: inherit; }
.page-banner .breadcrumbs { color: rgb(255 255 255 / .75); }
.page-banner .breadcrumbs a { color: #fff; }

.breadcrumbs { margin-bottom: 14px; font-size: .85rem; color: var(--m-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(1200px 600px at 10% 110%, color-mix(in srgb, var(--m-accent) 70%, transparent), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--m-primary) 50%, #fff 10%), transparent 60%),
		linear-gradient(135deg, var(--m-primary), color-mix(in srgb, var(--m-primary) 40%, #020617));
}
.hero--small { min-height: 360px; }
.hero--medium { min-height: 520px; }
.hero--large { min-height: 680px; }
.hero--full { min-height: 100vh; min-height: 100svh; }
.hero__inner { position: relative; padding-block: clamp(80px, 12vw, 140px); }
.hero--align-center .hero__inner { text-align: center; }
.hero--align-center .hero__text { margin-inline: auto; }
.hero--align-center .hero__actions { justify-content: center; }
.hero__title {
	max-width: 960px;
	margin: 0 0 .35em;
	color: inherit;
	font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem);
	letter-spacing: -.035em;
	line-height: 1.05;
}
.hero--align-center .hero__title { margin-inline: auto; }
.hero__text { max-width: 640px; margin-bottom: 2em; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgb(255 255 255 / .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn { padding: 1em 1.8em; font-size: 1rem; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(2 6 23 / calc(var(--hero-overlay, .55) * .7)), rgb(2 6 23 / var(--hero-overlay, .55))); }
.hero__shapes span {
	position: absolute; z-index: -1;
	border-radius: 50%;
	filter: blur(2px);
	background: rgb(255 255 255 / .08);
	border: 1px solid rgb(255 255 255 / .15);
}
.hero__shapes span:nth-child(1) { width: 520px; height: 520px; right: -140px; top: -160px; }
.hero__shapes span:nth-child(2) { width: 260px; height: 260px; left: -80px; bottom: -60px; }
.hero__shapes span:nth-child(3) { width: 90px; height: 90px; right: 22%; bottom: 14%; background: color-mix(in srgb, var(--m-accent) 50%, transparent); border: 0; }
@media (prefers-reduced-motion: no-preference) {
	.hero__shapes span { animation: mandor-float 14s ease-in-out infinite alternate; }
	.hero__shapes span:nth-child(2) { animation-duration: 18s; }
	.hero__shapes span:nth-child(3) { animation-duration: 10s; }
	.hero__inner > * { animation: mandor-rise .8s var(--m-ease) both; }
	.hero__inner > *:nth-child(2) { animation-delay: .1s; }
	.hero__inner > *:nth-child(3) { animation-delay: .2s; }
}
@keyframes mandor-float { to { transform: translate3d(-30px, 30px, 0) scale(1.06); } }
@keyframes mandor-rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--m-section); }
.sections-main > .section:nth-of-type(even):not(.section-cta) { background: var(--m-surface); }
.section-heading { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-title { margin-bottom: .3em; }
.section-subtitle { margin: 0; font-size: 1.1rem; color: var(--m-muted); }
.section-more { margin: 40px 0 0; text-align: center; }
.admin-hint { padding: 14px 18px; text-align: center; border: 1px dashed var(--m-border); border-radius: var(--m-radius); color: var(--m-muted); }

/* Features */
.feature-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature {
	padding: 32px 28px;
	background: var(--m-bg);
	border: 1px solid var(--m-border);
	border-radius: calc(var(--m-radius) * 1.4);
	transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease), border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--m-shadow-lg); border-color: transparent; }
.feature__icon {
	display: inline-grid; place-items: center;
	width: 56px; height: 56px; margin-bottom: 20px;
	color: var(--m-primary);
	background: var(--m-primary-soft);
	border-radius: calc(var(--m-radius) * 1.1);
}
.feature__icon .mandor-icon { width: 26px; height: 26px; }
.feature__title { font-size: 1.2rem; margin-bottom: .4em; }
.feature__text { margin: 0; color: var(--m-muted); }

/* About */
.about-grid { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
.has-image .about-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.section-about:not(.has-image) .about__content { max-width: 760px; margin-inline: auto; text-align: center; }
.about__media { margin: 0; position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--m-radius) * 1.6); box-shadow: var(--m-shadow-lg); }
.about__media::before {
	content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1;
	border-radius: calc(var(--m-radius) * 1.6);
	background: linear-gradient(135deg, var(--m-primary), var(--m-accent));
	opacity: .2;
}
.section-about { position: relative; z-index: 0; }
.about__text { font-size: 1.08rem; }

/* CTA */
.section-cta { padding-block: calc(var(--m-section) * .6); }
.cta-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
	padding: clamp(32px, 5vw, 64px);
	color: #fff;
	border-radius: calc(var(--m-radius) * 2);
	background:
		radial-gradient(circle at 100% 0, color-mix(in srgb, var(--m-accent) 65%, transparent), transparent 55%),
		linear-gradient(120deg, var(--m-primary), color-mix(in srgb, var(--m-primary) 50%, #020617));
	box-shadow: var(--m-shadow-lg);
}
.cta-box__title { margin: 0 0 .2em; color: inherit; }
.cta-box__text { margin: 0; color: rgb(255 255 255 / .85); font-size: 1.1rem; }

/* Contact */
.contact-grid { display: grid; gap: 40px; max-width: 760px; margin-inline: auto; }
.contact-grid.has-form { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.contact-list > li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--m-bg); border: 1px solid var(--m-border); border-radius: var(--m-radius); }
.contact-list .mandor-icon { width: 22px; height: 22px; margin-top: 3px; color: var(--m-primary); }
.contact-list a { color: var(--m-heading); font-weight: 600; text-decoration: none; }
.contact-list .contact-social { background: none; border: 0; padding: 0; }
.contact-form { padding: clamp(24px, 4vw, 40px); background: var(--m-bg); border: 1px solid var(--m-border); border-radius: calc(var(--m-radius) * 1.4); box-shadow: var(--m-shadow); }
.contact-form p { margin-bottom: 1em; }

/* Widget rows (bottom area + widgets section) */
.widget-row { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.widget-row .widget { margin: 0; }

/* Avatar initials (testimonials, team) */
.avatar-initials {
	display: inline-grid; place-items: center; flex-shrink: 0;
	width: 48px; height: 48px;
	font-weight: 800; color: var(--m-on-primary);
	background: linear-gradient(135deg, var(--m-primary), var(--m-accent));
	border-radius: 50%;
}

/* Stats */
.section-stats { padding-block: calc(var(--m-section) * .6); }
.stats-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; text-align: center; }
.stat { display: flex; flex-direction: column-reverse; }
.stat__value { margin: 0; font-family: var(--m-font-heading); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--m-primary); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 6px; color: var(--m-muted); font-weight: 500; }

/* Testimonials */
.testimonial-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.testimonial {
	display: flex; flex-direction: column;
	margin: 0; padding: 30px;
	background: var(--m-bg); border: 1px solid var(--m-border); border-radius: calc(var(--m-radius) * 1.4);
}
.testimonial__mark { color: var(--m-primary); opacity: .35; }
.testimonial__quote { flex: 1; margin: 10px 0 22px; padding: 0; border: 0; background: none; font-size: 1.08rem; color: var(--m-heading); }
.testimonial__quote p { margin: 0; }
.testimonial__author { display: flex; align-items: center; gap: 12px; text-align: left; font-size: .95rem; }
.testimonial__author img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.testimonial__author strong { display: block; color: var(--m-heading); }
.testimonial__author small { display: block; color: var(--m-muted); font-size: .85rem; }

/* Team */
.team-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); text-align: center; }
.team-member__photo { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; }
.team-member__photo img, .team-member__photo .avatar-initials { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; font-size: 2.4rem; box-shadow: 0 0 0 6px var(--m-primary-soft); }
.team-member__name { margin-bottom: .15em; font-size: 1.15rem; }
.team-member__name a { color: inherit; text-decoration: none; }
.team-member__role { margin: 0; color: var(--m-primary); font-weight: 600; font-size: .92rem; }
.team-member__bio { margin: 10px 0 0; color: var(--m-muted); font-size: .95rem; }

/* Pricing */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.plan {
	position: relative;
	display: flex; flex-direction: column;
	padding: 34px 30px;
	background: var(--m-bg); border: 1px solid var(--m-border); border-radius: calc(var(--m-radius) * 1.6);
}
.plan.is-featured { border: 2px solid var(--m-primary); box-shadow: var(--m-shadow-lg); }
@media (min-width: 960px) { .plan.is-featured { transform: scale(1.04); } }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: .3em .9em; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--m-on-primary); background: var(--m-primary); border-radius: 999px; white-space: nowrap; }
.plan__name { margin-bottom: .2em; font-size: 1.25rem; }
.plan__desc { margin: 0; color: var(--m-muted); }
.plan__price { margin: 18px 0; }
.plan__price strong { font-family: var(--m-font-heading); font-size: 3rem; line-height: 1; letter-spacing: -.03em; color: var(--m-heading); }
.plan__price span { margin-left: 4px; color: var(--m-muted); }
.plan__features { flex: 1; margin: 0 0 26px; padding: 0; list-style: none; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--m-border); }
.plan__features svg { flex-shrink: 0; margin-top: 4px; color: var(--m-primary); }
.plan .btn { width: 100%; }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq { margin-bottom: 12px; background: var(--m-bg); border: 1px solid var(--m-border); border-radius: var(--m-radius); transition: box-shadow .2s; }
.faq[open] { box-shadow: var(--m-shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; color: var(--m-heading); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mandor-icon { color: var(--m-primary); transition: transform .2s; }
.faq[open] summary .mandor-icon { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 6px; color: var(--m-text); }

/* Gallery */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.gallery-grid.cols-2 { --cols: 2; }
.gallery-grid.cols-4 { --cols: 4; }
@media (max-width: 760px) { .gallery-grid { --cols: 2 !important; } }
.gallery-item { margin: 0; }
.gallery-item a { position: relative; display: block; overflow: hidden; border-radius: var(--m-radius); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--m-ease); }
.gallery-item a:hover img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: 30px 14px 12px; color: #fff; text-align: left; background: linear-gradient(transparent, rgb(2 6 23 / .75)); opacity: 0; transition: opacity .3s; }
.gallery-item a:hover figcaption, .gallery-item a:focus-visible figcaption { opacity: 1; }
.lightbox { max-width: min(92vw, 1200px); padding: 0; border: 0; border-radius: var(--m-radius); background: #000; }
.lightbox::backdrop { background: rgb(2 6 23 / .85); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox__caption { margin: 0; padding: 10px 16px; color: #e2e8f0; font-size: .9rem; }
.lightbox__caption:empty { display: none; }
.lightbox__close { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 28px; background: rgb(0 0 0 / .4); }

/* Clients */
.section-clients { padding-block: calc(var(--m-section) * .5); }
.clients-title { margin-bottom: 24px; text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--m-muted); }
.client-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 56px; margin: 0; padding: 0; list-style: none; }
.client-logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.client-logos span { font-family: var(--m-font-heading); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--m-heading); opacity: .45; }
.client-logos a:hover img, .client-logos li:hover img { filter: none; opacity: 1; }

/* Map */
.map-embed { overflow: hidden; background: var(--m-surface); border: 1px solid var(--m-border); border-radius: calc(var(--m-radius) * 1.4); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-embed__placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	height: 100%; padding: 24px; text-align: center;
	background:
		repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--m-border) 60%, transparent) 22px 23px),
		var(--m-surface);
}
.map-embed__placeholder .mandor-icon { width: 40px; height: 40px; color: var(--m-primary); }
.map-embed__placeholder p { margin: 0; font-weight: 600; color: var(--m-heading); }
.map-embed__placeholder small { color: var(--m-muted); }

/* Consent banner */
.consent-banner {
	position: fixed; z-index: 9990;
	display: flex; align-items: center; gap: 16px 24px;
	padding: 18px 22px;
	color: var(--m-text); background: var(--m-bg);
	border: 1px solid var(--m-border); box-shadow: var(--m-shadow-lg);
}
.consent-banner[hidden] { display: none; }
.consent-banner--bar { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; border-radius: var(--m-radius); flex-wrap: wrap; }
.consent-banner--box { left: 16px; bottom: 16px; flex-direction: column; align-items: stretch; max-width: 380px; border-radius: calc(var(--m-radius) * 1.3); }
.consent-banner__text { margin: 0; font-size: .92rem; max-width: 760px; }
.consent-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-banner__actions .btn { padding: .65em 1.2em; }
.link-button { padding: 0; font: inherit; color: inherit; text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* Loading state for load-more buttons */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid var(--m-primary); border-right-color: transparent; border-radius: 50%; animation: mandor-spin .7s linear infinite; }
@keyframes mandor-spin { to { transform: rotate(360deg); } }

/* Elements (hooked content) */
.mandor-element > :last-child { margin-bottom: 0; }

/* Reading progress */
.reading-progress { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 100; height: 3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--m-primary), var(--m-accent)); transform: scaleX(0); transform-origin: 0 50%; }

/* Table of contents */
.toc { margin: 0 0 2em; background: var(--m-surface); border-radius: var(--m-radius); font-size: .95em; }
.toc summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 700; color: var(--m-heading); cursor: pointer; }
.toc summary .mandor-icon { color: var(--m-primary); }
.toc ol { margin: 0; padding: 0 20px 16px 40px; counter-reset: toc; }
.toc ol ol { padding: 4px 0 0 18px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--m-text); text-decoration: none; }
.toc a:hover { color: var(--m-primary); text-decoration: underline; }

/* Share buttons */
.share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--m-border); }
.share-buttons__label { font-weight: 700; color: var(--m-heading); }
.share-buttons ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	color: var(--m-primary); background: var(--m-primary-soft);
	border: 0; border-radius: 50%; cursor: pointer;
	transition: background .2s, color .2s, transform .2s var(--m-ease);
}
.share-btn:hover { color: var(--m-on-primary); background: var(--m-primary); transform: translateY(-2px); }
.share-btn .mandor-icon { width: 18px; height: 18px; }
.share-buttons__status { font-size: .85rem; color: var(--m-muted); }

/* Popups */
.mandor-popup {
	width: min(var(--popup-width, 560px), calc(100vw - 32px)); max-height: calc(100vh - 32px);
	padding: 0; color: var(--m-text); background: var(--m-bg);
	border: 0; border-radius: calc(var(--m-radius) * 1.4); box-shadow: var(--m-shadow-lg);
	overflow: auto;
}
.mandor-popup::backdrop { background: rgb(2 6 23 / .6); }
.mandor-popup__body { padding: clamp(28px, 5vw, 44px); }
.mandor-popup__body > :last-child { margin-bottom: 0; }
.mandor-popup__close { position: absolute; top: 8px; right: 8px; z-index: 1; }
.mandor-popup--corner[open], .mandor-popup--bar[open] { position: fixed; inset: auto 16px 16px auto; margin: 0; z-index: 9995; }
.mandor-popup--bar[open] { left: 16px; width: auto; max-width: none; }
.mandor-popup--bar .mandor-popup__body { padding: 18px 56px 18px 24px; }
@media (prefers-reduced-motion: no-preference) {
	.mandor-popup[open] { animation: mandor-rise .35s var(--m-ease); }
}

/* ---------- Posts ---------- */
.post-grid { display: grid; gap: 28px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.post-grid.cols-2 { --cols: 2; }
.post-grid.cols-3 { --cols: 3; }
.post-grid.cols-4 { --cols: 4; }
@media (max-width: 1100px) { .post-grid.cols-4 { --cols: 3; } }
@media (max-width: 900px) { .post-grid.cols-3, .post-grid.cols-4 { --cols: 2; } }
@media (max-width: 620px) { .post-grid { --cols: 1 !important; } }

.post-card {
	display: flex; flex-direction: column;
	overflow: hidden;
	background: var(--m-bg);
	border: 1px solid var(--m-border);
	border-radius: calc(var(--m-radius) * 1.3);
	transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-lg); }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--m-surface); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--m-ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: color-mix(in srgb, var(--m-primary) 40%, var(--m-surface)); background: linear-gradient(135deg, var(--m-primary-soft), var(--m-surface)); }
.post-card__placeholder .mandor-icon { width: 40px; height: 40px; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card__cat {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: .25em .7em;
	font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none;
	color: var(--m-primary);
	background: var(--m-primary-soft);
	border-radius: 999px;
}
.post-card__title { margin: 0 0 .4em; font-size: 1.2rem; line-height: 1.3; }
.post-card__title a { color: var(--m-heading); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--m-ease); }
.post-card__title a:hover { background-size: 100% 1px; }
.post-card__excerpt { color: var(--m-muted); font-size: .96rem; }
.post-card__excerpt p { margin: .6em 0 0; }
.post-card .read-more { margin-top: auto; padding-top: 14px; }

.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.read-more .mandor-icon { transition: transform .2s var(--m-ease); }
.read-more:hover .mandor-icon { transform: translateX(4px); }

.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--m-muted); }
.entry-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--m-primary); }

/* List layout (blog "list" and news "list") */
.blog-layout-list .site-main .post-card,
.news-style-list .post-card { flex-direction: row; }
.blog-layout-list .site-main .post-card__media,
.news-style-list .post-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 200px; }
.news-style-list .post-grid { --cols: 1 !important; max-width: 920px; margin-inline: auto; }
@media (max-width: 620px) {
	.blog-layout-list .site-main .post-card, .news-style-list .post-card { flex-direction: column; }
	.blog-layout-list .site-main .post-card__media, .news-style-list .post-card__media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* Masonry layout */
.blog-layout-masonry .blog-grid { display: block; columns: var(--cols, 2) 260px; column-gap: 28px; }
.blog-layout-masonry .blog-grid > * { display: inline-flex; width: 100%; margin: 0 0 28px; break-inside: avoid; }
.blog-layout-masonry .post-card__media:has(img) { aspect-ratio: auto; }
.blog-layout-masonry .post-card__media img { height: auto; }

/* Footer top row (builder) */
.footer-top { border-bottom: 1px solid rgb(255 255 255 / .08); }
.footer-top .site-title { color: #fff; }
.footer-top .site-description { color: var(--m-footer-text); }

/* Featured layout: first post spans two columns and rows */
@media (min-width: 900px) {
	.news-style-featured .post-card:first-child { grid-column: span 2; grid-row: span 2; }
	.news-style-featured .post-card:first-child .post-card__media { aspect-ratio: 16 / 9; }
	.news-style-featured .post-card:first-child .post-card__title { font-size: 1.7rem; }
	.news-style-featured .post-grid.cols-2 .post-card:first-child { grid-row: auto; }
}

/* Classic layout */
.entry-classic { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--m-border); }
.entry-classic .entry-thumbnail { display: block; margin-bottom: 24px; overflow: hidden; border-radius: calc(var(--m-radius) * 1.3); }
.entry-classic .entry-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .3em; }
.entry-classic .entry-title a { color: var(--m-heading); text-decoration: none; }
.entry-classic .entry-title a:hover { color: var(--m-primary); }
.entry-classic .entry-summary { margin-top: 12px; }

/* Archive header (simple style) */
.archive-header { margin-bottom: 36px; }
.archive-title { margin-bottom: .25em; }
.archive-description { color: var(--m-muted); }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 44px; height: 44px; padding: 0 12px;
	color: var(--m-heading); font-weight: 600; text-decoration: none;
	border: 1px solid var(--m-border); border-radius: var(--m-btn-radius);
	transition: background .2s, color .2s, border-color .2s;
}
.pagination .page-numbers:hover { border-color: var(--m-primary); color: var(--m-primary); }
.pagination .page-numbers.current { background: var(--m-primary); color: var(--m-on-primary); border-color: var(--m-primary); }

/* ---------- Single ---------- */
.entry-header { margin-bottom: 28px; }
.entry-title { margin-bottom: .3em; }
.entry-thumbnail { margin: 0 0 32px; }
.entry-thumbnail img { width: 100%; border-radius: calc(var(--m-radius) * 1.3); }
.entry-content { font-size: 1.05em; }
.entry-content > * { margin-block-start: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--m-radius); }
.entry-content .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content .alignfull img, .entry-content .alignwide img { border-radius: 0; width: 100%; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { margin-top: .6em; font-size: .85rem; color: var(--m-muted); text-align: center; }
.entry-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a, .tagcloud a, .wp-block-tag-cloud a {
	display: inline-block; padding: .3em .8em;
	font-size: .82rem !important; text-decoration: none;
	color: var(--m-text); background: var(--m-surface);
	border-radius: 999px;
	transition: background .2s, color .2s;
}
.tag-list a:hover, .tagcloud a:hover { background: var(--m-primary); color: var(--m-on-primary); }
.edit-link a { font-size: .85rem; }

.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 48px 0; padding: 28px; background: var(--m-surface); border-radius: calc(var(--m-radius) * 1.3); }
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box__name { margin: 0 0 .3em; font-weight: 700; font-size: 1.1rem; }
.author-box__name a { color: var(--m-heading); text-decoration: none; }
.author-box__bio { margin: 0; color: var(--m-muted); }

.post-navigation { margin: 48px 0; }
.post-navigation .nav-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.post-navigation a { display: block; height: 100%; padding: 20px 24px; text-decoration: none; border: 1px solid var(--m-border); border-radius: var(--m-radius); transition: border-color .2s, box-shadow .2s; }
.post-navigation a:hover { border-color: var(--m-primary); box-shadow: var(--m-shadow); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--m-muted); }
.post-navigation .nav-title { display: block; margin-top: 4px; font-weight: 700; color: var(--m-heading); }

.related-posts { margin-top: 56px; }
.related-posts__title { font-size: 1.5rem; }
.related-posts .post-card__body { padding: 18px 20px 20px; }
.related-posts .post-card__title { font-size: 1.05rem; }
@media (min-width: 960px) { .layout-both .related-posts .post-grid { --cols: 2; } .layout-both .related-posts .post-card:nth-child(3) { display: none; } }

/* Comments */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--m-border); }
.comment-list, .comment-list .children { list-style: none; padding: 0; }
.comment-list .children { margin-left: clamp(16px, 4vw, 48px); }
.comment-body { margin-bottom: 20px; padding: 20px 24px; background: var(--m-surface); border-radius: var(--m-radius); }
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: .88rem; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-metadata a { color: var(--m-muted); text-decoration: none; }
.reply a { font-size: .85rem; font-weight: 600; }
.comment-form { display: grid; gap: 4px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: baseline; }
.comment-form-cookies-consent label { font-weight: 400; }

/* 404 */
.error-404 { text-align: center; max-width: 560px; margin-inline: auto; }
.error-404__code {
	margin: 0;
	font-family: var(--m-font-heading); font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1;
	background: linear-gradient(135deg, var(--m-primary), var(--m-accent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 .search-form { margin: 24px 0; }

/* ---------- Search form ---------- */
.search-form { display: flex; position: relative; }
.search-form .search-field { padding-right: 52px; border-radius: var(--m-btn-radius); }
.search-form .search-submit {
	position: absolute; right: 4px; top: 4px; bottom: 4px;
	padding: 0 14px;
	border-radius: calc(var(--m-btn-radius) * .8);
}
.search-form .search-submit:hover { transform: none; box-shadow: none; }

/* ---------- Sidebars & widgets ---------- */
.sidebar .widget {
	margin-bottom: 28px;
	padding: 24px;
	background: var(--m-card);
	border: 1px solid var(--m-border);
	border-radius: calc(var(--m-radius) * 1.2);
}
.widget-title, .widget .wp-block-heading {
	position: relative;
	margin-bottom: 16px; padding-bottom: 10px;
	font-size: 1rem; letter-spacing: .01em;
}
.widget-title::after, .widget .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--m-primary); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--m-border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--m-text); text-decoration: none; }
.widget li a:hover { color: var(--m-primary); }
.widget .wp-block-latest-posts__post-date { display: block; font-size: .8rem; color: var(--m-muted); }

.bottom-widgets { padding-block: clamp(40px, 6vw, 64px); background: var(--m-surface); border-top: 1px solid var(--m-border); }

/* ---------- Social links ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-links a {
	display: inline-grid; place-items: center;
	width: 38px; height: 38px;
	color: inherit;
	border-radius: 50%;
	background: color-mix(in srgb, currentColor 10%, transparent);
	transition: background .2s, color .2s, transform .2s var(--m-ease);
}
.social-links a:hover { color: var(--m-on-primary); background: var(--m-primary); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }
.social-links.is-header a { width: 34px; height: 34px; background: transparent; }
.header-row--main .social-links.is-header a { width: 44px; height: 44px; background: color-mix(in srgb, currentColor 12%, transparent); }
.header-row--main .social-links.is-header svg { width: 22px; height: 22px; }
.social-links.is-widget a, .social-links.is-contact a, .social-links.is-shortcode a { color: var(--m-primary); background: var(--m-primary-soft); }
.social-links.is-widget a:hover, .social-links.is-contact a:hover { color: var(--m-on-primary); background: var(--m-primary); }

/* ---------- Footer ---------- */
.site-footer { color: var(--m-footer-text); background: var(--m-footer-bg); font-size: .95rem; }
.site-footer a { color: color-mix(in srgb, var(--m-footer-text) 80%, #fff); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-widgets { padding-block: clamp(48px, 7vw, 80px) 24px; }
.footer-widgets__grid { display: grid; gap: 40px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.footer-widgets__grid.cols-2 { --cols: 2; }
.footer-widgets__grid.cols-3 { --cols: 3; }
.footer-widgets__grid.cols-4 { --cols: 4; }
@media (max-width: 900px) { .footer-widgets__grid.cols-3, .footer-widgets__grid.cols-4 { --cols: 2; } }
@media (max-width: 560px) { .footer-widgets__grid { --cols: 1 !important; } }
.site-footer .widget { margin-bottom: 24px; }
.site-footer .widget-title, .site-footer .wp-block-heading { color: #fff; }
.site-footer .widget li { border-color: rgb(255 255 255 / .08); }
.site-footer .widget li a { color: var(--m-footer-text); }
.site-footer .widget li a:hover { color: #fff; }
.site-footer .social-links.is-widget a { color: #fff; background: rgb(255 255 255 / .1); }

.footer-bar { border-top: 1px solid rgb(255 255 255 / .08); font-size: .88rem; }
.footer-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.fb-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.fb-zone:empty { display: none; }
.fb-zone--center { flex: 1; justify-content: center; }
.fb-zone--right { margin-left: auto; }
.footer-html p { margin: 0; }
@media (max-width: 720px) { .footer-bar__inner { flex-direction: column; text-align: center; } .fb-zone { justify-content: center; } .fb-zone--right { margin-left: 0; } }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-bar .social-links a { width: 34px; height: 34px; }
.footer-bar .social-links svg { width: 16px; height: 16px; }

/* Back to top */
.back-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: grid; place-items: center;
	width: 46px; height: 46px;
	color: var(--m-on-primary); background: var(--m-primary);
	border-radius: 50%;
	box-shadow: var(--m-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .3s, transform .3s var(--m-ease), visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--m-on-primary); transform: translateY(-3px); }

/* ---------- Mobile drawer ---------- */
.mobile-drawer { position: fixed; inset: 0; z-index: 9999; }
.mobile-drawer[hidden] { display: none; }
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgb(2 6 23 / .55); opacity: 0; transition: opacity .3s; }
.mobile-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column; gap: 24px;
	width: min(380px, 88vw);
	padding: 20px 24px 32px;
	overflow-y: auto;
	color: var(--m-heading);
	background: var(--m-bg);
	box-shadow: var(--m-shadow-lg);
	transform: translateX(100%);
	transition: transform .35s var(--m-ease);
}
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer.is-open .mobile-drawer__panel { transform: none; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-menu, .mobile-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.mobile-menu li { position: relative; border-bottom: 1px solid var(--m-border); }
.mobile-menu a { display: block; padding: 14px 48px 14px 0; color: inherit; font-weight: 600; text-decoration: none; }
.mobile-menu .current-menu-item > a, .mobile-menu .is-active > a { color: var(--m-primary); }
.mobile-menu .sub-menu { display: none; padding-left: 16px; border-top: 1px solid var(--m-border); }
.mobile-menu .sub-menu li:last-child { border-bottom: 0; }
.mobile-menu .sub-menu a { font-weight: 500; }
.mobile-menu .is-expanded > .sub-menu { display: block; }
.submenu-toggle {
	position: absolute; right: 0; top: 6px;
	display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	color: inherit; background: var(--m-surface); border: 0; border-radius: 10px; cursor: pointer;
}
.submenu-toggle .mandor-icon { transition: transform .2s; }
.is-expanded > .submenu-toggle .mandor-icon { transform: rotate(180deg); }
.mobile-drawer__panel > .btn { align-self: stretch; }
body.drawer-open { overflow: hidden; }

/* ---------- Gutenberg niceties ---------- */
.has-primary-color { color: var(--m-primary) !important; }
.has-primary-background-color { background-color: var(--m-primary) !important; }
.has-accent-color { color: var(--m-accent) !important; }
.has-accent-background-color { background-color: var(--m-accent) !important; }
.has-heading-color { color: var(--m-heading) !important; }
.has-heading-background-color { background-color: var(--m-heading) !important; }
.has-body-text-color { color: var(--m-text) !important; }
.has-surface-background-color { background-color: var(--m-surface) !important; }
.has-background-background-color { background-color: var(--m-bg) !important; }
.wp-block-image img { border-radius: var(--m-radius); }
.wp-block-separator { border-color: var(--m-border); }
.wp-block-search__input { border-radius: var(--m-btn-radius); }
.wp-block-search__button { margin-left: 8px; }

/* ---------- Print ---------- */
@media print {
	.site-header-wrap, .site-footer, .sidebar, .back-to-top, .bottom-widgets, .mobile-drawer, .related-posts, .comments-area { display: none !important; }
	.page-banner { color: #000; background: none; padding: 0; }
}

/* Protected e-mail addresses / phone numbers (decoded by main.js): hide the decoy letters. */
.m-protected .m-d { display: none !important; }
