/* ==========================================================================
   Miljövänligt Child — "Miljömärkt"
   Practical and confident: the logo's label shape, Swedish recycling-station
   colours, a dot-grid paper and hard "sticker" shadows.
   Display: Bricolage Grotesque. Text: Atkinson Hyperlegible Next. Both self-hosted.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("../fonts/atkinson-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("../fonts/atkinson-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */
:root {
	--paper: #f4f6f1;
	--surface: #ffffff;
	--forest: #004f2f;
	--forest-900: #00331e;
	--forest-700: #0b6a40;
	--leaf: #00a534;
	--leaf-700: #007a27;
	--leaf-tint: #dcf1e1;
	--ink: #13221a;
	--ink-soft: #3a4a41;
	--muted: #56645c;
	--line: #d3dbd3;
	--line-strong: #9fb0a5;
	--signal: #ffd23f;

	--font-display: "Bricolage Grotesque", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
	--font-text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1240px;
	--wrap-head: 1040px;
	--wrap-page: 1040px;
	--measure: 760px;
	--gutter: clamp(16px, 4vw, 40px);

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--hard: 6px 6px 0 var(--ink);
	--hard-sm: 4px 4px 0 var(--ink);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 68px;
}

/* Topic tones: plastic orange, wood brown, leaf green, paper blue */
.mv-tone-1 { --tone: #d96f00; --tone-tint: #fde9d2; --tone-ink: #7f3f00; }
.mv-tone-2 { --tone: #8b5a2b; --tone-tint: #f1e5d7; --tone-ink: #5a3815; }
.mv-tone-3 { --tone: #00873a; --tone-tint: #dcf1e1; --tone-ink: #00502a; }
.mv-tone-4 { --tone: #1f5fa8; --tone-tint: #dde8f6; --tone-ink: #153f72; }

/* Base -------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.mv-lock { overflow: hidden; }

body.mv-theme {
	margin: 0;
	background-color: var(--paper);
	background-image: radial-gradient(rgba(0, 79, 47, .11) 1px, transparent 1.3px);
	background-size: 22px 22px;
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.mv-theme h1, .mv-theme h2, .mv-theme h3, .mv-theme h4 {
	font-family: var(--font-display);
	font-weight: 750;
	color: var(--ink);
	letter-spacing: -.02em;
	line-height: 1.1;
	text-wrap: balance;
}

.mv-theme a { color: var(--forest); text-underline-offset: .2em; text-decoration-thickness: 2px; text-decoration-color: rgba(0, 165, 52, .55); }
.mv-theme a:hover { color: var(--forest-900); text-decoration-color: var(--leaf); }
.mv-theme :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.mv-theme ::selection { background: var(--signal); color: var(--ink); }
.mv-theme img { max-width: 100%; height: auto; }
.mv-theme mark { background: var(--signal); color: var(--ink); padding: 0 .12em; border-radius: 3px; }

.mv-theme .site.grid-container, .mv-theme #page { max-width: none; padding: 0; margin: 0; background: transparent; }
.mv-theme .site-content { display: block; padding: 0; background: transparent; }
.mv-theme .skip-link:focus { z-index: 100000; background: var(--ink); color: #fff; padding: .7em 1em; border-radius: var(--r-sm); }

.mv-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.mv-wrap--head { max-width: calc(var(--wrap-head) + 2 * var(--gutter)); }
.mv-wrap--page { max-width: calc(var(--wrap-page) + 2 * var(--gutter)); }
.mv-wrap--text { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.mv-main { display: block; min-height: 50vh; }
.mv-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* Header ------------------------------------------------------------------ */
.mv-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-top: 4px solid var(--leaf); box-shadow: 0 1px 0 var(--line); }
.admin-bar .mv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mv-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .mv-header { top: 0; } }

.mv-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.mv-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-right: auto; }
.mv-brand__logo { display: flex; flex: none; }
.mv-brand__img { display: block; width: auto; height: auto; max-height: 52px; max-width: 200px; object-fit: contain; }
.mv-brand__name { margin: 0; font: 800 1.4rem/1.05 var(--font-display); letter-spacing: -.02em; }
.mv-brand__name a { color: var(--forest); text-decoration: none; }

.mv-menu-toggle {
	display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
	background: var(--forest); color: #fff; font: 700 .98rem/1 var(--font-text);
	padding: .72em 1.05em; border-radius: var(--r-sm);
}
.mv-menu-toggle:hover { background: var(--forest-900); }
.mv-menu-toggle .mv-menu-toggle__close { display: none; }
.mv-menu-toggle[aria-expanded="true"] .mv-menu-toggle__open { display: none; }
.mv-menu-toggle[aria-expanded="true"] .mv-menu-toggle__close { display: inline-flex; }

.mv-nav__list { list-style: none; margin: 0; padding: 0; }
.mv-nav__list a { text-decoration: none; }

/* Search */
.mv-search { position: relative; display: flex; align-items: stretch; gap: 8px; margin: 0; }
.mv-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.mv-theme .mv-search__input {
	width: 100%; min-width: 0; margin: 0; box-sizing: border-box;
	background: var(--surface); color: var(--ink);
	border: 2px solid var(--ink); border-radius: var(--r-md);
	padding: .72em 1em .72em 2.6em; font: 500 1rem/1.2 var(--font-text);
	transition: box-shadow .2s, width .3s var(--ease);
}
.mv-theme .mv-search__input::placeholder { color: var(--muted); opacity: 1; }
.mv-theme .mv-search__input:focus { outline: none; box-shadow: var(--hard-sm); }
.mv-theme .mv-search__submit {
	flex: none; margin: 0; border: 2px solid var(--forest); cursor: pointer; border-radius: var(--r-md);
	background: var(--forest); color: #fff; font: 700 1rem/1 var(--font-text); padding: 0 1.25em;
}
.mv-theme .mv-search__submit:hover { background: var(--forest-900); border-color: var(--forest-900); }

/* Mobile drawer */
@media (max-width: 1023.98px) {
	.mv-js .mv-drawer {
		position: fixed; left: 0; right: 0; top: var(--mv-drawer-top, calc(var(--header-h) + 4px)); bottom: 0;
		background: var(--surface); overflow-y: auto; padding: 20px var(--gutter) 48px;
		border-top: 1px solid var(--line);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
	}
	.admin-bar .mv-drawer { --mv-drawer-top: calc(var(--header-h) + 50px); }
	.mv-js .mv-header.is-open .mv-drawer { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.mv-drawer { display: flex; flex-direction: column; gap: 22px; }
	.mv-drawer .mv-search { order: -1; }
	.mv-drawer .mv-nav__list { display: grid; gap: 10px; }
	.mv-drawer .mv-nav__list > li > a {
		display: flex; justify-content: space-between; align-items: center; gap: 12px;
		padding: .85em 1em; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--surface);
		font: 750 1.2rem/1.2 var(--font-display); color: var(--ink);
	}
	.mv-drawer .mv-nav__list > li > a::after { content: "→"; font-family: var(--font-text); color: var(--leaf-700); }
	.mv-drawer .mv-nav__list > li > a:hover { box-shadow: var(--hard-sm); }
	.mv-drawer .current-menu-item > a, .mv-drawer .current-menu-ancestor > a, .mv-drawer .current-category-ancestor > a, .mv-drawer .current-post-ancestor > a { background: var(--leaf-tint); }
	.mv-drawer .sub-menu { list-style: none; margin: 8px 0 4px; padding: 0 0 0 14px; border-left: 3px solid var(--leaf); }
	.mv-drawer .sub-menu a { display: block; padding: .4em 0; color: var(--ink-soft); font-weight: 700; }
}

/* Desktop masthead: logo + search, then the topic menu on a full-width forest band. */
@media (min-width: 1024px) {
	:root { --header-h: 0px; }
	.mv-header { position: relative; top: auto; }
	.admin-bar .mv-header { top: auto; }
	.mv-header__inner { flex-wrap: wrap; column-gap: 24px; row-gap: 0; padding-top: 16px; }
	.mv-menu-toggle { display: none; }
	.mv-drawer { display: contents; }
	.mv-brand__img { max-height: 92px; max-width: 240px; }
	.mv-search--header { order: 2; width: 340px; }
	.mv-search--header:focus-within { width: 400px; }
	.mv-nav {
		order: 3; flex: 1 0 100%; margin-top: 16px;
		background: var(--forest); box-shadow: 0 0 0 100vmax var(--forest); clip-path: inset(0 -100vmax);
	}
	.mv-nav__list { display: flex; flex-wrap: wrap; align-items: stretch; }
	.mv-nav__list > li { position: relative; }
	.mv-nav__list > li > a {
		position: relative; display: flex; align-items: center; height: 100%; padding: 15px 18px;
		color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap; transition: background-color .2s;
	}
	.mv-nav__list > li:first-child > a { padding-left: 0; }
	.mv-nav__list > li > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 4px; background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
	.mv-nav__list > li:first-child > a::after { left: 0; }
	.mv-nav__list > li > a:hover, .mv-nav__list > li:focus-within > a { color: #fff; background: rgba(255, 255, 255, .08); }
	.mv-nav__list > li > a:hover::after,
	.mv-nav__list > .current-menu-item > a::after,
	.mv-nav__list > .current-menu-ancestor > a::after,
	.mv-nav__list > .current-post-ancestor > a::after,
	.mv-nav__list > .current-category-ancestor > a::after { transform: scaleX(1); }
	.mv-nav__list > .current-menu-item > a, .mv-nav__list > .current-post-ancestor > a, .mv-nav__list > .current-category-ancestor > a { color: #fff; }
	.mv-nav__list > .mv-has-sub > a { gap: .5em; }
	.mv-nav__list > .mv-has-sub > a::before { content: ""; order: 2; width: .38em; height: .38em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
	.mv-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 250px; z-index: 5; list-style: none; margin: 0; padding: 8px;
		background: var(--surface); border: 2px solid var(--ink); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--hard);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
	}
	.mv-nav li:hover > .sub-menu, .mv-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.mv-nav .sub-menu a { display: block; padding: .55em .8em; border-radius: var(--r-sm); color: var(--ink); font-weight: 700; }
	.mv-nav .sub-menu a:hover { background: var(--leaf-tint); color: var(--ink); }
}

/* Labels: chips, kicker, badge, buttons ---------------------------------- */
.mv-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.mv-theme .mv-chip, .mv-theme .mv-kicker {
	display: inline-flex; align-items: center; gap: .45em; border-radius: var(--r-sm); text-decoration: none;
	background: var(--tone-tint, var(--leaf-tint)); color: var(--tone-ink, var(--forest)); border: 1.5px solid currentColor;
	font: 700 .82rem/1 var(--font-text); padding: .5em .8em; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.mv-theme .mv-chip::before, .mv-theme .mv-kicker::before { content: ""; width: .55em; height: .55em; border-radius: 2px; background: var(--tone, var(--leaf)); }
.mv-theme .mv-chip:hover, .mv-theme .mv-kicker:hover { box-shadow: 3px 3px 0 currentColor; transform: translate(-1px, -1px); color: var(--tone-ink, var(--forest)); }
.mv-theme .mv-chip--tag { background: var(--surface); color: var(--ink-soft); }
.mv-theme .mv-chip--tag::before { display: none; }

.mv-badge { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--forest); color: #fff; font: 800 1rem/1 var(--font-display); }
.mv-badge--lg { width: 56px; height: 56px; font-size: 1.5rem; border-radius: var(--r-md); }
.mv-badge--xl { width: 1.3em; height: 1.3em; font-size: .85em; margin-right: .3em; vertical-align: -.1em; }

.mv-btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: var(--r-md); font: 700 1rem/1 var(--font-text); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.mv-theme .mv-btn--primary { background: var(--forest); color: #fff; border: 2px solid var(--forest); }
.mv-theme .mv-btn--ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }
.mv-theme .mv-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-sm); }

/* Section heads ------------------------------------------------------------ */
.mv-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 26px; }
.mv-theme .mv-section-title { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 800; display: flex; align-items: center; gap: .4em; }
.mv-section-title::before { content: ""; flex: none; width: .5em; height: .5em; border-radius: 4px; background: var(--leaf); box-shadow: .18em .18em 0 var(--forest); }
.mv-theme .mv-section-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--leaf); padding-bottom: 2px; }
.mv-section-link .mv-icon { transition: transform .2s var(--ease); }
.mv-section-link:hover .mv-icon { transform: translateX(3px); }

