/*
Theme Name: Mida Magazine
Theme URI: https://mida.mag
Author: Mida
Author URI: https://mida.mag
Description: A sophisticated editorial block theme for Mida — a fashion, culture, art, design and ideas magazine. Built for large photography, generous whitespace and strong magazine-style hierarchy.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.3.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mida-magazine
Tags: block-theme, one-column, wide-blocks, full-site-editing, editor-style, custom-colors, custom-menu
*/

/* -------------------------------------------------------------------------
   Base
------------------------------------------------------------------------- */

:root {
	/* Trade-press hairlines: derived from dark-brown rather than the old
	   sand/paper tan palette, so structural rules read as crisp black-ish
	   lines against white instead of a warm boutique-magazine border. */
	--mida-line: rgba(44, 33, 24, 0.14);
	--mida-line-strong: rgba(44, 33, 24, 0.4);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--dark-brown);
}

img {
	height: auto;
	display: block;
}

/* Minimal, deliberate rounded corners only where noted below. */
.wp-block-button__link,
.wp-block-search__button,
.wp-block-search__input,
.wp-block-post-featured-image img,
.wp-block-image img,
.wp-block-cover {
	border-radius: 0;
}

/* Featured image boxes: real photos and generated covers fill the same
   box identically, so a post's aspect ratio never depends on whether it
   has a real photo yet. */
.wp-block-post-featured-image {
	display: block;
	overflow: hidden;
	position: relative;
	aspect-ratio: 16 / 9;
}

.wp-block-post-featured-image img,
.wp-block-post-featured-image svg {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   Eyebrow / meta text treatment (category labels, dates, bylines)
------------------------------------------------------------------------- */

.wp-block-post-terms,
.mida-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wp-block-post-terms a {
	color: var(--wp--preset--color--gold);
	text-decoration: none;
}

.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--dark-brown);
}

.wp-block-post-date,
.mida-meta {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.65;
}

.wp-block-post-author {
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-author__name {
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   Site header
------------------------------------------------------------------------- */

.site-topbar {
	border-bottom: 1px solid var(--mida-line);
}

.site-masthead {
	text-align: center;
}

.site-masthead .wp-block-site-title a {
	text-decoration: none;
}

.site-masthead .wp-block-site-tagline {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	opacity: 0.7;
}

/* .site-nav-row is the dark primary-category bar in the trade-press header
   (see the "Mida 2.0" section below for its actual styling) — no base
   rules here since its content and treatment changed entirely from the
   original nav+search row. */

.site-social-links .wp-block-social-link a {
	color: var(--wp--preset--color--dark-brown);
}

.site-social-links .wp-block-social-link:hover a {
	color: var(--wp--preset--color--gold);
}

/* -------------------------------------------------------------------------
   Section scaffolding
------------------------------------------------------------------------- */

.mida-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.mida-section--paper {
	background: var(--wp--preset--color--off-white);
	border-top: 1px solid var(--mida-line);
	border-bottom: 1px solid var(--mida-line);
}

.mida-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 2px solid var(--wp--preset--color--dark-brown);
	padding-bottom: 0.75rem;
	margin-bottom: 2.5rem !important;
}

.mida-section-header h2 {
	margin: 0;
}

/* -------------------------------------------------------------------------
   Featured / hero article
------------------------------------------------------------------------- */

.mida-featured-primary .wp-block-post-featured-image {
	aspect-ratio: 16 / 9;
	margin-bottom: 1.75rem;
}

.mida-featured-primary .wp-block-post-title {
	margin-top: 0.5rem;
}

.mida-featured-primary .wp-block-post-title a {
	text-decoration: none;
}

.mida-featured-primary .wp-block-post-excerpt {
	font-family: var(--wp--preset--font-family--playfair);
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	opacity: 0.85;
}

/* -------------------------------------------------------------------------
   Query loop cards (secondary featured, latest, sections, archives)
------------------------------------------------------------------------- */

.wp-block-post-template {
	list-style: none;
}

.mida-card .wp-block-post-featured-image {
	aspect-ratio: 4 / 3;
	margin-bottom: 1.25rem;
}

.mida-card .wp-block-post-featured-image img,
.mida-card .wp-block-post-featured-image svg {
	transition: transform 0.6s ease;
}

.mida-card:hover .wp-block-post-featured-image img,
.mida-card:hover .wp-block-post-featured-image svg {
	transform: scale(1.035);
}

.mida-card .wp-block-post-title {
	margin-top: 0.6rem;
	margin-bottom: 0.5rem;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 800;
	font-size: 1.2rem;
	line-height: 1.14;
	letter-spacing: -0.01em;
}

.mida-card .wp-block-post-title a {
	text-decoration: none;
}

.mida-card .wp-block-post-excerpt {
	opacity: 0.75;
	font-size: 0.92rem;
	line-height: 1.5;
}

/* Editorial grid: first story reads larger than the rest, purely via CSS
   on the same dynamic (inherited or filtered) query — no duplicate queries. */
.is-editorial-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.75rem 1.75rem;
}

