/* =========================================================================
   Meridian — main stylesheet
   Tokens come from CSS custom properties printed inline by
   meridian_css_variables(); values below are fallbacks only.
   ========================================================================= */

:root {
	--m-primary: #8f1f2b;
	--m-accent: #143c34;
	--m-bg: #ffffff;
	--m-surface: #f6f5f1;
	--m-ink: #26272b;
	--m-heading: #141519;
	--m-muted: #6c6f76;
	--m-border: #e4e2dc;
	--m-font-heading: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, Cambria, "Times New Roman", serif;
	--m-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--m-fs-base: 16px;
	--m-fs-article: 19px;
	--m-scale: 1.22;
	--m-container: 1300px;
	--m-content: 720px;
	--m-radius: 2px;
	--m-gap: 28px;
	--m-logo-h: 44px;

	--m-fs-sm: calc(var(--m-fs-base) * 0.875);
	--m-fs-xs: calc(var(--m-fs-base) * 0.76);
	--m-fs-h4: calc(var(--m-fs-base) * var(--m-scale));
	--m-fs-h3: calc(var(--m-fs-base) * var(--m-scale) * var(--m-scale));
	--m-fs-h2: calc(var(--m-fs-base) * var(--m-scale) * var(--m-scale) * var(--m-scale));
	--m-fs-h1: calc(var(--m-fs-base) * var(--m-scale) * var(--m-scale) * var(--m-scale) * var(--m-scale));

	--m-section-pad: clamp(30px, 4vw, 46px);
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--m-bg);
	color: var(--m-ink);
	font-family: var(--m-font-body);
	font-size: var(--m-fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--m-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--m-heading);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--m-font-heading);
	color: var(--m-heading);
	line-height: 1.18;
	margin: 0 0 0.45em;
	font-weight: 700;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

h1 { font-size: var(--m-fs-h1); }
h2 { font-size: var(--m-fs-h2); }
h3 { font-size: var(--m-fs-h3); }
h4 { font-size: var(--m-fs-h4); }

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 2px solid var(--m-primary);
	outline-offset: 2px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--m-heading);
	color: var(--m-bg);
	padding: 10px 16px;
	z-index: 100;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	clip: auto;
	width: auto;
	height: auto;
}

/* ---------- Containers & section rhythm ---------- */

.m-container {
	max-width: var(--m-container);
	margin-inline: auto;
	padding-inline: clamp(16px, 2.6vw, 28px);
}

.m-container-content {
	max-width: calc(var(--m-content) + 48px);
	margin-inline: auto;
	padding-inline: clamp(16px, 2.6vw, 28px);
}

.m-section {
	padding-block: var(--m-section-pad);
}

.m-section + .m-section {
	padding-top: 0;
}

.m-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: calc(var(--m-gap) * 1.4);
	padding-block: var(--m-section-pad);
}

@media (min-width: 1024px) {
	.m-has-sidebar .m-layout,
	.m-article--sidebar .m-layout {
		grid-template-columns: minmax(0, 1fr) 328px;
	}
	.m-sidebar-left .m-layout {
		grid-template-columns: 328px minmax(0, 1fr);
	}
	.m-sidebar-left .m-layout .m-sidebar {
		order: -1;
	}
}

/* ---------- Buttons, chips, forms ---------- */

.m-btn,
.wp-element-button,
.wp-block-button__link {
	display: inline-block;
	background: var(--m-accent);
	color: #fff;
	font-family: var(--m-font-body);
	font-size: var(--m-fs-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 10px 22px;
	border: 1px solid var(--m-accent);
	border-radius: var(--m-radius);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.m-btn:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--m-heading);
	border-color: var(--m-heading);
	color: #fff;
}

.m-btn--lg {
	padding: 13px 30px;
	font-size: var(--m-fs-base);
}

.m-chip {
	display: inline-block;
	font-size: var(--m-fs-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--m-ink);
	text-decoration: none;
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	padding: 4px 10px;
	margin: 0 6px 6px 0;
	background: var(--m-bg);
}

.m-chip:hover {
	border-color: var(--m-primary);
	color: var(--m-primary);
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
	font: inherit;
	color: var(--m-ink);
	background: var(--m-bg);
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	padding: 9px 12px;
	width: 100%;
}

input:focus,
textarea:focus {
	border-color: var(--m-primary);
	outline: none;
}

.m-searchform {
	display: flex;
	gap: 8px;
}

.m-searchform__submit {
	flex: none;
	background: var(--m-heading);
	color: var(--m-bg);
	border: 1px solid var(--m-heading);
	border-radius: var(--m-radius);
	font: inherit;
	font-size: var(--m-fs-sm);
	font-weight: 600;
	padding: 0 18px;
	cursor: pointer;
}

/* ---------- Placeholder media (image fallback system) ---------- */

