/* ==========================================================================
   Modern Mullets Design 2.0
   Idea: a salon lookbook. Arch-framed images echo a salon mirror.
   Type: Poppins (headings) + Jost (text).
   Palette: plum ink, oxblood, brass, porcelain.
   ========================================================================== */

body.mm-design { background: #f2f2ee; }

/* Let the layout use the full width inside common theme wrappers */
body.mm-design .ast-container,
body.mm-design #content > .ast-container,
body.mm-design .site-content > .container,
body.mm-design #primary.content-area,
body.mm-design .site-main {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	display: block !important;
	float: none !important;
}

.mm {
	--paper: #f2f2ee;
	--paper-2: #e8e7e1;
	--white: #ffffff;
	--ink: #1a1621;
	--ink-2: #2a2433;
	--text: #3a3542;
	--muted: #77717f;
	--line: #dcdad3;
	--wine: #6b1d2a;
	--wine-2: #551521;
	--brass: #b8925a;
	--brass-2: #d9bf93;
	--on-dark: #efeaf2;
	--on-dark-muted: #b4abbd;
	--line-dark: rgba(239, 234, 242, .14);
	--head: "Poppins", system-ui, sans-serif;
	--body: "Jost", system-ui, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 40px);
	--arch: 999px 999px 22px 22px;

	background: var(--paper);
	color: var(--text);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	width: 100%;
	overflow-x: clip;
}
.mm *, .mm *::before, .mm *::after { box-sizing: border-box; }
body .mm h1, body .mm h2, body .mm h3, body .mm h4, body .mm h5, body .mm h6 {
	font-family: var(--head);
	color: var(--ink);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.022em;
	margin: 0;
	text-transform: none;
}
body .mm p { margin: 0; }
body .mm a { color: inherit; text-decoration: none; }
body .mm img { max-width: 100%; height: auto; display: block; }
body .mm ul, body .mm ol { margin: 0; padding: 0; }
.mm button { font-family: inherit; }
.mm [hidden] { display: none !important; }
.mm :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Shared atoms ---------- */
.mm .mm-kicker {
	position: relative;
	z-index: 2;
	display: inline-block;
	font-family: var(--body);
	font-size: .92rem;
	font-weight: 500;
	color: var(--wine);
	letter-spacing: .01em;
}
.mm .mm-kicker:hover { color: var(--brass); }
.mm .mm-kicker--light { color: var(--brass-2); }

.mm .mm-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	font-size: .9rem;
	color: var(--muted);
}
.mm .mm-meta > * + *::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: .85em;
	margin: 0 12px;
	background: currentColor;
	opacity: .35;
	vertical-align: -1px;
}

.mm .mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font-family: var(--head);
	font-size: .92rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .25s, color .25s, box-shadow .25s;
}
.mm .mm-btn:hover { background: var(--wine); color: var(--white); }
.mm .mm-btn--brass { background: var(--brass); color: var(--ink); }
.mm .mm-btn--brass:hover { background: var(--on-dark); color: var(--ink); }
.mm .mm-btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mm .mm-btn--line:hover { background: var(--ink); color: var(--white); }
.mm .mm-btn[disabled] { opacity: .55; pointer-events: none; }

.mm .mm-textlink {
	font-family: var(--head);
	font-size: .92rem;
	font-weight: 500;
	color: var(--ink);
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	padding-bottom: 3px;
	transition: color .2s, background-size .3s;
}
.mm .mm-textlink:hover { color: var(--wine); background-size: 40% 1px; }

.mm .mm-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 440px;
	padding: 6px 6px 6px 18px;
	border-radius: 999px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow .2s;
}
.mm .mm-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--brass); }
.mm .mm-search__icon { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.mm .mm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 8px 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	outline: none;
}
.mm .mm-search button {
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font-family: var(--head);
	font-size: .85rem;
	font-weight: 500;
	cursor: pointer;
}
.mm .mm-search button:hover { background: var(--wine); }

