/*
Theme Name: Mirror Press
Theme URI: https://theinsightmirror.com
Author: The Insight Mirror
Description: A dark, newspaper-style magazine theme built for The Insight Mirror. Featured story area (1 big + 4), category sections, Bengali-first typography, AI article summaries, reading progress bar, light/dark switch, newsletter signup and ad slots. No page builder required.
Version: 1.1.3
Requires at least: 6.3
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: mirror-press
Update URI: false
Tags: news, blog, dark, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--accent: #e11d2e;
	--bg: #0b0b0c;
	--surface: #131315;
	--surface-2: #1b1b1e;
	--line: #26262a;
	--line-strong: #3a3a40;
	--text: #ededed;
	--text-2: #c4c4c8;
	--muted: #8d8d94;
	--on-accent: #ffffff;
	--shadow: 0 10px 30px rgba(0, 0, 0, .45);

	--f-mast: "Playfair Display", "Noto Serif Bengali", Georgia, serif;
	--f-head: "Noto Serif Bengali", "Noto Serif", Georgia, "Times New Roman", serif;
	--f-body: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1240px;
	--gutter: 24px;
	--radius: 4px;
}

html[data-theme="light"] {
	--bg: #f7f5f0;
	--surface: #ffffff;
	--surface-2: #efece5;
	--line: #e2ded4;
	--line-strong: #cbc6b9;
	--text: #141414;
	--text-2: #33333a;
	--muted: #66666e;
	--shadow: 0 10px 30px rgba(20, 20, 20, .08);
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .2s ease, color .2s ease;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 .5em;
	color: var(--text);
	letter-spacing: -.005em;
}

p { margin: 0 0 1.1em; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px;
	background: var(--accent); color: var(--on-accent);
	z-index: 1000;
}

.mp-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.mp-icon { flex: none; }

/* ==========================================================================
   Reading progress
   ========================================================================== */
.mp-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 200;
	pointer-events: none;
}
.admin-bar .mp-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .mp-progress { top: 46px; } }
.mp-progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	background: var(--accent);
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
.mp-topbar {
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}
.mp-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	gap: 16px;
}
.mp-topbar__right { display: flex; align-items: center; gap: 12px; }

.mp-social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mp-social a {
	display: grid; place-items: center;
	width: 30px; height: 30px;
	color: var(--muted);
	border-radius: 50%;
}
.mp-social a:hover { color: var(--text); background: var(--surface-2); }

.mp-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 38px; height: 38px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.mp-iconbtn:hover { background: var(--surface-2); color: var(--text); }

.mp-theme-toggle { width: 32px; height: 32px; color: var(--muted); }
.mp-theme-toggle__moon { display: none; }
html[data-theme="light"] .mp-theme-toggle__sun { display: none; }
html[data-theme="light"] .mp-theme-toggle__moon { display: inline; }

.mp-masthead {
	padding: 34px 0 26px;
	text-align: center;
}
.mp-brand {
	display: inline-block;
	font-family: var(--f-mast);
	font-weight: 900;
	font-size: clamp(34px, 6vw, 64px);
	line-height: 1.05;
	letter-spacing: -.01em;
	color: var(--text);
}
.mp-brand:hover { color: var(--text); }
.mp-brand--logo .custom-logo-link { display: inline-block; }
.mp-brand--logo .custom-logo {
	max-height: 96px;
	width: auto;
	margin: 0 auto;
}
.mp-tagline {
	margin: 10px 0 0;
	font-size: 12px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--muted);
}

.mp-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-top: 3px solid var(--text);
	border-bottom: 1px solid var(--line);
}
.admin-bar .mp-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .mp-nav { top: 0; } }
html[data-theme="dark"] .mp-nav { border-top-color: var(--accent); }

.mp-nav__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 54px;
}
.mp-nav__toggle, .mp-nav__mini { display: none; }

