/*
 * Magazine Website Builder — front-end styles.
 *
 * Design tokens are CSS custom properties printed inline from the plugin
 * settings (see MWB_Assets::inline_css). Everything is scoped to .mwb-site /
 * .mwb-body so it cannot leak into views rendered by the theme.
 */

/* ---------- Tokens (defaults; overridden inline) ---------- */
:root {
	--mwb-primary: #1d4ed8;
	--mwb-primary-dark: #173ead;
	--mwb-primary-soft: #e8edfb;
	--mwb-on-primary: #fff;
	--mwb-secondary: #0f172a;
	--mwb-on-secondary: #fff;
	--mwb-accent: #f59e0b;
	--mwb-on-accent: #111;
	--mwb-bg: #fff;
	--mwb-surface: #f8f8f8;
	--mwb-border: #e5e5e5;
	--mwb-text: #1f2937;
	--mwb-muted: #6b7280;
	--mwb-heading: #111827;
	--mwb-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mwb-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mwb-radius: 10px;
	--mwb-width: 1200px;
	--mwb-logo-height: 40px;
	--mwb-gap: clamp(16px, 2.4vw, 32px);
	--mwb-header-h: 68px;
}

/* ---------- Base ---------- */
body.mwb-body {
	margin: 0;
	background: var(--mwb-bg);
	color: var(--mwb-text);
	font-family: var(--mwb-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.mwb-site,
.mwb-site *,
.mwb-site *::before,
.mwb-site *::after { box-sizing: border-box; }
.mwb-site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.mwb-main { flex: 1 0 auto; outline: none; }
.mwb-site img { max-width: 100%; height: auto; }
.mwb-site a { color: inherit; text-decoration: none; }
.mwb-site a:hover { color: var(--mwb-primary); }
.mwb-site :focus-visible { outline: 3px solid var(--mwb-accent); outline-offset: 2px; border-radius: 2px; }
.mwb-site :is(h1, h2, h3, h4, h5, h6), .mwb-h1 {
	font-family: var(--mwb-font-heading);
	color: var(--mwb-heading);
	line-height: 1.2;
	letter-spacing: -0.015em;
	font-weight: 700;
	text-wrap: balance;
}
:where(.mwb-site) :is(h1, h2, h3, h4, h5, h6) { margin: 0; }
:where(.mwb-site) p { margin: 0; }
:where(.mwb-site) :is(ul, ol) { margin: 0; padding: 0; }
.mwb-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mwb-skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--mwb-secondary); color: var(--mwb-on-secondary) !important; padding: 10px 16px; border-radius: var(--mwb-radius); }
.mwb-skip-link:focus { left: 8px; }

.mwb-container { width: 100%; max-width: var(--mwb-width); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .mwb-container { padding-inline: 24px; } }
.mwb-container--narrow { max-width: 780px; }
.mwb-container--article { max-width: 800px; }
.mwb-container--wide { max-width: 1100px; }

/* ---------- Buttons, labels, chips ---------- */
.mwb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 600 15px/1 var(--mwb-font-body);
	padding: 13px 20px; min-height: 44px;
	border: 2px solid var(--mwb-primary); border-radius: var(--mwb-radius);
	background: var(--mwb-primary); color: var(--mwb-on-primary) !important;
	cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.mwb-btn:hover { background: var(--mwb-primary-dark); border-color: var(--mwb-primary-dark); }
.mwb-btn--ghost { background: transparent; color: var(--mwb-primary) !important; }
.mwb-btn--ghost:hover { background: var(--mwb-primary); color: var(--mwb-on-primary) !important; }
.mwb-btn--accent { background: var(--mwb-accent); border-color: var(--mwb-accent); color: var(--mwb-on-accent) !important; }
.mwb-btn--accent:hover { filter: brightness(.92); background: var(--mwb-accent); border-color: var(--mwb-accent); }
.mwb-btn[disabled] { opacity: .6; cursor: progress; }

.mwb-label {
	display: inline-block;
	font: 700 12px/1.2 var(--mwb-font-body);
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--mwb-primary) !important;
	margin-bottom: 8px;
}
.mwb-label:hover { color: var(--mwb-primary-dark) !important; text-decoration: underline; }
.mwb-label--lg { font-size: 13px; margin-bottom: 14px; }

.mwb-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mwb-chips a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px; border: 1px solid var(--mwb-border); border-radius: 999px;
	font-size: 14px; line-height: 1.2; background: var(--mwb-bg);
}
.mwb-chips a:hover { border-color: var(--mwb-primary); }
.mwb-chips__count { color: var(--mwb-muted); font-size: 12px; }
.mwb-chips--inline { margin-top: 18px; }

