/*
Theme Name: Message Valley Magazine
Theme URI: https://messagevalley.com/
Description: Mobile-first magazine layout for Message Valley. Child theme of Astra — keeps all URLs, plugins, Site Kit / AdSense and Yoast settings.
Author: Message Valley
Template: astra
Version: 1.3.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: mv
*/

/* ================= Tokens (mobile first) ================= */
:root {
	--mv-ink: #111111;
	--mv-text: #222222;
	--mv-muted: #5F6368;
	--mv-line: #E4E4E4;
	--mv-soft: #F7F7F7;
	--mv-tint: #FFF0F5;
	--mv-head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
	--mv-body: Barlow, "Helvetica Neue", Arial, sans-serif;
	--mv-wrap: 1280px;
	--mv-gap: 16px;
	--mv-sticky: 0px;
}
.admin-bar { --mv-sticky: 46px; }
@media (min-width: 783px) { .admin-bar { --mv-sticky: 32px; } }

body.mv-magazine {
	margin: 0;
	background: #fff;
	color: var(--mv-text);
	font-family: var(--mv-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
html.mv-no-scroll { overflow: hidden; }
.mv-magazine a { color: var(--mv-ink); text-decoration: none; }
.mv-magazine a:hover { color: var(--mv-brand-dark); }
.mv-magazine :focus-visible { outline: 3px solid var(--mv-brand); outline-offset: 2px; }
.mv-magazine img { max-width: 100%; height: auto; display: block; }
.mv-magazine h1, .mv-magazine h2, .mv-magazine h3, .mv-magazine h4 { font-family: var(--mv-head); color: var(--mv-ink); letter-spacing: 0; }
.mv-magazine button { font-family: var(--mv-head); }

/* Astra overrides: our templates control layout */
body.mv-magazine #primary { margin: 0 !important; padding: 0; width: auto; float: none; border: 0; background: none; }
body.mv-magazine #content > .ast-container { display: block; max-width: none; padding: 0; margin: 0; }
body.mv-magazine .site-content { padding: 0; }
body.mv-magazine #ast-scroll-top { display: none !important; }
body.mv-magazine .entry-content > * { margin-left: 0; margin-right: 0; }

.mv-wrap { width: 100%; max-width: var(--mv-wrap); margin-left: auto; margin-right: auto; padding-left: var(--mv-gap); padding-right: var(--mv-gap); box-sizing: border-box; }

/* Shared labels & meta (Good Housekeeping–style uppercase condensed) */
.mv-label, .mv-kicker { display: block; margin: 0 0 6px; font-family: var(--mv-head); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mv-ink); line-height: 1.2; }
.mv-magazine .mv-kicker { color: var(--mv-brand-dark); }
a.mv-kicker:hover { text-decoration: underline; }
.mv-by { margin: 6px 0 0; font-family: var(--mv-head); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mv-muted); line-height: 1.3; }
.mv-by a { color: var(--mv-ink); }
.mv-date, .mv-time { margin: 2px 0 0; font-family: var(--mv-head); font-size: 14px; font-weight: 500; color: var(--mv-muted); line-height: 1.3; }
.mv-time { display: flex; align-items: center; gap: 5px; font-weight: 700; color: var(--mv-ink); }
.mv-dot { margin: 0 6px; }

/* ================= Top bar & header ================= */
.mv-progress { position: fixed; top: var(--mv-sticky); left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; }
.mv-progress span { display: block; height: 100%; background: var(--mv-brand); transform: scaleX(0); transform-origin: 0 50%; }

