/*
Theme Name: Miscellana
Theme URI: https://miscellana.com/
Author: Vesna
Description: A bold, magazine-style blog theme for Miscellana: the things almost everyone believes, checked against real research. Red-and-yellow men's-magazine look with condensed headlines, an image mosaic homepage, section feature rows, an optional claim box and bottom line per post, self-hosted fonts and no jQuery.
Version: 2.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miscellana
Tags: blog, news, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ==========================================================================
   1. Tokens (Miscellana design system 2)
   ========================================================================== */
:root {
	--red: #c8381e;
	--red-ink: #a92d16;
	--red-deep: #8f2412;
	--red-on-dark: #ff6b4d;
	--yellow: #ffc72c;
	--ink: #111111;
	--ink-muted: #595959;
	--paper: #ffffff;
	--mist: #f4f1ec;
	--rule: #e2ddd5;
	--border: #8a8a8a;
	--on-dark: #ffffff;
	--on-dark-muted: #b8b8b8;
	--footer-bg: var(--ink);
	--focus: var(--ink);

	--font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--font-sans: "Barlow", "Segoe UI", Arial, sans-serif;
	--font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-6: 24px;
	--space-8: 32px;
	--space-12: 48px;
	--space-16: 64px;

	--radius-sm: 2px;
	--bar: 6px;
	--hairline: 1px;
	--shadow-lift: 0 10px 24px rgba(17, 17, 17, 0.14);

	--content-width: 820px;
	--wide-width: 1240px;
	--sidebar-width: 320px;
	--gutter: var(--space-6);
	--header-h: 72px;
}
@media (max-width: 640px) {
	:root { --gutter: var(--space-4); --header-h: 60px; }
}
.mx-system-fonts {
	--font-display: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
/* Iframes keep their own height: Instagram, TikTok, Facebook and X set it themselves. */
iframe { max-width: 100%; }
img { display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mx-header :focus-visible, .mx-topbar :focus-visible, .mx-band--red :focus-visible, .mx-footer :focus-visible, .mx-claim :focus-visible, .mx-tile :focus-visible { outline-color: var(--yellow); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; color: var(--ink); margin: 0 0 var(--space-3); line-height: 1.05; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: var(--hairline) solid var(--rule); margin: var(--space-8) 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.screen-reader-text, .mx-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: var(--space-2); left: var(--space-2); z-index: 1000; width: auto; height: auto;
	clip: auto; clip-path: none; margin: 0; padding: var(--space-3) var(--space-4); background: var(--yellow); color: var(--ink);
	font-family: var(--font-display); font-weight: 800; text-transform: uppercase; text-decoration: none;
}
.mx-container { width: 100%; max-width: calc(var(--wide-width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mx-main { padding: 0 0 var(--space-16); }
.mx-main--pad { padding-top: var(--space-8); }

/* ==========================================================================
   3. Type helpers, labels, buttons
   ========================================================================== */
.mx-h1 { font-family: var(--font-display); font-weight: 800; font-size: 60px; line-height: 0.98; letter-spacing: -0.005em; margin: 0; }
.mx-h2 { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.02; margin: 0; }
.mx-h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.08; margin: 0; }
.mx-lede { font-size: 21px; line-height: 1.45; color: var(--ink-muted); margin: 0; }
.mx-meta { font-family: var(--font-display); font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.mx-meta a { color: inherit; }
@media (max-width: 640px) { .mx-h1 { font-size: 40px; } .mx-h2 { font-size: 28px; } .mx-h3 { font-size: 22px; } .mx-lede { font-size: 18px; } }

/* Kicker: red text label, or a red chip on images */
.mx-kicker {
	--cat: var(--red);
	display: inline-block; font-family: var(--font-display); font-size: 15px; line-height: 1; font-weight: 800;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--cat); text-decoration: none;
}
a.mx-kicker:hover { color: var(--ink); }
.mx-kicker--chip { background: var(--cat); color: var(--on-dark); padding: 6px 9px 5px; }
a.mx-kicker--chip:hover { background: var(--ink); color: var(--on-dark); }

.mx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6);
	border: 2px solid var(--red); border-radius: var(--radius-sm); background: var(--red); color: var(--on-dark);
	font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; line-height: 1;
}
.mx-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.mx-btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.mx-btn--outline:hover { background: var(--ink); color: var(--on-dark); }
.mx-btn--dark { background: var(--ink); border-color: var(--ink); }
.mx-btn--dark:hover { background: var(--red); border-color: var(--red); }

/* Section heading with the red bar */
.mx-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin: 0 0 var(--space-6); }
.mx-heading__title { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; padding-bottom: var(--space-3); }
.mx-heading__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: var(--bar); background: var(--red); }
.mx-heading__title a { color: var(--ink); text-decoration: none; }
.mx-heading__more { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-ink); text-decoration: none; white-space: nowrap; padding-bottom: var(--space-3); }
.mx-heading__more:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) { .mx-heading__title { font-size: 28px; } }