.is-editorial-grid .wp-block-post-template > li:first-child {
	grid-column: span 3;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 2.25rem;
	align-items: center;
	padding-bottom: 2.5rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid var(--mida-line);
}

.is-editorial-grid .wp-block-post-template > li:first-child .wp-block-post-featured-image {
	aspect-ratio: 4 / 5;
}

.is-editorial-grid .wp-block-post-template > li:first-child .wp-block-post-title {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 800;
	letter-spacing: -0.02em;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	line-height: 1.04;
}

/* Most read: small-thumbnail list, trade-press "Most Popular" pattern */
.mida-most-read .wp-block-post-template {
	display: block;
	max-width: 46rem;
}

.mida-most-read .wp-block-post-template > li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--mida-line);
}

.mida-most-read .wp-block-post-featured-image {
	flex: 0 0 auto;
	width: 4.5rem;
	aspect-ratio: 1 / 1;
	margin: 0;
}

.mida-most-read .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
}

/* -------------------------------------------------------------------------
   Newsletter
------------------------------------------------------------------------- */

.mida-newsletter {
	background: var(--wp--preset--color--dark-brown);
	color: var(--wp--preset--color--off-white);
	text-align: center;
}

.mida-newsletter h2,
.mida-newsletter p {
	color: var(--wp--preset--color--off-white);
}

.mida-newsletter-form {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	max-width: 26rem;
	margin: 1rem auto 0.5rem;
	flex-wrap: wrap;
}

.mida-newsletter-form input[type="email"] {
	flex: 1 1 14rem;
	background: transparent;
	border: 1px solid var(--wp--preset--color--sand);
	color: var(--wp--preset--color--off-white);
	padding: 0.6rem 0.9rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
}

.mida-newsletter-form input[type="email"]::placeholder {
	color: var(--wp--preset--color--off-white);
	opacity: 0.55;
}

.mida-newsletter-form-frequency {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	flex: 1 0 100%;
	border: none;
	padding: 0;
	margin: 0;
}

.mida-newsletter-form-frequency label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--off-white);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.85;
	cursor: pointer;
}

.mida-newsletter-form-frequency input[type="radio"] {
	accent-color: var(--wp--preset--color--gold);
}

.mida-newsletter-form button {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--dark-brown);
	border: 1px solid var(--wp--preset--color--gold);
	padding: 0.6rem 1.25rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.mida-newsletter-form button:hover {
	background: var(--wp--preset--color--off-white);
	border-color: var(--wp--preset--color--off-white);
}

.mida-newsletter-note {
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.55;
}

/* -------------------------------------------------------------------------
   Instagram / social grid
------------------------------------------------------------------------- */

.mida-social-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.25rem;
}

.mida-social-grid .wp-block-button {
	margin: 0;
}

.mida-social-grid .wp-block-button__link {
	aspect-ratio: 1 / 1;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

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

.site-footer {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--dark-brown);
	border-top: 2px solid var(--wp--preset--color--dark-brown);
}

.site-footer a {
	color: var(--wp--preset--color--dark-brown);
}

.site-footer a:hover {
	color: var(--wp--preset--color--gold);
}

.site-footer h2,
.site-footer h3 {
	color: var(--wp--preset--color--dark-brown);
}

.site-footer .wp-block-site-title a {
	text-decoration: none;
}

.site-footer-heading {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.7;
	margin-bottom: 1rem;
}

.site-footer .wp-block-categories-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.site-footer .wp-block-categories-list a {
	text-decoration: none;
}

.site-footer .wp-block-social-link a {
	color: var(--wp--preset--color--dark-brown);
}

.site-footer .wp-block-social-link:hover a {
	color: var(--wp--preset--color--gold);
}

.site-footer-base {
	border-top: 1px solid var(--mida-line);
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.6;
}

/* -------------------------------------------------------------------------
   Single article
------------------------------------------------------------------------- */

.mida-article-header {
	text-align: center;
}

.mida-article-header .wp-block-post-title {
	margin: 0.75rem 0;
}

