/*
Theme Name: Maldives Insight News
Theme URI: https://maldivesinsight.com
Author: Maldives Insight Team
Author URI: https://maldivesinsight.com
Description: A newspaper-style block theme for Maldives Insight, the go-to source for Maldives news. Classic broadsheet layout with a centered masthead, section navigation, ruled columns and a lead-story front page, set in Source Serif 4, Libre Franklin and Playfair Display. Fully editable in the Site Editor.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maldives-insight-news
Tags: news, blog, one-column, two-columns, three-columns, block-patterns, block-styles, custom-colors, custom-menu, editor-style, full-site-editing, wide-blocks
*/

/*
 * Most styling lives in theme.json. This file holds the newspaper details
 * theme.json cannot express: column rules, stacked story dividers and the
 * double rule under the section nav.
 */

:where(.wp-site-blocks) *:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Masthead ------------------------------------------------------------- */

.mi-topbar {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 600;
}

.mi-topbar p {
	margin: 0;
}

.mi-section-nav {
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 4px double var(--wp--preset--color--contrast);
}

.mi-section-nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

.mi-section-nav .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0.4rem;
}

.mi-section-nav .wp-block-search__input {
	font-family: var(--wp--preset--font-family--sans);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--base);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--contrast);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 5px;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Kicker / label above headlines */
.mi-kicker {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mi-section-title {
	border-top: 2px solid var(--wp--preset--color--contrast);
	padding-top: 0.6rem;
}

.mi-section-title a {
	color: inherit;
}

/* Ruled columns -------------------------------------------------------- */

@media (min-width: 782px) {
	.mi-ruled > .wp-block-column + .wp-block-column {
		border-left: 1px solid var(--wp--preset--color--rule);
		padding-left: var(--wp--style--block-gap, 1.25rem);
	}

	.mi-ruled.wp-block-columns {
		column-gap: var(--wp--style--block-gap, 1.25rem);
	}

	.mi-ruled-grid .wp-block-post-template.is-layout-grid > li + li {
		border-left: 1px solid var(--wp--preset--color--rule);
		padding-left: 1.25rem;
	}

	.mi-ruled-grid .wp-block-post-template.is-layout-grid {
		gap: 1.25rem;
	}
}

@media (max-width: 781px) {
	.mi-ruled > .wp-block-column + .wp-block-column {
		border-top: 1px solid var(--wp--preset--color--rule);
		padding-top: var(--wp--style--block-gap, 1.25rem);
	}

	.mi-ruled-grid .wp-block-post-template > li + li {
		border-top: 1px solid var(--wp--preset--color--rule);
		padding-top: 1.25rem;
	}
}

/* Stacked story lists with a hairline between items */
.mi-stack .wp-block-post-template > li + li {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: 1rem;
	margin-top: 1rem;
}

/* Headlines inside lists stay tight */
.wp-block-post-template .wp-block-post-title {
	margin-top: 0.25rem;
	margin-bottom: 0.4rem;
}

.wp-block-post-template .wp-block-post-excerpt__excerpt {
	margin: 0 0 0.4rem;
}

.wp-block-post-template .wp-block-post-featured-image {
	margin-bottom: 0.6rem;
}

/* Numbered "Most Read" list */
.mi-numbered .wp-block-post-template {
	counter-reset: mi-rank;
}

.mi-numbered .wp-block-post-template > li {
	counter-increment: mi-rank;
	position: relative;
	padding-left: 2.25rem;
}

.mi-numbered .wp-block-post-template > li::before {
	content: counter(mi-rank);
	position: absolute;
	left: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--rule);
}

/* Article page --------------------------------------------------------- */

.mi-article .wp-block-post-content > p:first-of-type::first-letter {
	float: left;
	font-size: 3.6em;
	line-height: 0.85;
	font-weight: 700;
	padding: 0.06em 0.08em 0 0;
}

.mi-byline p,
.mi-byline .wp-block-post-author-name,
.mi-byline .wp-block-post-date {
	margin: 0;
}

