/* ==========================================================================
   Music Beat Daily — main stylesheet
   Breakpoints: ≤1024 tablet (mobile header), ≤840 sidebar stacks, ≤600 mobile
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Oswald"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/oswald-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/oswald-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/merriweather-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/merriweather-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/merriweather-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/merriweather-latin-700-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--mbd-font-head: "Oswald", "Arial Narrow", sans-serif;
	--mbd-font-body: "Merriweather", Georgia, serif;

	--mbd-bg: #fff;
	--mbd-text: #000;
	--mbd-ink: #111;          /* labels, column dividers */
	--mbd-rule: #000;         /* structural rules */
	--mbd-soft: #e0e0e0;
	--mbd-muted: #4d4d4d;
	--mbd-frame: #b5b5b5;     /* boxed-layout outline */
	--mbd-input: #eaeaea;
	--mbd-input-focus: #e0e0e0;
	--mbd-btn-bg: #111;
	--mbd-btn-text: #fff;
	--mbd-accent: #d6246e;    /* overridden by Customizer */

	--mbd-content: 1080px;
	--mbd-side: 260px;
	--mbd-gutter: 30px;       /* inner padding of the box */
	--mbd-stack: 10px;        /* space between card parts */
	--mbd-section-gap: 24px;
	--mbd-heading-size: 100px;
	--mbd-heading-rule: 4px;
}

[data-mode="dark"] {
	--mbd-bg: #000;
	--mbd-text: #fff;
	--mbd-ink: #fff;
	--mbd-rule: rgba(255, 255, 255, .9);
	--mbd-soft: rgba(255, 255, 255, .24);
	--mbd-muted: rgba(255, 255, 255, .7);
	--mbd-frame: rgba(255, 255, 255, .24);
	--mbd-input: #1a1a1a;
	--mbd-input-focus: #262626;
	--mbd-btn-bg: #fff;
	--mbd-btn-text: #000;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--mbd-bg);
	color: var(--mbd-text);
	font-family: var(--mbd-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--mbd-accent); }
:focus-visible { outline: 2px solid var(--mbd-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--mbd-font-head); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--mbd-bg); padding: 10px 16px; border: 2px solid var(--mbd-rule); }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], input[type="number"], textarea, select {
	font: 16px/1.4 var(--mbd-font-body);
	color: var(--mbd-text);
	background: var(--mbd-input);
	border: 1px solid var(--mbd-soft);
	border-radius: 1px;
	height: 46px;
	padding: 0 14px;
	width: 100%;
}
textarea { height: auto; padding: 12px 14px; }
input:focus, textarea:focus, select:focus { background: var(--mbd-input-focus); outline: none; border-color: var(--mbd-rule); }

/* ---------- Buttons ---------- */
.mbd-btn {
	display: inline-block;
	font-family: var(--mbd-font-head);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.mbd-btn--solid { background: var(--mbd-btn-bg); color: var(--mbd-btn-text); line-height: 24px; padding: 0 28px; }
.mbd-btn--solid:hover { background: var(--mbd-accent); color: #fff; }
.mbd-btn--outline { border: 1px solid var(--mbd-rule); line-height: 36px; padding: 0 20px; }
.mbd-btn--outline:hover { background: var(--mbd-rule); color: var(--mbd-bg); }
.mbd-btn--block { display: block; width: 100%; }
button.mbd-btn--solid, input[type="submit"] { line-height: 48px; }

.mbd-iconbtn { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; width: 36px; height: 36px; }
.mbd-iconbtn:hover { color: var(--mbd-accent); }

/* ---------- Site box ---------- */
.mbd-site {
	max-width: calc(var(--mbd-content) + 2 * var(--mbd-gutter));
	margin: 0 auto;
	padding: 20px var(--mbd-gutter) 0;
	background: var(--mbd-bg);
	position: relative;
}
.mbd--boxed .mbd-site { margin-top: 10px; margin-bottom: 20px; box-shadow: 0 0 0 1px var(--mbd-frame); }

/* ---------- Top bar (desktop nav, sticky) ---------- */
.mbd-topbar { position: sticky; top: 0; z-index: 50; background: var(--mbd-bg); margin: 0 calc(-1 * var(--mbd-gutter)); padding: 0 var(--mbd-gutter); }
.admin-bar .mbd-topbar, .admin-bar .mbd-mobilebar { top: 32px; }
.mbd-topbar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 41px;
	border-bottom: 1px solid var(--mbd-rule);
}
.mbd-topbar.is-stuck::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--mbd-rule); }
.mbd-topbar__tools { display: flex; align-items: center; gap: 2px; }
.mbd-topbar__tools .mbd-iconbtn { width: 30px; height: 36px; }