.mida-article-excerpt {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	opacity: 0.75;
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

.mida-article-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.mida-article-meta .wp-block-post-author {
	display: flex;
	align-items: center;
}

.mida-article-featured-image {
	aspect-ratio: 21 / 9;
	max-height: 44rem;
}

/* In-article images: publish_to_wordpress.ps1 inserts these as plain
   <figure><img/><figcaption> HTML (not a wp:image block — see
   mida_magazine_share_shortcode's sibling in that script), generated at a
   flat 1024x1024. Rendered at column width that square is 900px+ tall,
   dwarfing the surrounding text. Cap the height and let width follow, so a
   photo reads as an inset figure instead of a full-viewport-square
   interruption. (Targets bare <figure>, not .wp-block-image, since these
   never go through the block editor.) */
.wp-block-post-content figure {
	margin: 2rem auto;
	text-align: center;
}

.wp-block-post-content figure img {
	display: inline-block;
	max-height: 30rem;
	width: auto;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* Article body typography */
.wp-block-post-content {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.75;
}

.wp-block-post-content > p:first-of-type:first-letter {
	float: none;
}

.wp-block-post-content .has-drop-cap:not(:focus)::first-letter {
	font-family: var(--wp--preset--font-family--playfair);
	color: var(--wp--preset--color--gold);
	font-size: 4.2em;
	font-weight: 700;
}

.wp-block-post-content figcaption,
.wp-block-post-content .wp-element-caption {
	font-style: italic;
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.65;
	text-align: center;
	margin-top: 0.75rem;
}

.wp-block-post-content blockquote {
	font-family: var(--wp--preset--font-family--playfair);
}

.wp-block-post-content a {
	color: var(--wp--preset--color--dark-brown);
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 1.5px;
}

/* Share row */
.mida-share {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	border-top: 1px solid var(--mida-line);
	border-bottom: 1px solid var(--mida-line);
	padding: 1.5rem 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mida-share span.mida-share-label {
	opacity: 0.55;
	text-transform: uppercase;
}

.mida-share a,
.mida-share button {
	color: var(--wp--preset--color--dark-brown);
	text-decoration: none;
	background: none;
	border: none;
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
	padding: 0;
}

.mida-share a:hover,
.mida-share button:hover {
	color: var(--wp--preset--color--gold);
}

/* Author box */
.mida-author-box {
	border-top: 1px solid var(--wp--preset--color--dark-brown);
	border-bottom: 1px solid var(--wp--preset--color--dark-brown);
}

.mida-author-box .wp-block-post-author-name {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--x-large);
	display: block;
	margin-bottom: 0.5rem;
}

.mida-author-box .wp-block-post-author-biography {
	opacity: 0.8;
}

/* Related stories */
.mida-related .mida-card .wp-block-post-featured-image {
	aspect-ratio: 3 / 2;
}

/* -------------------------------------------------------------------------
   Section fronts (category / tag / search archives)
------------------------------------------------------------------------- */

.mida-archive-head {
	padding-bottom: 2.25rem;
}

.mida-archive-head .wp-block-query-title {
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
	margin: 0;
}

.mida-archive-head .wp-block-term-description {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--medium);
	opacity: 0.7;
	max-width: 34rem;
	margin: 0.9rem auto 0;
}

.mida-archive-head .wp-block-term-description:empty {
	display: none;
}

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

.mida-404 {
	text-align: center;
}

.mida-404 .mida-404-code {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--huge);
	color: var(--wp--preset--color--gold);
	line-height: 1;
}

/* -------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------- */

@media (max-width: 782px) {
	.is-editorial-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.is-editorial-grid .wp-block-post-template > li:first-child {
		grid-column: span 1;
		grid-template-columns: 1fr;
	}

	.mida-social-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.mida-section {
		padding-top: var(--wp--preset--spacing--50);
		padding-bottom: var(--wp--preset--spacing--50);
	}

	.mida-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

@media (max-width: 600px) {
	.mida-newsletter-form {
		flex-direction: column;
	}

	.mida-newsletter-form button {
		width: 100%;
	}
}



/* =========================================================================
   Mida 2.0 — trade-press redesign (2026-09-02)
   Moves the homepage/header off the earlier "boutique magazine" cream/
   serif treatment (Mida 1.1/1.2, kept in history below) toward the dense,
   white-background, black-sans-serif register shared by Variety, WWD and
   most large fashion/entertainment trade publications: a stacked header
   (utility bar → compact nameplate → dark category bar → flash-headline
   row), a lead-story-plus-Most-Read homepage grid, and hairline rules
   throughout instead of soft sand borders. Playfair Display is now
   reserved for the site nameplate and in-article pull-quotes only —
   every heading, card and list headline site-wide uses bold Inter
   (set globally in theme.json's `styles.elements.heading`); the classed
   overrides below just tune size/spacing per context, they don't need to
   re-specify the font-family. Dark-brown stands in for Variety/WWD's
   near-black text and gold remains the sole accent color (category
   labels, links, CTAs) — no colors were added to the palette.
============================================================================ */

body {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--dark-brown);
}

