/* ==========================================================================
   Mig Child: "Industri"
   Corporate industrial look: charcoal header and footer, a bright yellow accent,
   white content areas with thin grey frames, photo hero with dark overlay,
   framed category labels and a sticky navigation bar that turns dark.
   Typeface: Rubik (variable, self-hosted).
   ========================================================================== */

/* Font -------------------------------------------------------------------- */
@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Rubik";
	src: url("../fonts/rubik-italic.woff2") format("woff2");
	font-weight: 300 900;
	font-style: italic;
	font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */
:root {
	--yellow: #ffc600;
	--yellow-700: #9a6b00;
	--yellow-hover: #e5b200;
	--yellow-tint: #fff6d6;
	--dark: #22262a;
	--dark-2: #2b3035;
	--dark-3: #1a1d20;
	--dark-line: #3a4046;
	--ink: #1d2125;
	--text: #4f5660;
	--muted: #6b737d;
	--line: #e4e7ea;
	--soft: #f5f6f7;
	--white: #fff;
	--on-dark: #c3c8ce;

	--font: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1200px;
	--wrap-page: 980px;
	--measure: 760px;
	--gutter: clamp(16px, 3vw, 24px);
	--section: clamp(56px, 7vw, 96px);
	--fast: .2s;
	--shadow: 0 10px 30px rgba(20, 24, 28, .08);
}

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