.mbd-nav .menu { list-style: none; display: flex; align-items: center; }
.mbd-nav .menu li { position: relative; list-style: none; }
.mbd-nav .menu > li > a {
	display: flex;
	align-items: center;
	font-family: var(--mbd-font-head);
	font-size: 24px;
	line-height: 40px;
	padding: 0 12px;
	white-space: nowrap;
}
.mbd-nav__chev { display: inline-flex; margin-left: 3px; opacity: .8; }
.mbd-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	width: 180px;
	list-style: none;
	background: var(--mbd-bg);
	border: 1px solid var(--mbd-rule);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.mbd-nav .sub-menu .sub-menu { top: -1px; left: 100%; }
.mbd-nav .sub-menu a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--mbd-font-head);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 28px;
	padding: 0 12px;
}
.mbd-nav .sub-menu li + li { border-top: 1px solid var(--mbd-soft); }
.mbd-nav li:hover > .sub-menu,
.mbd-nav li:focus-within > .sub-menu,
.mbd-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }

/* Mega menu (category) */
.mbd-nav .menu > li.mbd-has-mega { position: static; }
.mbd-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--mbd-bg);
	border: 1px solid var(--mbd-rule);
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility 0s .15s;
}
.mbd-nav li:hover > .mbd-mega,
.mbd-nav li:focus-within > .mbd-mega,
.mbd-nav li.is-open > .mbd-mega { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.mbd-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mbd-mega__item img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; margin-bottom: 8px; }
.mbd-mega__title { font-family: var(--mbd-font-head); font-size: 16px; font-weight: 700; line-height: 1.25; }

/* ---------- Masthead ---------- */
.mbd-masthead { padding: 14px 0; text-align: center; }
.mbd-logo { display: block; color: var(--mbd-text); }
.mbd-logo:hover { color: var(--mbd-text); }
.mbd-logo__svg { display: block; width: 100%; height: auto; overflow: visible; }
.mbd-logo__svg text { font-family: var(--mbd-font-head); font-weight: 400; font-size: 123px; fill: currentColor; }
.mbd-logo__img { margin: 0 auto; max-height: 105px; width: auto; }
.mbd-logo__img--dark { display: none; }
[data-mode="dark"] .mbd-logo__img--dark { display: block; }
[data-mode="dark"] .mbd-logo__img--dark ~ .mbd-logo__img--light,
[data-mode="dark"] .mbd-logo:has(.mbd-logo__img--dark) .mbd-logo__img--light { display: none; }
.mbd-tagline {
	margin-top: 6px;
	font-family: var(--mbd-font-head);
	font-size: 14px;
	line-height: 21px;
	letter-spacing: 10px;
	padding-left: 10px; /* balances trailing tracking */
	text-transform: uppercase;
}

/* Mode toggle: sun in light mode, moon in dark mode */
.mbd-mode .mbd-mode__sun { display: inline-flex; }
.mbd-mode .mbd-mode__moon { display: none; }
[data-mode="dark"] .mbd-mode .mbd-mode__sun { display: none; }
[data-mode="dark"] .mbd-mode .mbd-mode__moon { display: inline-flex; }

/* ---------- Mobile bar ---------- */
.mbd-mobilebar { display: none; }