/* Hero --------------------------------------------------------------------- */
.mv-hero {
	position: relative; overflow: hidden; color: #fff;
	background-color: var(--forest);
	background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px);
	background-size: 22px 22px;
	padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px);
}
.mv-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, #d96f00 0 25%, #8b5a2b 25% 50%, #00a534 50% 75%, #1f5fa8 75% 100%); }
.mv-hero__inner { position: relative; display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .mv-hero__inner { grid-template-columns: 1.1fr .9fr; } }

.mv-hero__eyebrow {
	display: inline-flex; align-items: center; margin: 0 0 20px; padding: .4em .8em; border-radius: var(--r-sm);
	background: var(--forest-900); border: 1.5px solid rgba(255, 255, 255, .25);
	font: 700 .95rem/1.1 var(--font-display); letter-spacing: .01em; color: #fff;
}
.mv-theme .mv-hero__title { margin: 0; color: #fff; font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.8rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.mv-hero__lead { margin: 22px 0 0; max-width: 34em; font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .88); }

.mv-hero__finder { margin-top: 30px; max-width: 620px; padding: 18px; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--forest-900); }
.mv-hero__finder-label { margin: 0 0 10px; font: 750 1.08rem/1.25 var(--font-display); color: var(--ink); }
.mv-hero__finder .mv-search__input { font-size: 1.08rem; padding-block: .85em; }
.mv-chips--hero { margin-top: 14px; }