.mwb-icon { display: inline-block; vertical-align: middle; flex: none; }
.mwb-dot { margin-inline: 6px; color: var(--mwb-muted); }

/* ---------- Header ---------- */
.mwb-header {
	position: relative; z-index: 100;
	background: var(--mwb-bg);
	border-top: 4px solid var(--mwb-primary);
	border-bottom: 1px solid var(--mwb-border);
}
.mwb-sticky-header .mwb-header { position: sticky; top: 0; }
.admin-bar.mwb-sticky-header .mwb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.mwb-sticky-header .mwb-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.mwb-sticky-header .mwb-header { top: 0; } }
.mwb-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.25); }

.mwb-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--mwb-header-h); }
.mwb-header__brand { flex: none; min-width: 0; }
.mwb-logo { display: inline-flex; align-items: center; color: var(--mwb-heading) !important; }
.mwb-logo__img { display: block; width: auto; max-height: var(--mwb-logo-height); max-width: 220px; object-fit: contain; }
.mwb-logo__text { font: 800 clamp(20px, 2.4vw, 26px)/1.1 var(--mwb-font-heading); letter-spacing: -0.02em; }

.mwb-nav { flex: 1 1 auto; min-width: 0; }
@media (min-width: 961px) {
	/* Two-row masthead: brand + actions, then a full-width section bar. */
	.mwb-header__inner { flex-wrap: wrap; row-gap: 0; }
	.mwb-header__brand { padding-block: 14px; }
	.mwb-nav { order: 3; flex-basis: 100%; border-top: 1px solid var(--mwb-border); margin-inline: -8px; }
	.mwb-nav__list { flex-wrap: nowrap; }
	.mwb-nav__list a, .mwb-nav__list summary { padding: 14px 12px; border-radius: 0; }
	.mwb-nav__list a:hover, .mwb-nav__list summary:hover { background: transparent; }
	.mwb-nav__item.is-current > a { box-shadow: inset 0 -3px 0 var(--mwb-primary); }
	.mwb-sticky-header .mwb-header.is-scrolled .mwb-header__brand { padding-block: 8px; }
}
.mwb-nav__list { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; }
.mwb-nav__list > li { position: relative; }
.mwb-nav__list a, .mwb-nav__list summary {
	display: block; padding: 10px 12px; border-radius: var(--mwb-radius);
	font: 600 14px/1.2 var(--mwb-font-body); letter-spacing: .04em; text-transform: uppercase;
	color: var(--mwb-text); cursor: pointer; white-space: nowrap;
}
.mwb-nav__list summary { list-style: none; }
.mwb-nav__list summary::-webkit-details-marker { display: none; }
.mwb-nav__list summary::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.mwb-nav__list a:hover, .mwb-nav__list summary:hover { color: var(--mwb-primary); background: var(--mwb-primary-soft); }
.mwb-nav__item.is-current > a, .mwb-nav__list .current-menu-item > a, .mwb-nav__list .current-menu-ancestor > a { color: var(--mwb-primary); box-shadow: inset 0 -2px 0 var(--mwb-primary); border-radius: 0; }
.mwb-nav__sub, .mwb-nav__list .sub-menu {
	list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
	background: var(--mwb-bg); border: 1px solid var(--mwb-border); border-radius: var(--mwb-radius);
	box-shadow: 0 16px 40px -16px rgba(0,0,0,.25); z-index: 10;
}
.mwb-nav__list .sub-menu { display: none; }
.mwb-nav__list li:hover > .sub-menu, .mwb-nav__list li:focus-within > .sub-menu { display: block; }
.mwb-nav__item--more .mwb-nav__sub { left: auto; right: 0; }

.mwb-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mwb-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 0; background: transparent; color: var(--mwb-text); border-radius: var(--mwb-radius); cursor: pointer; padding: 0;
}
.mwb-iconbtn:hover { background: var(--mwb-primary-soft); color: var(--mwb-primary); }
.mwb-menu-toggle { display: none; }
.mwb-menu-toggle__close { display: none; }
.mwb-menu-toggle[aria-expanded="true"] .mwb-menu-toggle__open { display: none; }
.mwb-menu-toggle[aria-expanded="true"] .mwb-menu-toggle__close { display: inline-flex; }