/* ---------- Social ---------- */
.mbd-social { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.mbd-social a { display: inline-flex; align-items: center; justify-content: center; }
.mbd-social--plain a { width: 24px; height: 24px; }
.mbd-social--circle { justify-content: center; gap: 3px; }
.mbd-social--circle a { width: 30px; height: 30px; border: 1px solid var(--mbd-ink); border-radius: 50%; }
.mbd-social--circle a:hover { background: var(--mbd-rule); color: var(--mbd-bg); border-color: var(--mbd-rule); }
.mbd-social--circle .mbd-icon { width: 14px; height: 14px; }

/* ---------- Layout helpers ---------- */
.mbd-main { display: block; }
.mbd-container { width: 100%; }
.mbd-home > * + *, .mbd-section + .mbd-section { margin-top: var(--mbd-section-gap); }

/* Section heading: big uppercase with a heavy rule above */
.mbd-heading {
	font-family: var(--mbd-font-head);
	font-weight: 700;
	font-size: var(--mbd-heading-size);
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	border-top: var(--mbd-heading-rule) solid var(--mbd-rule);
	margin: 0 0 24px;
	overflow-wrap: anywhere;
}

.mbd-viewall { margin-top: 29px; text-align: center; }
.mbd-viewall .mbd-btn { width: 33.333%; }

/* ---------- Meta ---------- */
.mbd-meta {
	font-family: var(--mbd-font-head);
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.mbd-meta--cat { font-size: 11px; letter-spacing: 1px; color: var(--mbd-ink); }
.mbd-meta--cat a:hover { color: var(--mbd-accent); }
.mbd-sep { display: inline-block; margin: 0 6px; opacity: .6; }

/* ---------- Cards (shared) ---------- */
.mbd-card { position: relative; }
.mbd-thumb { margin: 0; position: relative; overflow: hidden; }
.mbd-thumb a { display: block; }
.mbd-thumb__img { width: 100%; object-fit: cover; }
.mbd-thumb__badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	color: #fff;
}
.mbd-card__title { font-family: var(--mbd-font-head); font-weight: 700; line-height: 1.2; }
.mbd-card__excerpt { line-height: 1.5; }
.mbd-card__body > * + * { margin-top: var(--mbd-stack); }
.mbd-card > .mbd-thumb { margin-bottom: var(--mbd-stack); }

/* Hero */
.mbd-card--hero .mbd-thumb__img { aspect-ratio: 3 / 2; }
.mbd-card--hero .mbd-card__title { font-size: 4em; }
.mbd-card--hero .mbd-card__excerpt { font-size: 1.3em; }
.mbd-card--hero .mbd-btn { margin-top: calc(var(--mbd-stack) + 8px); }

/* Grid */
.mbd-grid {
	--c: var(--cols, 4);
	--gap: 32px;
	display: grid;
	grid-template-columns: repeat(var(--c), minmax(0, 1fr));
	column-gap: var(--gap);
	row-gap: 40px;
}
/* Vertical rules centred in each column gap (drawn once, any row count) */
.mbd-grid--dividers {
	--colw: calc((100% - (var(--c) - 1) * var(--gap)) / var(--c));
	background-image: repeating-linear-gradient(90deg,
		transparent 0 calc(var(--colw) + var(--gap) / 2 - .5px),
		var(--mbd-ink) 0 calc(var(--colw) + var(--gap) / 2 + .5px),
		transparent 0 calc(var(--colw) + var(--gap)));
}
.mbd-card--grid .mbd-thumb__img { aspect-ratio: 5 / 4; }
.mbd-card--grid .mbd-card__title { font-size: 1.44em; }
.mbd-card--grid .mbd-card__excerpt { font-size: 14px; }
.mbd-grid--5 .mbd-card__title, .mbd-related .mbd-card__title { font-size: 1.1em; }

/* Feature (editor's pick) */
.mbd-card--feature { display: flex; align-items: center; }
.mbd-card--feature > .mbd-thumb { width: 50%; flex: 0 0 50%; padding-right: 40px; margin: 0; }
.mbd-card--feature .mbd-thumb__img { aspect-ratio: 792 / 1024; }
.mbd-card--feature .mbd-card__body { flex: 1; min-width: 0; }
.mbd-card--feature .mbd-card__title { font-size: 2.986em; }
.mbd-card--feature .mbd-card__excerpt { font-size: 1.15em; margin-bottom: 50px; }
.mbd-author { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mbd-font-head); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.mbd-author__avatar { width: 32px; height: 32px; border-radius: 50%; }

/* Carousel */
.mbd-carousel { position: relative; }
.mbd-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	column-gap: 32px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.mbd-carousel__track::-webkit-scrollbar { display: none; }
.mbd-carousel__slide { scroll-snap-align: start; }
.mbd-card--slide { position: relative; }
.mbd-card--slide > .mbd-thumb { margin: 0; }
.mbd-card--slide .mbd-thumb__img { aspect-ratio: 2 / 1; }
.mbd-card--slide .mbd-card__body {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 600px;
	max-width: 100%;
	transform: translateX(-50%);
	background: #000;
	color: #fff;
	padding: 44px 40px 46px;
}
.mbd-card--slide .mbd-card__title { font-family: var(--mbd-font-body); font-weight: 400; font-size: 1.728em; }
.mbd-card--slide .mbd-card__title a:hover { color: #fff; opacity: .8; }
.mbd-card--slide .mbd-card__excerpt { font-size: .9em; }
.mbd-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	z-index: 2;
}
.mbd-carousel__nav:hover { background: rgba(0, 0, 0, .75); }
.mbd-carousel__nav--prev { left: 0; }
.mbd-carousel__nav--next { right: 0; }

/* List */
.mbd-list > * + * { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--mbd-rule); }
.mbd-card--list { display: flex; align-items: flex-start; }
.mbd-card--list > .mbd-thumb { width: 40%; flex: 0 0 40%; padding-right: 24px; margin: 0; }
.mbd-card--list .mbd-thumb__badge { left: 10px; }
.mbd-card--list .mbd-thumb__img { aspect-ratio: 5 / 4; }
.mbd-card--list .mbd-card__body { flex: 1; min-width: 0; }
.mbd-card--list .mbd-card__title { font-size: 26px; }
.mbd-card--list .mbd-card__title + .mbd-meta { margin-top: 8px; }
.mbd-card--list .mbd-btn { margin-top: calc(var(--mbd-stack) + 8px); }