.m-ph {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: var(--m-radius);
	color: #fff;
	background:
		repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 9px),
		linear-gradient(150deg, color-mix(in srgb, var(--m-ph-base) 88%, #ffffff) 0%, var(--m-ph-base) 46%, color-mix(in srgb, var(--m-ph-base) 72%, #000000) 100%);
}

.m-ph--r-wide { aspect-ratio: 16 / 9; }
.m-ph--r-card { aspect-ratio: 16 / 10; }
.m-ph--r-thumb { aspect-ratio: 4 / 3; }

.m-ph--0 { --m-ph-base: var(--m-primary); }
.m-ph--1 { --m-ph-base: var(--m-accent); }
.m-ph--2 { --m-ph-base: color-mix(in srgb, var(--m-primary) 55%, var(--m-accent) 45%); }
.m-ph--3 { --m-ph-base: color-mix(in srgb, var(--m-heading) 82%, var(--m-primary) 18%); }
.m-ph--4 { --m-ph-base: color-mix(in srgb, var(--m-accent) 58%, var(--m-heading) 42%); }
.m-ph--5 { --m-ph-base: color-mix(in srgb, var(--m-primary) 42%, var(--m-heading) 58%); }

.m-ph__glyph {
	position: absolute;
	right: -0.06em;
	bottom: -0.28em;
	font-family: var(--m-font-heading);
	font-weight: 700;
	font-size: 7em;
	line-height: 1;
	color: rgba(255, 255, 255, 0.14);
	user-select: none;
}

.m-ph__label {
	position: absolute;
	left: 12px;
	bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.m-ph--r-thumb .m-ph__glyph {
	font-size: 3.4em;
	bottom: -0.2em;
}

.m-ph--r-thumb .m-ph__label {
	display: none;
}

/* ---------- Kicker + section head ---------- */

.m-kicker {
	display: inline-block;
	font-family: var(--m-font-body);
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--m-primary);
	text-decoration: none;
	margin-bottom: 6px;
}

.m-kicker:hover {
	color: var(--m-heading);
}

.m-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 2px solid var(--m-heading);
	padding-bottom: 10px;
	margin-bottom: calc(var(--m-gap) * 0.85);
	position: relative;
}

.m-section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 4px;
	background: var(--m-primary);
}

.m-section-title {
	font-size: clamp(19px, 1.7vw, 23px);
	font-family: var(--m-font-heading);
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: none;
	margin: 0;
}

.m-section-link {
	font-family: var(--m-font-body);
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

/* ---------- Header ---------- */

.m-header {
	background: var(--m-bg);
	border-bottom: 1px solid var(--m-border);
	position: relative;
	z-index: 40;
}

.m-header-sticky .m-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.m-header__row {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 66px;
}

.m-header--compact .m-header__row {
	min-height: 52px;
}

.m-branding {
	display: flex;
	flex-direction: column;
}

.custom-logo {
	max-height: var(--m-logo-h);
	width: auto;
}

.m-site-title {
	font-family: var(--m-font-heading);
	font-size: calc(var(--m-fs-base) * 1.55);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	line-height: 1.05;
}

.m-site-title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-tagline {
	margin: 3px 0 0;
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--m-muted);
}

.m-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 4px;
}

.m-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2px;
}

.m-menu a {
	display: block;
	padding: 10px 12px;
	color: var(--m-heading);
	font-size: var(--m-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.m-menu > li.current-menu-item > a,
.m-menu > li.current_page_item > a {
	color: var(--m-primary);
	box-shadow: inset 0 -2px 0 var(--m-primary);
}

.m-menu a:hover {
	color: var(--m-primary);
}

.m-menu li {
	position: relative;
}

.m-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--m-bg);
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
	display: none;
	z-index: 60;
}

.m-menu li:hover > .sub-menu,
.m-menu li:focus-within > .sub-menu {
	display: block;
}

.m-nav__toggle {
	display: none;
	background: none;
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	padding: 12px 10px;
	cursor: pointer;
}

.m-nav__toggle-bars,
.m-nav__toggle-bars::before,
.m-nav__toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--m-heading);
	position: relative;
	content: "";
}

.m-nav__toggle-bars::before { position: absolute; top: -6px; }
.m-nav__toggle-bars::after { position: absolute; top: 6px; }

.m-header-search {
	position: relative;
}

.m-search-toggle {
	background: none;
	border: none;
	color: var(--m-heading);
	padding: 10px;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.m-search-toggle:hover {
	color: var(--m-primary);
}

.m-search-drop {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: min(340px, 86vw);
	background: var(--m-bg);
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
	padding: 12px;
	z-index: 70;
}

/* Topic strip below header */
.m-subnav {
	border-top: 1px solid var(--m-border);
	background: var(--m-bg);
}

.m-subnav__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 42px;
}

.m-subnav__nav {
	overflow-x: auto;
	scrollbar-width: none;
}

.m-subnav__nav::-webkit-scrollbar {
	display: none;
}

.m-subnav__menu {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.m-subnav__menu a {
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--m-muted);
	text-decoration: none;
}

.m-subnav__menu a:hover {
	color: var(--m-primary);
}