.mp-menu { flex: 1; }
.mp-menu__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mp-menu__list > li { position: relative; }
.mp-menu__list a {
	display: block;
	padding: 15px 16px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-2);
}
.mp-menu__list > li > a { position: relative; }
.mp-menu__list > li > a::after {
	content: "";
	position: absolute;
	left: 16px; right: 16px; bottom: 8px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .2s ease;
}
.mp-menu__list > li > a:hover::after,
.mp-menu__list > .current-menu-item > a::after,
.mp-menu__list > .current-cat > a::after,
.mp-menu__list > .current-menu-ancestor > a::after { transform: scaleX(1); }
.mp-menu__list a:hover,
.mp-menu__list .current-menu-item > a,
.mp-menu__list .current-cat > a { color: var(--text); }

.mp-menu__list .sub-menu {
	position: absolute;
	left: 0; top: 100%;
	min-width: 220px;
	list-style: none;
	margin: 0; padding: 8px 0;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: .15s ease;
}
.mp-menu__list li:hover > .sub-menu,
.mp-menu__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mp-menu__list .sub-menu a { padding: 9px 18px; text-transform: none; letter-spacing: 0; font-size: 15px; }

.mp-search {
	border-top: 1px solid var(--line);
	padding: 18px 0;
	background: var(--surface);
}

/* Search form */
.search-form { display: flex; gap: 0; max-width: 680px; margin: 0 auto; }
.search-form label { flex: 1; }
.search-field {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	font-size: 16px;
}
.search-submit {
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   Shared bits
   ========================================================================== */
.mp-main { min-height: 50vh; }

.mp-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 8px;
}
.mp-kicker:hover { color: var(--text); }

.mp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--muted);
}
.mp-meta__sep { opacity: .6; }

.mp-media {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--surface-2);
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
}
.mp-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease, opacity .3s ease;
}
a.mp-media:hover img, .mp-card:hover .mp-media img, .mp-row:hover .mp-media img { transform: scale(1.04); }
.mp-media__ph {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	padding: 12px;
	font-family: var(--f-mast);
	font-weight: 800;
	font-size: 18px;
	color: var(--muted);
	text-align: center;
	background:
		linear-gradient(135deg, transparent 0 48%, var(--line) 48% 52%, transparent 52%) 0 0 / 14px 14px,
		var(--surface-2);
}

.mp-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--line);
}
.mp-section-title {
	position: relative;
	margin: 0;
	padding: 0 0 12px;
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.mp-section-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 100%;
	height: 3px;
	background: var(--accent);
}
.mp-section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.mp-section { padding: 48px 0 8px; }

/* Card (grid item) */
.mp-card { display: flex; flex-direction: column; }
.mp-card .mp-media { margin-bottom: 16px; }
.mp-card__title {
	font-size: 22px;
	line-height: 1.4;
	margin-bottom: 10px;
}
.mp-card__title a:hover { color: var(--accent); }
.mp-card__excerpt {
	color: var(--text-2);
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 12px;
}

/* Row (thumb + title) */
.mp-row {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 14px;
	align-items: start;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}
.mp-row:first-child { border-top: 0; padding-top: 0; }
.mp-row .mp-media { aspect-ratio: 3 / 2; }
.mp-row .mp-kicker { font-size: 11px; margin-bottom: 4px; }
.mp-row__title {
	font-size: 17px;
	line-height: 1.45;
	margin: 0 0 6px;
}
.mp-row__title a:hover { color: var(--accent); }
.mp-row .mp-meta { font-size: 12px; }

/* ==========================================================================
   Homepage — featured (1 big + 4)
   ========================================================================== */
.mp-hero { padding-top: 32px; }
.mp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 32px;
}

.mp-lead { position: relative; }
.mp-lead .mp-media {
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
}
.mp-lead .mp-media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .82) 68%, rgba(0, 0, 0, .95) 100%);
	pointer-events: none;
}
.mp-lead__body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 32px 34px 30px;
	color: #fff;
	pointer-events: none;
}
.mp-lead__body a { pointer-events: auto; }
.mp-lead .mp-kicker {
	background: var(--accent);
	color: var(--on-accent);
	padding: 3px 10px;
	border-radius: 2px;
}
.mp-lead .mp-kicker:hover { color: var(--on-accent); filter: brightness(1.1); }
.mp-lead__title {
	font-size: clamp(26px, 3.1vw, 40px);
	line-height: 1.3;
	margin: 4px 0 12px;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}