.mwb-search { border-top: 1px solid var(--mwb-border); background: var(--mwb-surface); padding: 16px 0; }
.mwb-search[hidden] { display: none; }
.mwb-search__form { display: flex; gap: 8px; max-width: 720px; }
.mwb-search__input {
	flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px;
	font: 16px/1.4 var(--mwb-font-body); color: var(--mwb-text);
	background: var(--mwb-bg); border: 1px solid var(--mwb-border); border-radius: var(--mwb-radius);
}
.mwb-search__input:focus { border-color: var(--mwb-primary); outline: none; box-shadow: 0 0 0 3px var(--mwb-primary-soft); }
.mwb-search__form--inline { margin-top: 20px; }

/* Mobile navigation */
@media (max-width: 960px) {
	.mwb-menu-toggle { display: inline-flex; }
	.mwb-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--mwb-bg); border-bottom: 1px solid var(--mwb-border);
		box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
		max-height: calc(100vh - var(--mwb-header-h)); overflow-y: auto;
		display: none; padding: 8px 16px 16px;
	}
	.mwb-nav.is-open { display: block; }
	.mwb-nav__list { flex-direction: column; align-items: stretch; }
	.mwb-nav__list a, .mwb-nav__list summary { padding: 14px 8px; border-bottom: 1px solid var(--mwb-border); border-radius: 0; font-size: 15px; }
	.mwb-nav__item.is-current > a { box-shadow: inset 3px 0 0 var(--mwb-primary); padding-left: 14px; }
	.mwb-nav__sub, .mwb-nav__list .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
	.mwb-nav__item--more details[open] summary { border-bottom-color: transparent; }
	/* Without JS the menu stays visible so navigation is always reachable. */
	.no-js .mwb-nav { position: static; display: block; box-shadow: none; }
	.no-js .mwb-menu-toggle { display: none; }
}

/* ---------- Thumbnails & placeholders ---------- */
.mwb-thumb { display: block; position: relative; overflow: hidden; border-radius: var(--mwb-radius); background: var(--mwb-surface); aspect-ratio: 16 / 10; }
.mwb-thumb__img, .mwb-thumb img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .4s ease; }
.mwb-card:hover .mwb-thumb__img { transform: scale(1.03); }
.mwb-placeholder {
	position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
	background:
		radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--mwb-accent) 55%, transparent) 0%, transparent 55%),
		linear-gradient(135deg, var(--mwb-primary) 0%, var(--mwb-secondary) 100%);
	color: #fff;
}
.mwb-placeholder--1 { background: radial-gradient(120% 120% at 0% 100%, color-mix(in srgb, var(--mwb-accent) 50%, transparent) 0%, transparent 55%), linear-gradient(160deg, var(--mwb-secondary) 0%, var(--mwb-primary) 100%); }
.mwb-placeholder--2 { background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px), linear-gradient(135deg, var(--mwb-primary-dark), var(--mwb-primary)); }
.mwb-placeholder--3 { background: radial-gradient(80% 80% at 50% 0%, rgba(255,255,255,.18) 0%, transparent 60%), linear-gradient(200deg, var(--mwb-secondary), var(--mwb-primary-dark)); }
.mwb-card--overlay .mwb-placeholder__text, .mwb-card--list .mwb-placeholder__text { display: none; }
.mwb-placeholder__text { font: 800 clamp(14px, 2vw, 20px)/1.1 var(--mwb-font-heading); letter-spacing: -0.01em; opacity: .9; text-transform: uppercase; }