.m-subnav__date {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* Centered + magazine mastheads */
.m-header__masthead {
	text-align: center;
	padding-block: 22px 18px;
}

.m-header--magazine .m-header__masthead .m-site-title {
	font-size: clamp(28px, 3.4vw, 44px);
}

.m-header--centered .m-header__masthead .m-site-title {
	font-size: clamp(24px, 2.6vw, 34px);
}

.m-header__masthead .custom-logo {
	margin-inline: auto;
	max-height: calc(var(--m-logo-h) * 1.5);
}

.m-header__navbar {
	border-top: 1px solid var(--m-border);
}

.m-header--centered .m-header__navbar .m-header__row,
.m-header--magazine .m-header__navbar .m-header__row {
	min-height: 48px;
	justify-content: center;
}

.m-header--centered .m-nav,
.m-header--magazine .m-nav {
	margin-left: 0;
}

.m-header--centered .m-header-search,
.m-header--magazine .m-header-search {
	margin-left: auto;
}

.m-topbar {
	background: var(--m-heading);
	color: var(--m-bg);
	font-size: var(--m-fs-xs);
}

.m-topbar__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 34px;
}

.m-topbar__menu {
	list-style: none;
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.m-topbar a {
	color: var(--m-bg);
	text-decoration: none;
	opacity: 0.85;
}

.m-topbar a:hover {
	opacity: 1;
}

.m-topbar__date {
	opacity: 0.7;
	letter-spacing: 0.04em;
}

@media (max-width: 900px) {
	.m-nav__toggle {
		display: block;
	}
	.m-nav {
		order: 3;
	}
	.m-menu {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--m-bg);
		border-bottom: 1px solid var(--m-border);
		flex-direction: column;
		gap: 0;
		padding: 8px 20px 16px;
		z-index: 60;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	}
	.m-menu.is-open {
		display: flex;
	}
	.m-menu .sub-menu {
		position: static;
		display: block;
		border: none;
		box-shadow: none;
		padding-left: 14px;
	}
	.m-header__masthead {
		padding-block: 14px 10px;
	}
	.m-topbar {
		display: none;
	}
}

/* ---------- Grids & cards ---------- */

.m-grid {
	display: grid;
	gap: calc(var(--m-gap) * 1.15) var(--m-gap);
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.m-grid--2, .m-grid--3, .m-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.m-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.m-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.m-card {
	display: flex;
	flex-direction: column;
}

.m-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--m-radius);
	margin-bottom: 13px;
	background: var(--m-surface);
}

.m-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.m-card--large .m-card__media img {
	aspect-ratio: 16 / 9;
}

.m-card:hover .m-card__media img,
.m-card:hover .m-ph__glyph {
	transform: scale(1.025);
}

.m-ph__glyph {
	transition: transform 0.35s ease;
}

.m-card__title {
	font-size: calc(var(--m-fs-base) * 1.18);
	line-height: 1.25;
	margin-bottom: 7px;
}

.m-card--large .m-card__title {
	font-size: clamp(22px, 2vw, 27px);
}

.m-card--small .m-card__title {
	font-size: calc(var(--m-fs-base) * 1.02);
}

.m-card__title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-card__title a:hover {
	color: var(--m-primary);
}

.m-card__excerpt {
	font-size: var(--m-fs-sm);
	color: var(--m-muted);
	margin-bottom: 9px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.m-card .m-meta {
	margin-top: auto;
}

.m-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
	letter-spacing: 0.01em;
}

.m-meta a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.m-meta a:hover {
	color: var(--m-primary);
}

.m-meta__updated::before,
.m-meta__time::before,
.m-meta__date::before {
	content: "·";
	margin-right: 12px;
	color: var(--m-border);
}

.m-meta > :first-child::before {
	content: none;
}

/* Horizontal list card */
.m-list {
	display: flex;
	flex-direction: column;
}

.m-listcard {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	padding-block: calc(var(--m-gap) * 0.8);
	border-bottom: 1px solid var(--m-border);
}

.m-list .m-listcard:first-child {
	padding-top: 0;
}

@media (min-width: 640px) {
	.m-listcard {
		grid-template-columns: 264px 1fr;
		align-items: start;
	}
}

.m-listcard__media {
	display: block;
	overflow: hidden;
	border-radius: var(--m-radius);
	background: var(--m-surface);
}

.m-listcard__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.m-listcard__title {
	font-size: clamp(19px, 1.8vw, 23px);
	line-height: 1.22;
	margin-bottom: 7px;
}

.m-listcard__title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-listcard__title a:hover {
	color: var(--m-primary);
}

.m-listcard__excerpt {
	font-size: var(--m-fs-sm);
	color: var(--m-muted);
	margin-bottom: 9px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Compact horizontal card (dense lists) */
.m-compact {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 14px;
	align-items: start;
}

.m-compact__media {
	display: block;
	overflow: hidden;
	border-radius: var(--m-radius);
	background: var(--m-surface);
}

.m-compact__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.m-compact .m-kicker {
	margin-bottom: 2px;
	font-size: 10.5px;
}

.m-compact__title {
	font-size: calc(var(--m-fs-base) * 0.98);
	line-height: 1.28;
	margin-bottom: 3px;
}

.m-compact__title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-compact__title a:hover {
	color: var(--m-primary);
}

.m-compact__date {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
}

/* Text card (minimal layout) */
.m-textcard {
	padding-block: 12px;
	border-bottom: 1px solid var(--m-border);
}

.m-textcard:last-child {
	border-bottom: none;
}

.m-textcard__title {
	font-size: calc(var(--m-fs-base) * 1.02);
	line-height: 1.3;
	margin-bottom: 3px;
}

.m-textcard__title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-textcard__title a:hover {
	color: var(--m-primary);
}

.m-textcard__date {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
}

/* ---------- Hero / featured area ---------- */

.m-hero {
	background: var(--m-surface);
	border-bottom: 1px solid var(--m-border);
	padding-block: clamp(24px, 3vw, 38px);
}

.m-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--m-gap) * 1.1);
}

