/*
 * MedBriefings 3.0 – Warm Modern
 * Layout, components and motion beyond theme.json.
 * Motion: CSS only (view transitions, scroll-driven animations), respects reduced motion.
 */

:root {
	--mb-ease: cubic-bezier(.2, .7, .2, 1);
	--mb-header-h: 4.5rem;
	--mb-line: var(--wp--preset--color--line);
	--mb-muted: var(--wp--preset--color--ink-soft);
	--mb-accent: var(--wp--preset--color--accent);
	color-scheme: light;
	scroll-padding-top: calc(var(--mb-header-h) + 1rem);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: clip; }
body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "kern", "liga", "calt";
	font-synthesis: none;
}
::selection { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--ink); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--mb-accent); outline-offset: 3px; border-radius: 4px; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li, dd) { text-wrap: pretty; }
em { font-style: italic; }
:where(h1, h2, h3) em { color: var(--wp--preset--color--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
img { height: auto; }
.screen-reader-text:not(:focus) { word-break: normal; }

/* ── View transitions (cross-document, no JS) ──────────────── */
@view-transition { navigation: auto; }
.mb-brand { view-transition-name: mb-brand; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--mb-ease); }
::view-transition-old(root) { animation-name: mb-vt-out; }
::view-transition-new(root) { animation-name: mb-vt-in; }
@keyframes mb-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes mb-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Header ────────────────────────────────────────────────── */
.mb-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .mb-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
.mb-header {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--mb-ease), box-shadow .3s var(--mb-ease);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would become the
   containing block of the fixed-position mobile navigation overlay and clip it. */
.mb-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--base) 86%, transparent);
	backdrop-filter: saturate(1.2) blur(14px);
	-webkit-backdrop-filter: saturate(1.2) blur(14px);
}
@supports (animation-timeline: scroll()) {
	.mb-header { animation: mb-header-scrolled linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
	@keyframes mb-header-scrolled {
		to { border-bottom-color: var(--mb-line); box-shadow: 0 10px 30px -24px rgb(60 40 20 / .5); }
	}
}
.mb-header__bar { min-height: var(--mb-header-h); gap: 1rem; }
.mb-brand { flex: none; }
.mb-brand .wp-block-site-title a { display: inline-flex; align-items: center; gap: .55rem; }
.mb-brand .wp-block-site-title a::before {
	content: ""; width: 1.55rem; height: 1.55rem; flex: none; border-radius: 7px;
	background:
		radial-gradient(circle at 70% 30%, var(--wp--preset--color--clay) 0 22%, transparent 23%),
		var(--wp--preset--color--accent);
	box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15);
}
.wp-block-site-logo + .wp-block-site-title a::before { display: none; }

.mb-nav .wp-block-navigation-item__content { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding-block: .5rem; white-space: nowrap; }
.mb-nav .wp-block-navigation-item[class*="mb-topic--"] > .wp-block-navigation-item__content::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mb-topic, var(--mb-accent)); opacity: .85;
}
.mb-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1.5px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--mb-ease);
}
.mb-nav .wp-block-navigation-item__content:hover::after,
.mb-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.mb-topic--sage { --mb-topic: var(--wp--preset--color--topic-sage); }
.mb-topic--ochre { --mb-topic: var(--wp--preset--color--topic-ochre); }
.mb-topic--slate { --mb-topic: var(--wp--preset--color--topic-slate); }
.mb-topic--plum { --mb-topic: var(--wp--preset--color--topic-plum); }
.mb-topic--clay { --mb-topic: var(--wp--preset--color--topic-clay); }
.mb-topic--brick { --mb-topic: var(--wp--preset--color--topic-brick); }

.mb-header__actions { flex: none; }
.mb-header__search .wp-block-search__button {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
	border: 0; border-radius: 10px; background: transparent; color: var(--wp--preset--color--ink);
}
.mb-header__search .wp-block-search__button:hover { background: var(--wp--preset--color--oat); }
.mb-header__search .wp-block-search__input { border-radius: 10px; border: 1px solid var(--mb-line); background: var(--wp--preset--color--surface); min-height: 44px; padding-inline: .9rem; }
.mb-header__search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; }
.mb-header__cta .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; padding: .6rem 1.05rem; }
.wp-block-button__link { transition: background-color .2s var(--mb-ease), transform .12s var(--mb-ease), color .2s var(--mb-ease); }
.wp-block-button__link:active { transform: translateY(1px) scale(.985); }