.mv-topbar { background: var(--mv-ink); text-align: center; font-family: var(--mv-head); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; padding: 9px 12px; }
.mv-topbar a, .mv-topbar span { color: #fff; }
.mv-topbar a:hover { color: #fff; text-decoration: underline; }

.mv-header { position: sticky; top: var(--mv-sticky); z-index: 1000; background: #fff; border-bottom: 1px solid var(--mv-line); }
.mv-header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.mv-header-left, .mv-header-right { display: flex; align-items: center; gap: 12px; }
.mv-header-right { justify-content: flex-end; }

.mv-logo { margin: 0; font-family: var(--mv-head); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.mv-logo a { color: var(--mv-ink); }
.mv-logo a:hover { color: var(--mv-ink); }
.mv-logo-2 { color: var(--mv-brand); }

.mv-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--mv-ink); cursor: pointer; padding: 0; }
.mv-icon-btn:hover, .mv-icon-btn:focus { background: var(--mv-soft); color: var(--mv-ink); }

.mv-search-inline { display: none; }
.mv-browse { display: none; }

/* Main nav — mobile: swipeable row of group names */
.mv-nav { border-top: 1px solid var(--mv-line); position: relative; }
.mv-nav::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 32px; background: linear-gradient(to right, rgba(255,255,255,0), #fff); pointer-events: none; }
.mv-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.mv-nav-list::-webkit-scrollbar { display: none; }
.mv-nav-list > li { margin: 0; position: relative; display: flex; align-items: center; }
.mv-nav-list > li > a { display: inline-block; padding: 11px 0; font-family: var(--mv-head); font-size: 17px; font-weight: 600; color: var(--mv-ink); }
.mv-nav-list > li:last-child { padding-right: 28px; }
.mv-nav-list > li.current-menu-item > a, .mv-nav-list > li > a:hover { color: var(--mv-brand-dark); }
.mv-sub-toggle, .mv-sub, .mv-nav .sub-menu { display: none; }

/* Drawer */
.mv-drawer { position: fixed; inset: 0; z-index: 2000; }
.mv-drawer-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,0.5); opacity: 0; transition: opacity .2s ease; }
.mv-drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(420px, 92vw); background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease; padding: 0 20px 32px; box-sizing: border-box; }
.mv-drawer.is-open .mv-drawer-backdrop { opacity: 1; }
.mv-drawer.is-open .mv-drawer-panel { transform: none; }
.mv-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--mv-line); position: sticky; top: 0; background: #fff; }
.mv-drawer-title { font-family: var(--mv-head); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.mv-drawer-search { display: flex; gap: 8px; margin: 18px 0 8px; }
.mv-drawer-search input { flex: 1; min-width: 0; height: 48px; border: 1px solid #BDBDBD; border-radius: 0; padding: 0 14px; font-family: var(--mv-body); font-size: 17px; }
.mv-drawer-search button { height: 48px; padding: 0 18px; border: 0; border-radius: 0; background: var(--mv-ink); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.mv-drawer-search button:hover { background: var(--mv-brand-dark); }
.mv-drawer-group { padding: 18px 0 6px; border-bottom: 1px solid var(--mv-line); }
.mv-drawer-group .mv-label { color: var(--mv-brand-dark); }
.mv-drawer-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.mv-drawer-group li { margin: 0; }
.mv-drawer-group a { display: block; padding: 9px 0; font-family: var(--mv-head); font-size: 18px; font-weight: 600; }

/* ================= Cards ================= */
.mv-card { min-width: 0; }
.mv-card-media { display: block; overflow: hidden; background: var(--mv-tint); aspect-ratio: 2 / 3; }
.mv-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.mv-ph { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 100%; height: 100%; padding: 12px; box-sizing: border-box; text-align: center; background: var(--mv-tint); }
.mv-ph-q { font-family: Georgia, serif; font-size: 72px; line-height: 0.6; color: var(--mv-brand); }
.mv-ph-t { font-family: var(--mv-head); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mv-ink); }
.mv-card-body { padding-top: 12px; }
.mv-card-title { margin: 0; font-family: var(--mv-head); font-size: 20px; font-weight: 600; line-height: 1.18; }
.mv-card-title a { color: var(--mv-ink); }
.mv-card-title a:hover { color: var(--mv-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mv-card-excerpt { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: var(--mv-text); }

/* list: thumbnail left */
.mv-card--list { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--mv-line); }
.mv-card--list:first-of-type { padding-top: 4px; }
.mv-card--list .mv-card-media { flex: 0 0 84px; }
.mv-card--list .mv-card-body { padding-top: 0; }
.mv-card--list .mv-card-title { font-size: 19px; }
.mv-card--list .mv-kicker { font-size: 12px; margin-bottom: 4px; }

/* feature: text left, thumbnail right */
.mv-card--feature { display: flex; flex-direction: row-reverse; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--mv-line); }
.mv-card--feature .mv-card-media { flex: 0 0 96px; }
.mv-card--feature .mv-card-body { padding-top: 0; flex: 1; }
.mv-card--feature .mv-kicker { display: none; }
.mv-card--feature .mv-card-title { font-size: 22px; }
.mv-feature-label { padding-top: 14px; border-top: 1px solid var(--mv-ink); }

/* lead: image on a tinted panel (never cropped) */
.mv-card--lead .mv-card-media { aspect-ratio: 4 / 3; display: flex; justify-content: center; align-items: center; padding: 16px; box-sizing: border-box; }
.mv-card--lead .mv-card-media img { width: auto; height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.mv-card--lead .mv-card-body { padding-top: 16px; }
.mv-card--lead .mv-card-title { font-family: var(--mv-display); font-weight: 400; font-size: 34px; line-height: 1.08; }

/* Grids */
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.mv-grid .mv-card-title { font-size: 18px; }
.mv-grid .mv-kicker { font-size: 12px; margin-bottom: 4px; }

/* ================= Homepage ================= */
.mv-top { display: grid; gap: 28px; padding-top: 20px; padding-bottom: 32px; }
.mv-col-title { margin: 0 0 4px; padding-top: 14px; border-top: 1px solid var(--mv-ink); font-family: var(--mv-head); font-size: 32px; font-weight: 800; line-height: 1.05; }
.mv-section { padding-top: 36px; }
.mv-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--mv-ink); margin-bottom: 20px; }
.mv-section-title { margin: 0; font-family: var(--mv-head); font-size: 30px; font-weight: 800; line-height: 1.05; }
.mv-see-all { flex: 0 0 auto; font-family: var(--mv-head); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mv-brand-dark) !important; }
.mv-see-all:hover { text-decoration: underline; }