@media (min-width: 980px) {
	.m-hero__grid {
		grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
	}
}

.m-hero__media {
	display: block;
	overflow: hidden;
	border-radius: var(--m-radius);
	background: var(--m-bg);
	margin-bottom: 16px;
}

.m-hero__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.m-hero__title {
	font-size: clamp(26px, 3.2vw, 42px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 10px;
}

.m-hero__title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-hero__title a:hover {
	color: var(--m-primary);
}

.m-hero__excerpt {
	font-family: var(--m-font-heading);
	font-size: calc(var(--m-fs-base) * 1.1);
	line-height: 1.55;
	color: var(--m-muted);
	max-width: 62ch;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.m-hero__side {
	display: flex;
	flex-direction: column;
	gap: calc(var(--m-gap) * 0.85);
}

@media (min-width: 980px) {
	.m-hero__side {
		border-left: 1px solid var(--m-border);
		padding-left: calc(var(--m-gap) * 1.1);
	}
}

.m-hero__second {
	display: grid;
	grid-template-columns: 138px 1fr;
	gap: 14px;
	align-items: start;
}

.m-hero__second + .m-hero__second {
	border-top: 1px solid var(--m-border);
	padding-top: calc(var(--m-gap) * 0.85);
}

.m-hero__second-media {
	display: block;
	overflow: hidden;
	border-radius: var(--m-radius);
	background: var(--m-bg);
}

.m-hero__second-media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.m-hero__second-title {
	font-size: calc(var(--m-fs-base) * 1.08);
	line-height: 1.25;
	margin-bottom: 6px;
}

.m-hero__second-title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-hero__second-title a:hover {
	color: var(--m-primary);
}

@media (min-width: 980px) {
	.m-hero__second {
		grid-template-columns: 1fr;
	}
	.m-hero__second-media img {
		aspect-ratio: 21 / 10;
	}
}

@media (min-width: 1200px) {
	.m-hero__second {
		grid-template-columns: 148px 1fr;
	}
	.m-hero__second-media img {
		aspect-ratio: 4 / 3;
	}
}

/* Briefing strip below hero */
.m-hero__strip {
	margin-top: clamp(20px, 2.6vw, 30px);
	border-top: 1px solid var(--m-border);
	padding-top: clamp(16px, 2vw, 22px);
}

.m-hero__strip-label {
	font-size: var(--m-fs-xs);
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--m-heading);
	margin: 0 0 14px;
}

.m-hero__strip-label::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	background: var(--m-primary);
	margin-right: 8px;
}

.m-hero__strip-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--m-gap) * 0.75);
}

@media (min-width: 620px) {
	.m-hero__strip-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.m-hero__strip-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--m-gap);
	}
	.m-hero__strip-grid .m-compact {
		grid-template-columns: 92px 1fr;
		padding-left: var(--m-gap);
		border-left: 1px solid var(--m-border);
	}
	.m-hero__strip-grid .m-compact:first-child {
		padding-left: 0;
		border-left: none;
	}
}

/* ---------- Category blocks ---------- */

.m-catsections .m-catblock + .m-catblock {
	margin-top: calc(var(--m-section-pad) * 0.9);
}

.m-catblock__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--m-gap) * 1.05);
}

@media (min-width: 900px) {
	.m-catblock__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.55fr);
	}
}

.m-catblock__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--m-gap) * 0.8) var(--m-gap);
	align-content: start;
}

@media (min-width: 620px) {
	.m-catblock__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.m-catblock__lead {
		border-right: 1px solid var(--m-border);
		padding-right: calc(var(--m-gap) * 1.05);
	}
	.m-catblock__lead .m-card,
	.m-catblock__lead .m-card__media,
	.m-catblock__lead .m-card__media img,
	.m-catblock__lead .m-ph {
		height: auto;
	}
}

/* ---------- More articles + Most read band ---------- */

.m-moreband__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--m-gap) * 1.4);
}

@media (min-width: 1024px) {
	.m-moreband__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

.m-moreband__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.m-moreband__list .m-compact {
	padding-block: 14px;
	border-bottom: 1px solid var(--m-border);
}

.m-moreband__list .m-compact:last-child {
	border-bottom: none;
}

@media (min-width: 700px) {
	.m-moreband__list {
		grid-template-columns: repeat(2, 1fr);
		column-gap: calc(var(--m-gap) * 1.4);
	}
	.m-moreband__list .m-compact:nth-last-child(2) {
		border-bottom: none;
	}
}

@media (min-width: 1024px) {
	.m-moreband__aside {
		border-left: 1px solid var(--m-border);
		padding-left: calc(var(--m-gap) * 1.3);
	}
}

/* Most read ranking */
.m-rank {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: rank;
}

.m-rank__item {
	counter-increment: rank;
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 14px;
	align-items: start;
	padding-block: 13px;
	border-bottom: 1px solid var(--m-border);
}

.m-rank__item:first-child {
	padding-top: 0;
}

.m-rank__item:last-child {
	border-bottom: none;
}

.m-rank__item::before {
	content: counter(rank, decimal-leading-zero);
	font-family: var(--m-font-heading);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--m-primary);
	opacity: 0.85;
}