body.mg-theme {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.mg-theme h1, .mg-theme h2, .mg-theme h3, .mg-theme h4, .mg-theme h5, .mg-theme h6 {
	font-family: var(--font);
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -.01em;
	line-height: 1.2;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.mg-theme a { color: var(--ink); transition: color var(--fast), background-color var(--fast), border-color var(--fast); }
.mg-theme a:hover { color: var(--yellow-700); }
.mg-theme :focus-visible { outline: 2px solid var(--yellow-700); outline-offset: 2px; }
.mg-theme ::selection { background: var(--yellow); color: var(--ink); }
.mg-theme img { max-width: 100%; height: auto; }
.mg-theme mark { background: var(--yellow); color: var(--ink); padding: 0 .15em; }

.mg-theme .site.grid-container, .mg-theme #page { max-width: none; padding: 0; margin: 0; background: transparent; }
.mg-theme .site-content { display: block; padding: 0; background: transparent; }
.mg-theme .inside-article, .mg-theme .comments-area { background: transparent; }
.mg-theme .skip-link:focus { z-index: 1000; background: var(--yellow); color: var(--ink); padding: .7em 1em; font-weight: 600; }

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

/* Buttons ----------------------------------------------------------------- */
.mg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em; box-sizing: border-box;
	padding: .9em 1.6em; border: 1px solid transparent; border-radius: 2px;
	font: 500 .9rem/1.1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color var(--fast), color var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.mg-theme .mg-btn--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.mg-theme .mg-btn--yellow:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: var(--ink); box-shadow: 0 6px 16px rgba(229, 178, 0, .3); }
.mg-theme .mg-btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.mg-theme .mg-btn--outline-light:hover { background: #fff; color: var(--ink); }
.mg-theme .mg-btn--dashed { background: #fff; color: var(--ink); border: 1px dashed var(--yellow-hover); padding: .7em 1.1em; font-size: .85rem; }
.mg-theme .mg-btn--dashed .mg-icon { color: var(--yellow-700); }
.mg-theme .mg-btn--dashed:hover { border-style: solid; background: var(--yellow-tint); color: var(--ink); }
.mg-theme .mg-btn--plain { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 2px 8px rgba(20, 24, 28, .06); }
.mg-theme .mg-btn--plain:hover { border-color: var(--yellow); color: var(--ink); }
.mg-theme .mg-btn--plain .mg-icon { color: var(--yellow-700); }

/* Label (category) ------------------------------------------------------- */
.mg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.mg-theme .mg-label {
	display: inline-flex; align-items: center; position: relative; z-index: 2;
	padding: .45em .85em; border: 1px solid var(--yellow); background: #fff;
	font: 400 .78rem/1.2 var(--font); color: var(--ink); text-decoration: none;
}
.mg-theme .mg-label:hover { background: var(--yellow); color: var(--ink); }
.mg-theme .mg-label--tag { border-color: var(--line); color: var(--muted); }

.mg-more { display: inline-flex; align-items: center; gap: .45em; color: var(--yellow-700); font-size: .85rem; font-weight: 500; }

/* Headings with the short yellow rule */
.mg-theme .mg-heading { position: relative; margin: 0 0 32px; padding-bottom: 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; border-bottom: 1px solid var(--line); }
.mg-heading::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 80px; height: 2px; background: var(--yellow); }
.mg-theme .mg-heading--light { color: #fff; border-bottom-color: var(--dark-line); }
.mg-theme .mg-heading--center { text-align: center; border-bottom: 0; }
.mg-heading--center::after { left: 50%; transform: translateX(-50%); width: 46px; }
.mg-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.mg-section-head .mg-heading { margin: 0; flex: 1 1 auto; }

/* Header: top bar ---------------------------------------------------------- */
.mg-header { position: relative; z-index: 100; }
.mg-topbar { background: var(--dark-3); color: var(--on-dark); font-size: .8rem; }
.mg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.mg-topbar__note { display: inline-flex; align-items: center; gap: .55em; margin: 0; }
.mg-topbar__note .mg-icon { color: var(--yellow); }
.mg-topbar__menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.mg-theme .mg-topbar__menu a { color: var(--on-dark); text-decoration: none; }
.mg-theme .mg-topbar__menu a:hover { color: var(--yellow); }

/* Header: masthead */
.mg-masthead { background: var(--dark); color: #fff; }
.mg-masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.mg-brand { flex: 0 0 auto; margin-right: auto; min-width: 0; }
.mg-brand__logo { display: flex; }
.mg-brand__img { display: block; width: auto; max-height: 60px; max-width: 220px; object-fit: contain; }
.mg-theme .mg-wordmark { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.mg-wordmark__icon {
	position: relative; display: grid; place-items: center; width: 50px; height: 50px; background: var(--yellow); color: var(--ink);
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.mg-wordmark__icon::after { content: ""; position: absolute; right: 0; top: 0; width: 12px; height: 12px; background: linear-gradient(225deg, transparent 50%, var(--yellow-hover) 50%); }
.mg-wordmark__icon .mg-icon { width: 30px; height: 30px; stroke-width: 1.8; }
.mg-wordmark__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; padding-left: 14px; border-left: 1px solid var(--dark-line); }
.mg-wordmark__name { font-size: 1.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mg-wordmark__tag { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.mg-wordmark__tag::before { content: ""; width: 16px; height: 2px; background: var(--yellow); flex: none; }
.mg-theme .mg-wordmark:hover .mg-wordmark__name { color: var(--yellow); }

.mg-masthead__facts { display: flex; align-items: stretch; }
.mg-fact { display: flex; align-items: flex-start; gap: 12px; padding: 4px 24px; }
.mg-fact + .mg-fact { border-left: 1px solid var(--dark-line); }
.mg-fact__icon { color: var(--yellow); padding-top: 2px; }
.mg-fact__icon .mg-icon { width: 22px; height: 22px; }
.mg-fact__body { display: flex; flex-direction: column; margin: 0; line-height: 1.35; }
.mg-fact__title { color: #fff; font-size: .92rem; font-weight: 500; }
.mg-fact__text { color: var(--on-dark); font-size: .8rem; }
.mg-masthead__cta { margin-left: 8px; padding: 1em 1.8em; }
.mg-masthead__cta .mg-icon { width: 1em; height: 1em; }

.mg-menu-toggle {
	display: none; align-items: center; gap: 8px; cursor: pointer; margin: 0;
	background: var(--yellow); color: var(--ink); border: 0; border-radius: 2px; padding: .7em .9em;
	font: 500 .9rem/1 var(--font);
}
.mg-menu-toggle:hover { background: var(--yellow-hover); color: var(--ink); }
.mg-menu-toggle .mg-menu-toggle__close { display: none; }
.mg-menu-toggle[aria-expanded="true"] .mg-menu-toggle__open { display: none; }
.mg-menu-toggle[aria-expanded="true"] .mg-menu-toggle__close { display: inline-flex; }

/* Header: navigation bar */
.mg-navbar { position: relative; background: var(--soft); border-bottom: 1px solid var(--line); transition: background-color var(--fast); }
.mg-navbar__inner { display: flex; align-items: stretch; gap: 16px; min-height: 64px; }
.mg-drawer { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.mg-drawer .mg-search, .mg-drawer__ghost { display: none; }
.mg-nav { display: flex; flex: 1 1 auto; min-width: 0; }
.mg-nav__list { list-style: none; display: flex; flex: 1 1 auto; margin: 0; padding: 0; }
.mg-nav__list > li { position: relative; display: flex; margin: 0; }
.mg-nav__list > .mg-nav-topic { flex: 1 1 auto; min-width: 0; border-left: 1px solid var(--line); }
.mg-nav__list > .mg-nav-topic:last-of-type, .mg-nav__list > .mg-nav-topic:has(+ .mg-nav-page) { border-right: 1px solid var(--line); }
.mg-theme .mg-nav__list > li > a { position: relative; display: flex; align-items: center; width: 100%; box-sizing: border-box; text-decoration: none; }
.mg-theme .mg-nav-topic > a { gap: 10px; padding: 10px 14px; color: var(--ink); font-size: .86rem; font-weight: 500; line-height: 1.25; }
.mg-nav__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: #fff; border: 1px solid var(--line); color: var(--yellow-700); transition: background-color var(--fast), border-color var(--fast), color var(--fast); }
.mg-nav__icon .mg-icon { width: 19px; height: 19px; }
.mg-nav__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.mg-nav-topic > a::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transition: transform var(--fast); }
.mg-theme .mg-nav-topic > a:hover, .mg-theme .mg-nav-topic:focus-within > a { background: #fff; color: var(--ink); }
.mg-nav-topic > a:hover .mg-nav__icon, .mg-nav-topic:focus-within > a .mg-nav__icon { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.mg-theme .mg-nav-topic.current-menu-item > a, .mg-theme .mg-nav-topic.current-category-ancestor > a, .mg-theme .mg-nav-topic.current-post-ancestor > a, .mg-theme .mg-nav-topic.current-menu-ancestor > a { background: #fff; color: var(--ink); font-weight: 600; }
.mg-nav-topic.current-menu-item > a::before, .mg-nav-topic.current-category-ancestor > a::before, .mg-nav-topic.current-post-ancestor > a::before, .mg-nav-topic.current-menu-ancestor > a::before, .mg-nav-topic > a:hover::before { transform: scaleX(1); }
.mg-nav-topic.current-menu-item .mg-nav__icon, .mg-nav-topic.current-category-ancestor .mg-nav__icon, .mg-nav-topic.current-post-ancestor .mg-nav__icon, .mg-nav-topic.current-menu-ancestor .mg-nav__icon { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.mg-theme .mg-nav-page > a { padding: 0 16px; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.mg-theme .mg-nav-page > a:hover, .mg-theme .mg-nav-page.current-menu-item > a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.mg-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 20; list-style: none; margin: 0; padding: 8px 0;
	background: #fff; border-top: 3px solid var(--yellow); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--fast), transform var(--fast), visibility 0s var(--fast);
}
.mg-nav li:hover > .sub-menu, .mg-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mg-theme .mg-nav .sub-menu a { display: block; padding: .55em 1.1em; color: var(--ink); font-size: .9rem; text-decoration: none; }
.mg-theme .mg-nav .sub-menu a:hover { background: var(--soft); color: var(--yellow-700); }

.mg-navbar__ghost { align-self: center; margin-left: 8px; }
.mg-search-toggle {
	display: grid; place-items: center; width: 64px; flex: none; margin: 0 0 -1px; padding: 0; cursor: pointer;
	background: var(--yellow); color: var(--ink); border: 0; border-radius: 0; transition: background-color var(--fast);
}
.mg-search-toggle:hover { background: var(--yellow-hover); color: var(--ink); }
.mg-search-toggle .mg-search-toggle__close { display: none; }
.mg-search-toggle[aria-expanded="true"] .mg-search-toggle__open { display: none; }
.mg-search-toggle[aria-expanded="true"] .mg-search-toggle__close { display: block; }

.mg-searchbar { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-top: 2px solid var(--yellow); box-shadow: var(--shadow); padding: 20px 0; display: none; }
.mg-header.is-searching .mg-searchbar { display: block; }
.mg-searchbar .mg-search { max-width: 720px; margin-left: auto; }

/* Search form */
.mg-search { display: flex; align-items: stretch; margin: 0; }
.mg-theme .mg-search__input {
	flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; box-sizing: border-box;
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-right: 0; border-radius: 2px 0 0 2px;
	padding: .8em 1em; font: 400 .95rem/1.3 var(--font); transition: border-color var(--fast);
}
.mg-theme .mg-search__input::placeholder { color: var(--muted); opacity: 1; }
.mg-theme .mg-search__input:focus { outline: none; border-color: var(--yellow-hover); box-shadow: inset 0 0 0 1px var(--yellow-hover); }
.mg-theme .mg-search__submit {
	display: inline-flex; align-items: center; gap: .5em; flex: none; margin: 0; cursor: pointer;
	background: var(--yellow); color: var(--ink); border: 1px solid var(--yellow); border-radius: 0 2px 2px 0;
	padding: 0 1.2em; font: 500 .9rem/1 var(--font); transition: background-color var(--fast);
}
.mg-theme .mg-search__submit:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: var(--ink); }

/* Desktop sticky header: only the navigation bar stays, and turns dark */
@media (min-width: 1024px) {
	.mg-header { position: sticky; top: var(--mg-stick, 0px); }
	.admin-bar .mg-header { top: calc(var(--mg-stick, 0px) + 32px); }
	.mg-header.is-stuck .mg-navbar { background: var(--dark-3); border-bottom-color: var(--dark-3); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
	.mg-header.is-stuck .mg-nav__list > .mg-nav-topic { border-color: var(--dark-line); }
	.mg-theme .mg-header.is-stuck .mg-nav-topic > a { color: #fff; }
	.mg-theme .mg-header.is-stuck .mg-nav-topic > a:hover, .mg-theme .mg-header.is-stuck .mg-nav-topic.current-menu-item > a, .mg-theme .mg-header.is-stuck .mg-nav-topic.current-category-ancestor > a, .mg-theme .mg-header.is-stuck .mg-nav-topic.current-post-ancestor > a { background: var(--dark-2); color: #fff; }
	.mg-header.is-stuck .mg-nav__icon { background: var(--dark-2); border-color: var(--dark-line); color: var(--yellow); }
	.mg-header.is-stuck .mg-nav-topic > a:hover .mg-nav__icon, .mg-header.is-stuck .mg-nav-topic.current-menu-item .mg-nav__icon, .mg-header.is-stuck .mg-nav-topic.current-category-ancestor .mg-nav__icon, .mg-header.is-stuck .mg-nav-topic.current-post-ancestor .mg-nav__icon { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
	.mg-theme .mg-header.is-stuck .mg-nav-page > a { color: var(--on-dark); }
	.mg-theme .mg-header.is-stuck .mg-nav-page > a:hover { color: #fff; }
}
@media (min-width: 1200px) {
	.mg-theme .mg-nav-topic > a { font-size: .9rem; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
	.mg-fact:nth-child(2) { display: none; }
	.mg-theme .mg-nav-topic > a { gap: 8px; padding: 8px 10px; font-size: .8rem; }
	.mg-nav__icon { width: 28px; height: 28px; }
	.mg-nav__icon .mg-icon { width: 16px; height: 16px; }
	.mg-theme .mg-nav-page > a { padding: 0 10px; font-size: .8rem; }
}

/* Mobile header and drawer */
@media (max-width: 1023.98px) {
	.mg-topbar { display: none; }
	.mg-header { position: sticky; top: 0; }
	.admin-bar .mg-header { top: 46px; }
	.mg-masthead__inner { min-height: 68px; gap: 12px; }
	.mg-masthead__facts, .mg-masthead__cta { display: none; }
	.mg-menu-toggle { display: inline-flex; }
	.mg-wordmark { gap: 10px; }
	.mg-wordmark__icon { width: 40px; height: 40px; }
	.mg-wordmark__icon .mg-icon { width: 24px; height: 24px; }
	.mg-wordmark__text { padding-left: 10px; }
	.mg-wordmark__name { font-size: 1.4rem; }
	.mg-wordmark__tag { font-size: .58rem; letter-spacing: .1em; margin-top: 5px; }
	.mg-brand__img { max-height: 44px; max-width: 170px; }
	.mg-navbar { border: 0; background: none; }
	.mg-navbar__inner { min-height: 0; padding: 0; }
	.mg-navbar__ghost, .mg-search-toggle, .mg-searchbar { display: none !important; }
	.mg-js .mg-drawer {
		position: fixed; left: 0; right: 0; top: var(--mg-drawer-top, 68px); bottom: 0; z-index: 200;
		flex-direction: column; gap: 20px; background: #fff; overflow-y: auto; padding: 20px var(--gutter) 48px;
		border-top: 3px solid var(--yellow); visibility: hidden; opacity: 0; transition: opacity var(--fast), visibility 0s var(--fast);
	}
	.admin-bar .mg-drawer { --mg-drawer-top: 114px; }
	.mg-js .mg-header.is-open .mg-drawer { visibility: visible; opacity: 1; transition-delay: 0s; }
	.mg-drawer .mg-search { display: flex; }
	.mg-drawer__ghost { display: inline-flex; align-self: flex-start; }
	.mg-nav { display: block; }
	.mg-nav__list { display: block; border-top: 1px solid var(--line); }
	.mg-nav__list > li, .mg-nav__list > .mg-nav-topic, .mg-nav__list > .mg-nav-topic:last-of-type, .mg-nav__list > .mg-nav-topic:has(+ .mg-nav-page) { display: block; border: 0; border-bottom: 1px solid var(--line); }
	.mg-theme .mg-nav-topic > a { gap: 12px; padding: 12px 0; font-size: 1rem; }
	.mg-nav-topic > a::before { display: none; }
	.mg-nav-topic > a::after { content: "›"; margin-left: auto; color: var(--yellow-700); font-size: 1.4rem; line-height: 1; }
	.mg-theme .mg-nav-topic > a:hover, .mg-theme .mg-nav-topic.current-menu-item > a, .mg-theme .mg-nav-topic.current-category-ancestor > a, .mg-theme .mg-nav-topic.current-post-ancestor > a { background: none; }
	.mg-nav__icon { width: 38px; height: 38px; background: var(--soft); }
	.mg-nav__text { -webkit-line-clamp: unset; }
	.mg-theme .mg-nav-page > a { padding: 14px 0; font-size: .95rem; }
	.mg-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--yellow); margin: 0 0 12px 50px; padding: 0 0 0 14px; }
	.mg-theme .mg-nav .sub-menu a { padding: .45em 0; }
}

/* Hero --------------------------------------------------------------------- */
.mg-hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.mg-hero__bg { position: absolute; inset: 0; }
.mg-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 22, 25, .88) 0%, rgba(20, 22, 25, .66) 50%, rgba(20, 22, 25, .4) 100%); }
.mg-hero:not(.mg-hero--image) { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px); }
.mg-hero__inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: clamp(420px, 62vh, 600px); padding-block: clamp(56px, 8vw, 96px); }
.mg-theme .mg-hero__title { margin: 0; max-width: 15ch; color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.mg-hero__lead { margin: 20px 0 0; max-width: 44ch; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.mg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* Intro strip ---------------------------------------------------------------- */
.mg-intro { border-bottom: 1px solid var(--line); }
.mg-intro__inner { display: grid; gap: 20px 40px; padding-block: 36px; align-items: center; }
@media (min-width: 760px) { .mg-intro__inner { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.mg-theme .mg-intro__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 400; line-height: 1.2; text-align: right; padding-right: 32px; border-right: 2px solid var(--yellow); }
.mg-intro__title span { display: block; }
.mg-intro__text { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 759.98px) { .mg-theme .mg-intro__title { text-align: left; padding: 0 0 0 16px; border-right: 0; border-left: 2px solid var(--yellow); } }

/* Topic cards ------------------------------------------------------------------ */
.mg-topics { padding: var(--section) 0 calc(var(--section) * .6); scroll-margin-top: 80px; }
.mg-topics__large { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.mg-topic { position: relative; margin: 0; display: flex; flex-direction: column; }
.mg-theme .mg-topic__title { margin: 0; font-size: 1.25rem; font-weight: 500; }
.mg-theme .mg-topic__title a { color: var(--ink); text-decoration: none; }
.mg-topic__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mg-topic:hover .mg-topic__title a { color: var(--yellow-700); }
.mg-topic__sub { position: relative; margin: 4px 0 18px; padding-bottom: 16px; color: var(--muted); font-size: .85rem; }
.mg-topic__sub::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--line); transition: width var(--fast), background-color var(--fast); }
.mg-topic:hover .mg-topic__sub::after { width: 60px; background: var(--yellow); }
.mg-topic__media { position: relative; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.mg-topic__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mg-topic:hover .mg-topic__media img { transform: scale(1.04); }
.mg-topic__icon { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; background: var(--yellow); color: var(--ink); }
.mg-topic__icon .mg-icon { width: 22px; height: 22px; }
.mg-topic__text { flex: 1; margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-top: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.mg-topics__small { list-style: none; margin: 48px 0 0; padding: 48px 0 0; border-top: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.mg-topic-mini { position: relative; display: flex; margin: 0; background: #fff; }
.mg-topic-mini__media { flex: 0 0 110px; min-height: 110px; background: var(--dark); display: grid; place-items: center; overflow: hidden; }
.mg-topic-mini__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-topic-mini__icon { color: var(--yellow); }
.mg-topic-mini__icon .mg-icon { width: 34px; height: 34px; }
.mg-topic-mini__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-left: 0; }
.mg-theme .mg-topic-mini__title { margin: 0; font-size: 1rem; font-weight: 500; }
.mg-theme .mg-topic-mini__title a { color: var(--ink); text-decoration: none; }
.mg-topic-mini__title a::after { content: ""; position: absolute; inset: 0; }
.mg-topic-mini:hover .mg-topic-mini__title a { color: var(--yellow-700); }
.mg-topic-mini__sub { margin: 0 0 6px; color: var(--muted); font-size: .82rem; }

/* Dark band with article tiles ------------------------------------------------- */
.mg-dark { background: var(--dark-2); padding: var(--section) 0; color: var(--on-dark); }
.mg-dark__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.mg-dark__head .mg-heading { margin: 0; border-bottom: 0; }
.mg-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; }
.mg-tabs li { display: flex; align-items: center; margin: 0; }
.mg-tabs li + li::before { content: "/"; margin: 0 12px; color: var(--dark-line); }
.mg-theme .mg-tabs a { color: var(--on-dark); font-size: .8rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; }
.mg-theme .mg-tabs a:hover, .mg-theme .mg-tabs a.is-active { color: var(--yellow); }
.mg-tiles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }

/* Cards ---------------------------------------------------------------------- */
.mg-grid { display: grid; gap: 40px 30px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.mg-grid--three { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.mg-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; }
.mg-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.mg-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mg-card:hover .mg-card__media img { transform: scale(1.04); }
.mg-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 0 0; flex: 1; }
.mg-theme .mg-card__title { margin: 0; font-size: 1.12rem; font-weight: 500; line-height: 1.35; }
.mg-theme .mg-card__link { color: var(--ink); text-decoration: none; }
.mg-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mg-card:hover .mg-card__link { color: var(--yellow-700); }
.mg-card__excerpt { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mg-card .mg-more { margin-top: auto; padding-top: 4px; }

.mg-card--tile { overflow: hidden; background: var(--dark); }
.mg-card--tile .mg-card__media { aspect-ratio: 4 / 3; }
.mg-card--tile .mg-card__body { position: absolute; inset: auto 0 0 0; padding: 56px 18px 18px; background: linear-gradient(180deg, rgba(20, 22, 25, 0), rgba(20, 22, 25, .94) 55%); }
.mg-theme .mg-card--tile .mg-card__title { color: #fff; font-size: 1rem; }
.mg-theme .mg-card--tile .mg-card__link, .mg-card--tile:hover .mg-card__link { color: #fff; }
.mg-theme .mg-card--tile .mg-label { background: var(--yellow); border-color: var(--yellow); }
.mg-card--tile::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--yellow); opacity: 0; transition: opacity var(--fast); pointer-events: none; z-index: 3; }
.mg-card--tile:hover::after, .mg-card--tile:focus-within::after { opacity: 1; }

.mg-card--list { padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.mg-card--list .mg-card__body { padding-top: 0; }
.mg-card--list + .mg-card--list { padding-top: 22px; }

.mg-card--mini { flex-direction: row; gap: 14px; }
.mg-card--mini .mg-card__media { flex: 0 0 90px; aspect-ratio: 1; }
.mg-card--mini .mg-card__body { padding: 0; gap: 4px; }

@media (min-width: 900px) {
	.mg-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
	.mg-card--feature .mg-card__body { padding: 0; gap: 14px; }
	.mg-theme .mg-card--feature .mg-card__title { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.2; }
	.mg-card--feature .mg-card__excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
}

/* Byline */
.mg-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--muted); font-size: .8rem; }
.mg-byline > span + span::before { content: "|"; margin: 0 .7em; color: #c9ced3; }
.mg-byline__date { color: var(--yellow-700); }
.mg-byline__updated { color: var(--ink); }

/* News section ------------------------------------------------------------------ */
.mg-news { padding: var(--section) 0; scroll-margin-top: 80px; }
.mg-news__head { margin-bottom: 8px; }
.mg-news__layout { display: grid; gap: 30px; }
@media (min-width: 1000px) { .mg-news__layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.mg-news__cards { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.mg-news__list { display: flex; flex-direction: column; }
.mg-news__all { margin: 40px 0 0; text-align: center; }

/* About section with side box --------------------------------------------------- */
.mg-about { padding: var(--section) 0; border-top: 1px solid var(--line); }
.mg-about__inner { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .mg-about__inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
@media (min-width: 1000px) {
	.mg-about__aside { position: sticky; top: 90px; }
	.admin-bar .mg-about__aside { top: 122px; }
}
.mg-box { padding: 28px; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 12px rgba(20, 24, 28, .04); }
.mg-theme .mg-box__title { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 1.3rem; font-weight: 400; text-align: center; }
.mg-box .mg-search { margin-bottom: 18px; }
.mg-box__list { list-style: none; margin: 0; padding: 0; }
.mg-box__list li { margin: 0; border-bottom: 1px solid var(--line); }
.mg-box__list li:last-child { border-bottom: 0; }
.mg-theme .mg-box__list a { display: flex; align-items: center; gap: .5em; padding: .75em 0; color: var(--ink); font-size: .92rem; text-decoration: none; }
.mg-box__list a .mg-icon { color: var(--yellow-700); width: 1em; height: 1em; }
.mg-box__list a span { flex: none; margin-left: auto; min-width: 2em; padding: .15em .5em; background: var(--soft); color: var(--muted); font-size: .75rem; text-align: center; }
.mg-theme .mg-box__list a:hover, .mg-theme .mg-box__list a[aria-current] { color: var(--yellow-700); }
.mg-box__list a[aria-current] span { background: var(--yellow); color: var(--ink); }

/* Yellow call-to-action band ----------------------------------------------------- */
.mg-cta { background: var(--yellow); }
.mg-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 40px; }
.mg-cta__text { margin: 0; color: var(--ink); font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 400; max-width: 34ch; }
.mg-cta .mg-search { flex: 0 1 460px; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.mg-theme .mg-cta .mg-search__input { border-color: #fff; }
.mg-theme .mg-cta .mg-search__submit { background: var(--dark); border-color: var(--dark); color: #fff; }
.mg-theme .mg-cta .mg-search__submit:hover { background: var(--dark-3); border-color: var(--dark-3); color: var(--yellow); }

/* Title band (inner pages) ---------------------------------------------------------- */
.mg-band { position: relative; overflow: hidden; background: var(--dark); color: #fff; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); }
.mg-band__bg { position: absolute; inset: 0; }
.mg-band__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 25, .8); }
.mg-band__inner { position: relative; padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.mg-band__kicker { display: inline-block; margin: 0 0 14px; padding: .35em .8em; background: var(--yellow); color: var(--ink); font-size: .78rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.mg-theme .mg-band__title { margin: 0; max-width: 26ch; color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 500; line-height: 1.15; }
.mg-band__text { max-width: 62ch; margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.mg-band__text p { margin: 0 0 .5em; }
.mg-band__meta { margin: 16px 0 0; color: var(--yellow); font-size: .88rem; }
.mg-band .mg-search { max-width: 560px; margin-top: 24px; }
.mg-theme .mg-band .mg-search__input { border-color: #fff; }
.mg-band__crumbs { position: relative; background: rgba(0, 0, 0, .28); border-top: 1px solid rgba(255, 255, 255, .08); }
.mg-band__crumbs:not(:has(nav)) { display: none; }
.mg-listing__body { padding-block: clamp(40px, 5vw, 64px) var(--section); }

/* Breadcrumbs */
.mg-crumbs { padding: 12px 0; font-size: .82rem; color: var(--on-dark); }
.mg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.mg-crumbs li { display: inline-flex; align-items: center; margin: 0; min-width: 0; }
.mg-crumbs li + li::before { content: "›"; margin: 0 .6em; color: var(--yellow); }
.mg-theme .mg-crumbs a { color: #fff; text-decoration: none; }
.mg-theme .mg-crumbs a:hover { color: var(--yellow); }
.mg-crumbs [aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; display: inline-block; vertical-align: bottom; }

/* Article ------------------------------------------------------------------------- */
.mg-article__layout { display: grid; gap: 48px; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 1024px) { .mg-article__layout { grid-template-columns: minmax(0, var(--measure)) 320px; justify-content: space-between; align-items: start; } }
.mg-article__main { min-width: 0; }
.mg-article__aside { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1024px) {
	.mg-article__aside { position: sticky; top: 90px; }
	.admin-bar .mg-article__aside { top: 122px; }
	.mg-article__toc-mobile { display: none; }
}
@media (max-width: 1023.98px) { .mg-article__toc-desktop { display: none; } }

.mg-facts { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 0 0 28px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.mg-facts__cell { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 22px 0 0; }
.mg-facts__cell + .mg-facts__cell { padding-left: 22px; border-left: 1px solid var(--line); }
.mg-facts__icon { display: grid; place-items: center; width: 36px; height: 36px; background: var(--yellow-tint); color: var(--yellow-700); }
.mg-facts__icon .mg-icon { width: 18px; height: 18px; }
.mg-facts dt { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.mg-facts dd { margin: 0; color: var(--ink); font-size: .9rem; font-weight: 500; }
.mg-theme .mg-facts dd a { color: var(--ink); text-decoration: none; }
@media (max-width: 600px) {
	.mg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
	.mg-facts__cell, .mg-facts__cell + .mg-facts__cell { padding: 0; border: 0; }
}

.mg-figure { margin: 0 0 32px; }
.mg-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mg-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }

/* Table of contents */
.mg-toc { background: var(--soft); border-top: 3px solid var(--yellow); }
.mg-article__toc-mobile .mg-toc { margin: 0 0 28px; }
.mg-theme .mg-toc__toggle {
	display: flex; width: 100%; align-items: center; gap: 10px; margin: 0; padding: 16px 20px; border: 0; border-radius: 0;
	background: transparent; color: var(--ink); font: 500 1rem/1.2 var(--font); text-align: left; cursor: pointer;
}
.mg-theme .mg-toc__toggle:hover { background: transparent; color: var(--ink); }
.mg-toc__toggle .mg-icon { color: var(--yellow-700); }
.mg-toc__count { margin-left: auto; min-width: 1.8em; padding: .2em .5em; background: #fff; color: var(--muted); font-size: .75rem; text-align: center; }
.mg-toc__list { list-style: none; counter-reset: toc; margin: 0; padding: 0 12px 14px; }
.mg-toc__list li { counter-increment: toc; margin: 0; }
.mg-theme .mg-toc__list a { display: grid; grid-template-columns: 1.8em 1fr; gap: .3em; padding: .55em 8px; color: var(--text); font-size: .9rem; line-height: 1.4; text-decoration: none; border-bottom: 1px solid var(--line); }
.mg-toc__list li:last-child a { border-bottom: 0; }
.mg-toc__list a::before { content: counter(toc) "."; color: var(--yellow-700); font-weight: 500; }
.mg-theme .mg-toc__list a:hover { color: var(--ink); background: #fff; }
.mg-theme .mg-toc__list a[aria-current] { color: var(--ink); background: #fff; font-weight: 500; box-shadow: inset 3px 0 0 var(--yellow); }
.mg-theme .mg-toc--side .mg-toc__toggle { cursor: default; pointer-events: none; }
.mg-toc--side .mg-toc__list { max-height: calc(100vh - 360px); overflow-y: auto; }
.mg-js .mg-toc--mobile:not(.is-open) .mg-toc__list { display: none; }
.mg-toc--mobile .mg-toc__toggle::after { content: "+"; margin-left: 10px; color: var(--yellow-700); font-size: 1.3rem; line-height: 1; }
.mg-toc--mobile.is-open .mg-toc__toggle::after { content: "−"; }

/* Prose: only the post's own top-level elements; pasted blocks in their own wrapper keep their design. */
.mg-prose { font-size: clamp(1.02rem, 1rem + .15vw, 1.1rem); line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.mg-prose::after { content: ""; display: table; clear: both; }
.mg-prose > p { margin: 0 0 1.2em; }
.mg-prose > p:empty { display: none; }
.mg-prose strong, .mg-prose b { color: var(--ink); font-weight: 600; }
.mg-prose h2, .mg-prose h3, .mg-prose h4 { scroll-margin-top: 96px; }
.mg-theme .mg-prose > h2 { position: relative; margin: 2em 0 .8em; padding-bottom: .5em; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem); font-weight: 500; border-bottom: 1px solid var(--line); }
.mg-prose > h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 2px; background: var(--yellow); }
.mg-theme .mg-prose > h3 { margin: 1.8em 0 .55em; font-size: clamp(1.18rem, 1.08rem + .4vw, 1.38rem); font-weight: 500; }
.mg-toc-h3 .mg-prose > h3 { padding-left: 14px; border-left: 3px solid var(--yellow); }
.mg-theme .mg-prose > h4 { margin: 1.5em 0 .4em; font-size: 1.05rem; font-weight: 500; }
.mg-prose > :first-child { margin-top: 0; }
.mg-theme .mg-prose > p a, .mg-theme .mg-prose > ul a, .mg-theme .mg-prose > ol a, .mg-theme .mg-prose > blockquote a, .mg-theme .mg-prose > table a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.mg-theme .mg-prose > p a:hover, .mg-theme .mg-prose > ul a:hover, .mg-theme .mg-prose > ol a:hover { background: var(--yellow-tint); color: var(--ink); }
.mg-prose > ul, .mg-prose > ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.mg-prose > ul li, .mg-prose > ol li { margin: 0 0 .5em; padding-left: .3em; }
.mg-prose > ul > li::marker { color: var(--yellow-hover); }
.mg-prose > ol > li::marker { color: var(--yellow-700); font-weight: 600; }
.mg-prose > blockquote { position: relative; margin: 2em 0; padding: 1.4em 1.6em 1.4em 4em; background: var(--soft); border: 0; border-left: 3px solid var(--yellow); font-style: normal; color: var(--ink); }
.mg-prose > blockquote::before { content: "\201C"; position: absolute; left: .45em; top: .1em; color: var(--yellow-hover); font-size: 3.6em; line-height: 1; font-weight: 600; }
.mg-prose > blockquote p { margin: 0 0 .5em; }
.mg-prose > blockquote p:last-child { margin: 0; }
.mg-prose > blockquote cite { display: block; margin-top: .6em; font-size: .85em; font-style: normal; color: var(--muted); }
.mg-prose > figure, .mg-prose > .wp-caption { margin: 2em 0; max-width: 100%; }
.mg-prose figcaption, .mg-prose .wp-caption-text { margin-top: .6em; color: var(--muted); font-size: .85rem; }
.mg-prose > hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.mg-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.mg-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.mg-prose .aligncenter { display: block; margin-inline: auto; }
@media (max-width: 600px) { .mg-prose .alignleft, .mg-prose .alignright { float: none; margin: 1em 0; } }

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

/* Forms in content (Contact Form 7) and comments */
.mg-theme .mg-prose input[type="text"], .mg-theme .mg-prose input[type="email"], .mg-theme .mg-prose input[type="tel"], .mg-theme .mg-prose input[type="url"], .mg-theme .mg-prose input[type="number"], .mg-theme .mg-prose select, .mg-theme .mg-prose textarea,
.mg-theme .mg-comments input[type="text"], .mg-theme .mg-comments input[type="email"], .mg-theme .mg-comments input[type="url"], .mg-theme .mg-comments textarea {
	width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 6px;
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: .8em 1em; font: 400 .95rem/1.4 var(--font);
	transition: border-color var(--fast);
}
.mg-theme .mg-prose input:focus, .mg-theme .mg-prose select:focus, .mg-theme .mg-prose textarea:focus, .mg-theme .mg-comments input:focus, .mg-theme .mg-comments textarea:focus { outline: none; border-color: var(--yellow-hover); box-shadow: inset 0 0 0 1px var(--yellow-hover); }
.mg-theme .mg-prose label { color: var(--ink); font-size: .9rem; }
.mg-theme .mg-prose input[type="submit"], .mg-theme .mg-prose button[type="submit"], .mg-theme .mg-comments .form-submit .submit {
	background: var(--yellow); color: var(--ink); border: 1px solid var(--yellow); border-radius: 2px; padding: .9em 1.8em; cursor: pointer;
	font: 500 .92rem/1 var(--font); transition: background-color var(--fast);
}
.mg-theme .mg-prose input[type="submit"]:hover, .mg-theme .mg-prose button[type="submit"]:hover, .mg-theme .mg-comments .form-submit .submit:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.mg-theme .wpcf7-not-valid-tip { color: #b42318; font-size: .85rem; margin-top: 4px; }
.mg-theme .wpcf7 form .wpcf7-response-output { margin: 1em 0 0; padding: .8em 1em; border: 1px solid var(--line); font-size: .92rem; }

/* Article footer, author ------------------------------------------------------------- */
.mg-article__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.mg-article__foot-label { color: var(--ink); font-weight: 500; font-size: .9rem; }
.mg-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 2em; padding: 24px; background: var(--soft); border-left: 3px solid var(--yellow); }
.mg-badge { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--dark); color: var(--yellow); font-size: 1.3rem; font-weight: 600; }
.mg-band__title .mg-badge { width: 1.3em; height: 1.3em; font-size: .8em; margin-right: .3em; vertical-align: .1em; }
.mg-author__name { margin: 0 0 .3em; font-size: 1.05rem; font-weight: 500; }
.mg-theme .mg-author__name a { color: var(--ink); text-decoration: none; }
.mg-author__bio p { margin: 0 0 .5em; color: var(--text); font-size: .95rem; }
.mg-page-links { margin: 2em 0; display: flex; gap: 8px; flex-wrap: wrap; }

.mg-page__body { padding-block: clamp(36px, 5vw, 64px) var(--section); }
.mg-related { padding: var(--section) 0; background: var(--soft); }
.mg-related .mg-card { background: transparent; }

/* 404 */
.mg-404__body { display: grid; gap: 32px 56px; align-items: center; padding-block: var(--section); }
@media (min-width: 860px) { .mg-404__body { grid-template-columns: auto minmax(0, 1fr); } }
.mg-404__code { font-size: clamp(6rem, 4rem + 8vw, 11rem); font-weight: 700; line-height: .9; color: var(--yellow); letter-spacing: -.04em; }
.mg-404__help .mg-search { max-width: 560px; margin-bottom: 20px; }
.mg-404__help .mg-chips { margin-bottom: 24px; }

/* Pagination ------------------------------------------------------------------------- */
.mg-pagination { margin-top: clamp(40px, 5vw, 64px); }
.mg-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.mg-theme .mg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-width: 44px; height: 44px; padding: 0 .9em; box-sizing: border-box;
	border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem;
}
.mg-theme .mg-pagination a.page-numbers:hover { border-color: var(--yellow); color: var(--ink); }
.mg-theme .mg-pagination .page-numbers.current { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.mg-theme .mg-pagination .page-numbers.dots { border: 0; }
@media (max-width: 480px) { .mg-pagination .prev span, .mg-pagination .next span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Empty state */
.mg-empty { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-top: 3px solid var(--yellow); }
.mg-empty__title { margin: 0 0 .4em; color: var(--ink); font-size: 1.4rem; font-weight: 500; }
.mg-empty .mg-search { margin: 20px auto; max-width: 480px; }
.mg-empty .mg-chips { justify-content: center; }

/* Footer -------------------------------------------------------------------------------- */
.mg-footer { background: var(--dark-2); color: var(--on-dark); font-size: .9rem; }
.mg-strip { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin: 0; padding: 0; background: var(--dark); }
.mg-strip__cell { display: flex; align-items: center; gap: 12px; margin: 0; padding: 22px 24px; }
.mg-strip__cell + .mg-strip__cell { border-left: 1px solid var(--dark-line); }
.mg-strip__icon { color: var(--yellow); }
.mg-strip__icon .mg-icon { width: 22px; height: 22px; }
.mg-strip__label { color: #fff; }
.mg-theme .mg-strip a { color: var(--on-dark); text-decoration: none; }
.mg-theme .mg-strip a:hover { color: var(--yellow); }
.mg-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 700px) { .mg-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mg-footer__grid { grid-template-columns: 1.15fr .9fr 1.1fr 1.15fr; } }
.mg-footer .mg-widget__title { margin: 0 0 1.2em; color: #fff; font-size: .95rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.mg-footer__note, .mg-footer__note p { margin: 0 0 .7em; line-height: 1.75; }
.mg-footer ul { list-style: none; margin: 0; padding: 0; }
.mg-theme .mg-footer a { color: var(--on-dark); text-decoration: none; }
.mg-theme .mg-footer a:hover { color: var(--yellow); }
.mg-footer__links li { margin: 0 0 .8em; }
.mg-footer__links a { display: inline-flex; align-items: center; gap: .5em; }
.mg-footer__links .mg-icon { width: .95em; height: .95em; }
.mg-footer__recent li { display: flex; gap: 12px; margin: 0; padding: 0 0 14px; }
.mg-footer__recent li + li { padding-top: 14px; border-top: 1px solid var(--dark-line); }
.mg-footer__recent .mg-icon { color: var(--yellow); margin-top: .2em; }
.mg-footer__recent span { display: flex; flex-direction: column; gap: 2px; }
.mg-theme .mg-footer__recent a { color: #fff; line-height: 1.45; }
.mg-footer__recent time { color: var(--on-dark); font-size: .8rem; }
.mg-footer__box { padding: 26px; background: var(--dark); }
.mg-footer__lead { margin: 0 0 1.1em; line-height: 1.65; }
.mg-footer__box .mg-search { flex-direction: column; gap: 10px; }
.mg-theme .mg-footer__box .mg-search__input { border: 1px solid var(--dark-line); border-radius: 2px; background: var(--dark-2); color: #fff; }
.mg-theme .mg-footer__box .mg-search__input::placeholder { color: var(--on-dark); }
.mg-theme .mg-footer__box .mg-search__submit { justify-content: center; border-radius: 2px; padding: .85em 1em; }
.mg-footer__bottom { background: var(--dark-3); }
.mg-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 60px; padding-block: 12px; }
.mg-footer__menu ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mg-footer__menu li { margin: 0; }
.mg-footer__menu a { font-size: .85rem; }
.mg-footer__copy { margin: 0; font-size: .85rem; }
.mg-theme .mg-footer__copy a { color: var(--yellow); }

/* Comments */
.mg-comments { padding-bottom: 64px; }
.mg-comments .comment-reply-title, .mg-comments .comments-title { font-size: 1.4rem; }

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

/* Small screens */
@media (max-width: 600px) {
	.mg-crumbs [aria-current] { display: none; }
	.mg-author { flex-direction: column; }
	.mg-menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.mg-strip__cell + .mg-strip__cell { border-left: 0; border-top: 1px solid var(--dark-line); }
	.mg-search__submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.mg-hero__actions .mg-btn { flex: 1 1 auto; }
	.mg-theme .mg-band__title, .mg-theme .mg-prose > h2, .mg-theme .mg-prose > h3 { hyphens: auto; -webkit-hyphens: auto; }
}

/* Print */
@media print {
	.mg-header, .mg-footer, .mg-toc, .mg-related, .mg-crumbs, .mg-article__aside, .mg-cta { display: none !important; }
	.mg-band { background: none; color: #000; }
	.mg-theme .mg-band__title { color: #000; }
}