/* Main + sidebar */
.mbd-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) var(--mbd-side); column-gap: 32px; align-items: start; }
.mbd-with-sidebar > :only-child { grid-column: 1 / -1; }
.mbd-with-sidebar .mbd-viewall .mbd-btn { width: 33.333%; }
.mbd-sidebar { position: relative; align-self: stretch; }
.mbd-sidebar::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; border-left: 1px solid var(--mbd-rule); }
.mbd-sidebar__sticky { position: sticky; top: 56px; }

/* ---------- Widgets ---------- */
.widget { font-size: .9em; }
.widget + .widget { margin-top: 24px; }
.widget-title {
	font-family: var(--mbd-font-head);
	font-size: 10px;
	font-weight: 400;
	line-height: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-align: center;
	background: var(--mbd-rule);
	color: var(--mbd-bg);
	padding: 5px 0 5px 3px;
	margin: 0 0 10px;
}
.widget ul { list-style: none; }
.widget_categories li, .widget_archive li, .widget_recent_entries li, .widget_pages li, .widget_nav_menu li, .widget_meta li, .wp-block-latest-posts li, .wp-block-categories li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	line-height: 1.5;
}
.widget_categories li + li, .widget_archive li + li, .widget_recent_entries li + li, .widget_pages li + li, .widget_nav_menu li + li, .widget_meta li + li, .wp-block-latest-posts li + li, .wp-block-categories li + li { border-top: 1px solid var(--mbd-rule); }
.widget_categories .children { display: none; }
.widget .tagcloud, .wp-block-tag-cloud { font-family: var(--mbd-font-head); line-height: 1.3; }
.widget .tagcloud a, .wp-block-tag-cloud a { display: inline-block; margin: 0 3px 2px 0; }
.mbd-about__img { width: 100%; margin-bottom: 14px; }
.mbd-about__text { margin-bottom: 14px; line-height: 1.5; }
.mbd-about__text p + p { margin-top: .8em; }
.mbd-subscribe { display: flex; flex-direction: column; gap: 8px; }
.mbd-subscribe__text { margin-bottom: 10px; }
.mbd-notice { font-size: 12px; opacity: .7; }