/* Full-bleed bands */
.mx-band { padding: var(--space-12) 0; margin: 0 0 var(--space-12); }
.mx-band--red { background: var(--red); color: var(--on-dark); }
.mx-band--yellow { background: var(--yellow); color: var(--ink); }
.mx-band--ink { background: var(--ink); color: var(--on-dark); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.mx-topbar { background: var(--ink); color: var(--on-dark-muted); font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mx-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 36px; }
.mx-topbar a { color: var(--on-dark); text-decoration: none; }
.mx-topbar a:hover { color: var(--yellow); }
.mx-topbar__right { display: flex; align-items: center; gap: var(--space-4); }
.mx-topbar .mx-social a { width: 28px; height: 28px; border: 0; }
.mx-topbar .mx-social svg { width: 15px; height: 15px; }
.mx-topbar__cta { color: var(--yellow) !important; }
@media (max-width: 760px) { .mx-topbar { display: none; } }

.mx-header { background: var(--red); color: var(--on-dark); position: relative; z-index: 50; border-bottom: 4px solid var(--ink); }
.mx-header--sticky { position: sticky; top: 0; }
.admin-bar .mx-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .mx-header--sticky { top: 0; } }
.mx-header__inner { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); }
.mx-branding { flex: 0 1 auto; min-width: 0; }
.mx-logo { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.mx-logo a { color: var(--on-dark); text-decoration: none; }
.mx-logo a:hover { color: var(--on-dark); }
.mx-logo__hl, .mx-logo__dot { color: var(--yellow); }
.mx-logo img { max-height: 48px; width: auto; }
.custom-logo-link { display: inline-block; }
.mx-tagline { margin: 2px 0 0; font-size: 13px; line-height: 1.3; color: var(--on-dark); }

.mx-nav { margin-left: auto; }
.mx-nav ul { list-style: none; margin: 0; padding: 0; }
.mx-menu { display: flex; align-items: center; }
.mx-menu > li { position: relative; }
.mx-menu a {
	display: block; padding: 0 var(--space-3); line-height: var(--header-h);
	font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--on-dark); text-decoration: none; box-shadow: inset 0 0 0 var(--yellow);
	transition: box-shadow .15s ease;
}
.mx-menu > li > a:hover, .mx-menu > .current-menu-item > a, .mx-menu > .current-menu-ancestor > a, .mx-menu > .current-post-ancestor > a {
	box-shadow: inset 0 calc(-1 * var(--bar)) 0 var(--yellow); color: var(--on-dark);
}
.mx-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--ink); padding: var(--space-2) 0;
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.mx-menu li:hover > .sub-menu, .mx-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mx-menu .sub-menu a { line-height: 1.3; padding: var(--space-2) var(--space-4); font-size: 17px; box-shadow: none; }
.mx-menu .sub-menu a:hover { color: var(--yellow); }

.mx-header__tools { display: flex; align-items: center; gap: var(--space-1); }
.mx-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--on-dark); cursor: pointer; padding: 0; }
.mx-icon-btn:hover, .mx-icon-btn[aria-expanded="true"] { background: var(--red-deep); }
.mx-icon-btn svg { width: 24px; height: 24px; }
.mx-menu-toggle { display: none; }

.mx-search-panel { background: var(--ink); padding: var(--space-6) 0; }
.mx-search-panel[hidden] { display: none; }
.mx-search-panel .mx-input { border-color: var(--on-dark); }

@media (max-width: 1000px) {
	.mx-menu-toggle { display: inline-flex; }
	.mx-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--ink); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.mx-nav.is-open { display: block; }
	.mx-nav .mx-menu { flex-direction: column; align-items: stretch; padding: var(--space-2) var(--gutter) var(--space-6); }
	.mx-menu a { line-height: 1.2; padding: var(--space-4) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 22px; }
	.mx-menu > li > a:hover, .mx-menu > .current-menu-item > a { box-shadow: none; color: var(--yellow); }
	.mx-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 var(--space-4); }
	.mx-header__tools { margin-left: auto; }
	.mx-tagline { display: none; }
}
@media (max-width: 640px) { .mx-logo { font-size: 32px; } }

/* Search form */
.mx-searchform { display: flex; gap: var(--space-2); max-width: 720px; }
.mx-searchform label { flex: 1; }
.mx-input, .mx-searchform input[type="search"], .widget input[type="email"], .widget input[type="text"], .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3); background: var(--paper); color: var(--ink);
	border: 2px solid var(--ink); border-radius: var(--radius-sm); font-size: 17px;
}

.mx-below-header { background: var(--mist); padding: var(--space-3) 0; font-size: 15px; }
.mx-below-header .widget { margin: 0; }

/* ==========================================================================
   5. Breadcrumbs
   ========================================================================== */
.mx-breadcrumbs { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-4); }
.mx-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.mx-breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--red); }
.mx-breadcrumbs a { color: var(--ink); text-decoration: none; }
.mx-breadcrumbs a:hover { color: var(--red-ink); }

/* ==========================================================================
   6. Homepage
   ========================================================================== */
/* Intro strip: holds the page H1 */
.mx-intro { background: var(--yellow); color: var(--ink); padding: var(--space-4) 0; }
.mx-intro__inner { display: flex; align-items: baseline; gap: var(--space-3) var(--space-8); flex-wrap: wrap; }
.mx-intro__title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.mx-intro__text { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 500; max-width: 560px; }
.mx-intro.is-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); padding: 0; }
@media (max-width: 640px) { .mx-intro__title { font-size: 22px; } .mx-intro__text { font-size: 15px; } }