/* Breaking badge */
.mi-breaking {
	color: var(--wp--preset--color--breaking);
}

.mi-live::before {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	margin-right: 0.4em;
	border-radius: 50%;
	background: var(--wp--preset--color--breaking);
	vertical-align: 0.05em;
}

/* Footer */
.mi-footer .wp-block-navigation {
	font-family: var(--wp--preset--font-family--sans);
}

.mi-footer-masthead {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

/* Dark mode ----------------------------------------------------------- */

html[data-theme="dark"] {
	--wp--preset--color--base: #121212;
	--wp--preset--color--surface: #1C1C1C;
	--wp--preset--color--contrast: #F2F2F2;
	--wp--preset--color--secondary: #CFCFCF;
	--wp--preset--color--muted: #A0A0A0;
	--wp--preset--color--rule: #333333;
	--wp--preset--color--rule-strong: #F2F2F2;
	--wp--preset--color--primary: #FFFFFF;
	--wp--preset--color--link: #F2F2F2;
	--wp--preset--color--breaking: #FF5A52;
	--wp--preset--color--highlight: #222222;
	color-scheme: dark;
}

html[data-theme="dark"] .wp-block-post-featured-image img,
html[data-theme="dark"] .wp-block-image img {
	filter: brightness(0.92);
}

.mi-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.mi-toggle:hover {
	border-color: var(--wp--preset--color--contrast);
}

.mi-toggle__sun,
html[data-theme="dark"] .mi-toggle__moon {
	display: none;
}

html[data-theme="dark"] .mi-toggle__sun {
	display: block;
}

/* Logo ----------------------------------------------------------------- */

.mi-logo {
	margin: 0;
	line-height: 0;
	text-align: center;
}

.mi-logo img {
	display: inline-block;
	width: min(520px, 82vw);
	height: auto;
}

.mi-logo--small {
	text-align: left;
}

.mi-logo--small img {
	width: min(260px, 60vw);
}

.mi-logo__dark,
html[data-theme="dark"] .mi-logo.has-dark .mi-logo__light {
	display: none !important;
}

html[data-theme="dark"] .mi-logo.has-dark .mi-logo__dark {
	display: inline-block !important;
}

/* A logo without a dark version, or one uploaded in the editor, is inverted. */
html[data-theme="dark"] .mi-logo:not(.has-dark) img,
html[data-theme="dark"] .wp-block-site-logo img {
	filter: invert(1);
}

/* Ads ------------------------------------------------------------------ */

.mi-ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin: 1.5rem auto;
	text-align: center;
}

.mi-ad__label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.mi-ad__unit {
	max-width: 100%;
	overflow: hidden;
}

.mi-ad__unit img {
	max-width: 100%;
	height: auto;
}

.mi-ad--header,
.mi-ad--footer {
	margin: 0.75rem auto;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.mi-ad--in-article {
	padding: 1rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.mi-ad--empty {
	min-height: 90px;
	justify-content: center;
	border: 1px dashed var(--wp--preset--color--rule);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
}

.mi-ad--empty a {
	color: var(--wp--preset--color--muted);
}

.mi-ad--sidebar.mi-ad--empty {
	min-height: 250px;
}

/* Breaking news bar ------------------------------------------------------ */

.mi-breaking-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	overflow: hidden;
}

.mi-breaking-bar__label {
	flex: none;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--breaking);
}