.mp-lead__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mp-lead__excerpt {
	max-width: 62ch;
	color: rgba(255, 255, 255, .82);
	font-size: 16px;
	margin-bottom: 12px;
}
.mp-lead .mp-meta { color: rgba(255, 255, 255, .7); }

.mp-hero__side { display: flex; flex-direction: column; }
.mp-hero__side-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--line);
}
.mp-hero__side .mp-row { grid-template-columns: 128px 1fr; }
.mp-hero__side .mp-row__title { font-size: 17px; }

.mp-ad {
	padding: 32px 0 0;
	text-align: center;
}
.mp-ad .mp-widget { margin: 0 auto; }
.mp-ad .mp-widget__title { display: none; }

/* ==========================================================================
   Latest + sidebar
   ========================================================================== */
.mp-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	align-items: start;
}
.mp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 32px;
}
.mp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mp-sidebar { position: sticky; top: 76px; }
.admin-bar .mp-sidebar { top: 108px; }

.mp-widget {
	margin-bottom: 36px;
	font-size: 15px;
}
.mp-widget__title {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-family: var(--f-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.mp-widget__title span { position: relative; }
.mp-widget__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 48px; height: 3px;
	background: var(--accent);
}
.mp-widget ul { list-style: none; margin: 0; padding: 0; }
.mp-widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mp-widget li:last-child { border-bottom: 0; }

.mp-about-box {
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
}
.mp-about-box__name {
	font-family: var(--f-mast);
	font-weight: 800;
	font-size: 22px;
	margin: 0 0 6px;
}
.mp-about-box p { margin: 0; color: var(--text-2); }

.mp-catlist li { display: flex; justify-content: space-between; align-items: center; }
.mp-catlist a { font-weight: 600; }
.mp-catlist .count {
	min-width: 28px;
	padding: 0 8px;
	border-radius: 20px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	text-align: center;
}

/* Numbered list */
.mp-numbered { counter-reset: n; }
.mp-numbered .mp-num {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	counter-increment: n;
}
.mp-numbered .mp-num::before {
	content: counter(n, decimal-leading-zero);
	font-family: var(--f-mast);
	font-weight: 800;
	font-size: 22px;
	line-height: 1.2;
	color: var(--accent);
}
.mp-numbered .mp-num:last-child { border-bottom: 0; }
.mp-num__title { font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.45; display: block; margin-bottom: 4px; }
.mp-num .mp-meta { font-size: 12px; }

/* ==========================================================================
   Category blocks
   ========================================================================== */
.mp-blocks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 48px;
}
.mp-block .mp-card { margin-bottom: 20px; }
.mp-block .mp-card__title { font-size: 24px; }
.mp-block .mp-row:first-child { border-top: 1px solid var(--line); padding-top: 16px; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.mp-news {
	display: grid;
	grid-template-columns: 1fr minmax(0, 420px);
	gap: 24px 40px;
	align-items: center;
	padding: 36px 40px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
}
.mp-news__icon { color: var(--accent); display: inline-block; margin-bottom: 6px; }
.mp-news__title { font-size: 26px; margin: 0 0 6px; }
.mp-news__text { color: var(--text-2); margin: 0; }
.mp-news__form { display: flex; }
.mp-news__form input {
	flex: 1;
	min-width: 0;
	height: 50px;
	padding: 0 16px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
}
.mp-news__form button {
	height: 50px;
	padding: 0 22px;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	cursor: pointer;
}
.mp-news__form button:hover { filter: brightness(1.1); }
.mp-news--box { grid-template-columns: 1fr; padding: 24px; }
.mp-news--box .mp-news__title { font-size: 20px; }
.mp-news--box .mp-news__form { flex-direction: column; gap: 10px; }
.mp-news--box .mp-news__form input { border-right: 1px solid var(--line-strong); border-radius: var(--radius); }
.mp-news--box .mp-news__form button { border-radius: var(--radius); }

/* ==========================================================================
   Archive / search
   ========================================================================== */
.mp-archive-head {
	padding: 48px 0 32px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 40px;
}
.mp-archive-head__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 8px;
}
.mp-archive-head h1 { font-size: clamp(30px, 4vw, 48px); margin: 0; }
.mp-archive-head__desc { color: var(--text-2); max-width: 70ch; margin-top: 12px; }
.mp-archive-head__desc p:last-child { margin: 0; }
.mp-archive-head .search-form { margin: 20px 0 0; }