/* Mosaic hero */
.mx-mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-8) 0 var(--space-6); min-height: 560px; }
.mx-mosaic--solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.mx-mosaic--one { grid-template-rows: minmax(0, 1fr); }
.mx-mosaic > .mx-tile--main { grid-row: 1 / -1; }
.mx-tile { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.mx-tile__media { position: absolute; inset: 0; z-index: -2; }
.mx-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mx-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.62) 38%, rgba(17, 17, 17, 0) 72%); }
.mx-tile:hover .mx-tile__media img { transform: scale(1.04); }
.mx-tile__body { position: relative; padding: var(--space-6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.mx-tile__title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.02; margin: 0; color: var(--on-dark); }
.mx-tile__title a { color: var(--on-dark); text-decoration: none; }
.mx-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.mx-tile .mx-kicker { position: relative; z-index: 1; }
.mx-tile:hover .mx-tile__title a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.mx-tile__dek { margin: 0; font-size: 18px; line-height: 1.4; color: var(--on-dark); max-width: 640px; }
.mx-tile__meta { color: var(--on-dark-muted); }
.mx-tile--main .mx-tile__body { padding: var(--space-8); }
.mx-tile--main .mx-tile__title { font-size: 58px; line-height: 0.96; max-width: 760px; }
.mx-tile--noimg { background: var(--ink); }
.mx-tile--noimg::before { display: none; }
@media (max-width: 960px) {
	.mx-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; min-height: 0; }
	.mx-mosaic > .mx-tile--main { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
	.mx-tile--main .mx-tile__title { font-size: 44px; }
}
@media (max-width: 560px) {
	.mx-mosaic { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-4); }
	.mx-mosaic > .mx-tile--main { min-height: 420px; }
	.mx-tile--main .mx-tile__body { padding: var(--space-4); }
	.mx-tile__body { padding: var(--space-4); }
	.mx-tile--main .mx-tile__title { font-size: 36px; }
	.mx-tile__title { font-size: 25px; }
	.mx-tile__dek { font-size: 16px; }
}

/* Headline row under the mosaic */
.mx-more { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--space-6); margin-bottom: var(--space-12); }
.mx-more__item { border-top: var(--bar) solid var(--red); padding-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.mx-more__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.08; margin: 0; }
.mx-more__title a { color: var(--ink); text-decoration: none; }
.mx-more__title a:hover { color: var(--red-ink); }
@media (max-width: 760px) { .mx-more { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

/* Most read band (red) */
.mx-mostread__title { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; text-transform: uppercase; color: var(--on-dark); margin: 0 0 var(--space-6); }
.mx-mostread__title span { color: var(--yellow); }
.mx-mostread ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); counter-reset: mx-mr; }
.mx-mostread li { counter-increment: mx-mr; display: flex; flex-direction: column; gap: var(--space-2); border-top: 2px solid rgba(255, 255, 255, 0.4); padding-top: var(--space-3); }
.mx-mostread li::before { content: counter(mx-mr, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 0.9; color: var(--yellow); }
.mx-mostread a { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.08; color: var(--on-dark); text-decoration: none; }
.mx-mostread a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
@media (max-width: 960px) { .mx-mostread ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mx-mostread ol { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } .mx-mostread li { flex-direction: row; align-items: flex-start; gap: var(--space-4); } .mx-mostread li::before { font-size: 48px; flex: 0 0 56px; } .mx-mostread__title { font-size: 34px; } }

/* Latest: river + home aside */
.mx-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); gap: var(--space-12); align-items: start; margin-bottom: var(--space-12); }
.mx-split--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .mx-split { grid-template-columns: minmax(0, 1fr); } }

.mx-row { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6) 0; border-bottom: var(--hairline) solid var(--rule); align-items: start; }
.mx-row:first-of-type { padding-top: 0; }
.mx-row--noimg { grid-template-columns: minmax(0, 1fr); }
.mx-row__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.mx-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mx-row:hover .mx-row__media img { transform: scale(1.04); }
.mx-row__body { display: flex; flex-direction: column; gap: var(--space-2); }
.mx-row__title { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.02; margin: 0; }
.mx-row__title a { color: var(--ink); text-decoration: none; }
.mx-row__title a:hover { color: var(--red-ink); }
.mx-row__dek { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-muted); }
@media (max-width: 760px) { .mx-row { grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) 0; } .mx-row__title { font-size: 22px; } .mx-row__dek { display: none; } }

.mx-home-aside { display: flex; flex-direction: column; gap: var(--space-8); }