.mm .mm-empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }
.mm .mm-empty--big { display: grid; gap: 14px; justify-items: start; padding: 20px 0 60px; }
.mm .mm-empty--big h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Bands & section heads ---------- */
.mm .mm-band { padding: clamp(64px, 9vw, 112px) 0; }
.mm .mm-band--first { padding-top: 48px; }
.mm .mm-band--soft { background: var(--paper-2); }
.mm .mm-band--wine { background: var(--wine); color: var(--on-dark); }
.mm .mm-band--ink { background: var(--ink); color: var(--on-dark); }
.mm .mm-band--wine h2, .mm .mm-band--wine h3,
.mm .mm-band--ink h2, .mm .mm-band--ink h3 { color: var(--on-dark); }

.mm .mm-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}
.mm .mm-head__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.mm .mm-head__note { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.mm .mm-band--wine .mm-head__note, .mm .mm-band--ink .mm-head__note { color: var(--on-dark-muted); }

/* ---------- Tabs (category filter) ---------- */
.mm .mm-tabs {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	margin-bottom: 44px;
	border-bottom: 1px solid var(--line);
}
.mm .mm-tabs::-webkit-scrollbar { display: none; }
.mm .mm-tabs--links { margin: 0; padding-top: 6px; }
.mm .mm-tab {
	position: relative;
	flex: 0 0 auto;
	padding: 14px 0 16px;
	border: 0;
	background: none;
	color: var(--muted);
	font-family: var(--head);
	font-size: .95rem;
	font-weight: 500;
	cursor: pointer;
	transition: color .2s;
}
.mm .mm-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--wine);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s;
}
.mm .mm-tab:hover { color: var(--ink); }
.mm .mm-tab.is-active { color: var(--ink); }
.mm .mm-tab.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.mm .mm-hero {
	background: var(--ink);
	color: var(--on-dark);
	padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 56px);
}
.mm .mm-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.mm .mm-lead__title {
	margin: 18px 0 22px;
	font-size: clamp(2.4rem, 5.4vw, 4.6rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.035em;
	color: var(--on-dark);
	text-wrap: balance;
}
.mm .mm-lead__title a { transition: color .25s; }
.mm .mm-lead__title a:hover { color: var(--brass-2); }
.mm .mm-lead__excerpt { font-size: 1.18rem; color: var(--on-dark-muted); max-width: 52ch; }
.mm .mm-lead__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 34px; }
.mm .mm-lead__foot .mm-meta { color: var(--on-dark-muted); }

.mm .mm-lead__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	max-height: 640px;
	margin-left: auto;
	width: 100%;
}
.mm .mm-lead__media::before {
	content: "";
	position: absolute;
	inset: -16px -16px 16px 16px;
	border: 1px solid var(--brass);
	border-radius: var(--arch);
	opacity: .7;
}
.mm .mm-lead__media img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--arch);
}

.mm .mm-hero__more {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: 32px;
	border-top: 1px solid var(--line-dark);
}
.mm .mm-hero__more .mm-row__title { color: var(--on-dark); }
.mm .mm-hero__more .mm-row__title a:hover { color: var(--brass-2); }
.mm .mm-hero__more .mm-kicker { color: var(--brass-2); }
.mm .mm-hero__more .mm-meta { color: var(--on-dark-muted); }

/* One orchestrated entrance: the mirror opens, the headline settles. */
@media (prefers-reduced-motion: no-preference) {
	.mm .mm-lead__media img { animation: mm-mirror 1.1s cubic-bezier(.2, .7, .1, 1) both; }
	.mm .mm-lead__media::before { animation: mm-fade .8s .7s both; }
	.mm .mm-lead__text > * { animation: mm-rise .8s cubic-bezier(.2, .7, .1, 1) both; }
	.mm .mm-lead__text > :nth-child(2) { animation-delay: .08s; }
	.mm .mm-lead__text > :nth-child(3) { animation-delay: .16s; }
	.mm .mm-lead__text > :nth-child(4) { animation-delay: .24s; }
}
@keyframes mm-mirror { from { clip-path: inset(100% 0 0 0 round 400px 400px 22px 22px); } to { clip-path: inset(0 0 0 0 round 400px 400px 22px 22px); } }
@keyframes mm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mm-fade { from { opacity: 0; } to { opacity: .7; } }