/* ---------- Cards ---------- */
.mwb-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mwb-card__body { display: flex; flex-direction: column; min-width: 0; }
.mwb-card__title { font-size: clamp(18px, 1.6vw, 21px); }
.mwb-card__title a:hover { color: var(--mwb-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mwb-card__excerpt { margin-top: 8px; color: var(--mwb-muted); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mwb-card__meta { margin-top: 10px; font-size: 13px; color: var(--mwb-muted); display: flex; flex-wrap: wrap; align-items: center; }

.mwb-card--hero .mwb-thumb { aspect-ratio: 16 / 9; }
.mwb-card--hero .mwb-card__title { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.025em; }
.mwb-card--hero .mwb-card__excerpt { font-size: 17px; -webkit-line-clamp: 3; }

.mwb-card--overlay { gap: 0; border-radius: var(--mwb-radius); overflow: hidden; isolation: isolate; }
.mwb-card--overlay .mwb-thumb { aspect-ratio: auto; position: absolute; inset: 0; border-radius: 0; z-index: -1; height: 100%; }
.mwb-card--overlay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.82) 100%); pointer-events: none; }
.mwb-card--overlay .mwb-card__body { min-height: 180px; justify-content: flex-end; padding: 18px; }
.mwb-card--overlay .mwb-card__title, .mwb-card--overlay .mwb-card__title a { color: #fff !important; font-size: clamp(17px, 1.5vw, 19px); }
.mwb-card--overlay .mwb-label { color: #fff !important; background: var(--mwb-primary); padding: 4px 8px; border-radius: 4px; align-self: flex-start; }
.mwb-card--overlay .mwb-card__meta, .mwb-card--overlay .mwb-dot { color: rgba(255,255,255,.85); }
.mwb-card--overlay .mwb-card__title a::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.mwb-card--overlay .mwb-label { position: relative; z-index: 1; }

.mwb-card--list { flex-direction: row; align-items: flex-start; gap: 16px; }
.mwb-card--list .mwb-thumb { flex: 0 0 38%; max-width: 220px; aspect-ratio: 4 / 3; }
.mwb-card--list .mwb-card__title { font-size: 17px; }

.mwb-card--wide { gap: 18px; }
.mwb-card--wide .mwb-thumb { aspect-ratio: 2 / 1; }
.mwb-card--wide .mwb-card__title { font-size: clamp(24px, 2.6vw, 32px); }
.mwb-card--wide .mwb-card__excerpt { font-size: 17px; -webkit-line-clamp: 4; }

.mwb-card--compact { flex-direction: row; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--mwb-border); }
.mwb-card--compact:last-child { border-bottom: 0; }
.mwb-card--compact .mwb-card__title { font-size: 16px; line-height: 1.35; }
.mwb-card--compact .mwb-card__meta { margin-top: 6px; }
.mwb-card__num { font: 800 30px/1 var(--mwb-font-heading); color: var(--mwb-primary); opacity: .35; min-width: 32px; }

/* ---------- Grids & layout ---------- */
.mwb-grid { display: grid; gap: calc(var(--mwb-gap) * 1.1) var(--mwb-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.mwb-grid--2, .mwb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.mwb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Editorial (list) and blog (wide) layouts are single column. */
.mwb-grid.mwb-grid--list, .mwb-grid.mwb-grid--wide { grid-template-columns: 1fr; }
.mwb-grid--list .mwb-card--list { padding-bottom: var(--mwb-gap); border-bottom: 1px solid var(--mwb-border); }
.mwb-grid--list .mwb-card--list .mwb-thumb { max-width: 320px; flex-basis: 40%; }
.mwb-grid--list .mwb-card--list .mwb-card__title { font-size: clamp(19px, 2vw, 24px); }
.mwb-grid--wide { gap: calc(var(--mwb-gap) * 2); max-width: 820px; }

.mwb-with-sidebar { display: grid; grid-template-columns: 1fr; gap: calc(var(--mwb-gap) * 1.5); align-items: start; }
@media (min-width: 1024px) {
	.mwb-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
	.mwb-sidebar__inner { position: sticky; top: calc(var(--mwb-header-h) + 24px); }
	.admin-bar .mwb-sidebar__inner { top: calc(var(--mwb-header-h) + 56px); }
}
.mwb-content-col { min-width: 0; }

/* ---------- Sections ---------- */
.mwb-section { padding-block: clamp(28px, 4vw, 52px); }
.mwb-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--mwb-heading); position: relative; }
.mwb-section__head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--mwb-primary); }
.mwb-section__title { font-size: clamp(20px, 2vw, 26px); text-transform: none; }
.mwb-section__more { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--mwb-font-body); color: var(--mwb-primary) !important; white-space: nowrap; }
.mwb-section__more:hover { text-decoration: underline; }
.mwb-section__more .mwb-icon { width: 16px; height: 16px; transition: transform .15s; }
.mwb-section__more:hover .mwb-icon { transform: translateX(3px); }

/* Featured */
.mwb-featured { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(8px, 2vw, 16px); }
.mwb-featured__grid { display: grid; gap: var(--mwb-gap); grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.mwb-featured__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
	.mwb-featured__grid--single { grid-template-columns: 1fr; }
	.mwb-featured__grid--single .mwb-card--hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: var(--mwb-gap); }
}
.mwb-featured__side { display: grid; gap: 16px; grid-template-columns: 1fr; align-content: start; }
@media (min-width: 560px) and (max-width: 899px) { .mwb-featured__side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .mwb-featured__side { grid-auto-rows: 1fr; } .mwb-featured__side .mwb-card--overlay .mwb-card__body { min-height: 0; height: 100%; } }

