/* ==========================================================================
   MGC Dusk, inner pages (2026-11-03)
   Loaded after mgc-dusk.css by inc/zz-dusk-pages.php. Brings the home page's
   Dusk language to every other page through the shared components only:
   covers, sections, cards, pillars, alerts, date chips, forms, pagination.
   No template or page content changes, so all four languages follow at once.

   The !important flags below each answer an inline style or an !important
   rule that the block markup or an earlier layer already sets (cover overlay
   opacity, cover padding and min-height, white band backgrounds, featured
   image radii, the date chip's inline box, the 36px phone heading rule).
   ========================================================================== */

/* ---- Page covers: dark gradient, gold bridge, title on the lower edge --- */
.mgc-cover:not(.mgc-hero__media),
.page-template-default main > .wp-block-group:first-child,
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + .mgc-section--dark {
	position: relative;
	align-items: flex-end;
	min-height: 440px !important;
	padding-top: 150px !important;
	padding-bottom: 56px !important;
}
.mgc-cover:not(.mgc-hero__media) > .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(28, 27, 25, 0.9) 0%, rgba(28, 27, 25, 0.72) 50%, rgba(28, 27, 25, 0.4) 100%) !important;
	opacity: 1 !important;
}
.mgc-cover:not(.mgc-hero__media) .wp-block-cover__inner-container::before { content: none; }
.mgc-cover:not(.mgc-hero__media) .wp-block-cover__inner-container { z-index: 3; }
.mgc-cover:not(.mgc-hero__media)::before,
.page-template-default main > .wp-block-group:first-child::before,
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + .mgc-section--dark::before {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0 0 auto 0;
	height: 125px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 125'%3E%3Cg fill='none' stroke='%23EDD900' stroke-width='2'%3E%3Cpath d='M0 20H120M0 32H120'/%3E%3Cpath d='M5 125V87A55 55 0 0 1 115 87V125'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 120px 125px;
	-webkit-mask-image: linear-gradient(#000 50%, transparent);
	mask-image: linear-gradient(#000 50%, transparent);
	pointer-events: none;
}
.mgc-cover:not(.mgc-hero__media) :is(h1, .wp-block-post-title, .wp-block-query-title),
.page-template-default main > .wp-block-group:first-child :is(h1, .wp-block-post-title),
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + .mgc-section--dark :is(h1, h2) {
	font-size: clamp(2.125rem, 5vw, 4.25rem) !important;
	line-height: 1.06;
	color: #fff;
	text-shadow: none;
}
/* Leads keep a 40em measure but stay on the title's left edge. WordPress
   centres every constrained child, so the left margin is set from the
   column width each cover is authored with: 1320px on archive covers,
   860px on single covers, 1120px on page covers and the pillar band. */
main > .mgc-cover { --mgc-col: 1320px; }
.single main > .mgc-cover { --mgc-col: 860px; }
.wp-block-post-content .mgc-cover,
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + .mgc-section--dark { --mgc-col: 1120px; }
.mgc-cover:not(.mgc-hero__media) .mgc-lead,
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + .mgc-section--dark .mgc-lead {
	box-sizing: border-box;
	max-width: 40em !important;
	margin-left: max(0px, calc((100% - var(--mgc-col)) / 2)) !important;
	margin-right: auto !important;
}
.mgc-cover:not(.mgc-hero__media) .mgc-lead {
	font-family: var(--font-serif);
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	line-height: 1.5;
	color: #e8e4dd;
}
/* page.html (privacy and other plain pages): the white title band becomes ink. */
.page-template-default main > .wp-block-group:first-child {
	background: var(--ink-900) !important;
	border: 0 !important;
}
.page-template-default main > .wp-block-group:first-child > *,
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + .mgc-section--dark > * { position: relative; z-index: 3; }
/* The plain-page title sits on the same column as the text below it. */
.page-template-default main > .wp-block-group:first-child > * { box-sizing: border-box; width: 100%; max-width: var(--wp--style--global--content-size); margin-inline: auto; }
/* Pillar pages open with a dark section instead of a cover. */
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + .mgc-section--dark .mgc-lead { color: #e8e4dd; }

/* ---- Red bars inside page content: the Dusk pages carry no inline rule --- */
main .mgc-tricolor { display: none; }
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) { display: none; }
/* The hidden bar group leaves the next section its block-gap margin. */
.wp-block-post-content > .wp-block-group:not(:has(> :not(.mgc-tricolor))) + * { margin-block-start: 0; }

/* ---- Light sections: warm paper instead of white ------------------------ */
main .has-white-background-color { background-color: var(--paper-warm) !important; }

/* ---- Leads, pull quote and long reads in Lora --------------------------- */
.mgc-lead {
	font-family: var(--font-serif);
	font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
	line-height: 1.5;
}
.wp-block-quote.is-style-plain cite { font-family: var(--font-serif); font-style: italic; color: var(--red-600); }
.wp-block-post-content .mgc-section :is(p, li),
.single main .wp-block-post-content > :is(p, ul, ol) {
	font-family: var(--font-serif);
	font-size: 1.1875rem;
	line-height: 1.7;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* ---- Cards: editorial, an ink rule above, no box ------------------------- */
main .mgc-card {
	overflow: visible;
	background: transparent;
	border: 0;
	border-top: 2px solid var(--ink-900);
	border-radius: 0;
	box-shadow: none;
}
main .mgc-card--tricolor::before { display: none; }
main .wp-block-group.mgc-card { padding: 20px 0 0; }
main .wp-block-group.mgc-card.mgc-card--tricolor > * { margin-left: 0; margin-right: 0; }
main .wp-block-group.mgc-card.mgc-card--tricolor > .mgc-card__pad { padding: 20px 0 0; }
main .mgc-card img { border-radius: 0 !important; }
main .mgc-card .wp-block-post-featured-image { overflow: hidden; }
main .mgc-card:has(.wp-block-post-title a):hover { transform: none !important; box-shadow: none !important; }
main .mgc-card :is(h3, .wp-block-post-title) { font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.2; }
main .mgc-card .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Pillars: a colour rule on top instead of a boxed left bar ----------- */
main .mgc-pillar {
	overflow: visible;
	padding: 22px 0 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}
main .mgc-pillar::before { width: 100%; height: 4px; }

/* ---- Empty states read as one sentence, as on the home page ------------- */
.mgc-alert--warning {
	padding: 32px 0 8px;
	text-align: left;
	background: transparent;
	border: 0;
	border-top: 1px solid var(--ink-200);
	border-radius: 0;
}
.mgc-alert--warning::before { display: none; }
.mgc-alert--warning > div { max-width: none; margin: 0; font-size: 1.125rem; }
.mgc-alert--warning .mgc-alert__title {
	margin-bottom: 10px;
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.2;
}
/* The branch filter note. */
.mgc-alert:not(.mgc-alert--warning) {
	padding: 6px 0 6px 18px;
	background: transparent;
	border: 0;
	border-left: 3px solid var(--red-500);
	border-radius: 0;
}
.mgc-alert:not(.mgc-alert--warning) .mgc-alert__title {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.125rem;
	color: var(--red-600);
}

/* ---- Event date chips: gold labels on the cover, no white box ----------- */
.mgc-cover .mgc-datechip {
	padding: 2px 0 2px 14px !important;
	background: transparent !important;
	border: 0 !important;
	border-left: 2px solid var(--gold-500) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.mgc-cover .mgc-datechip .mgc-datechip__mon {
	font-family: var(--font-serif);
	font-style: italic;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gold-500) !important;
}
.mgc-cover .mgc-datechip p:not(.mgc-datechip__mon) {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	color: #fff !important;
}

/* ---- Small pieces -------------------------------------------------------- */
.wp-block-query-pagination :is(a, .page-numbers) { border-radius: 999px; }
.wpcf7-submit { border-radius: 999px; }
.error404 main > .mgc-eyebrow {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}
.error404 main > .mgc-eyebrow::after { height: 2px; }