/* ---------- Story card ---------- */
.mm .mm-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
}
.mm .mm-grid.is-loading { opacity: .45; transition: opacity .2s; }
.mm .mm-card { position: relative; display: flex; flex-direction: column; }
.mm .mm-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 14px;
	background: var(--paper-2);
	margin-bottom: 20px;
}
.mm .mm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.mm .mm-card:hover .mm-card__media img { transform: scale(1.035); }
.mm .mm-card__body { display: flex; flex-direction: column; gap: 10px; }
.mm .mm-card__title { font-size: 1.28rem; font-weight: 600; line-height: 1.28; text-wrap: balance; }
.mm .mm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mm .mm-card__title a {
	background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 2px no-repeat;
	transition: background-size .4s;
}
.mm .mm-card:hover .mm-card__title a { background-size: 100% 2px; }
.mm .mm-card__excerpt {
	color: var(--muted);
	font-size: 1.02rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mm .mm-card .mm-meta { margin-top: 4px; font-size: .86rem; }

.mm .mm-card.is-wide {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	padding-bottom: 56px;
	border-bottom: 1px solid var(--line);
}
.mm .mm-card.is-wide .mm-card__media { aspect-ratio: 16 / 11; margin: 0; border-radius: 18px; }
.mm .mm-card.is-wide .mm-card__title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.03em; }
.mm .mm-card.is-wide .mm-card__excerpt { font-size: 1.12rem; -webkit-line-clamp: 4; }

.mm .mm-more { margin-top: 56px; text-align: center; }