@media (max-width: 1180px) {
	.mb-nav { --wp--style--block-gap: 1rem; }
	.mb-nav .wp-block-navigation-item__content { font-size: .88rem; }
}
@media (max-width: 1040px) {
	.mb-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.mb-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
}
@media (max-width: 1040px) {
	.mb-header__bar > .mb-nav { order: 3; }
}
/* Mega menu from 1200px; below, the core navigation opens the native overlay. */
@media (max-width: 1199px) {
	.mb-mega-desktop { display: none !important; }
	.mb-header__bar > .mb-nav { order: 3; }
}
@media (min-width: 1200px) {
	.mb-mega-desktop ~ .mb-nav { display: none !important; }
}
.mb-header__bar { align-items: stretch !important; }
.mb-header__bar > * { align-self: center; }
.mb-header__bar > .mb-mega-desktop { align-self: stretch; }
@media (max-width: 782px) {
	.mb-hide-mobile { display: none !important; }
	:root { --mb-header-h: 4rem; }
}

/* Mobile navigation overlay (template part "navigation-overlay", WP 7.0) */
.mb-overlay { min-height: 100dvh; }
.mb-overlay__label { margin: 0; font: 700 .75rem/1 var(--wp--preset--font-family--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mb-muted); }
.mb-overlay__topics { margin: 0; padding: 0; list-style: none; display: grid; }
.mb-overlay__topics li { border-top: 1px solid var(--mb-line); }
.mb-overlay__topics li:last-child { border-bottom: 1px solid var(--mb-line); }
.mb-overlay__topics a {
	display: flex; align-items: center; gap: .75rem; padding: .9rem 0;
	font: 500 clamp(1.6rem, 7vw, 2.1rem)/1.1 var(--wp--preset--font-family--serif); letter-spacing: -.015em;
	color: var(--wp--preset--color--ink); text-decoration: none;
}
.mb-overlay__topics a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mb-topic, var(--mb-accent)); }
.is-menu-open .mb-overlay__topics li { animation: mb-rise-in .45s var(--mb-ease) both; }
.is-menu-open .mb-overlay__topics li:nth-child(2) { animation-delay: .04s; }
.is-menu-open .mb-overlay__topics li:nth-child(3) { animation-delay: .08s; }
.is-menu-open .mb-overlay__topics li:nth-child(4) { animation-delay: .12s; }
.is-menu-open .mb-overlay__topics li:nth-child(5) { animation-delay: .16s; }
.is-menu-open .mb-overlay__topics li:nth-child(6) { animation-delay: .2s; }
.mb-overlay__footer { margin-top: auto; }

/* ── Sections & shared ─────────────────────────────────────── */
.mb-section { position: relative; }
.mb-section + .mb-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--mb-line); }
.mb-band-wrap::before, .mb-band-wrap + .mb-section::before { display: none; }
.mb-eyebrow {
	margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: .78rem; font-weight: 700;
	line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; color: var(--mb-muted);
}
.is-style-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--mb-muted); }
.wp-block-heading.is-style-eyebrow { font-family: var(--wp--preset--font-family--sans); font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wp--preset--color--clay); }
.mb-more { margin: 0; }
.mb-more a {
	display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem;
	color: var(--wp--preset--color--ink); text-decoration: none; padding-block: .35rem;
	border-bottom: 1.5px solid var(--wp--preset--color--ink);
	transition: gap .25s var(--mb-ease), color .2s var(--mb-ease), border-color .2s var(--mb-ease);
}
.mb-more a::after { content: "→"; font-family: var(--wp--preset--font-family--sans); }
.mb-more a:hover { gap: .8rem; color: var(--mb-accent); border-color: var(--mb-accent); }

.mb-meta { font-size: var(--wp--preset--font-size--xs); color: var(--mb-muted); }
.mb-meta > * + *::before { content: "·"; margin-right: .5rem; color: var(--mb-line); }
.mb-meta .wp-block-post-author-name { font-size: inherit; font-weight: 600; }
.mb-updated:not(:empty)::before { content: "Aktualisiert "; }
.mb-updated.wp-block-post-date:empty { display: none; }

.mb-empty { padding: 2rem; border: 1px dashed var(--mb-line); border-radius: 12px; color: var(--mb-muted); text-align: center; }
.mb-count { color: var(--mb-muted); }