/* Section feature rows */
.mx-section { margin-bottom: var(--space-12); }
.mx-section-bar { --cat: var(--red); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); background: var(--ink); color: var(--on-dark); padding: 0 var(--space-6) 0 0; margin-bottom: var(--space-6); }
.mx-section-bar__title { display: flex; align-items: center; gap: var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.mx-section-bar__title::before { content: ""; width: var(--space-6); align-self: stretch; min-height: 60px; background: var(--cat); }
.mx-section-bar__title a { color: var(--on-dark); text-decoration: none; padding: var(--space-3) 0; }
.mx-section-bar__more { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); text-decoration: none; white-space: nowrap; }
.mx-section-bar__more:hover { color: var(--on-dark); text-decoration: underline; }
@media (max-width: 560px) { .mx-section-bar { padding-right: var(--space-4); } .mx-section-bar__title { font-size: 24px; } .mx-section-bar__title::before { min-height: 48px; width: var(--space-4); } .mx-section-bar__more { font-size: 14px; } }

.mx-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-8); }
.mx-feature--solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.mx-feature__list { display: flex; flex-direction: column; }
@media (max-width: 860px) { .mx-feature { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

.mx-compact { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) 0; border-bottom: var(--hairline) solid var(--rule); align-items: start; }
.mx-compact:first-child { padding-top: 0; }
.mx-compact:last-child { border-bottom: 0; }
.mx-compact--noimg { grid-template-columns: minmax(0, 1fr); }
.mx-compact__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.mx-compact__media img { width: 100%; height: 100%; object-fit: cover; }
.mx-compact__body { display: flex; flex-direction: column; gap: var(--space-2); }
.mx-compact__title { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.08; margin: 0; }
.mx-compact__title a { color: var(--ink); text-decoration: none; }
.mx-compact__title a:hover { color: var(--red-ink); }

/* Newsletter band (yellow) */
.mx-newsletter__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.mx-newsletter__title { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 0.98; text-transform: uppercase; margin: 0 0 var(--space-3); color: var(--ink); }
.mx-newsletter__text { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.mx-newsletter__form { display: flex; gap: var(--space-2); }
.mx-newsletter__form input[type="email"] { flex: 1; min-width: 0; }
@media (max-width: 860px) { .mx-newsletter__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } .mx-newsletter__title { font-size: 36px; } }
@media (max-width: 440px) { .mx-newsletter__form { flex-direction: column; } }

/* ==========================================================================
   7. Cards (archives, related, feature lead)
   ========================================================================== */
.mx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
.mx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mx-grid, .mx-grid--2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

.mx-card { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.mx-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); text-decoration: none; }
.mx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mx-card:hover .mx-card__media img { transform: scale(1.04); }
.mx-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 96px; color: var(--yellow); line-height: 1; }
.mx-card__chip { position: absolute; left: 0; bottom: 0; }
.mx-card__body { display: flex; flex-direction: column; gap: var(--space-2); }
.mx-card__title { font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1.04; margin: 0; }
.mx-card__title a { color: var(--ink); text-decoration: none; }
.mx-card__title a:hover { color: var(--red-ink); }
.mx-card__dek { font-size: 16px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.mx-card--big .mx-card__title { font-size: 40px; line-height: 0.98; }
.mx-card--big .mx-card__dek { font-size: 18px; }
@media (max-width: 640px) { .mx-card__title { font-size: 24px; } .mx-card--big .mx-card__title { font-size: 30px; } }

/* ==========================================================================
   8. Layout, archive header, pagination
   ========================================================================== */
.mx-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); gap: var(--space-12); align-items: start; }
.mx-layout--left { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.mx-layout--left .mx-sidebar { order: -1; }
.mx-layout--none { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .mx-layout, .mx-layout--left { grid-template-columns: minmax(0, 1fr); } .mx-layout--left .mx-sidebar { order: 0; } }

.mx-archive-head { --cat: var(--red); background: var(--cat); color: var(--on-dark); padding: var(--space-12) 0 var(--space-8); margin-bottom: var(--space-12); }
.mx-archive-head .mx-breadcrumbs, .mx-archive-head .mx-breadcrumbs a { color: var(--on-dark); }
.mx-archive-head .mx-breadcrumbs li + li::before { color: var(--yellow); }
.mx-archive-head__label { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 5px 9px 4px; margin-bottom: var(--space-3); }
.mx-archive-head .mx-h1 { color: var(--on-dark); font-size: 84px; line-height: 0.92; text-transform: uppercase; }
.mx-archive-head__desc { margin-top: var(--space-4); font-size: 19px; max-width: 720px; color: var(--on-dark); }
.mx-archive-head__desc p:last-child { margin: 0; }
.mx-archive-head--plain .mx-h1 { font-size: 56px; text-transform: none; }
@media (max-width: 640px) { .mx-archive-head { padding: var(--space-8) 0 var(--space-6); margin-bottom: var(--space-8); } .mx-archive-head .mx-h1 { font-size: 52px; } .mx-archive-head--plain .mx-h1 { font-size: 36px; } }

.mx-pagination { margin-top: var(--space-12); }
.mx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.mx-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 var(--space-3); border: 2px solid var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink); text-decoration: none; }
.mx-pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--on-dark); }
.mx-pagination a.page-numbers:hover { background: var(--ink); color: var(--on-dark); }
.mx-pagination .dots { border: 0; }
.mx-none { padding: var(--space-8) 0; max-width: 720px; }
.mx-none .mx-searchform { margin-top: var(--space-4); }

/* ==========================================================================
   9. Single post
   ========================================================================== */