/* ---- Tier 1: utility bar ---- */

.site-topbar {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.site-topbar .wp-block-group {
	min-height: 1.2rem;
}

.site-topbar p {
	margin: 0;
}

.mida-topbar-right {
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.55;
}

/* ---- Tier 2: nameplate row ---- */

.site-nameplate {
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--dark-brown);
}

.site-nameplate-left,
.site-nameplate-right {
	flex: 1 1 0;
	gap: 1rem;
	align-items: center;
}

.site-nameplate-right {
	justify-content: flex-end;
}

.site-nameplate-left .wp-block-navigation {
	font-size: 0.76rem;
}

.site-nameplate-left .wp-block-navigation .wp-block-navigation__toggle_button_icon,
.site-nameplate-left .wp-block-navigation-item {
	color: var(--wp--preset--color--dark-brown);
}

.site-nameplate-left .wp-block-search {
	width: 2.4rem;
	min-width: 2.4rem;
}

.site-nameplate-left .wp-block-search__input {
	display: none;
}

.site-nameplate-left .wp-block-search__button {
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--dark-brown);
}

.site-masthead .wp-block-site-title {
	margin: 0;
	font-size: clamp(1.6rem, 3.4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
	white-space: nowrap;
}

.site-masthead .wp-block-site-title a {
	text-decoration: none;
}

.mida-subscribe-btn .wp-block-button__link {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
	font-size: 0.7rem;
}

/* ---- Tier 3: primary category bar ---- */

.site-nav-row {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--dark-brown);
}

.site-nav-categories.wp-block-categories {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
}

.site-nav-categories.wp-block-categories li {
	margin: 0;
}

.site-nav-categories a {
	display: block;
	padding: 0.8rem 1rem;
	color: var(--wp--preset--color--off-white);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-nav-categories a:hover {
	color: var(--wp--preset--color--gold);
}

/* ---- Tier 4: flash-headline row ---- */

.mida-flash-wrap {
	border-bottom: 1px solid var(--mida-line);
}

.mida-flash {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mida-flash-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.9rem 1.1rem;
	border-left: 1px solid var(--mida-line);
	color: var(--wp--preset--color--dark-brown);
	text-decoration: none;
}

.mida-flash-item:first-child {
	border-left: none;
}

.mida-flash-arrow {
	color: var(--wp--preset--color--gold);
	font-weight: 700;
	line-height: 1.3;
}

.mida-flash-text {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.mida-flash-title {
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 800;
	font-size: 0.88rem;
	line-height: 1.25;
}

.mida-flash-sub {
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.55;
}

/* ---- Homepage sections ---- */

.mida-home .mida-section {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.mida-home-lead-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 1.75rem;
	align-items: start;
}

.mida-lead-main {
	text-align: center;
}

.mida-lead-story .wp-block-post-title {
	font-size: clamp(1.7rem, 2.9vw, 2.4rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0.35rem auto 0.6rem;
	max-width: 22ch;
}

.mida-lead-story .wp-block-post-featured-image {
	aspect-ratio: 16 / 9;
	width: 55%;
	max-width: 24rem;
	margin: 0 auto 0.7rem;
}

.mida-lead-story .wp-block-post-title a,
.mida-headline-list .wp-block-post-title a,
.mida-front-grid .wp-block-post-title a,
.mida-latest-list .wp-block-post-title a,
.mida-most-read .wp-block-post-title a {
	text-decoration: none;
}

.mida-lead-story .wp-block-post-excerpt {
	max-width: 40rem;
	margin: 0 auto 0.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	opacity: 0.7;
}

.mida-lead-meta {
	gap: 0.7rem;
	margin-top: 0.4rem;
}

.mida-headline-list-wrap {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 2px solid var(--wp--preset--color--dark-brown);
	text-align: left;
}

.mida-headline-list .wp-block-post-template {
	display: block;
}

.mida-headline-list .wp-block-post-template > li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--mida-line);
}

.mida-headline-list .wp-block-post-title {
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: 1.1rem;
	line-height: 1.16;
	margin: 0.3rem 0 0.35rem;
}

.mida-headline-list .wp-block-post-terms,
.mida-headline-list .wp-block-post-date {
	font-size: 0.67rem;
}

.mida-rail-heading {
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--dark-brown);
}