.mi-breaking-bar__list {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.mi-breaking-bar__list a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* Article tools ----------------------------------------------------------- */

.mi-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	height: 3px;
	background: var(--wp--preset--color--contrast);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.admin-bar .mi-progress {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.mi-share {
	display: flex;
	gap: 0.5rem;
}

.mi-share__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.mi-share__link:hover {
	border-color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.mi-share__copied {
	position: absolute;
	top: 110%;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	white-space: nowrap;
}

.mi-reading-time {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xx-small);
	color: var(--wp--preset--color--muted);
}

.mi-article-bar {
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.mi-byline .wp-block-post-author {
	align-items: center;
	margin: 0;
}

.mi-byline .wp-block-post-author__avatar img {
	border-radius: 50%;
}

.mi-byline .wp-block-post-author__byline {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	margin: 0;
}

.mi-byline .wp-block-post-author__name {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

/* Links inside stories stay visible in black and white */
.wp-block-post-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.wp-block-post-content a:hover {
	text-decoration-thickness: 2px;
}

/* Comments */
.wp-block-comments {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-comment-template li {
	padding: 1rem 0;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.wp-block-comments input:not([type="submit"]):not([type="checkbox"]),
.wp-block-comments textarea,
.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 2px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: 0.6rem 0.75rem;
	font-family: inherit;
}

.wp-block-comments input:focus,
.wp-block-comments textarea:focus,
.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--contrast);
	outline: none;
}

/* Dark band (Opinion) -------------------------------------------------- */

.mi-band-dark {
	background: #000;
	color: #F2F2F2;
}

html[data-theme="dark"] .mi-band-dark {
	background: #000;
	border-top: 1px solid #333;
	border-bottom: 1px solid #333;
}

.mi-band-dark .wp-block-post-title a,
.mi-band-dark .wp-block-heading,
.mi-band-dark .wp-block-post-terms a {
	color: #F2F2F2;
}

.mi-band-dark .wp-block-post-date,
.mi-band-dark p {
	color: #A8A8A8;
}

.mi-band-dark .mi-section-title {
	border-top-color: #F2F2F2;
}

/* Opinion: columnist first, a big quotation mark, headline in italic serif, no photos */
.mi-opinion-band .wp-block-post-template > li {
	position: relative;
	padding-top: 2.6rem !important;
}

.mi-opinion-band .wp-block-post-template > li::before {
	content: "\201C";
	position: absolute;
	top: -0.35rem;
	left: 0;
	font-family: var(--wp--preset--font-family--serif, Georgia, serif);
	font-size: 4.5rem;
	font-weight: 700;
	line-height: 1;
	color: #F2F2F2;
	opacity: 0.35;
}

@media (min-width: 782px) {
	.mi-opinion-band .wp-block-post-template > li + li::before {
		left: 1.25rem;
	}
}

@media (max-width: 781px) {
	.mi-opinion-band .wp-block-post-template > li + li::before {
		left: 0;
		top: 0.9rem;
	}

	.mi-opinion-band .wp-block-post-template > li + li {
		padding-top: 3.8rem !important;
	}
}

.mi-opinion-band .mi-op-author {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mi-opinion-band .mi-op-author a {
	color: #F2F2F2;
	text-decoration: none;
}

.mi-opinion-band .mi-op-title {
	margin: 0;
	font-style: italic;
	font-weight: 600;
	line-height: 1.25;
}

.mi-opinion-band .mi-op-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.mi-opinion-band .mi-op-excerpt {
	margin: 0.75rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
}

.mi-opinion-band .mi-op-excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.mi-opinion-band .mi-op-date {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--xx-small);
}

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

.mi-footer-cols .wp-block-navigation {
	font-family: var(--wp--preset--font-family--sans);
}

.mi-footer-cols .wp-block-navigation__container {
	gap: 0.55rem;
}

.mi-social .wp-block-social-link {
	color: var(--wp--preset--color--contrast) !important;
	background: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.mi-progress {
		display: none;
	}
}

@media print {
	.mi-header,
	.mi-footer,
	.mi-ad,
	.mi-share,
	.mi-progress,
	.mi-breaking-bar,
	.wp-block-comments {
		display: none !important;
	}
}

/* Newspaper details ------------------------------------------------------ */

/* Headlines break evenly; paragraphs avoid orphans. */
h1, h2, h3, h4,
.wp-block-post-title {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

.wp-block-post-date,
.mi-edition,
.mi-reading-time,
.mi-updated {
	font-variant-numeric: tabular-nums;
}

/* Utility bar */
.mi-topbar {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.mi-topbar__edition {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Nameplate with ears either side of the logo */
.mi-nameplate.wp-block-columns {
	gap: 1.5rem;
	margin: 0;
	padding: 1.25rem 0 1rem;
}

.mi-nameplate .wp-block-site-title {
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
}

.mi-ear {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.mi-ear p {
	margin: 0;
}

.mi-ear__strong {
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.mi-ear--left {
	text-align: left;
}

.mi-ear--right {
	text-align: right;
}

@media (max-width: 781px) {
	.mi-ear {
		display: none;
	}

	.mi-nameplate.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.mi-nameplate .wp-block-site-title {
		text-align: center;
	}

	.mi-nameplate.wp-block-columns {
		padding: 0.9rem 0 0.75rem;
	}

	/* Keep the utility bar on one line */
	.mi-topbar__edition {
		display: none;
	}

	.mi-topbar.wp-block-group {
		justify-content: flex-end;
	}

	/* The lead story comes first on phones */
	.mi-fold.wp-block-columns > .wp-block-column:nth-child(2) {
		order: -1;
		border-top: 0;
		padding-top: 0;
	}

	.mi-fold.wp-block-columns > .wp-block-column:first-child {
		border-top: 1px solid var(--wp--preset--color--rule);
		padding-top: var(--wp--style--block-gap, 1.25rem);
	}
}

/* Thick-and-thin rule under the section nav, as on a printed front page */
.mi-section-nav {
	position: relative;
	border-top: 1px solid var(--wp--preset--color--rule);
	border-bottom: 3px solid var(--wp--preset--color--contrast);
	margin-bottom: 0.75rem;
}

.mi-section-nav::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -7px;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}

.mi-section-nav .wp-block-navigation-item__content {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.75rem;
}

/* Above the fold */
.mi-fold .wp-block-post-title {
	margin-top: 0.2rem;
}

.mi-lead .wp-block-post-title {
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.mi-lead .wp-block-post-excerpt {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.mi-headlines .wp-block-post-title {
	font-weight: 600;
	line-height: 1.3;
}

/* Section labels read like a newspaper's section flags */
.mi-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mi-section-title a {
	text-decoration: none;
}

.mi-section-title a::after {
	content: " ›";
}

/* Opinion: italic headlines, columnist names in small capitals */
.mi-opinion .mi-columnist {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.mi-opinion .mi-opinion-title {
	font-style: italic;
	font-weight: 500;
	margin-top: 0.15rem;
}

/* Article head */
.mi-dek {
	margin: 0.25rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	color: var(--wp--preset--color--secondary);
}

.mi-byline .wp-block-post-author__name {
	font-family: var(--wp--preset--font-family--sans);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mi-updated {
	margin-right: 0.5rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.mi-photo .wp-block-post-featured-image {
	margin-bottom: 0.5rem;
}

.mi-photo-caption {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

/* Article body: a comfortable newspaper measure */
.mi-article .wp-block-post-content {
	font-size: 1.1875rem;
	line-height: 1.65;
}

.mi-article .wp-block-post-content > p:first-of-type::first-letter {
	font-size: 4.1em;
	line-height: 0.82;
	padding: 0.05em 0.1em 0 0;
}

/* Story without a photo: branded tile keeps grids even ----------------- */

.mi-noimg {
	margin: 0 0 0.75rem;
}

.mi-noimg a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #000; /* matches the black square of the MI mark, in light and dark mode */
	color: #fff;
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.mi-noimg img {
	width: 46% !important;
	max-width: 160px;
	height: auto !important;
	object-fit: contain;
}

/* Phones: ad on its own row, then one slim bar: logo left; theme toggle, menu, search right */

@media (max-width: 781px) {
	.mi-header.wp-block-group {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		align-items: center;
		column-gap: 0;
	}

	.mi-header.wp-block-group > * {
		grid-column: 1 / -1;
		max-width: none !important;
		margin: 0 !important;
	}

	.mi-header > .mi-ad {
		grid-row: 1;
		margin-bottom: 0.25rem !important;
		padding-top: 0.25rem !important;
		padding-bottom: 0 !important;
	}

	.mi-header > .mi-nameplate.wp-block-columns,
	.mi-header > .mi-topbar.wp-block-group,
	.mi-header > .mi-section-nav.wp-block-group {
		grid-row: 2;
		min-height: 60px;
		padding: 0 !important;
		border: 0 !important;
		align-items: center;
	}

	/* One unbroken double rule under the logo row (borders on each cell left gaps) */
	.mi-header.wp-block-group::after {
		content: "";
		grid-row: 2;
		grid-column: 1 / -1;
		align-self: end;
		height: 0;
		border-bottom: 4px double var(--wp--preset--color--contrast);
		pointer-events: none;
	}

	.mi-header > .mi-nameplate.wp-block-columns {
		grid-column: 1;
		padding-right: 0.75rem !important;
	}

	.mi-header > .mi-topbar.wp-block-group {
		grid-column: 2;
		justify-content: flex-end;
	}

	.mi-header > .mi-section-nav.wp-block-group {
		grid-column: 3;
		gap: 0.15rem;
		flex-wrap: nowrap;
	}

	.mi-header .mi-section-nav::after {
		display: none;
	}

	.mi-header .mi-nameplate .wp-block-site-logo,
	.mi-header .mi-nameplate .wp-block-site-logo.aligncenter > * {
		text-align: left;
		margin: 0;
	}

	.mi-header .mi-nameplate .wp-block-site-logo img {
		width: auto !important;
		max-width: 100%;
		max-height: 36px;
	}

	/* Comfortable 44px tap targets for the header icons */
	.mi-header .mi-toggle,
	.mi-header .wp-block-navigation__responsive-container-open,
	.mi-header .wp-block-search__button {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.mi-header .mi-toggle {
		border: 0;
		background: none;
	}

	/* Footer link lists side by side instead of one long column */
	.mi-footer-cols.wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem 1.25rem;
	}

	.mi-footer-cols.wp-block-columns > .wp-block-column {
		flex-basis: auto !important;
	}

	.mi-footer .mi-social {
		justify-content: flex-start;
		gap: 0.25rem;
	}
}

/* Full-screen phone menu ------------------------------------------------ */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1rem var(--wp--style--root--padding-right, 1.5rem) 2rem !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	display: block;
	height: 34px;
	margin: 0.35rem 3rem 1.25rem 0;
	background: url("assets/images/logo.png") left center / contain no-repeat;
}

html[data-theme="dark"] .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	background-image: url("assets/images/logo-dark.png");
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 0 !important;
	align-items: stretch !important;
	border-top: 4px double var(--wp--preset--color--contrast);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0.9rem 0 !important;
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "›";
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 1.6rem;
	opacity: 0.35;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	text-decoration: none;
	opacity: 0.7;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus:not(:focus-visible) {
	outline: none;
}

.wp-block-navigation__responsive-container-close {
	top: 0 !important; /* lines up with the logo at the top of the menu */
	right: var(--wp--style--root--padding-right, 1.5rem) !important;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* Article footer: topics, previous/next, comments, related -------------- */

.mi-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
	font-family: var(--wp--preset--font-family--sans);
}

.mi-tags::before {
	content: "Topics";
	width: 100%;
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.mi-tags .wp-block-post-terms__separator {
	display: none;
}

.mi-tags a {
	display: inline-block;
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.mi-tags a:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.mi-postnav.wp-block-group {
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.25rem 0;
	border-top: 2px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.mi-postnav .wp-block-post-navigation-link {
	margin: 0;
}

.mi-postnav .wp-block-post-navigation-link a {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.mi-postnav .post-navigation-link__label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.mi-postnav .wp-block-post-navigation-link a:hover .post-navigation-link__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mi-postnav__next {
	text-align: right;
}

.mi-postnav__next a {
	align-items: flex-end;
}

.mi-comments {
	margin-top: 2.5rem !important;
	padding: 1.5rem;
	background: var(--wp--preset--color--surface, #f6f6f6);
	border-radius: 4px;
}

.mi-comments .wp-block-comments-title,
.mi-comments .comment-reply-title {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--serif, serif);
	font-size: 1.35rem;
}

.mi-comments .comment-notes,
.mi-comments .logged-in-as {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}

.mi-comments .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1rem;
}

.mi-comments .comment-form > p {
	margin: 0;
}

.mi-comments .comment-form-comment,
.mi-comments .comment-notes,
.mi-comments .logged-in-as,
.mi-comments .comment-form-cookies-consent,
.mi-comments .form-submit {
	grid-column: 1 / -1;
}

.mi-comments .comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.8rem;
	font-weight: 600;
}

.mi-comments .comment-form input:not([type="submit"]):not([type="checkbox"]),
.mi-comments .comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--base);
	border-radius: 4px;
}

.mi-comments .comment-form textarea {
	min-height: 7rem;
	resize: vertical;
}

.mi-comments .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.mi-comments .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-weight: 400;
}

.mi-comments .form-submit .wp-element-button,
.mi-comments .form-submit input[type="submit"] {
	padding: 0.7rem 1.4rem;
	border-radius: 4px;
	font-weight: 600;
}

.mi-comments .wp-block-comment-template {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

@media (max-width: 600px) {
	.mi-comments {
		padding: 1.1rem;
		margin-left: calc(-1 * var(--wp--style--root--padding-left, 1rem)) !important;
		margin-right: calc(-1 * var(--wp--style--root--padding-right, 1rem)) !important;
		border-radius: 0;
	}

	.mi-comments .comment-form {
		grid-template-columns: 1fr;
	}

	.mi-postnav__next {
		text-align: left;
	}

	.mi-postnav__next a {
		align-items: flex-start;
	}
}

/* Related stories: compact list with a thumbnail on phones */
@media (max-width: 781px) {
	.mi-related .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
		gap: 0 !important;
	}

	.mi-related .wp-block-post-template > li {
		display: grid;
		grid-template-columns: 112px 1fr;
		grid-template-areas: "img terms" "img title" "img date";
		grid-template-rows: auto auto 1fr;
		column-gap: 0.9rem;
		align-items: start;
		padding: 0.9rem 0 !important;
		border-left: 0 !important;
		padding-left: 0 !important;
	}

	.mi-related .wp-block-post-template > li + li {
		border-top: 1px solid var(--wp--preset--color--rule);
	}

	.mi-related .wp-block-post-featured-image {
		grid-area: img;
		margin: 0 !important;
		aspect-ratio: 1 !important;
	}

	.mi-related .wp-block-post-featured-image img {
		height: 100% !important;
		object-fit: cover;
	}

	.mi-related .mi-noimg img {
		width: 60% !important;
		height: auto !important;
	}

	.mi-related .wp-block-post-terms {
		grid-area: terms;
		margin: 0;
	}

	.mi-related .wp-block-post-title {
		grid-area: title;
		margin: 0.2rem 0 0;
		font-size: 1rem !important;
		line-height: 1.3;
	}

	.mi-related .wp-block-post-date {
		grid-area: date;
		margin-top: 0.3rem;
	}
}

/* Insight Originals band (1.7.0) ----------------------------------------- */
.mi-section-dek {
	margin-top: 0.25rem;
	color: var(--wp--preset--color--muted, inherit);
	font-size: var(--wp--preset--font-size--small, 0.9rem);
}

.mi-originals .wp-block-post-excerpt {
	font-size: var(--wp--preset--font-size--small, 0.9rem);
}

.mi-row2 {
	margin-top: var(--wp--preset--spacing--50);
}