.mx-article-head { padding: var(--space-8) 0 var(--space-6); }
.mx-article-head .mx-kicker { margin-bottom: var(--space-4); }
.mx-article__title { font-size: 66px; line-height: 0.96; margin: 0 0 var(--space-4); }
.mx-article__lede { font-size: 23px; line-height: 1.4; color: var(--ink-muted); margin: 0 0 var(--space-6); max-width: 820px; }
.mx-article-head .mx-byline { margin-bottom: var(--space-6); }
.mx-article__lead { font-family: var(--font-sans); font-size: 22px; line-height: 1.55; font-weight: 500; color: var(--ink); margin: 0; }
.mx-article__lead a { color: var(--red-ink); }
@media (max-width: 640px) { .mx-article-head { padding-top: var(--space-6); } .mx-article__title { font-size: 40px; } .mx-article__lede { font-size: 19px; } .mx-article__lead { font-size: 19px; } }
.mx-article__figure { margin: 0 0 var(--space-8); }
.mx-article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mx-article__figure figcaption { font-size: 14px; line-height: 1.4; color: var(--ink-muted); margin-top: var(--space-2); }
.mx-article { min-width: 0; width: 100%; }
.mx-layout--none .mx-article, .mx-layout--none .mx-page { max-width: var(--content-width); margin-left: auto; margin-right: auto; }
.mx-single .mx-sidebar { padding-top: var(--space-8); }

/* Media never wider than the text column, at every screen size */
.mx-content img, .mx-content video, .mx-content iframe, .mx-content embed, .mx-content object, .mx-content svg, .mx-content canvas { max-width: 100%; }
.mx-content img, .mx-content video { height: auto; }
.mx-content figure, .mx-content .wp-block-image, .mx-content .wp-block-embed, .mx-content .wp-block-video, .mx-content .wp-block-gallery, .mx-content .wp-block-cover, .mx-content .wp-block-media-text, .mx-content .wp-caption, .mx-content .wp-block-table, .mx-content .wp-block-pullquote, .mx-content .wp-block-group { max-width: 100%; box-sizing: border-box; }
.mx-content .alignwide, .mx-content .alignfull { width: auto; max-width: 100%; margin-left: 0; margin-right: 0; }
.mx-content .wp-caption { width: auto !important; }
.mx-content iframe[src*="youtube"], .mx-content iframe[src*="youtu.be"], .mx-content iframe[src*="vimeo"], .mx-content iframe[src*="dailymotion"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mx-content .wp-block-embed__wrapper { max-width: 100%; }
.mx-content .wp-block-embed__wrapper > iframe { width: 100%; }
.mx-content .wp-block-embed-youtube .wp-block-embed__wrapper iframe, .mx-content .wp-block-embed-vimeo .wp-block-embed__wrapper iframe, .mx-content .wp-block-embed-dailymotion .wp-block-embed__wrapper iframe { height: auto; aspect-ratio: 16 / 9; }
.mx-content .wp-block-cover.alignfull, .mx-content .wp-block-group.alignfull { padding-left: var(--space-4); padding-right: var(--space-4); }
.mx-content pre, .mx-content .wp-block-table { overflow-x: auto; }
@media (max-width: 640px) { .mx-content .alignleft, .mx-content .alignright { float: none; margin: 0 0 var(--space-4); max-width: 100%; } }

.mx-byline { display: flex; align-items: center; gap: var(--space-3); border-top: var(--hairline) solid var(--rule); border-bottom: var(--hairline) solid var(--rule); padding: var(--space-3) 0; }
.mx-byline__avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--mist); }
.mx-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-byline__name { font-family: var(--font-display); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); margin: 0; line-height: 1.2; }
.mx-byline__name a { color: var(--red-ink); text-decoration: none; }
.mx-byline__name a:hover { color: var(--ink); }
.mx-byline__meta { margin: 2px 0 0; }