/* ── Cards (query loops) ───────────────────────────────────── */
.mb-card-post { height: 100%; }
.mb-card-post__media, .mb-card-post .wp-block-post-featured-image { overflow: hidden; border-radius: 12px; background: var(--wp--preset--color--oat); isolation: isolate; }
.mb-card-post .wp-block-post-featured-image img { transition: transform .9s var(--mb-ease), filter .6s var(--mb-ease); }
.mb-card-post:hover .wp-block-post-featured-image img { transform: scale(1.035); }
.mb-card-post .wp-block-post-title a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .35s var(--mb-ease), color .2s var(--mb-ease);
	padding-bottom: 1px;
}
.mb-card-post .wp-block-post-title a:hover { background-size: 100% 1px; }
.mb-card-post .wp-block-post-excerpt { margin: 0; }
.mb-card-post .wp-block-post-excerpt__excerpt { margin: 0; }
.mb-card-post .mb-meta { margin-top: auto; }
.mb-card-post--lead .wp-block-post-title { font-size: clamp(1.6rem, 2.6vw, 2.3rem) !important; line-height: 1.12; }
.mb-card-post--row { padding: 1.25rem 0; border-top: 1px solid var(--mb-line); }
.mb-stack .wp-block-post-template { gap: 0; }
.mb-stack .wp-block-post-template > li:first-child .mb-card-post--row { padding-top: 0; border-top: 0; }
.mb-card-post--text { padding-top: 1.25rem; border-top: 2px solid var(--wp--preset--color--ink); }
.mb-textlist .wp-block-post-template { row-gap: 2.5rem; }

/* Numbered editorial list ("Die Lage") */
.is-style-numbered { counter-reset: mblage; }
.is-style-numbered > li { counter-increment: mblage; position: relative; display: grid; grid-template-columns: 3.25rem 1fr; padding-block: 1.5rem; border-top: 1px solid var(--mb-line); }
.is-style-numbered > li:first-child { border-top: 0; padding-top: 0; }
.is-style-numbered > li::before {
	content: counter(mblage, decimal-leading-zero);
	font: 400 1.9rem/1 var(--wp--preset--font-family--serif); font-variation-settings: "SOFT" 100;
	color: var(--wp--preset--color--clay); letter-spacing: -.02em; padding-top: .15rem;
}
.mb-lage .wp-block-post-template { gap: 0 !important; }
.mb-lage__intro { position: sticky; top: calc(var(--mb-header-h) + 2rem); align-self: flex-start; display: grid; gap: 1.25rem; }
.mb-lage__intro h2 { margin: 0; }

/* Chapters */
.mb-chapter__head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); gap: 1rem 2rem; }
.mb-chapter__intro { max-width: 44rem; }
.mb-chapter__title { margin: 0; display: flex; align-items: center; gap: .75rem; }
.mb-chapter__title::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--mb-topic, var(--mb-accent)); flex: none; transform: translateY(.05em); }
.mb-chapter__desc { margin: 0; color: var(--mb-muted); font-size: 1.05rem; }
.mb-chapter--grid-portrait .mb-card-post .wp-block-post-title { font-size: var(--wp--preset--font-size--medium) !important; }