/* ---------- Compact row ---------- */
.mm .mm-row {
	position: relative;
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
}
.mm .mm-row__media { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.mm .mm-row__media img { width: 100%; height: 100%; object-fit: cover; }
.mm .mm-row__body { display: grid; gap: 4px; }
.mm .mm-row__title { font-size: 1.02rem; font-weight: 500; line-height: 1.35; }
.mm .mm-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mm .mm-row__title a { transition: color .2s; }
.mm .mm-row .mm-kicker { font-size: .82rem; }
.mm .mm-row .mm-meta { font-size: .8rem; }

/* ---------- Most read (a ranking, so numbered) ---------- */
.mm .mm-ranked {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 40px;
}
.mm .mm-ranked > li { padding: 28px 0; border-top: 1px solid var(--line-dark); }
.mm .mm-ranked .mm-row { grid-template-columns: 52px 72px minmax(0, 1fr); }
.mm .mm-ranked .mm-row__media { width: 72px; height: 72px; }
.mm .mm-row__num {
	font-family: var(--head);
	font-size: 2.6rem;
	font-weight: 400;
	line-height: 1;
	color: var(--brass-2);
	letter-spacing: -.04em;
}
.mm .mm-band--wine .mm-row__title { color: var(--on-dark); }
.mm .mm-band--wine .mm-row__title a:hover { color: var(--brass-2); }
.mm .mm-band--wine .mm-kicker { color: var(--brass-2); }
.mm .mm-band--wine .mm-meta { color: var(--on-dark-muted); }

/* ---------- Category blocks ---------- */
.mm .mm-catblock + .mm-catblock { padding-top: 0; }
.mm .mm-catblock + .mm-catblock .mm-catblock__inner { padding-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.mm .mm-catblock__inner {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.mm .mm-catblock.is-flipped .mm-catblock__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.mm .mm-catblock.is-flipped .mm-catblock__intro { order: 2; }
.mm .mm-catblock__intro { display: grid; gap: 16px; justify-items: start; position: sticky; top: 40px; }
.mm .mm-catblock__name { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; }
.mm .mm-catblock__intro p { color: var(--muted); }
.mm .mm-catblock__count { font-family: var(--head); font-size: .9rem; color: var(--wine); }
.mm .mm-catblock__intro .mm-btn { margin-top: 8px; }
.mm .mm-catblock__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mm .mm-catblock__cards .mm-card__media { aspect-ratio: 3 / 4; }
.mm .mm-catblock__cards .mm-card__title { font-size: 1.12rem; }

/* ---------- Lookbook rail (arch frames) ---------- */
.mm .mm-rail-nav { display: flex; gap: 10px; }
.mm .mm-rail-btn {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--on-dark);
	box-shadow: inset 0 0 0 1px var(--line-dark);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.mm .mm-rail-btn svg { width: 20px; height: 20px; }
.mm .mm-rail-btn:hover { background: var(--brass); color: var(--ink); box-shadow: none; }
.mm .mm-rail {
	margin-right: calc(50% - 50vw);
	padding-right: var(--gutter);
	scroll-padding-left: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(220px, 24vw, 290px);
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.mm .mm-rail::-webkit-scrollbar { display: none; }
.mm .mm-arch { position: relative; scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.mm .mm-arch__frame { aspect-ratio: 3 / 4; border-radius: var(--arch); overflow: hidden; background: var(--ink-2); margin-bottom: 8px; }
.mm .mm-arch__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.mm .mm-arch:hover .mm-arch__frame img { transform: scale(1.04); }
.mm .mm-arch__title { font-size: 1.08rem; font-weight: 500; line-height: 1.32; color: var(--on-dark); }
.mm .mm-arch__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mm .mm-arch .mm-kicker { color: var(--brass-2); font-size: .85rem; }

/* ---------- Style index (type as the visual) ---------- */
.mm .mm-index__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.mm .mm-index__list li { border-bottom: 1px solid var(--line); }
.mm .mm-index__list li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.mm .mm-index__list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	transition: padding .35s cubic-bezier(.2, .7, .1, 1), color .25s;
}
.mm .mm-index__name { font-family: var(--head); font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 500; letter-spacing: -.03em; color: var(--ink); transition: color .25s; }
.mm .mm-index__count { font-family: var(--head); font-size: .95rem; color: var(--brass); }
.mm .mm-index__list a:hover { padding-left: 14px; }
.mm .mm-index__list a:hover .mm-index__name { color: var(--wine); }

/* ---------- Newsletter ---------- */
.mm .mm-news { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0; }
.mm .mm-news__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: center; }
.mm .mm-news__title { color: var(--on-dark); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.mm .mm-news p { color: var(--on-dark-muted); }
.mm .mm-news__form { display: flex; gap: 10px; padding: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.mm .mm-news__form input[type="email"] { flex: 1; min-width: 0; padding: 12px 18px; border: 0; background: transparent; color: var(--on-dark); font-family: var(--body); font-size: 1rem; outline: none; margin: 0; height: auto; box-shadow: none; }
.mm .mm-news__form input::placeholder { color: var(--on-dark-muted); }
.mm .mm-news .mm-btn { background: var(--brass); color: var(--ink); }
.mm .mm-news .mm-btn:hover { background: var(--on-dark); }

/* ---------- Breadcrumbs ---------- */
.mm .mm-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 26px; }
.mm .mm-crumbs a:hover { color: var(--wine); }
.mm .mm-crumbs span { opacity: .5; }

/* ---------- Archive head ---------- */
.mm .mm-arch-head {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark);
	padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 72px);
}
.mm .mm-arch-head::after {
	content: "";
	position: absolute;
	right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
	bottom: -2px;
	top: clamp(36px, 12%, 72px);
	width: clamp(160px, 22vw, 300px);
	border: 1px solid var(--brass);
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
	opacity: .45;
	pointer-events: none;
}
.mm .mm-arch-head .mm-crumbs, .mm .mm-arch-head .mm-crumbs a { color: var(--on-dark-muted); }
.mm .mm-arch-head .mm-crumbs a:hover { color: var(--brass-2); }
.mm .mm-arch-head__label { color: var(--brass-2); font-size: 1rem; margin-bottom: 8px; }
.mm .mm-arch-head__title {
	position: relative;
	z-index: 1;
	max-width: 16ch;
	color: var(--on-dark);
	font-size: clamp(2.8rem, 7.4vw, 6rem);
	line-height: .98;
	letter-spacing: -.045em;
	text-wrap: balance;
}
.mm .mm-arch-head__foot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 28px; max-width: calc(100% - clamp(180px, 25vw, 340px)); }
.mm .mm-arch-head__desc { color: var(--on-dark-muted); max-width: 56ch; font-size: 1.08rem; }
.mm .mm-arch-head__desc p + p { margin-top: .8em; }
.mm .mm-arch-head__count { font-family: var(--head); font-size: .95rem; color: var(--on-dark); }
.mm .mm-arch-head__search { position: relative; z-index: 1; margin-top: 30px; }

/* ---------- Pagination ---------- */
.mm .mm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 72px; }
.mm .mm-pagination .page-numbers,
.mm .mm-pagination > a,
.mm .mm-pagination > span {
	min-width: 48px;
	height: 48px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-family: var(--head);
	font-size: .92rem;
	font-weight: 500;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: background-color .2s, color .2s;
}
.mm .mm-pagination a.page-numbers:hover { background: var(--white); }
.mm .mm-pagination .current { background: var(--ink); color: var(--white); box-shadow: none; }
.mm .mm-pagination .dots { box-shadow: none; }