.mida-rail-heading h2 {
	margin: 0;
	font-size: 0.82rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.mida-most-read-panel {
	position: sticky;
	top: 3.75rem;
}

.mida-section-header {
	margin-bottom: 1rem !important;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid var(--wp--preset--color--dark-brown);
}

.mida-section-header h2 {
	font-size: 0.88rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.mida-front-page {
	border-top: 1px solid var(--mida-line);
}

.mida-front-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: 1.1rem;
}

.mida-front-grid .wp-block-post-featured-image {
	aspect-ratio: 4 / 5;
	margin-bottom: 0.6rem;
}

.mida-front-grid .wp-block-post-title {
	letter-spacing: -0.01em;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	line-height: 1.1;
	margin: 0.3rem 0 0.55rem;
}

.mida-front-grid .wp-block-post-date {
	font-size: 0.67rem;
}

.mida-latest-list-wrap {
	border-top: 1px solid var(--mida-line);
}

.mida-latest-list .wp-block-post-template {
	display: block;
}

.mida-latest-list .wp-block-post-template > li {
	display: grid;
	grid-template-columns: 200px minmax(0,1fr);
	gap: 1.1rem;
	padding: 0 0 0.9rem;
	margin: 0 0 0.9rem;
	border-bottom: 1px solid var(--mida-line);
}

.mida-latest-list .wp-block-post-featured-image {
	aspect-ratio: 4 / 3;
	margin: 0;
}

.mida-latest-copy {
	align-self: center;
}

.mida-latest-list .wp-block-post-title {
	letter-spacing: -0.015em;
	font-size: clamp(1.15rem, 1.7vw, 1.45rem);
	line-height: 1.12;
	margin: 0.35rem 0 0.55rem;
}

.mida-latest-list .wp-block-post-excerpt {
	font-size: 0.88rem;
	line-height: 1.5;
	opacity: 0.68;
	margin: 0 0 0.6rem;
}

.mida-section.mida-newsletter {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 1.75rem;
	padding-bottom: 1.75rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	background: var(--wp--preset--color--dark-brown);
}

.mida-newsletter .mida-eyebrow {
	color: var(--wp--preset--color--gold);
}

.mida-newsletter h2 {
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0.35rem 0 0.15rem;
}

.mida-newsletter p {
	font-size: 0.9rem;
	opacity: 0.85;
	margin: 0;
}

@media (max-width: 960px) {
	.mida-home-lead-grid {
		grid-template-columns: 1fr;
	}

	.mida-front-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}

	.mida-most-read-panel {
		position: static;
	}

	.mida-flash {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mida-flash-item:nth-child(3) {
		border-left: none;
	}
}

@media (max-width: 700px) {
	.mida-topbar-right {
		display: none;
	}

	.site-nameplate {
		flex-wrap: wrap;
		row-gap: 0.6rem;
	}

	.site-masthead {
		order: 3;
		flex: 1 1 100%;
		justify-content: center;
	}

	.site-nav-categories.wp-block-categories {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.mida-home .mida-section {
		padding-top: 1.6rem;
		padding-bottom: 1.6rem;
	}

	.mida-flash {
		grid-template-columns: 1fr;
	}

	.mida-flash-item {
		border-left: none;
		border-top: 1px solid var(--mida-line);
	}

	.mida-flash-item:first-child {
		border-top: none;
	}

	.mida-front-grid .wp-block-post-template {
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem 0.8rem;
	}

	.mida-latest-list .wp-block-post-template > li {
		grid-template-columns: 118px minmax(0,1fr);
		gap: 0.85rem;
	}

	.mida-latest-list .wp-block-post-excerpt {
		display: none;
	}

	.mida-latest-list .wp-block-post-title {
		font-size: 1.15rem;
	}

	.mida-lead-story .wp-block-post-title {
		font-size: clamp(1.7rem, 8vw, 2.25rem);
	}
}

/* =========================================================================
   History
   Mida 1.1 (fashion-news homepage density pass) and 1.2 (category-page
   query-attribute fix + site-wide Inter card headlines) preceded this
   redesign and are superseded by the rules above; see version control for
   their original CSS if ever needed for reference.
============================================================================ */