/* ── Single article ────────────────────────────────────────── */
.mb-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: var(--wp--preset--color--clay); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; margin: 0 !important; }
.admin-bar .mb-progress { top: var(--wp-admin--admin-bar--height, 32px); }
@supports (animation-timeline: scroll()) {
	.mb-progress { animation: mb-progress linear both; animation-timeline: scroll(root); }
	@keyframes mb-progress { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .mb-progress { display: none; } }

.mb-article-head .wp-block-breadcrumbs { margin-bottom: .5rem; }
.mb-kicker { font-size: .8rem; }
.mb-article-title { margin: 0; max-width: 24ch; font-size: clamp(2.1rem, 4.2vw, 3.6rem) !important; line-height: 1.04 !important; letter-spacing: -.028em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.mb-dek { padding: 0 !important; color: var(--mb-muted); line-height: 1.5; }
.wp-block-navigation-overlay-close { font-family: var(--wp--preset--font-family--sans); font-size: .9rem; font-weight: 600; }
.mb-dek .wp-block-post-excerpt__excerpt { margin: 0; }
.mb-dek .wp-block-post-excerpt__more-text { display: none; }
.mb-byline { padding-top: 1.25rem; margin-top: .5rem; border-top: 1px solid var(--mb-line); }
.mb-byline .wp-block-avatar img { display: block; }
.mb-article-media { margin-block: 0 !important; }
.mb-article-media img { border-radius: 22px; }

.mb-prose { font-size: clamp(1.06rem, 1.2vw, 1.15rem); line-height: 1.72; }
.mb-prose > * + * { margin-block-start: 1.25em; }
.mb-prose h2 { margin-block-start: 2.2em; font-size: var(--wp--preset--font-size--x-large); }
.mb-prose h3 { margin-block-start: 1.8em; }
.mb-prose a:not(.wp-element-button):not(.mb-button) { color: var(--wp--preset--color--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent); transition: text-decoration-color .2s var(--mb-ease); }
.mb-prose a:not(.wp-element-button):not(.mb-button):hover { text-decoration-color: currentColor; }
.mb-prose ul:not(.mb-takeaways__list), .mb-prose ol { padding-left: 1.25em; }
.mb-prose li + li { margin-top: .45em; }
.mb-prose li::marker { color: var(--wp--preset--color--clay); }
.mb-single .mb-prose > p:first-of-type::first-letter {
	float: left; margin: .08em .1em 0 0;
	font: 500 3.4em/.8 var(--wp--preset--font-family--serif); color: var(--wp--preset--color--accent);
}
.mb-teaser > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.mb-prose figure figcaption { margin-top: .6rem; }
.mb-prose .wp-block-table table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.mb-prose .wp-block-table th, .mb-prose .wp-block-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--mb-line); text-align: left; }
.mb-prose .wp-block-table th { font-weight: 700; border-bottom: 2px solid var(--wp--preset--color--ink); }
.mb-prose .wp-block-details summary, .is-style-faq summary { cursor: pointer; list-style: none; font: 500 1.2rem/1.35 var(--wp--preset--font-family--serif); display: flex; justify-content: space-between; gap: 1rem; }
.mb-prose .wp-block-details summary::-webkit-details-marker { display: none; }
.mb-prose .wp-block-details summary::after, .is-style-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--sans); font-weight: 400; color: var(--wp--preset--color--accent); transition: transform .25s var(--mb-ease); }
.mb-prose .wp-block-details[open] summary::after, .is-style-faq[open] summary::after { transform: rotate(45deg); }
.mb-prose .wp-block-details[open] > :not(summary) { animation: mb-rise-in .35s var(--mb-ease) both; }
.mb-prose .wp-block-details + .wp-block-details { margin-top: 0; }

.mb-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.5rem !important; }
.mb-tags a {
	display: inline-flex; padding: .35rem .75rem; border: 1px solid var(--mb-line); border-radius: 999px;
	font-size: .85rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--ink); text-decoration: none; background: var(--wp--preset--color--surface);
}
.mb-tags a:hover { border-color: var(--wp--preset--color--ink); }
.mb-tags .wp-block-post-terms__separator { display: none; }
.mb-author-box .wp-block-post-author { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-top: .75rem; }
.mb-author-box .wp-block-post-author__avatar img { border-radius: 50%; }
.mb-author-box .wp-block-post-author__name { font: 500 1.25rem/1.2 var(--wp--preset--font-family--serif); }
.mb-author-box .wp-block-post-author__name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.mb-author-box .wp-block-post-author__name a:hover { color: var(--wp--preset--color--accent); }
.mb-author-box .wp-block-post-author__bio { margin-top: .35rem; color: var(--mb-muted); font-size: .98rem; line-height: 1.55; }
.mb-author-box .wp-block-post-author__byline { display: none; }

.mb-comment { border-top: 1px solid var(--mb-line); }
.wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]), .wp-block-post-comments-form textarea {
	width: 100%; border: 1px solid var(--mb-line); border-radius: 10px; background: var(--wp--preset--color--surface); padding: .7rem .9rem; font: inherit;
}

/* ── Archives / search ─────────────────────────────────────── */
.mb-archive-head .wp-block-query-title { margin: 0; letter-spacing: -.028em; }
.mb-archive-head .mb-dek p { margin: 0; }
.mb-pagination { margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--mb-line); font-weight: 600; }
.mb-pagination a { text-decoration: none; color: var(--wp--preset--color--ink); }
.mb-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; }
.mb-pagination .page-numbers.current { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface); }
.mb-search-large .wp-block-search__inside-wrapper { padding: .35rem; border: 1px solid var(--mb-line); border-radius: 14px; background: var(--wp--preset--color--surface); }
.mb-search-large .wp-block-search__input { border: 0; background: transparent; min-height: 48px; font-size: 1.05rem; padding-inline: .75rem; }
.mb-search-large .wp-block-search__button { margin: 0; border-radius: 10px; }