.mp-archive-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding-bottom: 40px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--line);
}
.mp-archive-lead .mp-card__title { font-size: clamp(24px, 2.6vw, 34px); }
.mp-archive-lead .mp-media { margin: 0; }

.navigation.pagination { margin: 56px 0 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 15px;
}
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

.mp-empty {
	padding: 48px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text-2);
}

/* ==========================================================================
   Single article
   ========================================================================== */
.mp-article__head {
	max-width: 880px;
	margin: 0 auto;
	padding: 48px 0 28px;
	text-align: center;
}
.mp-article__title {
	font-size: clamp(30px, 4.4vw, 52px);
	line-height: 1.28;
	margin: 6px 0 16px;
}
.mp-article__dek {
	font-size: 20px;
	line-height: 1.65;
	color: var(--text-2);
	max-width: 720px;
	margin: 0 auto 22px;
}
.mp-byline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}
.mp-byline img { border-radius: 50%; }
.mp-byline__name { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.mp-byline .mp-meta { justify-content: flex-start; }
.mp-article__head .mp-meta { justify-content: center; }

.mp-article__figure {
	max-width: 1120px;
	margin: 0 auto 40px;
}
.mp-article__figure img { width: 100%; border-radius: var(--radius); }
.mp-article__figure figcaption {
	margin-top: 10px;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

.mp-article__layout {
	display: grid;
	grid-template-columns: 64px minmax(0, 720px);
	justify-content: center;
	gap: 40px;
}
.mp-article__rail { position: relative; }
.mp-article__rail .mp-share {
	position: sticky;
	top: 90px;
	flex-direction: column;
	align-items: center;
}
.mp-article__rail .mp-share__label { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; }

.mp-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-share__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
.mp-share__btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: .15s ease;
}
.mp-share__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mp-share__copied {
	position: absolute;
	left: 50%; bottom: calc(100% + 6px);
	transform: translateX(-50%);
	padding: 2px 8px;
	border-radius: 3px;
	background: var(--text);
	color: var(--bg);
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}
.mp-share__copy.is-copied .mp-share__copied { opacity: 1; }
.mp-share--inline { display: none; }

/* AI summary */
.mp-ai {
	margin: 0 0 36px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
}
.mp-ai > summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.mp-ai > summary::-webkit-details-marker { display: none; }
.mp-ai__badge {
	display: inline-grid;
	place-items: center;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
}
.mp-ai__chev { margin-left: auto; color: var(--muted); transition: transform .2s ease; }
.mp-ai[open] .mp-ai__chev { transform: rotate(180deg); }
.mp-ai__body { padding: 0 22px 18px 58px; }
.mp-ai__list { margin: 0; padding: 0; list-style: none; }
.mp-ai__list li {
	position: relative;
	padding: 6px 0 6px 18px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text-2);
}
.mp-ai__list li::before {
	content: "";
	position: absolute;
	left: 0; top: 17px;
	width: 7px; height: 7px;
	background: var(--accent);
	border-radius: 1px;
}
.mp-ai__note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* Article body */
.entry-content {
	font-size: 19px;
	line-height: 1.9;
	color: var(--text-2);
}
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { font-size: 30px; margin-top: 1.7em; color: var(--text); }
.entry-content h3 { font-size: 24px; margin-top: 1.5em; color: var(--text); }
.entry-content h4 { font-size: 20px; margin-top: 1.4em; color: var(--text); }
.entry-content a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.entry-content a:hover { color: var(--accent); }
.entry-content strong { color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.8em 0;
	padding: 4px 0 4px 26px;
	border-left: 3px solid var(--accent);
	font-family: var(--f-head);
	font-size: 23px;
	line-height: 1.65;
	color: var(--text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--f-body); font-size: 14px; font-style: normal; color: var(--muted); }