/* Popular (ranked) */
.mbd-ranked > * + * { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--mbd-rule); }
.mbd-card--ranked .mbd-card__media { position: relative; margin-bottom: 10px; }
.mbd-card--ranked .mbd-thumb__img { aspect-ratio: 3 / 2; }
.mbd-card__rank {
	position: absolute;
	right: 10px;
	bottom: 4px;
	font-family: var(--mbd-font-body);
	font-style: italic;
	font-size: 2.4em;
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.mbd-card--ranked .mbd-card__title { font-size: 1.15em; }
.mbd-card--ranked .mbd-card__excerpt { margin-top: 8px; }

/* Authors */
.mbd-authors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mbd-authors img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Footer ---------- */
.mbd-footer { margin: 40px calc(-1 * var(--mbd-gutter)) 0; }
.mbd-footer__widgets {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	border-top: 1px solid var(--mbd-rule);
	padding: 20px 10px 20px;
}
.mbd-footer__col { padding: 0 20px; }
.mbd-footer__col + .mbd-footer__col { border-left: 1px solid var(--mbd-ink); }
.mbd-footer__bottom {
	border-top: 1px solid var(--mbd-rule);
	padding: 50px var(--mbd-gutter) 68px;
	text-align: center;
}
.mbd-logo--footer { width: 320px; max-width: 100%; margin: 0 auto; }
.mbd-footer__bottom .mbd-social { margin-top: 26px; }
.mbd-footer__copy { margin-top: 26px; font-size: .8em; line-height: 1.5; }
.mbd-footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 27px; }
.mbd-footer__nav a { font-family: var(--mbd-font-head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Back to top ---------- */
.mbd-totop {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 40;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 60px;
	padding: 6px 4px;
	background: var(--mbd-bg);
	color: var(--mbd-text);
	border: 2px solid var(--mbd-rule);
	font-family: var(--mbd-font-head);
	text-transform: uppercase;
	line-height: 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.mbd-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.mbd-totop__small { font-size: 9px; letter-spacing: .5px; }
.mbd-totop__big { font-size: 17px; font-weight: 700; margin-top: 3px; }

/* ---------- Off-canvas ---------- */
.mbd-oc[hidden] { display: none; }
.mbd-oc { position: fixed; inset: 0; z-index: 200; }
.mbd-oc__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); opacity: 0; transition: opacity .25s; }
.mbd-oc__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 320px;
	max-width: 88vw;
	overflow-y: auto;
	background: var(--mbd-bg);
	padding: 56px 16px 24px;
	transform: translateX(-100%);
	transition: transform .25s ease;
}
.mbd-oc.is-open .mbd-oc__overlay { opacity: 1; }
.mbd-oc.is-open .mbd-oc__panel { transform: none; }
.mbd-oc__close { position: absolute; top: 10px; right: 10px; }
.mbd-oc__nav { margin: 20px 0; }
.mbd-oc__nav .menu, .mbd-oc__nav .sub-menu { list-style: none; }
.mbd-oc__nav li { position: relative; border-bottom: 1px solid var(--mbd-soft); }
.mbd-oc__nav a { display: block; padding: 10px 40px 10px 0; font-family: var(--mbd-font-head); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.mbd-oc__nav .sub-menu { display: none; padding-left: 14px; border-top: 1px solid var(--mbd-soft); }
.mbd-oc__nav .sub-menu li:last-child { border-bottom: 0; }
.mbd-oc__nav li.is-open > .sub-menu { display: block; }
.mbd-oc__toggle { position: absolute; top: 4px; right: 0; width: 36px; height: 34px; background: none; border: 0; display: flex; align-items: center; justify-content: center; }
.mbd-oc__nav li.is-open > .mbd-oc__toggle svg { transform: rotate(180deg); }
.mbd-oc__widgets { margin-top: 24px; }
body.mbd-lock { overflow: hidden; }

/* ---------- Search overlay ---------- */
.mbd-search[hidden] { display: none; }
.mbd-search { position: fixed; inset: 0; z-index: 210; background: var(--mbd-bg); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mbd-search__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; }
.mbd-search__inner { width: min(760px, 100%); }
.mbd-searchform { display: flex; align-items: stretch; }
.mbd-searchform input[type="search"] { flex: 1; }
.mbd-searchform button { width: 46px; border: 1px solid var(--mbd-soft); border-left: 0; background: var(--mbd-input); display: flex; align-items: center; justify-content: center; }
.mbd-search .mbd-searchform input[type="search"] { height: auto; background: none; border: 0; border-bottom: 3px solid var(--mbd-rule); padding: 8px 0; font: 700 clamp(28px, 6vw, 56px)/1.2 var(--mbd-font-head); }
.mbd-search .mbd-searchform button { background: none; border: 0; border-bottom: 3px solid var(--mbd-rule); width: 60px; }

/* ---------- Title bars (archive, search, 404) ---------- */
.mbd-titlebar { text-align: center; padding: 20px 0 32px; }
.mbd-titlebar__avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; }
.mbd-titlebar__label { display: block; font-family: var(--mbd-font-head); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 6px; }
.mbd-titlebar__title { font-size: 64px; line-height: 1.05; text-transform: uppercase; }
.mbd-titlebar__desc { max-width: 640px; margin: 14px auto 0; }
.mbd-titlebar__search { max-width: 520px; margin: 20px auto 0; }
.mbd-archive-top { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--mbd-rule); }
.mbd-none { padding: 40px 0; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--mbd-rule); font-family: var(--mbd-font-head); font-size: 15px; }
.pagination .page-numbers.current { background: var(--mbd-rule); color: var(--mbd-bg); }
.pagination .dots { border: 0; }