.m-rank .m-kicker {
	margin-bottom: 2px;
	font-size: 10.5px;
}

.m-rank__title {
	font-size: calc(var(--m-fs-base) * 0.98);
	line-height: 1.3;
	margin: 0;
}

.m-rank__title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-rank__title a:hover {
	color: var(--m-primary);
}

/* Standalone popular row (non-magazine layouts) */
.m-popular__row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--m-gap);
	counter-reset: popular;
}

@media (min-width: 620px) {
	.m-popular__row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.m-popular__row {
		grid-template-columns: repeat(5, 1fr);
	}
}

.m-popular__item {
	counter-increment: popular;
	position: relative;
}

.m-popular__media {
	display: block;
	overflow: hidden;
	border-radius: var(--m-radius);
	margin-bottom: 12px;
	background: var(--m-surface);
}

.m-popular__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.m-popular__item::before {
	content: counter(popular, decimal-leading-zero);
	position: absolute;
	top: -8px;
	left: 8px;
	z-index: 2;
	font-family: var(--m-font-heading);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.m-popular__title {
	font-size: calc(var(--m-fs-base) * 1);
	line-height: 1.3;
	margin: 0;
}

.m-popular__title a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-popular__title a:hover {
	color: var(--m-primary);
}

/* ---------- Newsletter + CTA ---------- */

.m-newsletter {
	background: var(--m-surface);
	border-block: 1px solid var(--m-border);
	padding-block: calc(var(--m-section-pad) * 0.95);
}

.m-newsletter__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--m-gap);
	align-items: center;
}

@media (min-width: 900px) {
	.m-newsletter__inner {
		grid-template-columns: 1.2fr 1fr;
	}
}

.m-newsletter__title {
	font-size: clamp(22px, 2.2vw, 28px);
	margin-bottom: 6px;
}

.m-newsletter__text p {
	color: var(--m-muted);
	margin: 0;
}

.m-newsletter__placeholder {
	display: flex;
	gap: 10px;
}

.m-newsletter__note {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
	margin: 8px 0 0;
}

.m-homecta {
	text-align: center;
}

.m-homecta__inner {
	max-width: 640px;
}

.m-homecta__title {
	font-size: clamp(24px, 2.4vw, 32px);
	margin-bottom: 8px;
}

.m-homecta__text {
	color: var(--m-muted);
	margin-bottom: 20px;
}

/* ---------- Page heads, breadcrumbs, archives ---------- */

.m-page-head {
	padding-block: calc(var(--m-section-pad) * 0.8) 0;
}

.m-archive-title {
	font-size: clamp(26px, 3vw, 38px);
	margin-bottom: 6px;
}

.m-archive-desc {
	color: var(--m-muted);
	max-width: 65ch;
}

.m-page-head__search {
	max-width: 440px;
	margin-top: 12px;
}

.m-breadcrumbs {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
	margin-bottom: 12px;
}

.m-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.m-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--m-border);
}

.m-breadcrumbs a {
	color: var(--m-muted);
	text-decoration: none;
}

.m-breadcrumbs a:hover {
	color: var(--m-primary);
}

/* Category hero */
.m-cathero {
	background: var(--m-surface);
	border-bottom: 1px solid var(--m-border);
	padding-block: calc(var(--m-section-pad) * 0.9);
}

.m-cathero__label {
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--m-primary);
	margin: 0 0 4px;
}

.m-cathero__title {
	font-size: clamp(28px, 3.4vw, 44px);
	margin-bottom: 8px;
}

.m-cathero__desc {
	max-width: 68ch;
	color: var(--m-ink);
}

.m-cathero__count {
	font-size: var(--m-fs-sm);
	color: var(--m-muted);
	margin: 6px 0 0;
}

.m-cathero__subs {
	margin-top: 14px;
}

.m-catgrid > .m-card--large {
	margin-bottom: calc(var(--m-gap) * 1.1);
	padding-bottom: calc(var(--m-gap) * 1.1);
	border-bottom: 1px solid var(--m-border);
}

/* ---------- Article ---------- */

.m-article__header {
	padding-top: calc(var(--m-section-pad) * 0.85);
	margin-bottom: calc(var(--m-gap) * 0.9);
}

.m-article__title {
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.1;
	margin-bottom: 12px;
}

.m-article__subtitle {
	font-family: var(--m-font-heading);
	font-size: calc(var(--m-fs-base) * 1.18);
	line-height: 1.5;
	color: var(--m-muted);
	max-width: 62ch;
	margin-bottom: 18px;
}

.m-article__metabar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border-top: 1px solid var(--m-border);
	border-bottom: 1px solid var(--m-border);
	padding-block: 12px;
}