/* ── Pages ─────────────────────────────────────────────────── */
.mb-page-title { margin-block: .5rem 2rem; }
.mb-legal-meta { gap: .35rem; color: var(--mb-muted); font-size: .9rem; margin-bottom: 2rem; }
.mb-legal-meta p { margin: 0; }
.mb-legal-note { padding: .8rem 1rem; border-radius: 10px; background: var(--wp--preset--color--oat); font-size: .9rem; color: var(--mb-muted); }
.mb-auth-aside__inner h1 { margin: 0; }
.mb-auth-aside__image { margin: 0 0 .5rem; }
@media (max-width: 781px) {
	.mb-auth-aside__image { display: none; }
	.mb-auth-split { flex-direction: column-reverse; }
}
.mb-404 h1 { margin: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.mb-footer { margin-top: 0 !important; }
.mb-footer .wp-block-site-title a { color: var(--wp--preset--color--surface); }
.mb-footer .wp-block-site-title a::before { content: none; }
.mb-footer__claim { max-width: 26rem; color: color-mix(in srgb, var(--wp--preset--color--oat) 80%, transparent); }
.mb-footer__heading { margin: 0 0 .5rem; font: 700 .75rem/1 var(--wp--preset--font-family--sans); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--wp--preset--color--oat) 65%, transparent); }
.mb-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.mb-footer__links a { color: var(--wp--preset--color--surface); text-decoration: none; }
.mb-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mb-footer__bottom { margin-top: var(--wp--preset--spacing--50); padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--oat) 18%, transparent); font-size: .85rem; color: color-mix(in srgb, var(--wp--preset--color--oat) 70%, transparent); }
.mb-footer__bottom p { margin: 0; }
.mb-footer .mb-newsletter--compact { margin-top: .75rem; }
.mb-footer .mb-newsletter__title { color: var(--wp--preset--color--surface); font-size: 1.15rem; }
.mb-footer .mb-check, .mb-footer .mb-check a { color: color-mix(in srgb, var(--wp--preset--color--oat) 80%, transparent); }
.mb-footer .mb-signup__row { background: color-mix(in srgb, var(--wp--preset--color--surface) 8%, transparent); border-color: color-mix(in srgb, var(--wp--preset--color--oat) 25%, transparent); box-shadow: none; }
.mb-footer .mb-signup__row input[type=email] { color: var(--wp--preset--color--surface); background: transparent; }
.mb-footer .mb-signup__row input::placeholder { color: color-mix(in srgb, var(--wp--preset--color--oat) 60%, transparent); }
.mb-footer .mb-button--primary { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--walnut); }
.mb-footer .mb-button--primary:hover { background: var(--wp--preset--color--oat); color: var(--wp--preset--color--walnut); }
@media (min-width: 900px) { .mb-footer__brand { grid-column: span 2; } }

/* ── Block style variations ────────────────────────────────── */
.wp-block-group.is-style-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--mb-line); border-radius: 12px; background: var(--wp--preset--color--surface); }
.wp-block-group.is-style-band { padding: clamp(1.5rem, 4vw, 3rem); border-radius: 22px; background: var(--wp--preset--color--oat); }
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 1.9rem; }
.wp-block-list.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--wp--preset--color--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155E58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.wp-block-details.is-style-faq { border-top: 1px solid var(--mb-line); padding-block: 1rem; }

/* ── Scroll-driven entrance (no JS) ────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.mb-card-post, .is-style-numbered > li, .mb-chapter__head, .mb-topics__item, .mb-newsletter--band {
			animation: mb-rise-in linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}
	}
	html:focus-within { scroll-behavior: smooth; }
}
@keyframes mb-rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.mb-progress { display: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 781px) {
	.mb-lage__intro { position: static; }
	.is-style-numbered > li { grid-template-columns: 2.5rem 1fr; }
	.mb-single .mb-prose > p:first-of-type::first-letter { font-size: 2.8em; }
	.mb-article-media img { border-radius: 14px; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
	.mb-header-wrap, .mb-footer, .mb-progress, .mb-related, .mb-newsletter, .mb-article-comments, .wp-block-breadcrumbs { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.mb-prose a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* Footer: member states of the compact newsletter block */
.mb-footer .mb-help, .mb-footer .mb-oneclick__to { color: color-mix(in srgb, var(--wp--preset--color--oat) 72%, transparent); }

.mb-count { margin-bottom: 1.5rem; }
.mb-contact-aside { display: grid; gap: 1.25rem; align-content: start; padding: 1.75rem; border-radius: 22px; background: var(--wp--preset--color--oat); }
.mb-contact-aside h2 { margin: 0; font-size: var(--wp--preset--font-size--large); }

/* Keep the header on one line next to the mega menu. */
@media (min-width: 1200px) and (max-width: 1440px) {
	.mb-header__actions .mb-account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.mb-header__cta .wp-block-button__link { padding-inline: .85rem; }
}