/* Load more */
.mwb-loadmore { margin-top: calc(var(--mwb-gap) * 1.2); display: flex; justify-content: center; }
.js .mwb-loadmore__btn:not([hidden]) + .mwb-loadmore__link { display: none; }
.mwb-is-new { animation: mwb-in .4s ease both; }
@keyframes mwb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Category sections */
.mwb-catsec--b { background: var(--mwb-surface); }
.mwb-catsec__grid { display: grid; gap: var(--mwb-gap); grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.mwb-catsec__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.mwb-catsec--b .mwb-catsec__lead { order: 2; }
	.mwb-catsec__grid--single { grid-template-columns: minmax(0, 1fr); }
	.mwb-catsec__grid--single .mwb-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--mwb-gap); align-items: center; }
}
.mwb-catsec__lead .mwb-card__title { font-size: clamp(22px, 2.2vw, 28px); }
.mwb-catsec__list { display: flex; flex-direction: column; gap: 20px; }
.mwb-catsec__list .mwb-card--list { padding-bottom: 20px; border-bottom: 1px solid var(--mwb-border); }
.mwb-catsec__list .mwb-card--list:last-child { border-bottom: 0; padding-bottom: 0; }
.mwb-catsec__list .mwb-card--list .mwb-thumb { max-width: 180px; }

/* Trending */
.mwb-trending__list { display: grid; gap: 0 var(--mwb-gap); grid-template-columns: 1fr; counter-reset: t; }
@media (min-width: 760px) { .mwb-trending__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mwb-trending__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Sidebar widgets */
.mwb-sidebar { min-width: 0; font-size: 15px; }
.mwb-widget { margin-bottom: 32px; }
.mwb-widget__title, .mwb-sidebar .widget-title, .mwb-sidebar .wp-block-heading {
	font: 800 13px/1.2 var(--mwb-font-body) !important; letter-spacing: .1em; text-transform: uppercase;
	padding-bottom: 10px; margin-bottom: 6px !important; border-bottom: 2px solid var(--mwb-heading);
}
.mwb-sidebar .mwb-chips { margin-top: 14px; }
.mwb-sidebar ul:not(.mwb-chips) { list-style: none; }
.mwb-sidebar ul:not(.mwb-chips) li { padding: 8px 0; border-bottom: 1px solid var(--mwb-border); }

/* Newsletter */
.mwb-newsletter { margin-block: clamp(28px, 4vw, 52px); border-radius: calc(var(--mwb-radius) * 1.5); background: var(--mwb-secondary); color: var(--mwb-on-secondary); overflow: hidden; position: relative; }
.mwb-newsletter::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--mwb-primary); opacity: .45; }
.mwb-newsletter__inner { position: relative; display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 860px) { .mwb-newsletter--band .mwb-newsletter__inner { grid-template-columns: 1fr 1fr; } }
.mwb-newsletter__title { color: inherit !important; font-size: clamp(22px, 2.6vw, 30px); }
.mwb-newsletter__text { margin-top: 8px; opacity: .85; }
.mwb-newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.mwb-newsletter input[type="email"] { flex: 1 1 220px; min-height: 48px; padding: 10px 14px; border-radius: var(--mwb-radius); border: 0; font: 16px var(--mwb-font-body); }
.mwb-newsletter--sidebar .mwb-newsletter__inner { padding: 22px; }
.mwb-newsletter--sidebar .mwb-newsletter__title { font-size: 20px; }
.mwb-newsletter--sidebar { margin-block: 0 32px; }

/* ---------- Archive head ---------- */
.mwb-archive-head { padding-block: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--mwb-border); margin-bottom: clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--mwb-primary-soft), transparent); }
.mwb-archive-head__kicker { font: 700 12px/1 var(--mwb-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mwb-primary); margin-bottom: 10px; }
.mwb-archive-head__title { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -0.03em; }
.mwb-archive-head__desc { margin-top: 12px; max-width: 720px; color: var(--mwb-muted); font-size: 18px; }
.mwb-archive-head__desc p + p { margin-top: .8em; }
.mwb-archive-lead { margin-bottom: calc(var(--mwb-gap) * 1.5); padding-bottom: calc(var(--mwb-gap) * 1.5); border-bottom: 1px solid var(--mwb-border); }
@media (min-width: 900px) {
	.mwb-archive-lead .mwb-card--hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--mwb-gap); align-items: center; }
}
.mwb-archive-body { padding-bottom: clamp(32px, 5vw, 64px); }
.mwb-page-head { padding-block: 32px 24px; }
.mwb-h1 { font-size: clamp(28px, 4vw, 44px); }
.mwb-empty { padding-block: 56px; text-align: center; color: var(--mwb-muted); }
.mwb-empty h2 { margin-bottom: 12px; }
.mwb-empty .mwb-btn { margin-top: 20px; }
.mwb-empty .mwb-search__form { margin-inline: auto; }