.m-article__featured {
	margin-block: 0 calc(var(--m-gap) * 1.05);
}

.m-article__featured img {
	width: 100%;
	border-radius: var(--m-radius);
}

.m-article__featured figcaption {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
	margin-top: 8px;
}

.entry-content {
	font-size: var(--m-fs-article);
	line-height: 1.72;
}

.entry-content > * {
	margin-block: 0 1.3em;
}

.entry-content h2 {
	margin-top: 1.5em;
	padding-top: 0.3em;
}

.entry-content h3 {
	margin-top: 1.25em;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--m-primary) 45%, transparent);
	text-decoration-thickness: 1.5px;
}

.entry-content a:hover {
	text-decoration-color: var(--m-primary);
	color: var(--m-primary);
}

.m-dropcap .m-article--wide .entry-content > p:first-of-type::first-letter,
.m-dropcap .m-article--narrow .entry-content > p:first-of-type::first-letter,
.m-dropcap .m-article--sidebar .entry-content > p:first-of-type::first-letter {
	font-family: var(--m-font-heading);
	font-size: 3.1em;
	font-weight: 700;
	float: left;
	line-height: 0.82;
	padding-right: 0.12em;
	color: var(--m-heading);
}

.entry-content blockquote,
.wp-block-quote {
	border-left: 3px solid var(--m-primary);
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	font-family: var(--m-font-heading);
	font-size: 1.08em;
	font-style: italic;
	color: var(--m-heading);
}

.wp-block-quote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--m-font-body);
	font-size: var(--m-fs-sm);
	font-style: normal;
	color: var(--m-muted);
}

.wp-block-pullquote {
	border-block: 3px solid var(--m-heading);
	padding: 1.2em 0;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content li::marker {
	color: var(--m-primary);
	font-weight: 700;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88em;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid var(--m-border);
}

.entry-content thead th {
	font-family: var(--m-font-body);
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--m-heading);
}

.entry-content tbody tr:nth-child(even) {
	background: var(--m-surface);
}

.wp-block-table figcaption,
.wp-block-image figcaption,
.wp-block-embed figcaption {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
	text-align: left;
	margin-top: 8px;
}

.entry-content img {
	border-radius: var(--m-radius);
}

.entry-content code {
	background: var(--m-surface);
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	font-size: 0.85em;
	padding: 2px 6px;
}

.entry-content pre {
	background: var(--m-heading);
	color: var(--m-bg);
	padding: 18px 20px;
	border-radius: var(--m-radius);
	overflow-x: auto;
	font-size: 0.82em;
	line-height: 1.6;
}

.entry-content pre code {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
}

hr,
.wp-block-separator {
	border: none;
	border-top: 1px solid var(--m-border);
	margin-block: 1.8em;
}

/* ---------- TOC ---------- */

.m-toc {
	background: var(--m-surface);
	border: 1px solid var(--m-border);
	border-left: 3px solid var(--m-primary);
	border-radius: var(--m-radius);
	padding: 18px 22px;
	margin-bottom: 1.8em;
	font-size: var(--m-fs-sm);
	font-family: var(--m-font-body);
}

.m-toc__title {
	font-weight: 800;
	font-size: var(--m-fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 10px;
	color: var(--m-heading);
}

.m-toc ol {
	margin: 0;
	padding-left: 1.2em;
}

.m-toc > ol > li {
	margin-bottom: 6px;
}

.m-toc ol ol {
	margin-top: 6px;
	font-size: 0.94em;
}

.m-toc a {
	text-decoration: none;
	color: var(--m-ink);
}

.m-toc a:hover {
	color: var(--m-primary);
	text-decoration: underline;
}

/* ---------- Content patterns ---------- */

.m-faq h3 {
	border-top: 1px solid var(--m-border);
	padding-top: 1em;
	margin-top: 1.1em;
	font-size: calc(var(--m-fs-article) * 1.05);
}

.m-faq h3:first-of-type {
	margin-top: 0.4em;
}

.m-sources {
	border-top: 2px solid var(--m-heading);
	padding-top: 1em;
	font-size: 0.85em;
}

.m-sources h2 {
	font-family: var(--m-font-body);
	font-size: var(--m-fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.m-sources__list {
	color: var(--m-muted);
}

.m-takeaways {
	background: var(--m-surface);
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	padding: 18px 22px;
	font-size: 0.92em;
}

.m-takeaways__title {
	font-family: var(--m-font-body);
	font-weight: 800;
	font-size: var(--m-fs-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.m-takeaways ul {
	margin: 0;
}

.m-inline-cta {
	border: 1px solid var(--m-border);
	border-left: 3px solid var(--m-accent);
	border-radius: var(--m-radius);
	padding: 18px 22px;
	font-size: 0.92em;
}

.m-inline-cta__title {
	font-weight: 800;
	font-family: var(--m-font-body);
	margin-bottom: 4px;
}

.m-inline-cta .wp-block-buttons {
	margin-bottom: 0;
}

.m-readalso {
	margin-block: 1.5em;
}

.m-readalso__inner {
	display: flex;
	gap: 16px;
	align-items: center;
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	padding: 14px 18px;
	text-decoration: none;
	background: var(--m-bg);
	transition: border-color 0.15s ease;
}

.m-readalso__inner:hover {
	border-color: var(--m-primary);
}

.m-readalso__img {
	width: 84px;
	height: 62px;
	object-fit: cover;
	border-radius: var(--m-radius);
	flex: none;
}

.m-readalso__label {
	display: block;
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--m-primary);
	margin-bottom: 2px;
}

.m-readalso__title {
	display: block;
	font-family: var(--m-font-heading);
	font-weight: 700;
	font-size: calc(var(--m-fs-base) * 1.02);
	line-height: 1.3;
	color: var(--m-heading);
}

/* ---------- Article footer, share, author, post nav, related ---------- */

.m-article__footer {
	margin-top: calc(var(--m-gap) * 1.05);
	padding-top: calc(var(--m-gap) * 0.9);
	border-top: 1px solid var(--m-border);
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: var(--m-fs-sm);
}

.m-article__tags-label {
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--m-muted);
	margin-right: 10px;
}

.m-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: var(--m-fs-xs);
}

.m-share__label {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--m-muted);
}

.m-share a,
.m-share__copy {
	font: inherit;
	font-weight: 600;
	color: var(--m-heading);
	background: none;
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	padding: 5px 12px;
	text-decoration: none;
	cursor: pointer;
}

.m-share a:hover,
.m-share__copy:hover {
	border-color: var(--m-primary);
	color: var(--m-primary);
}

.m-authorbox {
	display: flex;
	gap: 18px;
	background: var(--m-surface);
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	padding: 20px 22px;
	margin-top: calc(var(--m-gap) * 0.9);
}

.m-authorbox__avatar img {
	border-radius: 50%;
}

.m-authorbox__label {
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--m-muted);
	margin: 0 0 2px;
}