/* ---------- Single post ---------- */
.mm .mm-progress { position: fixed; top: 0; left: 0; z-index: 9999; height: 3px; width: 0; background: var(--wine); }
.mm .mm-post-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.mm .mm-post-head__inner { max-width: calc(940px + var(--gutter) * 2); }
.mm .mm-post-title {
	font-size: clamp(2.3rem, 5.2vw, 4.2rem);
	line-height: 1.05;
	letter-spacing: -.038em;
	text-wrap: balance;
}
.mm .mm-post-lead { margin-top: 22px; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.mm .mm-byline { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.mm .mm-avatar { border-radius: 50%; }
.mm .mm-byline__name { font-family: var(--head); font-weight: 500; color: var(--ink); }
.mm .mm-byline__name:hover { color: var(--wine); }
.mm .mm-byline .mm-meta { margin-top: 2px; }

.mm .mm-cover { margin: 0 auto clamp(48px, 6vw, 80px); }
.mm .mm-cover img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 22px; }
.mm .mm-cover figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }

.mm .mm-reader {
	display: grid;
	grid-template-columns: 56px minmax(0, 720px) 250px;
	justify-content: center;
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
}
.mm .mm-reader__share, .mm .mm-reader__side { position: sticky; top: 110px; }
.mm .mm-reader__main { min-width: 0; }
.mm .mm-reader__share-inline { display: none; }