/* Breadcrumbs */
.mwb-breadcrumbs { font-size: 13.5px; color: var(--mwb-muted); margin-bottom: 18px; }
.mwb-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mwb-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.mwb-breadcrumbs a { text-decoration: underline; text-decoration-color: var(--mwb-border); text-underline-offset: 3px; }
.mwb-breadcrumbs [aria-current] { color: var(--mwb-text); display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* Pagination */
.mwb-pagination { margin-top: calc(var(--mwb-gap) * 1.5); }
.mwb-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mwb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--mwb-border); border-radius: var(--mwb-radius); font-weight: 600; font-size: 15px; }
.mwb-pagination a.page-numbers:hover { border-color: var(--mwb-primary); }
.mwb-pagination .current { background: var(--mwb-primary); border-color: var(--mwb-primary); color: var(--mwb-on-primary); }
.mwb-pagination .dots { border: 0; }

/* ---------- Single article ---------- */
.mwb-article__head { padding-block: clamp(24px, 4vw, 52px) clamp(20px, 3vw, 32px); }
.mwb-article__head-inner--sidebar > * { max-width: 900px; }
.mwb-article__title { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.mwb-article__dek { margin-top: 16px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--mwb-muted); }
.mwb-article__meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--mwb-border); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; color: var(--mwb-muted); }
.mwb-byline { display: inline-flex; align-items: center; gap: 10px; color: var(--mwb-text) !important; font-weight: 600; }
.mwb-byline__avatar { border-radius: 50%; width: 40px; height: 40px; }
.mwb-article__dates { display: inline-flex; flex-wrap: wrap; align-items: center; }
.mwb-article__image { margin: 0 auto clamp(24px, 4vw, 44px); }
.mwb-article__image img { width: 100%; border-radius: var(--mwb-radius); max-height: 640px; object-fit: cover; }
.mwb-article__image figcaption { margin-top: 10px; font-size: 13.5px; color: var(--mwb-muted); }
.mwb-article__body { padding-bottom: clamp(24px, 4vw, 48px); }
.mwb-article__body.mwb-with-sidebar { max-width: var(--mwb-width); }
.mwb-article__body.mwb-with-sidebar .mwb-content-col { max-width: 760px; }
.mwb-article__foot { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }

/* Content typography (post content is untouched; only styled) */
.mwb-content { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.75; overflow-wrap: break-word; }
.mwb-content > * + * { margin-top: 1.25em; }
.mwb-content > *:first-child { margin-top: 0; }
.mwb-content h1, .mwb-content h2, .mwb-content h3, .mwb-content h4, .mwb-content h5, .mwb-content h6 { margin-top: 1.8em; margin-bottom: -.35em; scroll-margin-top: calc(var(--mwb-header-h) + 20px); }
.mwb-content h1 { font-size: 1.9em; }
.mwb-content h2 { font-size: 1.55em; }
.mwb-content h3 { font-size: 1.25em; }
.mwb-content h4 { font-size: 1.1em; }
.mwb-content a { color: var(--mwb-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mwb-content a:hover { color: var(--mwb-primary-dark); text-decoration-thickness: 2px; }
.mwb-content ul, .mwb-content ol { padding-left: 1.4em; }
.mwb-content li + li { margin-top: .4em; }
.mwb-content li::marker { color: var(--mwb-primary); }
.mwb-content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--mwb-primary); font-family: var(--mwb-font-heading); font-size: 1.15em; color: var(--mwb-heading); }
.mwb-content blockquote cite { display: block; margin-top: 8px; font-size: .8em; color: var(--mwb-muted); font-style: normal; }
.mwb-content figure { margin-inline: 0; }
.mwb-content img { border-radius: calc(var(--mwb-radius) * .6); }
.mwb-content figcaption, .mwb-content .wp-element-caption { font-size: 14px; color: var(--mwb-muted); margin-top: 8px; text-align: left; }
.mwb-content table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.5; }
.mwb-content .wp-block-table, .mwb-content .mwb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mwb-content > table { display: block; overflow-x: auto; }
.mwb-content th, .mwb-content td { padding: 10px 12px; border: 1px solid var(--mwb-border); text-align: left; vertical-align: top; }
.mwb-content thead th, .mwb-content tr:first-child th { background: var(--mwb-surface); font-weight: 700; }
.mwb-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--mwb-surface) 60%, transparent); }
.mwb-content pre { background: var(--mwb-secondary); color: var(--mwb-on-secondary); padding: 18px; border-radius: var(--mwb-radius); overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.mwb-content code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--mwb-surface); padding: 2px 6px; border-radius: 4px; }
.mwb-content pre code { background: none; padding: 0; color: inherit; }
.mwb-content hr { border: 0; border-top: 1px solid var(--mwb-border); margin-block: 2.4em; }
.mwb-content .alignwide, .mwb-content .alignfull { max-width: none; }
.mwb-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.mwb-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.mwb-content .aligncenter { margin-inline: auto; text-align: center; }
.mwb-content::after { content: ""; display: table; clear: both; }
.mwb-content iframe, .mwb-content video { max-width: 100%; }
.mwb-content .wp-block-embed__wrapper iframe { width: 100%; }
@media (max-width: 600px) { .mwb-content .alignleft, .mwb-content .alignright { float: none; margin: 1em 0; max-width: 100%; } }
.mwb-page-links { margin-top: 2em; font-weight: 600; }
.mwb-page-links a, .mwb-page-links > span:not(:first-child) { display: inline-block; padding: 2px 10px; margin-left: 6px; border: 1px solid var(--mwb-border); border-radius: 6px; }