.m-authorbox__name {
	font-family: var(--m-font-heading);
	font-size: calc(var(--m-fs-base) * 1.15);
	font-weight: 700;
	margin: 0 0 6px;
}

.m-authorbox__name a {
	color: var(--m-heading);
	text-decoration: none;
}

.m-authorbox__bio {
	font-size: var(--m-fs-sm);
	color: var(--m-ink);
	margin-bottom: 8px;
}

.m-authorbox__link {
	font-size: var(--m-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.m-postnav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: calc(var(--m-gap) * 0.9);
	padding-top: calc(var(--m-gap) * 0.9);
	border-top: 1px solid var(--m-border);
}

@media (min-width: 640px) {
	.m-postnav {
		grid-template-columns: 1fr 1fr;
	}
	.m-postnav__item--next {
		text-align: right;
	}
}

.m-postnav__item {
	text-decoration: none;
}

.m-postnav__label {
	display: block;
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--m-muted);
	margin-bottom: 4px;
}

.m-postnav__title {
	font-family: var(--m-font-heading);
	font-weight: 700;
	color: var(--m-heading);
	line-height: 1.3;
}

.m-postnav__item:hover .m-postnav__title {
	color: var(--m-primary);
}

.m-related {
	background: var(--m-surface);
	border-top: 1px solid var(--m-border);
	margin-top: calc(var(--m-section-pad) * 1.1);
	padding-block: var(--m-section-pad);
}

/* ---------- Sidebar / widgets ---------- */

.m-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: calc(var(--m-gap) * 1.05);
}

.m-sidebar-sticky .m-sidebar__inner {
	position: sticky;
	top: 24px;
}

.widget-title {
	font-family: var(--m-font-body);
	font-size: var(--m-fs-xs);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--m-heading);
	padding-bottom: 8px;
	margin: 0 0 14px;
	position: relative;
	color: var(--m-heading);
}

.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 36px;
	height: 4px;
	background: var(--m-primary);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding-block: 6px;
	border-bottom: 1px solid var(--m-border);
	font-size: var(--m-fs-sm);
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul a {
	color: var(--m-ink);
	text-decoration: none;
}

.widget ul a:hover {
	color: var(--m-primary);
}

.m-minilist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 13px;
	counter-reset: mini;
}

.m-minilist__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.m-minilist--numbered .m-minilist__item {
	counter-increment: mini;
}

.m-minilist--numbered .m-minilist__item::before {
	content: counter(mini, decimal-leading-zero);
	font-family: var(--m-font-heading);
	font-weight: 700;
	font-size: calc(var(--m-fs-base) * 1.1);
	color: var(--m-primary);
	opacity: 0.85;
	line-height: 1.35;
	flex: none;
}

.m-minilist__thumb {
	flex: none;
	width: 76px;
}

.m-minilist__thumb img {
	width: 76px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--m-radius);
}

.m-minilist__title {
	display: block;
	font-weight: 600;
	font-size: var(--m-fs-sm);
	line-height: 1.35;
	color: var(--m-heading);
	text-decoration: none;
}

.m-minilist__title:hover {
	color: var(--m-primary);
}

.m-minilist__date {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
}

.m-cta-box {
	background: var(--m-surface);
	border: 1px solid var(--m-border);
	border-left: 3px solid var(--m-accent);
	border-radius: var(--m-radius);
	padding: 20px;
}