.mm .mm-reader__side-title { font-family: var(--head); font-size: .92rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.mm .mm-reader__side .mm-toc__list { border-left: 1px solid var(--line); }
.mm .mm-reader__side .mm-toc__list a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: .94rem; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.mm .mm-reader__side .mm-toc__list .is-sub a { padding-left: 30px; font-size: .88rem; }
.mm .mm-reader__side .mm-toc__list a:hover { color: var(--ink); }
.mm .mm-reader__side .mm-toc__list a.is-current { color: var(--wine); border-left-color: var(--wine); }
.mm .mm-toc__list { list-style: none; }

.mm .mm-toc { display: none; margin-bottom: 40px; padding: 4px 24px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.mm .mm-toc summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--head); font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.mm .mm-toc summary::-webkit-details-marker { display: none; }
.mm .mm-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.mm .mm-toc[open] summary::after { transform: rotate(-135deg); }
.mm .mm-toc .mm-toc__list { padding-bottom: 18px; display: grid; gap: 4px; }
.mm .mm-toc .mm-toc__list a { color: var(--text); font-size: 1rem; }
.mm .mm-toc .mm-toc__list .is-sub a { padding-left: 18px; color: var(--muted); }
.mm .mm-toc .mm-toc__list a:hover { color: var(--wine); }

/* Share */
.mm .mm-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm .mm-share.is-vertical { flex-direction: column; }
.mm .mm-share__label { font-size: .82rem; color: var(--muted); }
.mm .mm-share.is-vertical .mm-share__label { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }
.mm .mm-share__btn {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
	cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.mm .mm-share__btn svg { width: 17px; height: 17px; }
.mm .mm-share__btn:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.mm .mm-share__btn.is-copied { background: var(--brass); color: var(--ink); box-shadow: none; }

/* Article typography */
.mm .mm-content { font-size: 1.16rem; line-height: 1.8; color: var(--text); }
.mm .mm-content > * + * { margin-top: 1.35em; }
.mm .mm-content > p:first-child { font-size: 1.28rem; line-height: 1.7; color: var(--ink); }
body .mm .mm-content h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 2.1em; scroll-margin-top: 110px; letter-spacing: -.028em; }
body .mm .mm-content h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); margin-top: 1.8em; scroll-margin-top: 110px; }
body .mm .mm-content h4 { font-size: 1.12rem; margin-top: 1.6em; }
.mm .mm-content h2 + *, .mm .mm-content h3 + *, .mm .mm-content h4 + * { margin-top: .75em; }
body .mm .mm-content a { color: var(--wine); text-decoration: underline; text-decoration-color: var(--brass-2); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
body .mm .mm-content a:hover { text-decoration-color: var(--wine); }
.mm .mm-content strong { color: var(--ink); font-weight: 600; }
body .mm .mm-content ul, body .mm .mm-content ol { padding-left: 1.3em; }
.mm .mm-content li + li { margin-top: .5em; }
.mm .mm-content ul li::marker { color: var(--brass); }
.mm .mm-content ol li::marker { color: var(--wine); font-family: var(--head); font-weight: 500; }
.mm .mm-content img { border-radius: 16px; }
.mm .mm-content figure { margin-left: 0; margin-right: 0; }
.mm .mm-content figcaption, .mm .mm-content .wp-element-caption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.mm .mm-content blockquote {
	margin: 2.2em 0;
	padding: 0 0 0 28px;
	border: 0;
	border-left: 2px solid var(--brass);
	background: none;
	font-family: var(--head);
	font-size: clamp(1.3rem, 2.4vw, 1.65rem);
	font-weight: 500;
	font-style: normal;
	line-height: 1.4;
	letter-spacing: -.02em;
	color: var(--ink);
}
.mm .mm-content blockquote p { margin: 0; }
.mm .mm-content blockquote cite { display: block; margin-top: 14px; font-family: var(--body); font-size: .95rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.mm .mm-content .wp-block-table, .mm .mm-content table { width: 100%; }
.mm .mm-content table { border-collapse: collapse; font-size: 1rem; }
.mm .mm-content th { font-family: var(--head); font-weight: 500; text-align: left; color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.mm .mm-content th, .mm .mm-content td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.mm .mm-content code { padding: 2px 6px; border-radius: 6px; background: var(--paper-2); font-size: .9em; }
.mm .mm-content hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
body .mm .mm-content .wp-block-button__link { background: var(--ink); color: var(--white); border-radius: 999px; text-decoration: none; font-family: var(--head); font-weight: 500; padding: 14px 28px; }

/* Forms inside content (contact pages, CF7, WPForms) */
.mm .mm-content input[type="text"],
.mm .mm-content input[type="email"],
.mm .mm-content input[type="tel"],
.mm .mm-content input[type="url"],
.mm .mm-content select,
.mm .mm-content textarea,
.mm .mm-comments input[type="text"],
.mm .mm-comments input[type="email"],
.mm .mm-comments input[type="url"],
.mm .mm-comments textarea {
	width: 100%;
	max-width: 100%;
	padding: 14px 18px;
	border: 0;
	border-radius: 14px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	transition: box-shadow .2s;
}
.mm .mm-content input:focus, .mm .mm-content textarea:focus, .mm .mm-content select:focus,
.mm .mm-comments input:focus, .mm .mm-comments textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--brass); }
.mm .mm-content input[type="submit"], .mm .mm-content button[type="submit"],
.mm .mm-comments input[type="submit"] {
	padding: 14px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font-family: var(--head);
	font-size: .95rem;
	font-weight: 500;
	cursor: pointer;
}
.mm .mm-content input[type="submit"]:hover, .mm .mm-content button[type="submit"]:hover,
.mm .mm-comments input[type="submit"]:hover { background: var(--wine); }

/* Tags */
.mm .mm-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.mm .mm-tags a { display: inline-block; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; color: var(--text); transition: color .2s, box-shadow .2s; }
.mm .mm-tags a:hover { color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }

/* Author */
.mm .mm-author {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}
.mm .mm-author .mm-avatar { width: 96px; height: 96px; border-radius: var(--arch); object-fit: cover; }
.mm .mm-author__label { font-size: .9rem; color: var(--muted); }
.mm .mm-author__name { font-size: 1.5rem; margin: 2px 0 10px; }
.mm .mm-author__name a:hover { color: var(--wine); }
.mm .mm-author p { color: var(--muted); }
.mm .mm-author .mm-textlink { display: inline-block; margin-top: 14px; }

/* Prev / next */
.mm .mm-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: clamp(56px, 7vw, 96px);
	margin-bottom: clamp(56px, 7vw, 96px);
}
.mm .mm-postnav__item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 20px;
	border-radius: 18px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow .25s;
}
.mm .mm-postnav__item:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mm .mm-postnav__img { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; }
.mm .mm-postnav__img img { width: 100%; height: 100%; object-fit: cover; }
.mm .mm-postnav__label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.mm .mm-postnav__title { display: block; font-family: var(--head); font-size: 1.05rem; font-weight: 500; line-height: 1.35; color: var(--ink); }