/* Share */
.mwb-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 18px; border-block: 1px solid var(--mwb-border); }
.mwb-share__label { font: 700 12px/1 var(--mwb-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mwb-muted); }
.mwb-share ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mwb-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mwb-border); background: var(--mwb-bg); color: var(--mwb-text); cursor: pointer; padding: 0; }
.mwb-share__btn:hover { background: var(--mwb-primary); border-color: var(--mwb-primary); color: var(--mwb-on-primary) !important; }
.mwb-share__btn.is-done { background: var(--mwb-accent); border-color: var(--mwb-accent); color: var(--mwb-on-accent); }
.mwb-share__btn .mwb-icon { width: 18px; height: 18px; }

/* Author box */
.mwb-authorbox { display: flex; gap: 18px; padding: 22px; border-radius: var(--mwb-radius); background: var(--mwb-surface); }
.mwb-authorbox__avatar { border-radius: 50%; flex: none; width: 72px; height: 72px; }
.mwb-authorbox__name { font: 700 18px/1.3 var(--mwb-font-heading); }
.mwb-authorbox__bio { margin-top: 6px; color: var(--mwb-muted); font-size: 15px; }

/* Prev / next */
.mwb-postnav { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mwb-postnav { grid-template-columns: 1fr 1fr; } }
.mwb-postnav__link { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--mwb-border); border-radius: var(--mwb-radius); transition: border-color .15s; }
.mwb-postnav__link:hover { border-color: var(--mwb-primary); }
.mwb-postnav__link--next { text-align: right; grid-column: -2; }
.mwb-postnav__dir { font-size: 13px; color: var(--mwb-muted); display: inline-flex; align-items: center; gap: 6px; }
.mwb-postnav__link--next .mwb-postnav__dir { justify-content: flex-end; }
.mwb-postnav__dir .mwb-icon { width: 15px; height: 15px; }
.mwb-postnav__title { font: 700 17px/1.35 var(--mwb-font-heading); color: var(--mwb-heading); }
.mwb-tags { margin: 0; }
.mwb-chips--tags a { font-size: 13.5px; }

.mwb-related { background: var(--mwb-surface); }

/* Comments */
.mwb-comments { margin-top: 48px; }
.mwb-comments__title, .mwb-comments .comment-reply-title { font-size: 24px; margin-bottom: 20px; }
.mwb-comments__list, .mwb-comments .children { list-style: none; }
.mwb-comments .children { padding-left: 24px; border-left: 2px solid var(--mwb-border); }
.mwb-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--mwb-border); font-size: 16px; }
.mwb-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mwb-comments .comment-author img { border-radius: 50%; }
.mwb-comments .comment-meta { font-size: 13px; color: var(--mwb-muted); }
.mwb-comments .comment-metadata a, .mwb-comments .reply a { color: var(--mwb-muted); font-size: 13px; }
.mwb-comments .comment-content { margin-top: 10px; }
.mwb-comments .comment-respond { margin-top: 32px; }
.mwb-comments label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.mwb-comments input[type="text"], .mwb-comments input[type="email"], .mwb-comments input[type="url"], .mwb-comments textarea {
	width: 100%; padding: 10px 14px; font: 16px/1.5 var(--mwb-font-body); color: var(--mwb-text);
	border: 1px solid var(--mwb-border); border-radius: var(--mwb-radius); background: var(--mwb-bg);
}
.mwb-comments p { margin-bottom: 16px; }
.mwb-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.mwb-comments .comment-form-cookies-consent label { font-weight: 400; }