.m-cta-box__title {
	font-family: var(--m-font-heading);
	font-weight: 700;
	font-size: calc(var(--m-fs-base) * 1.1);
	margin: 0 0 6px;
}

.m-cta-box__text {
	font-size: var(--m-fs-sm);
	color: var(--m-muted);
	margin-bottom: 14px;
}

/* ---------- Pagination ---------- */

.m-pagination,
.pagination {
	margin-top: var(--m-gap);
}

.m-pagination .nav-links,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.page-numbers {
	display: inline-block;
	min-width: 38px;
	text-align: center;
	padding: 7px 12px;
	border: 1px solid var(--m-border);
	border-radius: var(--m-radius);
	font-size: var(--m-fs-sm);
	font-weight: 600;
	color: var(--m-heading);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--m-heading);
	border-color: var(--m-heading);
	color: var(--m-bg);
}

a.page-numbers:hover {
	border-color: var(--m-primary);
	color: var(--m-primary);
}

/* ---------- 404 ---------- */

.m-404 {
	padding-block: calc(var(--m-section-pad) * 1.4);
	text-align: center;
}

.m-404__code {
	font-family: var(--m-font-heading);
	font-size: clamp(64px, 12vw, 130px);
	font-weight: 700;
	line-height: 1;
	color: var(--m-border);
	margin: 0;
}

.m-404__title {
	margin-top: 8px;
}

.m-404__text {
	color: var(--m-muted);
	max-width: 52ch;
	margin-inline: auto;
}

.m-404__search {
	max-width: 420px;
	margin: 20px auto 0;
}

.m-404__recent {
	margin-top: calc(var(--m-section-pad) * 1.2);
	text-align: left;
}

/* ---------- Footer ---------- */

.m-footer {
	margin-top: calc(var(--m-section-pad) * 1.2);
	background: color-mix(in srgb, var(--m-heading) 97%, #000);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--m-fs-sm);
}

.m-footer a {
	color: rgba(255, 255, 255, 0.72);
}

.m-footer a:hover {
	color: #fff;
}

.m-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--m-gap) * 1.3);
	padding-block: calc(var(--m-section-pad) * 1.05);
}

@media (min-width: 900px) {
	.m-footer__top {
		grid-template-columns: minmax(230px, 1fr) 2.6fr;
	}
	.m-footer__top--no-about {
		grid-template-columns: 1fr;
	}
}

.m-footer__brand {
	font-family: var(--m-font-heading);
	font-size: calc(var(--m-fs-base) * 1.45);
	font-weight: 800;
	color: #fff;
	margin: 0 0 8px;
}

.m-footer__desc {
	margin: 0 0 16px;
	max-width: 34ch;
	line-height: 1.6;
}

.m-footer__social {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.m-footer__social a {
	display: inline-block;
	font-size: var(--m-fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--m-radius);
	padding: 5px 12px;
	text-decoration: none;
}

.m-footer__social a:hover {
	border-color: #fff;
}

.m-footer__widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: calc(var(--m-gap) * 1.2);
}

@media (min-width: 620px) {
	.m-footer__widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.m-footer__widgets {
		grid-template-columns: repeat(var(--m-footer-cols, 3), 1fr);
	}
}

.m-footer .widget-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.18);
}

.m-footer .widget ul li,
.m-footer__col ul li {
	border-bottom-color: rgba(255, 255, 255, 0.09);
}

.m-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.m-footer__col ul li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-block: 7px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	font-size: var(--m-fs-sm);
	line-height: 1.45;
}

.m-footer__col ul li:last-child {
	border-bottom: none;
}

.m-footer__col a {
	text-decoration: none;
}

.m-footer__count {
	font-size: var(--m-fs-xs);
	color: rgba(255, 255, 255, 0.38);
	font-variant-numeric: tabular-nums;
}

.m-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.m-footer__bottom-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	font-size: var(--m-fs-xs);
	color: rgba(255, 255, 255, 0.55);
}

.m-footer__copy {
	margin: 0;
}

.m-footer__menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.m-footer__menu a,
.m-footer__top-link {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.m-footer__menu a:hover,
.m-footer__top-link:hover {
	color: #fff;
}

/* ---------- Comments ---------- */

.comments-area {
	margin-block: var(--m-section-pad);
	border-top: 1px solid var(--m-border);
	padding-top: calc(var(--m-section-pad) * 0.8);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment {
	border-bottom: 1px solid var(--m-border);
	padding-block: 18px;
}

.comment-author img {
	border-radius: 50%;
	margin-right: 10px;
	vertical-align: middle;
}

.comment-metadata {
	font-size: var(--m-fs-xs);
	color: var(--m-muted);
}

.comment-reply-link {
	font-size: var(--m-fs-xs);
	font-weight: 600;
}

/* ---------- Utility ---------- */

.m-pagelinks {
	margin-top: 1.5em;
	font-size: var(--m-fs-sm);
}

.alignwide {
	margin-inline: calc(50% - min(var(--m-container) / 2, 50vw - 20px));
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

@media print {
	.m-header, .m-footer, .m-sidebar, .m-share, .m-related, .m-postnav, .m-newsletter, .m-subnav {
		display: none !important;
	}
}