/* Entry content */
.mx-content { font-family: var(--font-serif); font-size: 19px; line-height: 1.7; }
.mx-content > * { margin-top: 0; margin-bottom: 1.1em; }
.mx-content > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 86px; line-height: 0.8; color: var(--red); margin: 6px var(--space-3) 0 0; }
.mx-content h2 { font-size: 38px; line-height: 1; margin: 1.5em 0 0.45em; }
.mx-content h3 { font-size: 27px; line-height: 1.05; margin: 1.4em 0 0.4em; }
.mx-content h4 { font-size: 22px; margin: 1.3em 0 0.4em; text-transform: uppercase; letter-spacing: 0.03em; }
@media (max-width: 640px) { .mx-content { font-size: 18px; } .mx-content h2 { font-size: 30px; } .mx-content h3 { font-size: 24px; } }
.mx-content ul { list-style: none; padding-left: 1.3em; }
.mx-content ul > li { position: relative; }
.mx-content ul > li::before { content: ""; position: absolute; left: -1.15em; top: 0.62em; width: 9px; height: 9px; background: var(--red); }
.mx-content ol { padding-left: 1.4em; }
.mx-content ol > li::marker { font-family: var(--font-display); font-weight: 800; color: var(--red-ink); }
.mx-content li { margin-bottom: 0.45em; }
.mx-content blockquote, .mx-content .wp-block-quote { margin: var(--space-8) 0; padding: var(--space-4) 0 0; border: 0; border-top: var(--bar) solid var(--red); font-family: var(--font-display); font-size: 36px; line-height: 1.05; font-weight: 800; color: var(--ink); }
.mx-content blockquote p { margin-bottom: 0.3em; }
.mx-content blockquote cite, .mx-content .wp-block-quote cite { display: block; margin-top: var(--space-3); font-family: var(--font-display); font-size: 16px; font-style: normal; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-ink); }
.mx-content figure { margin: var(--space-8) 0; }
.mx-content figcaption, .wp-caption-text { font-family: var(--font-sans); font-size: 14px; line-height: 1.4; color: var(--ink-muted); margin-top: var(--space-2); }
.mx-content table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 16px; }
.mx-content th, .mx-content td { padding: var(--space-2) var(--space-3); border-bottom: var(--hairline) solid var(--rule); text-align: left; vertical-align: top; }
.mx-content th { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ink); color: var(--on-dark); border-bottom: 0; }
.mx-content .wp-block-table { overflow-x: auto; }
.mx-content mark { background: var(--yellow); color: var(--ink); padding: 0 3px; }
.mx-content strong { font-weight: 700; }
.mx-content code { font-size: 0.88em; background: var(--mist); padding: 1px 4px; }
.mx-content pre { background: var(--mist); padding: var(--space-4); overflow-x: auto; font-size: 15px; }
.mx-content .alignleft { float: left; margin: 0 var(--space-6) var(--space-4) 0; max-width: 50%; }
.mx-content .alignright { float: right; margin: 0 0 var(--space-4) var(--space-6); max-width: 50%; }
.mx-content .aligncenter { margin-left: auto; margin-right: auto; }
.mx-content .wp-block-button__link { background: var(--red); color: var(--on-dark); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 18px; }
.mx-content::after { content: ""; display: table; clear: both; }
.mx-page-links { font-family: var(--font-display); font-weight: 800; }

/* Claim box (ink) */
.mx-claim { background: var(--ink); color: var(--on-dark); padding: var(--space-6) var(--space-8); margin: 0 0 var(--space-8); font-family: var(--font-sans); border-top: var(--bar) solid var(--red); }
.mx-claim__row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.mx-claim__row:first-child { padding-top: 0; }
.mx-claim__row:last-child { border-bottom: 0; padding-bottom: 0; }
.mx-claim__label { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); padding-top: 3px; margin: 0; }
.mx-claim__text { font-size: 17px; line-height: 1.5; margin: 0; color: var(--on-dark); }
.mx-claim__text--belief { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.05; }
@media (max-width: 560px) { .mx-claim { padding: var(--space-4); } .mx-claim__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } .mx-claim__text--belief { font-size: 25px; } }

/* Bottom line (yellow) */
.mx-bottomline { background: var(--yellow); color: var(--ink); padding: var(--space-6); margin: var(--space-8) 0; font-family: var(--font-sans); }
.mx-bottomline__label { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--space-2); display: flex; align-items: center; gap: var(--space-2); }
.mx-bottomline__label::before { content: ""; width: 14px; height: 14px; background: var(--red); }
.mx-bottomline__text { font-size: 20px; line-height: 1.45; font-weight: 700; margin: 0; }
.mx-bottomline__text p:last-child { margin-bottom: 0; }

/* Good to know */
.mx-fact { background: var(--mist); border-top: var(--bar) solid var(--red); padding: var(--space-4) var(--space-6) var(--space-6); margin: var(--space-8) 0; font-family: var(--font-sans); }
.mx-fact__label { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 var(--space-2); }
.mx-fact__text { font-size: 17px; line-height: 1.55; }
.mx-fact__text p:last-child { margin-bottom: 0; }

/* Sources */
.mx-sources { border-top: 2px solid var(--ink); padding-top: var(--space-4); margin: var(--space-8) 0; font-family: var(--font-sans); }
.mx-sources__title { font-family: var(--font-display) !important; font-size: 18px !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--space-3) !important; }
.mx-sources ol { margin: 0; padding-left: 1.5em; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.mx-sources li { padding: var(--space-1) 0; margin: 0; }
.mx-sources li::marker { font-family: var(--font-display); font-weight: 800; color: var(--red-ink); }

/* TOC */
.mx-toc { background: var(--mist); margin: 0 0 var(--space-8); font-family: var(--font-sans); }
.mx-toc summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--on-dark); }
.mx-toc summary::-webkit-details-marker { display: none; }
.mx-toc summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--yellow); }
.mx-toc[open] summary::after { content: "–"; }
.mx-toc ol { margin: 0; padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 1.4em); font-size: 17px; line-height: 1.4; }
.mx-toc li { margin: var(--space-2) 0; }
.mx-toc li::marker { font-family: var(--font-display); font-weight: 800; color: var(--red-ink); }
.mx-toc li.mx-toc__sub { margin-left: var(--space-4); list-style: disc; font-size: 16px; }
.mx-toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.mx-toc a:hover { color: var(--red-ink); text-decoration: underline; }