.mm .mm-grid--3 .mm-card.is-wide { grid-column: 1 / -1; }

/* Comments */
.mm .mm-comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
body .mm .mm-comments h2, body .mm .mm-comments h3, .mm .mm-comments .comment-reply-title { font-size: 1.4rem; margin-bottom: 18px; }
.mm .mm-comments ol { list-style: none; }
.mm .mm-comments .comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.mm .mm-comments .children { padding-left: 32px; }
.mm .mm-comments .comment-meta, .mm .mm-comments .comment-metadata { font-size: .9rem; color: var(--muted); }
.mm .mm-comments .comment-form p { margin-bottom: 16px; }
.mm .mm-comments label { display: block; margin-bottom: 6px; font-size: .92rem; color: var(--ink); }

/* ---------- Pages ---------- */
.mm .mm-page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.mm .mm-page-head__inner { max-width: calc(760px + var(--gutter) * 2); }
.mm .mm-page-title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.mm .mm-page-head .mm-meta { margin-top: 18px; }
.mm .mm-page-body { max-width: calc(760px + var(--gutter) * 2); padding-bottom: clamp(64px, 9vw, 112px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.mm .mm-reader { grid-template-columns: minmax(0, 720px); }
	.mm .mm-reader__share, .mm .mm-reader__side { display: none !important; }
	.mm .mm-reader__share-inline { display: block; margin-top: 40px; }
	.mm .mm-toc { display: block; }
	.mm .mm-catblock__inner,
	.mm .mm-catblock.is-flipped .mm-catblock__inner { grid-template-columns: 1fr; }
	.mm .mm-catblock.is-flipped .mm-catblock__intro { order: 0; }
	.mm .mm-catblock__intro { position: static; }
}
@media (max-width: 980px) {
	.mm .mm-lead { grid-template-columns: 1fr; }
	.mm .mm-lead__media { order: -1; max-width: 520px; margin: 16px auto 0; }
	.mm .mm-hero__more, .mm .mm-ranked { grid-template-columns: 1fr; gap: 0; }
	.mm .mm-hero__more { gap: 22px; }
	.mm .mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm .mm-card.is-wide { grid-template-columns: 1fr; gap: 24px; }
	.mm .mm-news__inner { grid-template-columns: 1fr; }
	.mm .mm-arch-head__foot { max-width: none; }
}
@media (max-width: 680px) {
	.mm { font-size: 17px; }
	.mm .mm-grid, .mm .mm-catblock__cards { grid-template-columns: 1fr; gap: 44px; }
	.mm .mm-catblock__cards .mm-card__media { aspect-ratio: 4 / 3; }
	.mm .mm-index__list { grid-template-columns: 1fr; }
	.mm .mm-index__list li:nth-child(2) { border-top: 0; }
	.mm .mm-head { align-items: flex-start; }
	.mm .mm-search { max-width: none; }
	.mm .mm-postnav { grid-template-columns: 1fr; }
	.mm .mm-postnav > span:empty { display: none; }
	.mm .mm-author { grid-template-columns: 1fr; }
	.mm .mm-lead__media::before { inset: -10px -10px 10px 10px; }
	.mm .mm-arch-head::after { opacity: .25; }
	.mm .mm-content { font-size: 1.08rem; }
	.mm .mm-content > p:first-child { font-size: 1.16rem; }
}
@media (prefers-reduced-motion: reduce) {
	.mm *, .mm *::before, .mm *::after { animation: none !important; transition: none !important; }
}