.mv-hero__visual { position: relative; }
.mv-hero__art { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; overflow: visible; }
.mv-art-ring { transform-box: view-box; transform-origin: 262px 240px; animation: mv-spin 80s linear infinite; }
.mv-art-seg { fill: none; stroke-width: 22; stroke-linecap: round; }
.mv-art-seg--1 { stroke: #00a534; }
.mv-art-seg--2 { stroke: #ffb347; }
.mv-art-seg--3 { stroke: #c9925a; }
.mv-art-seg--4 { stroke: #6fa8f0; }
.mv-art-head { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.mv-art-core { fill: #fff; }
.mv-art-leaf path:first-child { fill: var(--leaf); }
.mv-art-vein { fill: none; stroke: var(--forest); stroke-width: 6; stroke-linecap: round; }
.mv-art-tile { animation: mv-bob 5s calc(var(--d, 0s)) ease-in-out infinite; }
.mv-art-tile rect { stroke: var(--forest-900); stroke-width: 3; }
.mv-art-tile--orange rect { fill: #d96f00; }
.mv-art-tile--blue rect { fill: #1f5fa8; }
.mv-art-tile--brown rect { fill: #8b5a2b; }
.mv-art-tile--green rect { fill: #00873a; }
.mv-art-picto { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

.mv-hero__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 3px solid #fff; box-shadow: 10px 10px 0 var(--leaf); }

.mv-hero__copy > * { animation: mv-rise .7s var(--ease) both; }
.mv-hero__copy > :nth-child(2) { animation-delay: .07s; }
.mv-hero__copy > :nth-child(3) { animation-delay: .14s; }
.mv-hero__copy > :nth-child(n+4) { animation-delay: .21s; }
.mv-hero__visual { animation: mv-rise .9s .15s var(--ease) both; }

/* 404 variant */
.mv-hero--404 .mv-search { max-width: 560px; margin-top: 26px; }
.mv-hero--404 .mv-chips { margin-top: 18px; }
.mv-hero--404 .mv-chips + p { margin: 24px 0 0; }
.mv-bin { display: block; width: min(300px, 80%); margin-inline: auto; overflow: visible; }
.mv-bin__shadow { fill: rgba(0, 0, 0, .25); }
.mv-bin__lid { fill: var(--leaf); transform-box: view-box; transform-origin: 60px 104px; animation: mv-lid 4s ease-in-out infinite; }
.mv-bin__body { fill: #fff; stroke: var(--forest-900); stroke-width: 4; }
.mv-bin__ribs { fill: none; stroke: var(--line-strong); stroke-width: 8; stroke-linecap: round; }
.mv-bin__q circle:first-child { fill: var(--signal); }
.mv-bin__q path { fill: none; stroke: var(--forest-900); stroke-width: 6; stroke-linecap: round; }
.mv-bin__q circle:last-child { fill: var(--forest-900); }

/* Topic cards (sorting labels) ------------------------------------------------ */
.mv-hubs { padding: clamp(44px, 6vw, 80px) 0 clamp(20px, 3vw, 40px); }
.mv-hubs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .mv-hubs__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mv-hubs__list { grid-template-columns: repeat(4, 1fr); } }

.mv-hub {
	position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden;
	background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
	animation: mv-rise .6s calc(var(--i, 0) * .07s + .1s) var(--ease) both;
}
.mv-hub:hover, .mv-hub:focus-within { transform: translate(-3px, -3px); box-shadow: var(--hard); }
.mv-hub__label { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--tone); color: #fff; border-bottom: 2px solid var(--ink); }
.mv-hub__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .55); }
.mv-hub__icon .mv-icon { width: 26px; height: 26px; }
.mv-hub__num { font: 800 1.7rem/1 var(--font-display); letter-spacing: -.03em; opacity: .85; }
.mv-hub__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.mv-theme .mv-hub__title { margin: 0; font-size: 1.36rem; font-weight: 800; }
.mv-theme .mv-hub__title a { color: var(--ink); text-decoration: none; }
.mv-hub__title a::after { content: ""; position: absolute; inset: 0; }
.mv-hub__text { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.55; }
.mv-hub__more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--tone-ink); }
.mv-hub__more .mv-icon { transition: transform .2s var(--ease); }
.mv-hub:hover .mv-hub__more .mv-icon { transform: translateX(4px); }

/* Front content and latest ---------------------------------------------------- */
.mv-front-content { padding: clamp(24px, 4vw, 48px) 0; }
.mv-front-content .mv-prose { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 48px); }
.mv-latest { padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 8vw, 104px); }

/* Card grid -------------------------------------------------------------------- */
.mv-grid { display: grid; gap: clamp(18px, 2.2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.mv-grid--three { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }

.mv-card {
	position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
	background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.mv-card:hover, .mv-card:focus-within { transform: translate(-3px, -3px); box-shadow: var(--hard); border-color: var(--ink); }
.mv-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--leaf-tint); border-bottom: 1.5px solid var(--line-strong); }
.mv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.mv-card:hover .mv-card__media img { transform: scale(1.04); }
.mv-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.mv-card .mv-kicker { position: relative; z-index: 2; }
.mv-theme .mv-card__title { margin: 2px 0 0; font-size: 1.3rem; font-weight: 750; line-height: 1.18; }
.mv-theme .mv-card__link { color: var(--ink); text-decoration: none; }
.mv-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mv-card:hover .mv-card__link { color: var(--forest); }
.mv-card__excerpt { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mv-card .mv-byline { margin-top: auto; padding-top: 4px; }
.mv-card--no-image .mv-card__body { border-top: 10px solid var(--leaf); }

@media (min-width: 900px) {
	.mv-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; background: var(--forest); border-color: var(--ink); }
	.mv-card--feature .mv-card__media { aspect-ratio: auto; min-height: 380px; border-bottom: 0; border-right: 2px solid var(--ink); }
	.mv-card--feature .mv-card__body { justify-content: center; padding: clamp(28px, 4vw, 52px); gap: 14px; color: #fff; }
	.mv-theme .mv-card--feature .mv-card__title { font-size: clamp(1.8rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 800; line-height: 1.04; }
	.mv-theme .mv-card--feature .mv-card__link, .mv-card--feature:hover .mv-card__link { color: #fff; }
	.mv-card--feature .mv-card__excerpt { color: rgba(255, 255, 255, .85); font-size: 1.06rem; -webkit-line-clamp: 4; }
	.mv-card--feature .mv-byline { color: rgba(255, 255, 255, .75); }
	.mv-card--feature .mv-byline__updated { color: #9be3b0; }
	.mv-card--feature:hover { box-shadow: 6px 6px 0 var(--leaf); }
}

/* Byline (cards) ------------------------------------------------------------------ */
.mv-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: .9rem; }
.mv-byline > span { display: inline-flex; align-items: center; gap: 8px; }
.mv-byline__author a { font-weight: 700; color: var(--ink); text-decoration: none; }
.mv-byline__updated { color: var(--leaf-700); font-weight: 700; }
.mv-byline--compact { font-size: .84rem; gap: 4px 12px; }

/* Page bands (archives, search, author, posts page) --------------------------------- */
.mv-band { position: relative; background: var(--surface); border-bottom: 2px solid var(--ink); padding: clamp(24px, 4vw, 44px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.mv-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--tone, var(--leaf)); }
.mv-band__inner { position: relative; }
.mv-band__kicker { display: inline-block; margin: 18px 0 10px; padding: .35em .7em; border-radius: var(--r-sm); background: var(--tone-tint, var(--leaf-tint)); color: var(--tone-ink, var(--forest)); font: 700 .88rem/1.1 var(--font-text); }
.mv-theme .mv-band__title { margin: 0; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; max-width: 22ch; }
.mv-band__text { max-width: 46em; margin-top: 16px; font-size: 1.12rem; color: var(--ink-soft); }
.mv-band__text p { margin: 0 0 .6em; }
.mv-band__meta { display: inline-flex; margin: 16px 0 0; font-weight: 700; color: var(--ink); font-size: .95rem; border-bottom: 3px solid var(--leaf); }
.mv-band .mv-search { max-width: 580px; margin-top: 22px; }
.mv-listing__body { padding-block: clamp(32px, 5vw, 60px) clamp(56px, 8vw, 104px); }

/* Breadcrumbs ------------------------------------------------------------------------ */
.mv-crumbs { font-size: .9rem; color: var(--muted); }
.mv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.mv-crumbs li { margin: 0; display: inline-flex; align-items: center; min-width: 0; }
.mv-crumbs li + li::before { content: "/"; margin: 0 .55em; color: var(--leaf-700); font-weight: 700; }
.mv-crumbs a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.mv-crumbs a:hover { color: var(--forest); text-decoration: underline; }
.mv-crumbs [aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; display: inline-block; vertical-align: bottom; }

/* Article ------------------------------------------------------------------------------ */
.mv-article__head { background: var(--surface); border-bottom: 2px solid var(--ink); padding: clamp(22px, 4vw, 40px) 0 clamp(28px, 4vw, 44px); position: relative; }
.mv-article__head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--tone, var(--leaf)); }
.mv-article__head .mv-kicker { margin-top: 20px; }
.mv-theme .mv-article__title { margin: 14px 0 0; font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.9rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; max-width: 22ch; }
.mv-article__dek { margin: 18px 0 0; max-width: 44em; font-size: clamp(1.1rem, 1rem + .4vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); }
.mv-article__updated { display: inline-flex; margin: 16px 0 0; font-weight: 700; font-size: .92rem; border-bottom: 3px solid var(--leaf); }

.mv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 26px 0 0; max-width: 780px; border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.mv-facts__cell { padding: 12px 16px; border-right: 1.5px solid var(--line-strong); margin: 0; min-width: 0; }
.mv-facts__cell:last-child { border-right: 0; }
.mv-facts dt { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 2px; }
.mv-facts dd { margin: 0; font-weight: 700; color: var(--ink); font-size: .98rem; }
.mv-facts dd a { color: var(--forest); }
@media (max-width: 560px) {
	.mv-facts { grid-template-columns: 1fr 1fr; }
	.mv-facts__cell { border-right: 0; border-bottom: 1.5px solid var(--line-strong); }
	.mv-facts__cell:nth-child(odd) { border-right: 1.5px solid var(--line-strong); }
	.mv-facts__cell:nth-last-child(-n+2):nth-child(odd), .mv-facts__cell:last-child { border-bottom: 0; }
}

.mv-article__media:not(:has(figure)) { display: none; }
.mv-article__media { padding-top: clamp(24px, 4vw, 40px); }
.mv-figure { margin: 0; }
.mv-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--tone, var(--leaf)); box-sizing: border-box; }
.mv-figure figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; }

.mv-article__layout { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(32px, 5vw, 56px); }
.mv-article__main { max-width: var(--measure); margin-inline: auto; min-width: 0; }
@media (min-width: 1180px) {
	.mv-article__layout--toc { display: grid; grid-template-columns: minmax(0, var(--measure)) 300px; gap: 56px; justify-content: center; align-items: start; }
	.mv-article__layout--toc .mv-article__main { margin: 0; }
	.mv-article__aside .mv-toc { position: sticky; top: 24px; }
	.admin-bar .mv-article__aside .mv-toc { top: 56px; }
}
@media (max-width: 1179.98px) {
	.mv-article__layout--toc { display: flex; flex-direction: column; }
	.mv-article__layout--toc .mv-article__aside { order: -1; max-width: var(--measure); width: 100%; margin-inline: auto; }
}

/* Table of contents */
.mv-toc { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 28px; }
.mv-theme .mv-toc__toggle {
	display: flex; width: 100%; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border: 0; border-radius: 0;
	background: var(--forest); color: #fff; font: 750 1.08rem/1.2 var(--font-display); text-align: left; cursor: pointer;
}
.mv-toc__count { margin-left: auto; font: 700 .78rem/1 var(--font-text); background: var(--leaf); color: var(--forest-900); padding: .4em .65em; border-radius: var(--r-sm); }
.mv-toc__list { list-style: none; counter-reset: toc; margin: 0; padding: 8px; }
.mv-toc__list li { counter-increment: toc; margin: 0; }
.mv-toc__list a { display: grid; grid-template-columns: 1.9em 1fr; gap: .2em; align-items: baseline; padding: .5em .6em; border-radius: var(--r-sm); color: var(--ink-soft); text-decoration: none; font-size: .95rem; line-height: 1.35; border-left: 3px solid transparent; }
.mv-toc__list a::before { content: counter(toc); display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 5px; background: var(--leaf-tint); color: var(--forest); font: 800 .75rem/1 var(--font-text); }
.mv-toc__list a:hover { background: var(--paper); color: var(--ink); }
.mv-toc__list a[aria-current] { background: var(--leaf-tint); color: var(--ink); font-weight: 700; border-left-color: var(--leaf); }
.mv-toc__list a[aria-current]::before { background: var(--forest); color: #fff; }
@media (max-width: 1179.98px) {
	.mv-js .mv-toc:not(.is-open) .mv-toc__list { display: none; }
	.mv-toc__toggle::after { content: ""; width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 4px 3px 8px; transition: transform .2s; }
	.mv-toc.is-open .mv-toc__toggle::after { transform: rotate(-135deg); margin-bottom: -3px; }
}
@media (min-width: 1180px) {
	.mv-theme .mv-toc__toggle { cursor: default; pointer-events: none; }
	.mv-toc__list { max-height: calc(100vh - 160px); overflow-y: auto; }
}

/* Prose: styles only the post's own top-level elements; pasted blocks in their own wrapper keep their design. */
.mv-prose { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.mv-prose::after { content: ""; display: table; clear: both; }
.mv-prose > p { margin: 0 0 1.15em; }
.mv-prose > p:empty { display: none; }
.mv-prose h2, .mv-prose h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.mv-theme .mv-prose > h2 { margin: 2em 0 .55em; font-size: clamp(1.65rem, 1.25rem + 1.3vw, 2.2rem); font-weight: 800; }
.mv-theme .mv-prose > h3 { margin: 1.7em 0 .45em; font-size: clamp(1.3rem, 1.12rem + .6vw, 1.55rem); font-weight: 750; }
.mv-prose > h2::before, .mv-toc-h3 .mv-prose > h3::before { content: ""; display: inline-block; width: .42em; height: .42em; margin-right: .38em; border-radius: 3px; background: var(--leaf); box-shadow: .12em .12em 0 var(--forest); vertical-align: .12em; }
.mv-theme .mv-prose > h4 { margin: 1.4em 0 .35em; font-size: 1.15rem; font-weight: 750; }
.mv-prose > :first-child { margin-top: 0; }
.mv-prose > p a, .mv-prose > ul a, .mv-prose > ol a, .mv-prose > blockquote a, .mv-prose > table a { color: var(--forest); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(0, 165, 52, .6); text-decoration-thickness: 2px; transition: background-color .2s; }
.mv-prose > p a:hover, .mv-prose > ul a:hover, .mv-prose > ol a:hover { background: var(--leaf-tint); text-decoration-color: var(--leaf); }
.mv-prose > ul, .mv-prose > ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.mv-prose > ul li, .mv-prose > ol li { margin: 0 0 .45em; padding-left: .2em; }
.mv-prose > ul > li::marker { content: "■  "; color: var(--leaf); font-size: .8em; }
.mv-prose > ol > li::marker { color: var(--forest); font-family: var(--font-display); font-weight: 800; }
.mv-prose > blockquote { margin: 1.8em 0; padding: 1.1em 1.4em; background: var(--leaf-tint); border: 0; border-left: 6px solid var(--leaf); border-radius: 0 var(--r-md) var(--r-md) 0; font: 600 1.15em/1.5 var(--font-display); font-style: normal; color: var(--forest-900); }
.mv-prose > blockquote p { margin: 0 0 .5em; }
.mv-prose > blockquote p:last-child { margin: 0; }
.mv-prose > blockquote cite { display: block; margin-top: .5em; font: 700 .78em/1.4 var(--font-text); font-style: normal; color: var(--muted); }
.mv-prose > figure, .mv-prose > .wp-caption { margin: 2em 0; max-width: 100%; }
.mv-prose > figure img, .mv-prose > p > img, .mv-prose > .wp-caption img, .mv-prose > img { border-radius: var(--r-md); }
.mv-prose figcaption, .mv-prose .wp-caption-text { margin-top: .6em; color: var(--muted); font-size: .85rem; }
.mv-prose > hr { border: 0; height: 10px; margin: 2.4em 0; background: repeating-linear-gradient(90deg, #d96f00 0 25%, #8b5a2b 25% 50%, #00a534 50% 75%, #1f5fa8 75% 100%); border-radius: 5px; max-width: 160px; }
.mv-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.mv-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.mv-prose .aligncenter { display: block; margin-inline: auto; }
@media (max-width: 600px) { .mv-prose .alignleft, .mv-prose .alignright { float: none; margin: 1em 0; } }

/* Tables: own scroll box on small screens; opt-in stacked cards with class "mv-stack" + data-label on cells. */
.mv-prose > table, .mv-prose > figure > table, .mv-prose > .wp-block-table > table {
	display: block; width: max-content; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
	border-collapse: separate; border-spacing: 0; margin: 1.8em 0; font-size: .93em; line-height: 1.5;
	border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--surface); font-variant-numeric: tabular-nums;
}
.mv-prose > table th, .mv-prose > table td, .mv-prose > figure > table th, .mv-prose > figure > table td, .mv-prose > .wp-block-table th, .mv-prose > .wp-block-table td { padding: .75em 1em; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); min-width: 8em; }
.mv-prose > table th, .mv-prose > figure > table th, .mv-prose > .wp-block-table th { background: var(--forest); color: #fff; font-weight: 700; }
.mv-prose > table tr:nth-child(even) td, .mv-prose > figure > table tr:nth-child(even) td { background: var(--paper); }
.mv-prose > table tr:last-child td, .mv-prose > figure > table tr:last-child td { border-bottom: 0; }
.mv-prose table.is-scrollable {
	background:
		linear-gradient(90deg, var(--surface) 30%, rgba(255, 255, 255, 0)) 0 0 / 40px 100% no-repeat local,
		linear-gradient(270deg, var(--surface) 30%, rgba(255, 255, 255, 0)) 100% 0 / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(0, 51, 30, .2), transparent) 0 0 / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(0, 51, 30, .2), transparent) 100% 0 / 14px 100% no-repeat scroll,
		var(--surface);
}
@media (max-width: 640px) {
	.mv-prose table.mv-stack { display: block; width: 100%; border: 0; background: none; overflow: visible; }
	.mv-prose table.mv-stack thead { display: none; }
	.mv-prose table.mv-stack tbody, .mv-prose table.mv-stack tr, .mv-prose table.mv-stack td { display: block; width: 100%; box-sizing: border-box; }
	.mv-prose table.mv-stack tr { margin: 0 0 12px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 6px 0; }
	.mv-prose table.mv-stack td { border: 0; padding: .45em 1em; min-width: 0; background: none !important; }
	.mv-prose table.mv-stack td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; font-size: .82em; color: var(--muted); }
}

/* Article footer, author box ------------------------------------------------------- */
.mv-article__foot { margin-top: 2.6em; padding-top: 1.4em; border-top: 2px solid var(--ink); }
.mv-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 2em; padding: 22px; border: 2px solid var(--ink); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--hard-sm); }
.mv-author__name { margin: 0 0 .2em; font: 800 1.2rem/1.2 var(--font-display); }
.mv-author__name a { color: var(--ink); text-decoration: none; }
.mv-author__name a:hover { color: var(--forest); }
.mv-author__bio p { margin: 0 0 .5em; color: var(--ink-soft); font-size: .98rem; }
.mv-page-links { margin: 2em 0; display: flex; gap: 8px; flex-wrap: wrap; font-weight: 700; }

/* Related -------------------------------------------------------------------------- */
.mv-related { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); background: var(--surface); border-top: 2px solid var(--ink); }

/* Pagination ------------------------------------------------------------------------ */
.mv-pagination { margin-top: clamp(32px, 5vw, 56px); }
.mv-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.mv-theme .mv-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-width: 46px; height: 46px; padding: 0 .9em; box-sizing: border-box;
	border-radius: var(--r-md); border: 2px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700;
	transition: transform .15s, box-shadow .15s;
}
.mv-theme .mv-pagination a.page-numbers:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-sm); color: var(--ink); }
.mv-theme .mv-pagination .page-numbers.current { background: var(--forest); border-color: var(--forest); color: #fff; }
.mv-theme .mv-pagination .page-numbers.dots { border: 0; min-width: 0; background: none; }
@media (max-width: 480px) { .mv-pagination .prev span, .mv-pagination .next span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Empty states ----------------------------------------------------------------------- */
.mv-empty { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--r-lg); }
.mv-empty__title { font: 800 1.6rem/1.2 var(--font-display); margin: 0 0 .4em; }
.mv-empty .mv-search { margin: 20px auto; max-width: 480px; }
.mv-empty .mv-chips { justify-content: center; }

/* Footer ------------------------------------------------------------------------------- */
.mv-footer { position: relative; margin-top: 0; background: var(--forest-900); color: rgba(255, 255, 255, .82); padding: clamp(48px, 7vw, 80px) 0 26px; font-size: .97rem; }
.mv-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, #d96f00 0 25%, #8b5a2b 25% 50%, #00a534 50% 75%, #1f5fa8 75% 100%); }
.mv-footer__grid { display: grid; gap: 36px 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mv-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mv-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.mv-footer__name { margin: 0 0 .5em; font: 800 1.7rem/1.1 var(--font-display); letter-spacing: -.02em; }
.mv-footer__name a { display: inline-flex; align-items: center; gap: .35em; color: #fff; text-decoration: none; }
.mv-footer__mark { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: var(--r-sm); background: var(--leaf); color: var(--forest-900); }
.mv-footer__mark .mv-icon { width: .9em; height: .9em; }
.mv-footer__tagline { margin: 0 0 1em; color: #9be3b0; font-weight: 700; }
.mv-footer__note { max-width: 34em; font-size: .92rem; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.mv-footer__note p { margin: 0 0 .6em; }
.mv-footer .mv-widget__title { margin: 0 0 .9em; font: 800 1.02rem/1.3 var(--font-display); color: #fff; display: flex; align-items: center; gap: .45em; }
.mv-footer .mv-widget__title::before { content: ""; width: .5em; height: .5em; border-radius: 2px; background: var(--leaf); }
.mv-footer ul { list-style: none; margin: 0; padding: 0; }
.mv-footer li { margin: 0 0 .55em; }
.mv-theme .mv-footer a { color: #fff; text-decoration: none; }
.mv-theme .mv-footer a:hover { color: #9be3b0; text-decoration: underline; text-decoration-color: var(--leaf); }
.mv-footer__col .mv-widget + .mv-widget { margin-top: 1.6em; }
.mv-footer__recent li { margin: 0 0 .9em; }
.mv-footer__recent a { display: block; line-height: 1.4; }
.mv-footer__recent time { display: block; margin-top: .2em; color: rgba(255, 255, 255, .6); font-size: .82rem; }
.mv-footer__lead { margin: 0 0 1em; color: rgba(255, 255, 255, .72); font-size: .92rem; }
.mv-footer .mv-search__input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .45); color: #fff; }
.mv-footer .mv-search__input::placeholder { color: rgba(255, 255, 255, .6); }
.mv-footer .mv-search__icon { color: rgba(255, 255, 255, .7); }
.mv-theme .mv-footer .mv-search__submit { background: var(--leaf); border-color: var(--leaf); color: var(--forest-900); }
.mv-theme .mv-footer .mv-search__submit:hover { background: #fff; border-color: #fff; }
.mv-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.mv-footer__menu ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mv-footer__menu li { margin: 0; }
.mv-footer__copy { margin: 0; color: rgba(255, 255, 255, .62); font-size: .9rem; }

/* Comments ------------------------------------------------------------------------------ */
.mv-comments { padding-bottom: 56px; }
.mv-comments .comments-area { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); border: 2px solid var(--ink); }
.mv-theme .mv-comments input[type="text"], .mv-theme .mv-comments input[type="email"], .mv-theme .mv-comments input[type="url"], .mv-theme .mv-comments textarea {
	width: 100%; max-width: 100%; box-sizing: border-box; background: var(--surface); color: var(--ink);
	border: 2px solid var(--line-strong); border-radius: var(--r-sm); padding: .75em .9em; font: 500 1rem/1.4 var(--font-text);
}
.mv-theme .mv-comments input:focus, .mv-theme .mv-comments textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--hard-sm); }
.mv-theme .mv-comments .form-submit .submit { background: var(--forest); color: #fff; border: 0; border-radius: var(--r-md); padding: .85em 1.4em; font: 700 1rem/1 var(--font-text); cursor: pointer; }
.mv-theme .mv-comments .form-submit .submit:hover { background: var(--forest-900); }
.mv-comments .comment-reply-title, .mv-comments .comments-title { font-size: 1.5rem; }

/* Motion -------------------------------------------------------------------------------- */
@keyframes mv-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mv-spin { to { transform: rotate(360deg); } }
@keyframes mv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mv-lid { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(-6deg); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Small screens ----------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
	:root { --header-h: 64px; }
	.mv-brand__img { max-height: 52px; max-width: 160px; }
	.mv-brand__name { font-size: 1.15rem; }
}
@media (max-width: 600px) {
	.mv-hero__art, .mv-bin { max-width: 300px; }
	.mv-hero__finder { padding: 14px; box-shadow: 6px 6px 0 var(--forest-900); }
	.mv-crumbs [aria-current] { display: none; }
	.mv-section-head { flex-direction: column; align-items: flex-start; }
	.mv-author { flex-direction: column; }
	.mv-search__submit { padding-inline: 1em; }
	.mv-band::before { width: 6px; }
}

/* Print ------------------------------------------------------------------------------------ */
@media print {
	.mv-header, .mv-footer, .mv-toc, .mv-related, .mv-crumbs, .mv-hero__visual { display: none !important; }
	body.mv-theme { background: #fff; }
	.mv-figure img { box-shadow: none; }
}

/* Stacked table cards on phones: one clean card per row, first cell as the card title.
   Wins over the per-article inline styles (they use !important), hence the repeated class. */
@media (max-width: 640px) {
	.mv-prose { --stk-card: var(--surface); --stk-border: 2px solid var(--ink); --stk-radius: var(--r-md); --stk-line: var(--line); --stk-ink: var(--ink); --stk-label: var(--forest-700); --stk-head-bg: var(--leaf-tint); --stk-head-ink: var(--forest-900); }
	.mv-prose table.mv-stack.mv-stack.mv-stack {
		display: block !important; width: 100% !important; max-width: 100% !important; margin: 1.4em 0 !important;
		border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important;
	}
	.mv-prose table.mv-stack.mv-stack.mv-stack thead { display: none !important; }
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody { display: block !important; width: 100% !important; border: 0 !important; background: none !important; }
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody tr {
		display: block !important; width: 100% !important; box-sizing: border-box; margin: 0 0 12px !important; padding: 0 !important;
		background: var(--stk-card) !important; border: var(--stk-border) !important; border-radius: var(--stk-radius) !important;
		box-shadow: none !important; overflow: hidden;
	}
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody tr > th,
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody tr > td {
		display: block !important; width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box;
		margin: 0 !important; padding: .6em 1em !important; text-align: left !important;
		background: transparent !important; color: var(--stk-ink) !important; border: 0 !important; border-top: 1px solid var(--stk-line) !important;
		overflow-wrap: break-word; word-break: normal; -webkit-hyphens: manual; hyphens: manual;
	}
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody tr > :first-child {
		border-top: 0 !important; background: var(--stk-head-bg) !important; color: var(--stk-head-ink) !important;
		font-weight: 700 !important; font-size: 1.02em; padding: .7em 1em !important;
	}
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody tr > :first-child * { color: inherit !important; }
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody tr > :first-child::before { content: none !important; display: none !important; }
	.mv-prose table.mv-stack.mv-stack.mv-stack tbody tr > td:not(:first-child)[data-label]::before {
		content: attr(data-label) !important; display: block !important; margin: 0 0 .15em; font-size: .8em; font-weight: 700; letter-spacing: 0;
		text-transform: none; color: var(--stk-label) !important; background: none !important;
	}
}
