/* Middlemarch Perspectives – front end */
.mmp {
	--mmp-navy: var(--theme-palette-color-1, #1a2552);
	--mmp-ink: var(--theme-palette-color-4, #131b36);
	--mmp-gold: var(--theme-palette-color-3, #d3c8ac);
	--mmp-list-bg: #eae9ee;
	--mmp-line: #d8cbad;
	width: 100%;
	max-width: 826px;
	margin: 0 auto;
	box-sizing: border-box;
	color: var(--mmp-navy);
}

.mmp .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tabs */
.mmp-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 54px;
}
.mmp .mmp-tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 14px 16px;
	font: inherit;
	font-size: 17px;
	line-height: 1.2;
	color: var(--mmp-ink);
	cursor: pointer;
	transition: background-color .2s ease;
}
.mmp .mmp-tab:hover { background: rgba(211, 200, 172, .35); }
.mmp .mmp-tab.is-active { background: var(--mmp-gold); color: var(--mmp-navy); }
.mmp .mmp-tab:focus-visible { outline: 2px solid var(--mmp-navy); outline-offset: 2px; }

/* List (Articles / News) */
.mmp-list {
	list-style: none;
	margin: 0;
	padding: 0 16px;
	background: var(--mmp-list-bg);
}
.mmp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 4px 0;
	min-height: 48px;
	border-bottom: 1px solid var(--mmp-line);
}
.mmp-row:last-child { border-bottom: 0; }
.mmp-text { display: flex; flex-direction: column; min-width: 0; }
.mmp-title {
	font-size: 16px;
	line-height: 1.35;
	color: var(--mmp-navy);
}
.mmp-summary {
	font-size: 14px;
	line-height: 1.4;
	opacity: .75;
	margin-top: 2px;
}
.mmp .mmp-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 143px;
	height: 41px;
	padding: 0 16px;
	background: var(--mmp-gold);
	color: var(--mmp-navy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.mmp .mmp-btn:hover,
.mmp .mmp-btn:focus-visible { background: var(--mmp-navy); color: #fff; }
.mmp .mmp-btn:focus-visible { outline: 2px solid var(--mmp-navy); outline-offset: 2px; }

/* Video popup */
.mmp-modal {
	width: min(960px, 92vw);
	max-width: none;
	max-height: none;
	padding: 0;
	margin: auto;
	border: 0;
	background: #000;
	overflow: visible;
	color: #fff;
}
.mmp-modal::backdrop { background: rgba(19, 27, 54, .85); }
.mmp-modal-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.mmp-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mmp-modal .mmp-modal-close {
	position: absolute;
	top: -48px;
	right: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--theme-palette-color-3, #d3c8ac);
	color: var(--theme-palette-color-1, #1a2552);
	font: 700 26px/40px sans-serif;
	text-align: center;
	cursor: pointer;
}
.mmp-modal .mmp-modal-close:hover,
.mmp-modal .mmp-modal-close:focus-visible { background: #fff; outline: 2px solid #fff; outline-offset: 2px; }
html.mmp-modal-open { overflow: hidden; }

/* Mobile */
@media (max-width: 600px) {
	.mmp-tabs { margin-bottom: 32px; }
	.mmp .mmp-tab { padding: 12px 14px; font-size: 16px; }
	.mmp-list { padding: 0 12px; }
	.mmp-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0; }
	.mmp .mmp-btn { width: 100%; min-width: 0; }
}