/* ---------- Single & page ---------- */
.mbd-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.admin-bar .mbd-progress { top: 32px; }
.mbd-progress__bar { display: block; height: 100%; width: 100%; background: var(--mbd-accent); transform-origin: 0 50%; transform: scaleX(0); }
.mbd-single__thumb { margin: 0 0 28px; }
.mbd-single__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mbd-single__thumb figcaption, .wp-caption-text, .wp-element-caption { font-size: .7em; color: var(--mbd-muted); margin-top: 8px; }
.mbd-single__header { margin-bottom: 28px; }
.mbd-single__header > * + * { margin-top: 12px; }
.mbd-single__title { font-size: 2.986em; line-height: 1.15; }
.mbd-single__dek { font-size: 1.15em; line-height: 1.55; color: var(--mbd-muted); }
.mbd-single__meta { display: flex; flex-wrap: wrap; align-items: center; }

.mbd-content { font-size: 1.1em; line-height: 1.75; overflow-wrap: break-word; }
.mbd-content > * + * { margin-top: 1.3em; }
.mbd-content h2 { font-size: 33px; margin-top: 1.6em; }
.mbd-content h3 { font-size: 26px; margin-top: 1.5em; }
.mbd-content h4 { font-size: 20px; margin-top: 1.4em; }
.mbd-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mbd-content ul, .mbd-content ol { padding-left: 1.3em; }
.mbd-content li + li { margin-top: .4em; }
.mbd-content img { max-width: 100%; }
.mbd-content figure { margin-left: 0; margin-right: 0; }
.mbd-content .alignwide, .mbd-content .alignfull { margin-left: 0; margin-right: 0; }
.mbd-content > p:first-of-type::first-letter {
	float: left;
	font-family: var(--mbd-font-head);
	font-weight: 700;
	font-size: 4.3em;
	line-height: .82;
	margin: .08em .1em 0 0;
}
.mbd-content blockquote, .wp-block-quote {
	margin: 1.8em 0;
	padding: 0;
	border: 0;
	text-align: center;
	font-size: 1.1em;
	font-style: italic;
}
.mbd-content blockquote::before { content: "\201C"; display: block; font: 700 72px/0.9 var(--mbd-font-head); }
.mbd-content blockquote cite { display: block; margin-top: 10px; font: normal 12px/1.4 var(--mbd-font-head); letter-spacing: 2px; text-transform: uppercase; }
.mbd-content table { width: 100%; border-collapse: collapse; font-size: .9em; }
.mbd-content th, .mbd-content td { border: 1px solid var(--mbd-soft); padding: 8px 10px; text-align: left; }
.mbd-content pre { background: var(--mbd-input); padding: 16px; overflow-x: auto; font-size: .85em; }