/* Tags, author, post nav, related */
.mx-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-8) 0; padding: 0; list-style: none; }
.mx-tags a { display: inline-block; padding: 7px var(--space-3) 6px; background: var(--mist); font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.mx-tags a:hover { background: var(--red); color: var(--on-dark); }

.mx-author { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--mist); padding: var(--space-6); margin: var(--space-8) 0; border-top: var(--bar) solid var(--ink); }
.mx-author__avatar { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--rule); }
.mx-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-author__body { min-width: 0; }
.mx-author__label { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 var(--space-1); }
.mx-author__name { font-size: 30px; text-transform: uppercase; margin: 0 0 var(--space-2); }
.mx-author__name a { color: var(--ink); text-decoration: none; }
.mx-author__name a:hover { color: var(--red-ink); }
.mx-author__bio { font-size: 16px; line-height: 1.55; color: var(--ink-muted); margin: 0; }
@media (max-width: 480px) { .mx-author { flex-direction: column; padding: var(--space-4); } }

.mx-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin: var(--space-8) 0; }
.mx-postnav a { display: block; text-decoration: none; color: var(--ink); border-top: var(--bar) solid var(--ink); padding-top: var(--space-3); }
.mx-postnav a:hover { border-top-color: var(--red); }
.mx-postnav a:hover .mx-postnav__title { color: var(--red-ink); }
.mx-postnav__label { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-ink); margin-bottom: var(--space-1); }
.mx-postnav__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.08; }
.mx-postnav__next { text-align: right; }
@media (max-width: 560px) { .mx-postnav { grid-template-columns: 1fr; } .mx-postnav__next { text-align: left; } }

.mx-related { margin-top: var(--space-12); }

/* Comments */
.mx-comments { margin-top: var(--space-12); }
.mx-comments .comment-list { list-style: none; padding: 0; margin: 0 0 var(--space-8); }
.mx-comments .comment-list ol { list-style: none; padding-left: var(--space-6); }
.mx-comments .comment-body { padding: var(--space-4) 0; border-bottom: var(--hairline) solid var(--rule); font-size: 16px; }
.mx-comments .comment-author { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: var(--space-2); }
.mx-comments .comment-author img { border-radius: 50%; width: 40px; height: 40px; }
.mx-comments .comment-metadata, .mx-comments .reply { font-family: var(--font-display); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mx-comments .comment-metadata a { color: var(--ink-muted); text-decoration: none; }
.comment-form p { margin-bottom: var(--space-4); }
.comment-form label { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-1); }
.comment-form .comment-form-cookies-consent label { display: inline; font-family: var(--font-sans); font-weight: 500; text-transform: none; letter-spacing: 0; }
.comment-form input[type="submit"] { min-height: 48px; padding: 0 var(--space-6); border: 0; background: var(--red); color: var(--on-dark); font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.comment-form input[type="submit"]:hover { background: var(--ink); }

/* Page */
.mx-page { min-width: 0; width: 100%; padding-top: var(--space-8); }
.mx-page--full { max-width: none; }
.mx-page__head { margin-bottom: var(--space-6); }
.mx-page .mx-content > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }

/* ==========================================================================
   10. Widgets
   ========================================================================== */
.mx-sidebar { display: flex; flex-direction: column; gap: var(--space-8); }
.mx-sidebar--sticky { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
.mx-single-top + .mx-container .mx-sidebar--sticky { top: calc(var(--header-h) + var(--space-6)); }
.widget { font-size: 16px; line-height: 1.55; }
.widget-title, .mx-sidebar .wp-block-heading, .mx-home-aside .wp-block-heading {
	position: relative; font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
	color: var(--ink); margin: 0 0 var(--space-4); padding-bottom: var(--space-3); line-height: 1;
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 5px; background: var(--red); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: var(--space-2) 0; border-bottom: var(--hairline) solid var(--rule); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); text-decoration: none; }
.widget a:hover { color: var(--red-ink); }
.widget select { width: 100%; min-height: 48px; border: 2px solid var(--ink); background: var(--paper); padding: 0 var(--space-2); }

.mx-w-popular { counter-reset: mx-wp; }
.mx-w-popular li { counter-increment: mx-wp; display: grid; grid-template-columns: 40px 72px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-3) 0; }
.mx-w-popular li::before { content: counter(mx-wp); font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 0.85; color: var(--red); }
.mx-w-popular li.no-thumb { grid-template-columns: 40px minmax(0, 1fr); }
.mx-w-popular__thumb { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink); }
.mx-w-popular__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mx-w-popular__title { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.08; display: block; }
.mx-w-popular ol { list-style: none; margin: 0; padding: 0; }

.mx-w-sections ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mx-w-sections li { padding: 0; border: 0; }
.mx-w-sections a { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--cat, var(--red)); color: var(--on-dark) !important; padding: 8px var(--space-3) 7px; font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.mx-w-sections a:hover { background: var(--ink); }
.mx-w-sections .count { font-size: 14px; color: var(--yellow); }

.mx-w-about__text { color: var(--ink-muted); }
.mx-w-about__text p:last-child { margin-bottom: 0; }
.mx-w-about .mx-btn { margin-top: var(--space-3); color: var(--on-dark); }
.mx-w-about .mx-btn--outline:not(:hover) { color: var(--ink); }