.entry-content .wp-block-pullquote { border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); padding: 1.5em 0; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.entry-content pre { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.entry-content :not(pre) > code { padding: 2px 6px; background: var(--surface-2); border-radius: 3px; }
.mp-table-wrap { overflow-x: auto; margin-bottom: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface); color: var(--text); }
.entry-content .alignwide { margin-left: -100px; margin-right: -100px; max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content::after { content: ""; display: table; clear: both; }

.mp-article .mp-ad { padding: 0 0 32px; }

.mp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; }
.mp-tags a {
	padding: 5px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 30px;
	font-size: 13px;
	color: var(--text-2);
}
.mp-tags a:hover { border-color: var(--accent); color: var(--accent); }

.mp-article__foot { border-top: 1px solid var(--line); padding-top: 28px; }

.mp-author {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 20px;
	margin: 36px 0;
	padding: 26px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.mp-author img { border-radius: 50%; }
.mp-author__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.mp-author__name { font-size: 20px; margin: 2px 0 6px; }
.mp-author p { margin: 0; color: var(--text-2); font-size: 15px; }

.mp-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 36px 0;
}
.mp-postnav a {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.mp-postnav a:hover { border-color: var(--accent); }
.mp-postnav__dir { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mp-postnav__title { font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.45; }
.mp-postnav__next { text-align: right; }

.mp-related { padding: 56px 0 24px; margin-top: 40px; border-top: 1px solid var(--line); }
.mp-related .mp-card__title { font-size: 19px; }

/* Pages */
.mp-page { max-width: 800px; margin: 0 auto; padding: 48px 0 64px; }
.mp-page__title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 28px; }

/* 404 */
.mp-404 { text-align: center; padding: 96px 0; }
.mp-404__code { font-family: var(--f-mast); font-weight: 900; font-size: clamp(90px, 18vw, 180px); line-height: 1; color: var(--accent); }
.mp-404 h1 { font-size: 30px; }
.mp-404 p { color: var(--text-2); }
.mp-404 .search-form { margin-top: 24px; }

/* ==========================================================================
   Comments
   ========================================================================== */
.mp-comments { margin: 40px 0; }
.mp-comments__title { font-family: var(--f-body); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 32px; border-left: 2px solid var(--line); }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.comment-content p { color: var(--text-2); }
.reply a { font-size: 13px; font-weight: 700; color: var(--accent); }
.comment-respond { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-reply-title { font-size: 20px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
}
.comment-form .form-submit input, .wp-block-button__link {
	padding: 12px 26px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	cursor: pointer;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   Footer
   ========================================================================== */
.mp-footer {
	margin-top: 72px;
	padding: 56px 0 28px;
	background: var(--surface);
	border-top: 3px solid var(--accent);
	font-size: 15px;
}
html[data-theme="dark"] .mp-footer { background: #070708; }
.mp-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 40px;
}
.mp-footer__brand { display: inline-block; font-family: var(--f-mast); font-weight: 900; font-size: 30px; line-height: 1.1; margin-bottom: 14px; }
.mp-footer__about p { color: var(--text-2); max-width: 46ch; }
.mp-footer__about .mp-social { margin-top: 16px; }
.mp-footer__title { font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mp-footer__list { list-style: none; margin: 0; padding: 0; }
.mp-footer__list li { padding: 5px 0; }
.mp-footer__list a { color: var(--text-2); }
.mp-footer__list a:hover { color: var(--accent); }
.mp-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--muted);
}

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.sticky { position: relative; }
.bypostauthor { display: block; }
.gallery-caption { font-size: 13px; }
.wp-block-separator { border-color: var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.mp-split { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 960px) {
	.mp-hero__grid { grid-template-columns: 1fr; }
	.mp-hero__side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
	.mp-hero__side-label { grid-column: 1 / -1; }
	.mp-hero__side .mp-row:nth-child(2), .mp-hero__side .mp-row:nth-child(3) { border-top: 0; padding-top: 0; }
	.mp-split { grid-template-columns: 1fr; }
	.mp-sidebar { position: static; }
	.mp-blocks { grid-template-columns: 1fr; }
	.mp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mp-news { grid-template-columns: 1fr; padding: 28px; }
	.mp-footer__grid { grid-template-columns: 1fr 1fr; }
	.mp-footer__about { grid-column: 1 / -1; }
	.mp-article__layout { grid-template-columns: minmax(0, 720px); }
	.mp-article__rail { display: none; }
	.mp-share--inline { display: flex; margin: 0 0 28px; }

	/* Mobile nav */
	.mp-nav__inner { justify-content: space-between; }
	.mp-nav__toggle { display: inline-grid; }
	.mp-nav__mini {
		display: block;
		font-family: var(--f-mast);
		font-weight: 800;
		font-size: 19px;
		opacity: 0;
		transition: opacity .2s ease;
	}
	.mp-nav.is-stuck .mp-nav__mini { opacity: 1; }
	.mp-menu {
		position: fixed;
		top: 0; left: 0; bottom: 0;
		width: min(320px, 86vw);
		padding: 72px 0 24px;
		background: var(--surface);
		border-right: 1px solid var(--line);
		box-shadow: var(--shadow);
		transform: translateX(-102%);
		transition: transform .25s ease;
		overflow-y: auto;
		z-index: 150;
	}
	.mp-menu.is-open { transform: none; }
	.mp-menu__list { flex-direction: column; justify-content: flex-start; }
	.mp-menu__list a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
	.mp-menu__list > li > a::after { display: none; }
	.mp-menu__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; background: var(--surface-2); }
	.mp-menu__list .sub-menu a { padding-left: 40px; }
	.mp-nav__toggle[aria-expanded="true"] { position: relative; z-index: 160; }
	body.mp-menu-open .mp-nav { z-index: 170; }
	body.mp-menu-open::after {
		content: "";
		position: fixed; inset: 0;
		background: rgba(0, 0, 0, .6);
		z-index: 140;
	}
}

@media (max-width: 680px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.mp-topbar__date { font-size: 12px; }
	.mp-topbar .mp-social { display: none; }
	.mp-masthead { padding: 24px 0 18px; }
	.mp-brand--logo .custom-logo { max-height: 64px; }
	.mp-tagline { letter-spacing: .22em; font-size: 11px; }
	.mp-hero { padding-top: 20px; }
	.mp-lead .mp-media { aspect-ratio: 4 / 5; }
	.mp-lead__body { padding: 20px; }
	.mp-lead__excerpt { display: none; }
	.mp-hero__side { grid-template-columns: 1fr; }
	.mp-hero__side .mp-row:nth-child(3) { border-top: 1px solid var(--line); padding-top: 16px; }
	.mp-hero__side .mp-row { grid-template-columns: 104px 1fr; }
	.mp-grid, .mp-grid--3 { grid-template-columns: 1fr; gap: 32px; }
	.mp-card__title { font-size: 20px; }
	.mp-archive-lead { grid-template-columns: 1fr; gap: 16px; }
	.mp-section { padding-top: 36px; }
	.mp-article__head { padding-top: 32px; text-align: left; }
	.mp-article__head .mp-meta { justify-content: flex-start; }
	.mp-article__dek { font-size: 18px; margin-left: 0; }
	.mp-article__figure { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
	.mp-article__figure img { border-radius: 0; }
	.entry-content { font-size: 18px; line-height: 1.85; }
	.entry-content h2 { font-size: 25px; }
	.entry-content h3 { font-size: 21px; }
	.entry-content blockquote { font-size: 20px; }
	.mp-ai__body { padding-left: 22px; }
	.mp-postnav { grid-template-columns: 1fr; }
	.mp-postnav__next { text-align: left; }
	.mp-author { grid-template-columns: 1fr; text-align: left; }
	.mp-news__form { flex-direction: column; gap: 10px; }
	.mp-news__form input { border-right: 1px solid var(--line-strong); border-radius: var(--radius); }
	.mp-news__form button { border-radius: var(--radius); }
	.mp-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

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

@media print {
	.mp-header, .mp-footer, .mp-sidebar, .mp-share, .mp-related, .mp-comments, .mp-progress, .mp-ad, .mp-news { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Block widgets (search, latest posts) */
.wp-block-search__inside-wrapper { display: flex; }
.wp-block-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius) 0 0 var(--radius);
}
.wp-block-search__button {
	margin: 0;
	height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	cursor: pointer;
}
.mp-widget .wp-block-search__label,
.mp-widget h2.wp-block-heading {
	display: block;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-family: var(--f-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* Clock & weather (top bar) */
.mp-topbar__left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.mp-clock { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.mp-clock__time {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--text);
	letter-spacing: .02em;
}
.mp-clock__zone {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--accent);
}
.mp-clock__sep { opacity: .6; }
.mp-weather {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-left: 18px;
	border-left: 1px solid var(--line);
	white-space: nowrap;
}
.mp-weather[hidden] { display: none; }
.mp-weather__icon { display: inline-grid; color: var(--text); }
.mp-weather__temp { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
	.mp-clock__date, .mp-clock__sep, .mp-weather__text { display: none; }
	.mp-topbar__left { gap: 12px; }
	.mp-weather { padding-left: 12px; }
}

/* Day-mode logo swap */
.mp-logo-light-link { display: none; }
html[data-theme="light"] .mp-brand--logo:has(.mp-logo-light-link) .custom-logo-link { display: none; }
html[data-theme="light"] .mp-logo-light-link { display: inline-block; }

/* Lead story text: always white on the dark overlay, in day and night mode,
   whatever state the link is in (visited, focused, clicked) or other plugins' link styles. */
.mp-lead .mp-lead__title,
.mp-lead .mp-lead__title a,
.mp-lead .mp-lead__title a:link,
.mp-lead .mp-lead__title a:visited,
.mp-lead .mp-lead__title a:hover,
.mp-lead .mp-lead__title a:focus,
.mp-lead .mp-lead__title a:active {
	color: #fff !important;
}
.mp-lead .mp-lead__title { text-shadow: 0 2px 12px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .6); }
.mp-lead .mp-lead__excerpt { color: rgba(255, 255, 255, .88) !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.mp-lead .mp-meta, .mp-lead .mp-meta * { color: rgba(255, 255, 255, .78) !important; }

/* Native form controls follow the color mode (fixes dropdowns such as GTranslate) */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
select {
	background-color: var(--surface);
	color: var(--text);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
}
select option { background-color: var(--surface); color: var(--text); }
.gtranslate_wrapper select,
select.gt_selector,
.gt_selector {
	background-color: var(--surface) !important;
	color: var(--text) !important;
	border: 1px solid var(--line-strong) !important;
	border-radius: var(--radius);
	padding: 6px 10px;
	font-family: var(--f-body);
	box-shadow: var(--shadow);
}
.gt_selector option { background-color: var(--surface); color: var(--text); }

/* Lead story: the picture always fills the whole box, so the text sits on the image
   even when the "Featured" column next to it is taller. */
@media (min-width: 961px) {
	.mp-lead { min-height: 500px; }
	.mp-lead .mp-media {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
	}
}
@media (max-width: 960px) {
	.mp-lead .mp-media { min-height: 420px; }
}