/* Pages */
.mwb-page__head { padding-block: clamp(24px, 4vw, 52px) 24px; }
.mwb-page__title { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; }
.mwb-page__image { margin-top: 0; margin-bottom: 32px; }
.mwb-page__image img { border-radius: var(--mwb-radius); width: 100%; }
.mwb-page .mwb-content { padding-bottom: clamp(32px, 5vw, 64px); }

/* 404 */
.mwb-404 { padding-block: clamp(40px, 6vw, 80px); text-align: center; }
.mwb-404__code { font: 900 clamp(80px, 16vw, 180px)/1 var(--mwb-font-heading); color: var(--mwb-primary); opacity: .15; letter-spacing: -.05em; }
.mwb-404__title { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 12px; }
.mwb-404 > p { color: var(--mwb-muted); max-width: 560px; margin-inline: auto; }
.mwb-404__search .mwb-search__form { margin: 24px auto 0; }
.mwb-404 .mwb-section { text-align: left; }

/* ---------- Footer ---------- */
.mwb-footer { margin-top: auto; background: var(--mwb-secondary); color: var(--mwb-on-secondary); font-size: 15px; }
.mwb-footer a { color: inherit; opacity: .85; }
.mwb-footer a:hover { opacity: 1; color: inherit !important; text-decoration: underline; }
.mwb-footer__grid { display: grid; gap: 32px; padding-block: clamp(36px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .mwb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.mwb-footer__grid--3 { grid-template-columns: 1.6fr 1fr 1fr; }
	.mwb-footer__grid--4 { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
	.mwb-footer__grid--5 { grid-template-columns: 1.5fr 1fr 1fr 1.3fr 1.1fr; }
}
.mwb-footer__brand { display: inline-block; font: 800 22px/1.1 var(--mwb-font-heading); opacity: 1 !important; margin-bottom: 12px; }
.mwb-footer__about { opacity: .75; max-width: 40ch; }
.mwb-footer__title { color: inherit !important; font: 800 12px/1 var(--mwb-font-body) !important; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 16px !important; }
.mwb-footer__links, .mwb-footer__contact { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mwb-footer__latest li { display: flex; flex-direction: column; gap: 2px; }
.mwb-footer__latest time { font-size: 12.5px; opacity: .55; }
.mwb-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.mwb-footer__contact .mwb-icon { width: 18px; height: 18px; margin-top: 3px; opacity: .7; }
.mwb-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mwb-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); opacity: .9; }
.mwb-social a:hover { background: var(--mwb-primary); border-color: var(--mwb-primary); text-decoration: none; }
.mwb-social .mwb-icon { width: 18px; height: 18px; }
.mwb-footer__bottom { border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.mwb-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 18px; font-size: 13.5px; }
.mwb-footer__copy { opacity: .7; }

/* ---------- Layout variants ---------- */
.mwb-layout-editorial .mwb-section__head { border-bottom-width: 1px; }
.mwb-layout-editorial .mwb-section__title { font-weight: 400; font-style: italic; font-size: clamp(24px, 2.6vw, 32px); }
.mwb-layout-editorial .mwb-header { border-top-width: 0; }
.mwb-layout-editorial .mwb-header__inner { flex-wrap: wrap; justify-content: center; }
@media (min-width: 961px) {
	.mwb-layout-editorial .mwb-header__brand { flex-basis: 100%; text-align: center; padding-top: 18px; }
	.mwb-layout-editorial .mwb-logo__text { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
	.mwb-layout-editorial .mwb-nav { flex: 0 1 auto; border-top: 1px solid var(--mwb-border); }
	.mwb-layout-editorial .mwb-nav__list { justify-content: center; }
	.mwb-layout-editorial .mwb-header__actions { position: absolute; right: 16px; top: 16px; }
	.mwb-layout-editorial .mwb-header__inner { position: relative; }
}
.mwb-layout-blog .mwb-archive-head { background: none; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	.mwb-site *, .mwb-site *::before, .mwb-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.mwb-header, .mwb-footer, .mwb-sidebar, .mwb-share, .mwb-related, .mwb-postnav, .mwb-comments, .mwb-newsletter { display: none !important; }
	body.mwb-body { font-size: 12pt; }
}