.mx-w-author__top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.mx-w-author__avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--mist); }
.mx-w-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-w-author__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; margin: 0; }
.mx-w-author__bio { color: var(--ink-muted); font-size: 15px; margin: 0; }

.mx-w-newsletter { background: var(--yellow); padding: var(--space-6); }
.mx-w-newsletter .widget-title::after { background: var(--red); }
.mx-w-newsletter__text { font-size: 16px; font-weight: 500; color: var(--ink); margin: 0 0 var(--space-3); }
.mx-w-newsletter form { display: flex; flex-direction: column; gap: var(--space-2); }
.mx-w-newsletter .mx-btn { width: 100%; }
.mx-w-newsletter .mx-btn, .mx-w-newsletter .mx-btn:hover { color: var(--on-dark); }
.mx-w-newsletter__note { font-size: 14px; color: var(--ink); margin: var(--space-2) 0 0; }

.mx-social { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.mx-social li { padding: 0; border: 0; }
.mx-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--ink); color: var(--on-dark) !important; }
.mx-social a:hover { background: var(--red); }
.mx-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.mx-footer { background: var(--footer-bg); color: var(--on-dark-muted); margin-top: var(--space-16); font-size: 16px; border-top: 10px solid var(--red); }
.mx-footer a { color: var(--on-dark); text-decoration: none; }
.mx-footer a:hover { color: var(--yellow); }
.mx-footer__cols { display: grid; gap: var(--space-8); padding: var(--space-12) 0; }
.mx-footer__cols--1 { grid-template-columns: minmax(0, 1fr); }
.mx-footer__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mx-footer__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-footer__cols--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .mx-footer__cols--3, .mx-footer__cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mx-footer__cols { grid-template-columns: minmax(0, 1fr) !important; gap: var(--space-6); padding: var(--space-8) 0; } }
.mx-footer .widget-title, .mx-footer .wp-block-heading { color: var(--yellow); }
.mx-footer .widget-title::after { background: var(--red); }
.mx-footer .widget li { border-bottom-color: rgba(255, 255, 255, 0.14); }
.mx-footer .widget a { color: var(--on-dark); }
.mx-footer .widget a:hover { color: var(--yellow); }
.mx-footer .mx-social a { background: var(--red); }
.mx-footer .mx-social a:hover { background: var(--yellow); color: var(--ink) !important; }
.mx-footer .mx-w-popular__thumb, .mx-footer .mx-w-author__avatar { background: #2a2a2a; }
.mx-footer .mx-w-newsletter { color: var(--ink); }
.mx-footer .mx-w-newsletter .widget-title { color: var(--ink); }
.mx-footer .mx-w-about__text, .mx-footer .mx-w-author__bio { color: var(--on-dark-muted); }
.mx-footer .mx-w-about .mx-btn--outline { color: var(--on-dark); border-color: var(--on-dark); }
.mx-footer .mx-w-about .mx-btn--outline:hover { background: var(--on-dark); color: var(--ink); }
.mx-footer .mx-w-popular li::before { color: var(--yellow); }
.mx-footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; text-transform: uppercase; color: var(--on-dark); margin: 0 0 var(--space-3); }
.mx-footer-logo span { color: var(--yellow); }
.mx-footer__about { max-width: 380px; margin: 0 0 var(--space-4); }
.mx-footer__bar { background: var(--red); color: var(--on-dark); }
.mx-footer__bar-inner { padding: var(--space-4) var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-6); font-size: 15px; }
.mx-footer__bar p { margin: 0; }
.mx-footer__bar a { color: var(--on-dark); }
.mx-footer__bar a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.mx-footer-menu { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; margin: 0; padding: 0; font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.mx-footer-bar-widgets .widget { margin: 0; }

.mx-top { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 40; width: 48px; height: 48px; border: 0; background: var(--red); color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.mx-top.is-visible { opacity: 1; visibility: visible; }
.mx-top:hover { background: var(--ink); }
.mx-top svg { width: 22px; height: 22px; }

/* 404 */
.mx-404 { padding: var(--space-12) 0 var(--space-8); max-width: 820px; }
.mx-404__big { font-family: var(--font-display); font-weight: 800; font-size: 180px; line-height: 0.8; color: var(--red); margin: 0 0 var(--space-4); }
.mx-404__big span { color: var(--ink); }
.mx-404 .mx-h1 { text-transform: uppercase; }
.mx-404 .mx-searchform { margin: var(--space-6) 0 var(--space-12); }
@media (max-width: 560px) { .mx-404__big { font-size: 120px; } }

/* Image links never underline */
.mx-card__media, .mx-row__media, .mx-compact__media, .mx-w-popular__thumb { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .mx-topbar, .mx-header, .mx-footer, .mx-sidebar, .mx-related, .mx-postnav, .mx-top, .mx-comments, .mx-toc { display: none !important; } body { background: #fff; } }
.mx-footer__bar--plain { background: #000; }
.mx-card__media > a { position: absolute; inset: 0; display: block; }
.mx-card__chip { z-index: 1; }