.mbd-subheading { font-size: 1.728em; letter-spacing: 3px; text-transform: uppercase; text-align: center; margin-bottom: 20px; }
.mbd-share { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 40px; }
.mbd-share__label { font-family: var(--mbd-font-head); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.mbd-share ul { list-style: none; display: flex; gap: 6px; }
.mbd-share a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--mbd-rule); }
.mbd-share a:hover { background: var(--mbd-rule); color: var(--mbd-bg); }
.mbd-tags { margin-top: 40px; text-align: center; }
.mbd-tags ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mbd-tags a { display: inline-block; font-family: var(--mbd-font-head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--mbd-rule); padding: 4px 10px; }
.mbd-tags a:hover { background: var(--mbd-ink); color: var(--mbd-bg); }
.mbd-related { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--mbd-rule); }
.mbd-authorbox { display: flex; gap: 24px; align-items: flex-start; margin-top: 48px; padding: 24px; border: 1px solid var(--mbd-rule); }
.mbd-authorbox__avatar { width: 96px; height: 96px; border-radius: 50%; flex: 0 0 96px; }
.mbd-authorbox__name { font-size: 22px; margin-bottom: 8px; }
.mbd-authorbox__text p { font-size: .9em; }
.mbd-authorbox__more { display: inline-block; margin-top: 10px; font-family: var(--mbd-font-head); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.mbd-more { margin-top: 48px; }
.mbd-page__header { text-align: center; padding: 20px 0 32px; }
.mbd-page__title { font-size: 4em; line-height: 1.05; text-transform: uppercase; }
.mbd-page__thumb { margin: 0 0 28px; }

/* Comments */
.mbd-comments { margin-top: 48px; }
.mbd-comments__list, .mbd-comments__list .children { list-style: none; }
.mbd-comments__list .children { padding-left: 32px; }
.mbd-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--mbd-soft); }
.mbd-comments .comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--mbd-font-head); font-size: 16px; }
.mbd-comments .comment-author img { border-radius: 50%; }
.mbd-comments .comment-metadata { font-family: var(--mbd-font-head); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .7; margin: 4px 0 10px; }
.comment-form p { margin-top: 14px; }
.comment-form label { display: block; font-family: var(--mbd-font-head); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.comment-form .comment-form-cookies-consent label { display: inline; text-transform: none; letter-spacing: 0; font-family: var(--mbd-font-body); }

/* Up-next dock */
.mbd-dock { position: fixed; right: 30px; bottom: 100px; z-index: 45; width: 300px; background: var(--mbd-bg); border: 2px solid var(--mbd-rule); padding: 14px; transform: translateX(calc(100% + 40px)); transition: transform .3s ease; }
.mbd-dock[hidden] { display: block; visibility: hidden; }
.mbd-dock.is-visible { transform: none; visibility: visible; }
.mbd-dock__label { display: block; font-family: var(--mbd-font-head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.mbd-dock__post { display: flex; gap: 12px; align-items: center; font-family: var(--mbd-font-head); font-weight: 700; font-size: 16px; line-height: 1.25; }
.mbd-dock__post img { width: 72px; height: 72px; object-fit: cover; flex: 0 0 72px; }
.mbd-dock__close { position: absolute; top: 6px; right: 6px; background: none; border: 0; padding: 4px; }

/* ==========================================================================
   Tablet ≤ 1024
   ========================================================================== */
@media (max-width: 1024px) {
	:root { --mbd-gutter: 12px; --mbd-stack: 8px; --mbd-heading-size: 60px; }
	.mbd--boxed .mbd-site { margin: 0 auto; box-shadow: none; }
	.mbd-site { padding-top: 0; max-width: none; }
	.mbd-topbar, .mbd-masthead { display: none; }
	.mbd-mobilebar {
		position: sticky;
		top: 0;
		z-index: 50;
		display: grid;
		grid-template-columns: 44px 1fr 44px;
		align-items: center;
		height: 52px;
		margin: 0 calc(-1 * var(--mbd-gutter)) 12px;
		padding: 0 4px;
		background: var(--mbd-bg);
		border-bottom: 1px solid var(--mbd-rule);
	}
	.mbd-mobilebar .mbd-logo { justify-self: center; width: 250px; max-width: 100%; }
	.mbd-mobilebar .mbd-logo__img { max-height: 30px; }
	.mbd-mobilebar .mbd-iconbtn { width: 44px; height: 44px; }

	.mbd-card--hero .mbd-card__title { font-size: 2.8em; }
	.mbd-card--hero .mbd-card__excerpt { font-size: 1.25em; }
	.mbd-grid { --c: min(var(--cols, 4), 2); --gap: 24px; row-gap: 30px; }
	.mbd-grid--5 { --c: 3; }
	.mbd-card--grid .mbd-card__title { font-size: 1.2em; }
	.mbd-card--grid .mbd-card__excerpt { font-size: 13px; }
	.mbd-card--feature > .mbd-thumb { padding-right: 20px; }
	.mbd-card--feature .mbd-card__title { font-size: 2.25em; }
	.mbd-card--feature .mbd-card__excerpt { font-size: 1em; margin-bottom: 30px; }
	.mbd-carousel__track { column-gap: 16px; }
	.mbd-card--slide .mbd-card__title { font-size: 1.4em; }
	.mbd-card--slide .mbd-card__body { padding: 20px; }
	.mbd-card--list > .mbd-thumb { padding-right: 16px; }
	.mbd-card--list .mbd-card__title { font-size: 22px; }
	.mbd-list > * + * { margin-top: 10px; padding-top: 10px; }
	.mbd-single__title { font-size: 2.25em; }
	.mbd-page__title { font-size: 3em; }
	.mbd-titlebar__title { font-size: 48px; }
	.mbd-footer__bottom { padding: 30px var(--mbd-gutter) 40px; }
	.mbd-footer__bottom .mbd-social { margin-top: 16px; }
	.mbd-footer__copy, .mbd-footer__nav ul { margin-top: 16px; }
	.admin-bar .mbd-mobilebar { top: 46px; }
}
@media (max-width: 782px) { .admin-bar .mbd-mobilebar { top: 46px; } }

/* ==========================================================================
   Sidebar stacks ≤ 840
   ========================================================================== */
@media (max-width: 840px) {
	.mbd-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
	.mbd-sidebar::before { display: none; }
	.mbd-sidebar { padding-top: 24px; border-top: 1px solid var(--mbd-rule); }
	.mbd-sidebar__sticky { position: static; }
	.mbd-footer__widgets { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding: 20px var(--mbd-gutter); }
	.mbd-footer__col { padding: 0; }
	.mbd-footer__col + .mbd-footer__col { border-left: 0; }
}

/* ==========================================================================
   Mobile ≤ 600
   ========================================================================== */
@media (max-width: 600px) {
	body { font-size: 14px; }
	:root { --mbd-gutter: 10px; --mbd-stack: 6px; --mbd-heading-size: 30px; --mbd-heading-rule: 2px; --mbd-section-gap: 16px; }
	.mbd-heading { margin-bottom: 14px; }
	.mbd-card--hero .mbd-card__title { font-size: 1.6em; }
	.mbd-card--hero .mbd-card__excerpt { font-size: 1em; }
	.mbd-grid { --gap: 10px; row-gap: 14px; }
	.mbd-grid--5, .mbd-related .mbd-grid, .mbd-archive-top { --c: 1; }
	.mbd-card--grid .mbd-card__title { font-size: 1.1em; }
	.mbd-card--grid .mbd-card__excerpt { font-size: 12px; }
	.mbd-viewall .mbd-btn, .mbd-with-sidebar .mbd-viewall .mbd-btn { width: 100%; }
	.mbd-viewall { margin-top: 16px; }
	.mbd-card--feature { display: block; }
	.mbd-card--feature > .mbd-thumb { width: 100%; padding: 0; margin-bottom: var(--mbd-stack); }
	.mbd-card--feature .mbd-card__title { font-size: 2em; }
	.mbd-card--feature .mbd-card__excerpt { font-size: 1.1em; margin-bottom: 20px; }
	.mbd-carousel__track { column-gap: 16px; }
	.mbd-card--slide .mbd-card__body { position: static; transform: none; width: 100%; padding: 10px; }
	.mbd-card--slide .mbd-card__title { font-size: 1.2em; }
	.mbd-card--slide .mbd-card__excerpt { font-size: .85em; }
	.mbd-carousel__nav { width: 32px; height: 50px; top: calc(50% - 60px); }
	.mbd-card--list > .mbd-thumb { width: 30%; flex-basis: 30%; padding-right: 8px; }
	.mbd-card--list .mbd-card__title { font-size: 19px; }
	.mbd-card--list .mbd-thumb__badge { left: 6px; bottom: 6px; }
	.mbd-list > * + * { margin-top: 5px; padding-top: 5px; }
	.mbd-footer__bottom { padding: 24px var(--mbd-gutter) 28px; }
	.mbd-footer__bottom .mbd-social, .mbd-footer__copy, .mbd-footer__nav ul { margin-top: 12px; }
	.mbd-single__title { font-size: 1.7em; }
	.mbd-page__title { font-size: 2.2em; }
	.mbd-titlebar__title { font-size: 34px; }
	.mbd-authorbox { flex-direction: column; }
	.mbd-totop { right: 14px; bottom: 14px; }
	.mbd-dock { right: 10px; left: 10px; width: auto; bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