.mv-upcoming { padding-top: 8px; }
.mv-upcoming .mv-section-title { padding-top: 14px; border-top: 1px solid var(--mv-ink); margin-bottom: 16px; }
.mv-upcoming-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.mv-occasion { flex: 0 0 160px; display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--mv-line); border-top: 4px solid var(--mv-brand); background: #fff; }
.mv-occasion:hover { border-color: var(--mv-ink); border-top-color: var(--mv-brand); }
.mv-occasion-date { font-family: var(--mv-head); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mv-muted); }
.mv-occasion-name { font-family: var(--mv-head); font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--mv-ink); }
.mv-occasion-days { font-family: var(--mv-head); font-size: 15px; font-weight: 600; color: var(--mv-brand-dark); }

.mv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mv-chips li { margin: 0; }
.mv-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #CFCFCF; padding: 0 16px; font-family: var(--mv-head); font-size: 17px; font-weight: 600; }
.mv-chips a span { font-size: 13px; font-weight: 600; color: var(--mv-muted); }
.mv-chips a:hover { border-color: var(--mv-ink); color: var(--mv-ink); background: var(--mv-soft); }

.mv-trust { background: var(--mv-ink); color: #fff; padding: 28px 24px; }
.mv-trust .mv-label { color: #FF8AB5; }
.mv-trust h2 { margin: 0 0 10px; color: #fff; font-size: 30px; font-weight: 800; line-height: 1.1; }
.mv-trust p { margin: 0 0 14px; color: #E5E5E5; max-width: 760px; }
.mv-trust a { color: #fff; font-family: var(--mv-head); font-weight: 700; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }

/* ================= Single post ================= */
.mv-single-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 20px; padding-bottom: 56px; }
.mv-article-col { flex: 999 1 600px; min-width: 0; }
.mv-sidebar { flex: 1 1 300px; max-width: 320px; display: none; }
.mv-breadcrumb { margin-bottom: 12px; font-family: var(--mv-head); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mv-muted); }
.mv-breadcrumb a { color: var(--mv-muted); }
.mv-breadcrumb a:hover { color: var(--mv-ink); text-decoration: underline; }
.mv-article-head { display: grid; gap: 20px; }
.mv-magazine .mv-article-title { margin: 4px 0 0; font-family: var(--mv-display); font-weight: 400; font-size: 36px; line-height: 1.08; color: var(--mv-ink); }
.mv-dek { margin: 14px 0 0; font-size: 20px; line-height: 1.45; color: var(--mv-text); }
.mv-byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.mv-avatar { border-radius: 50%; border: 1px solid var(--mv-line); background: #fff; flex: 0 0 auto; }
.mv-byline .mv-by { margin: 0; }
.mv-byline .mv-date { display: flex; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.mv-time-inline { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--mv-ink); }

.mv-share { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.mv-share li { margin: 0; }
.mv-share a, .mv-share button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #CFCFCF; background: #fff; font-family: var(--mv-head); font-size: 15px; font-weight: 700; color: var(--mv-ink); cursor: pointer; border-radius: 0; }
.mv-share a:hover, .mv-share button:hover { border-color: var(--mv-ink); color: var(--mv-ink); background: var(--mv-soft); }
.mv-share .mv-share-pinterest { background: var(--mv-brand-dark); border-color: var(--mv-brand-dark); color: #fff; }
.mv-share .mv-share-pinterest:hover { background: var(--mv-ink); border-color: var(--mv-ink); color: #fff; }

.mv-featured { margin: 0; justify-self: center; width: 62%; max-width: 300px; }
.mv-featured img { width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

.mv-toc { margin: 28px 0 0; border: 1px solid var(--mv-line); border-top: 4px solid var(--mv-ink); padding: 18px 20px; background: #fff; }
.mv-toc-title { margin: 0 0 10px; font-family: var(--mv-head); font-size: 22px; font-weight: 800; }
.mv-toc ol { margin: 0; padding: 0 0 0 22px; }
.mv-toc li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--mv-soft); font-size: 17px; line-height: 1.35; }
.mv-toc li::marker { font-family: var(--mv-head); font-weight: 700; color: var(--mv-brand-dark); }
.mv-toc a { color: var(--mv-ink); }
.mv-toc a:hover { color: var(--mv-brand-dark); text-decoration: underline; }
.mv-toc-more { margin-top: 12px; min-height: 44px; padding: 0 16px; border: 1px solid var(--mv-ink); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--mv-ink); }
.mv-toc-more:hover { background: var(--mv-ink); color: #fff; }

.mv-content { margin-top: 28px; font-size: 19px; line-height: 1.7; color: var(--mv-text); max-width: 720px; }
.mv-content p { margin: 0 0 1.1em; }
.mv-content h2 { position: relative; margin: 2em 0 0.7em; padding-top: 16px; font-size: 30px; font-weight: 800; line-height: 1.1; scroll-margin-top: calc(var(--mv-sticky) + 110px); }
.mv-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; background: var(--mv-brand); }
.mv-content h3 { margin: 1.6em 0 0.6em; font-size: 23px; font-weight: 700; line-height: 1.2; }
.mv-content a { color: var(--mv-brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.mv-content strong { color: var(--mv-ink); }
.mv-content ul:not(.mv-msg-list), .mv-content ol:not(.mv-msg-list) { padding-left: 1.3em; margin: 0 0 1.2em; }
.mv-content img { margin: 1em auto; }

/* Message cards (built by mv.js) */
.mv-content ul.mv-msg-list, .mv-content ol.mv-msg-list { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 12px; counter-reset: mvmsg; }
.mv-content li.mv-msg { position: relative; margin: 0; padding: 18px 18px 14px 18px; border: 1px solid var(--mv-line); border-left: 4px solid var(--mv-brand); background: #fff; font-size: 18px; line-height: 1.6; }
.mv-content li.mv-msg:hover { border-color: #CFCFCF; border-left-color: var(--mv-brand); }
.mv-msg-actions { display: flex; gap: 8px; margin-top: 12px; }
.mv-msg-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid #CFCFCF; border-radius: 0; background: #fff; color: var(--mv-ink); font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1; }
.mv-msg-btn:hover, .mv-msg-btn:focus { border-color: var(--mv-ink); background: var(--mv-soft); color: var(--mv-ink); }
.mv-msg-copy { border-color: var(--mv-brand-dark); color: var(--mv-brand-dark); }
.mv-msg-copy:hover, .mv-msg-copy:focus { background: var(--mv-brand-dark); border-color: var(--mv-brand-dark); color: #fff; }

.mv-toast { position: fixed; left: 50%; bottom: 24px; z-index: 3000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; background: var(--mv-ink); color: #fff; font-family: var(--mv-head); font-size: 17px; font-weight: 600; transition: opacity .2s ease, transform .2s ease; }
.mv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.mv-ad { margin: 32px 0; padding: 8px 0; text-align: center; clear: both; min-height: 280px; }
.mv-ad-label { display: block; margin-bottom: 6px; font-family: var(--mv-head); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #5F6368; }

.mv-author-box { display: flex; gap: 16px; margin-top: 40px; padding: 20px; border: 1px solid var(--mv-line); border-top: 4px solid var(--mv-ink); max-width: 720px; box-sizing: border-box; }
.mv-author-box p { margin: 0; font-size: 16px; color: var(--mv-text); }
.mv-author-box .mv-label { color: var(--mv-muted); font-size: 13px; margin-bottom: 2px; }
.mv-author-name { font-family: var(--mv-head); font-size: 22px !important; font-weight: 800; margin-bottom: 6px !important; }
.mv-author-name a { color: var(--mv-ink) !important; }
.mv-related { margin-top: 48px; }

.mv-widget { margin-bottom: 32px; }
.mv-sidebar-sticky { position: sticky; top: calc(var(--mv-sticky) + 130px); }

/* ================= Archive ================= */
.mv-archive { padding-top: 24px; padding-bottom: 56px; }
.mv-archive-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--mv-ink); }
.mv-archive-head .mv-label { color: var(--mv-brand-dark); }
.mv-archive-title { margin: 0 0 12px; font-family: var(--mv-head); font-size: 40px; font-weight: 800; line-height: 1.02; }
.mv-archive-desc { max-width: 820px; font-size: 18px; line-height: 1.6; color: var(--mv-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mv-archive-desc.is-open { display: block; }
.mv-archive-desc p { margin: 0 0 0.8em; }
.mv-archive-desc a { color: var(--mv-brand-dark); text-decoration: underline; }
.mv-more-btn { margin-top: 6px; padding: 6px 0; border: 0; background: none; font-size: 16px; font-weight: 700; color: var(--mv-ink); text-decoration: underline; cursor: pointer; }
.mv-more-btn:hover { background: none; color: var(--mv-brand-dark); }
.mv-archive-count { margin: 12px 0 14px; font-family: var(--mv-head); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mv-muted); }

.mv-pagination { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-family: var(--mv-head); }
.mv-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #CFCFCF; padding: 0 12px; font-size: 17px; font-weight: 700; color: var(--mv-ink); box-sizing: border-box; }
.mv-pagination a.page-numbers:hover { border-color: var(--mv-ink); }
.mv-pagination .current { background: var(--mv-ink); color: #fff; border-color: var(--mv-ink); }
.mv-pagination .dots { border: 0; }
.mv-empty { padding: 40px 0; }

/* ================= Footer ================= */
.mv-footer { margin-top: 56px; background: var(--mv-ink); color: #D6D6D6; font-size: 16px; }
.mv-footer a { color: #fff; }
.mv-footer a:hover { color: #fff; text-decoration: underline; }
.mv-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 44px; padding-bottom: 28px; }
.mv-footer-brand { grid-column: 1 / -1; }
.mv-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mv-footer li { margin: 0; }
.mv-footer-logo { margin: 0 0 6px; font-family: var(--mv-head); font-size: 28px; font-weight: 800; text-transform: uppercase; color: #fff; }
.mv-footer-brand p:last-child { margin: 0; }
.mv-footer-head { margin: 0 0 12px; font-family: var(--mv-head); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #FF8AB5; }
.mv-copyright { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #333; font-size: 14px; color: #BDBDBD; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
	:root { --mv-gap: 24px; }
	.mv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
	.mv-article-head { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; }
	.mv-featured { width: 100%; }
	.mv-article-title { font-size: 44px; }
	.mv-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.mv-footer-brand { grid-column: auto; }
	.mv-trust { padding: 40px; }
}

/* ================= Desktop ================= */
@media (min-width: 1024px) {
	.mv-header { position: relative; top: auto; }
	.mv-header-row { padding-top: 16px; padding-bottom: 10px; }
	.mv-logo { font-size: 46px; letter-spacing: -0.015em; }
	.mv-header-left .mv-menu-open { display: none; }
	.mv-search-inline { display: flex; align-items: stretch; width: 300px; border: 1px solid #5F6368; }
	.mv-search-inline input { flex: 1; min-width: 0; height: 38px; border: 0; padding: 0 12px; font-family: var(--mv-body); font-size: 16px; background: #fff; }
	.mv-search-inline button { width: 40px; border: 0; background: #fff; color: var(--mv-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
	.mv-search-inline button:hover { background: var(--mv-soft); color: var(--mv-ink); }
	.mv-search-open { display: none; }
	.mv-browse { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; background: var(--mv-brand-dark); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
	.mv-browse:hover, .mv-browse:focus { background: var(--mv-ink); color: #fff; }

	.mv-nav { border-top: 0; }
	.mv-nav::after { display: none; }
	.mv-nav-list { justify-content: space-between; overflow: visible; gap: 8px; }
	.mv-nav-list > li:last-child { padding-right: 0; }
	.mv-nav-list > li > a { padding: 12px 0 14px; font-size: 19px; font-weight: 500; }
	.mv-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 2px; border: 0; background: none; color: var(--mv-ink); cursor: pointer; padding: 0; }
	.mv-sub-toggle:hover { background: var(--mv-soft); color: var(--mv-ink); }
	.mv-sub, .mv-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 50; min-width: 240px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--mv-line); border-top: 3px solid var(--mv-brand); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
	.mv-has-sub:hover > .mv-sub, .mv-has-sub.is-open > .mv-sub, .mv-has-sub:focus-within > .mv-sub,
	.mv-nav .menu-item-has-children:hover > .sub-menu, .mv-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
	.mv-has-sub:last-child .mv-sub { left: auto; right: 0; }
	.mv-sub li, .mv-nav .sub-menu li { margin: 0; }
	.mv-sub a, .mv-nav .sub-menu a { display: block; padding: 9px 18px; font-family: var(--mv-head); font-size: 17px; font-weight: 500; white-space: nowrap; }
	.mv-sub a:hover, .mv-nav .sub-menu a:hover { background: var(--mv-tint); color: var(--mv-ink); }

	.mv-top { grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
	.mv-top-latest { order: 1; }
	.mv-top-lead { order: 2; }
	.mv-top-feature { order: 3; }
	.mv-card--lead .mv-card-media { aspect-ratio: 5 / 4; padding: 24px; }
	.mv-card--lead .mv-card-title { font-size: 46px; }
	.mv-col-title { font-size: 38px; }
	.mv-section { padding-top: 48px; }
	.mv-section-title { font-size: 38px; }
	.mv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
	.mv-grid .mv-card-title { font-size: 21px; }
	.mv-upcoming-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.mv-occasion { padding: 20px; }
	.mv-occasion-name { font-size: 28px; }

	.mv-single-layout { padding-top: 32px; }
	.mv-sidebar { display: block; }
	.mv-article-head { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
	.mv-article-title { font-size: 52px; }
	.mv-content h2 { font-size: 34px; }
	.mv-related .mv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
	.mv-archive-title { font-size: 56px; }
	.mv-trust h2 { font-size: 38px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.mv-top { grid-template-columns: 260px minmax(0, 1fr) 260px; }
	.mv-nav-list > li > a { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.mv-drawer-backdrop, .mv-drawer-panel, .mv-toast { transition: none; }
}

/* v1.1.1 fixes */
@media (max-width: 639px) {
	.mv-share { gap: 6px; }
	.mv-share a, .mv-share button { min-height: 36px; padding: 0 10px; font-size: 14px; }
}

/* ================= v1.2 consistency pass ================= */

/* Breadcrumb */
.mv-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.mv-breadcrumb li { margin: 0; display: inline-flex; align-items: center; }
.mv-breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #9AA0A6; }
.mv-breadcrumb li:last-child a, .mv-breadcrumb [aria-current] { color: var(--mv-brand-dark); font-weight: 700; }

/* Even card rows: titles max 3 lines, excerpts max 3 lines */
.mv-grid .mv-card-title, .mv-card--list .mv-card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mv-card--feature .mv-card-excerpt, .mv-card--lead .mv-card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mv-grid .mv-card { display: flex; flex-direction: column; }

/* Under the lead story */
.mv-lead-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; margin-top: 24px; border-top: 1px solid var(--mv-ink); }
.mv-lead-more .mv-card--list:first-of-type { padding-top: 16px; }

/* Section spacing: every section starts the same way */
.mv-upcoming { padding-top: 48px; }
.mv-upcoming .mv-section-title { padding-top: 0; border-top: 0; margin-bottom: 0; }

/* Category directory (home + sidebar) */
.mv-dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.mv-dir-head { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--mv-brand); font-family: var(--mv-head); font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mv-ink); }
.mv-dir ul { list-style: none; margin: 0; padding: 0; }
.mv-dir li { margin: 0; }
.mv-dir a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mv-line); font-family: var(--mv-head); font-size: 18px; font-weight: 600; color: var(--mv-ink); }
.mv-dir a:hover { color: var(--mv-brand-dark); }
.mv-dir a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.mv-dir-n { font-size: 14px; font-weight: 600; color: var(--mv-muted); }

.mv-dir--side { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mv-dir--side ul { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-dir--side a { display: inline-flex; gap: 6px; padding: 6px 10px; border: 1px solid var(--mv-line); background: #fff; font-size: 15px; }
.mv-dir--side a:hover { border-color: var(--mv-ink); background: var(--mv-soft); }
.mv-dir--side .mv-dir-n { font-size: 12px; }
.mv-sidebar .mv-widget + .mv-widget { margin-top: 8px; }
.mv-sidebar .mv-card--list .mv-card-media { flex-basis: 72px; }
.mv-sidebar .mv-card--list .mv-card-title { font-size: 18px; }

/* Sub-category chips on category pages: quieter */
.mv-chips a { min-height: 38px; border-color: transparent; background: var(--mv-soft); font-size: 16px; }
.mv-chips a:hover { background: var(--mv-tint); border-color: transparent; }

@media (min-width: 640px) {
	.mv-dir { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mv-lead-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.mv-dir--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
	.mv-dir--side { grid-template-columns: minmax(0, 1fr); }
	.mv-upcoming { padding-top: 56px; }
}
.mv-sidebar .mv-col-title { font-size: 28px; }
/* v1.2.1: header no longer sticky, so an Auto ad placed near the menu can never float on screen */
.mv-header { position: relative; top: auto; }
.mv-content h2 { scroll-margin-top: 16px; }
/* Author icon: always a perfect circle, never stretched */
.mv-magazine img.mv-avatar { width: 48px; height: 48px; min-width: 48px; max-width: none; flex: 0 0 48px; object-fit: contain; padding: 4px; box-sizing: border-box; background: #fff; border-radius: 50%; }
.mv-magazine .mv-author-box img.mv-avatar { width: 72px; height: 72px; min-width: 72px; flex-basis: 72px; padding: 6px; }

/* v1.3: Browse by Occasion as equal tiles */
.mv-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mv-tiles li { margin: 0; }
.mv-tile { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 96px; padding: 10px 12px 10px 10px; box-sizing: border-box; border: 1px solid var(--mv-line); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.mv-tile:hover { border-color: var(--mv-ink); box-shadow: inset 0 -3px 0 var(--mv-brand); }
.mv-tile-img { flex: 0 0 52px; width: 52px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--mv-tint); display: flex; align-items: center; justify-content: center; }
.mv-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.mv-tile-ph { font-family: Georgia, serif; font-size: 40px; line-height: 1; color: var(--mv-brand); }
.mv-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mv-tile-name { font-family: var(--mv-head); font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--mv-ink); overflow-wrap: anywhere; }
.mv-tile-count { font-family: var(--mv-head); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mv-muted); }
.mv-tile-arrow { flex: 0 0 auto; font-family: var(--mv-head); font-size: 26px; line-height: 1; color: var(--mv-brand-dark); }
@media (min-width: 640px) { .mv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .mv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .mv-tile { min-height: 108px; padding: 12px 16px 12px 12px; gap: 16px; } .mv-tile-img { flex-basis: 60px; width: 60px; } .mv-tile-name { font-size: 22px; } }
@media (max-width: 639px) {
	.mv-tile { min-height: 64px; padding: 12px; gap: 8px; }
	.mv-tile-img { display: none; }
	.mv-tile-name { font-size: 17px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
	.mv-tile-count { font-size: 12px; }
	.mv-tile-arrow { font-size: 22px; }
}
