/* ==========================================================================
   MGC Dusk (2026-11-03)
   Loaded last by inc/zz-dusk.php. Prototype: docs/redesign/alternatives/alt-3.html.

   By request the masthead keeps its two tiers (logo band, menu rail, red rule)
   and the home hero keeps its frame (photo 58% + 2x2 tiles, 460px, stacked at
   1024px). Only their styling changes here. Headings move to Lora sitewide.

   mgc-redesign.css colours every `main p a` and `main li a` with a (0,4,4)
   selector. The few links on the dark Dusk sections therefore carry
   !important on colour and decoration; nothing else in this file needs it.
   ========================================================================== */

/* ---- Sitewide type ------------------------------------------------------ */
body h1,
body h2,
body h3,
body .wp-block-post-title {
	font-family: var(--font-serif);
	font-weight: 500;
	letter-spacing: -0.015em;
}
.mgc-eyebrow {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.125rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--red-600);
}
.mgc-eyebrow.is-ondark,
.mgc-cover .mgc-eyebrow { color: var(--gold-500); letter-spacing: 0; }
.wp-element-button,
.mgc-btn { border-radius: 999px; }

/* ---- Masthead: same two tiers, Dusk finish ------------------------------ */
.wp-site-blocks > header.wp-block-template-part {
	--mast-logo: 64px;
	--mast-band-pad: 12px;
	--mast-rail: 56px;
}
.mgc-brand__word {
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 2vw, 1.875rem);
	letter-spacing: 0;
	text-transform: none;
}
.mgc-brand__word-lead { font-weight: 600; }
.mgc-header__rail {
	background: var(--ink-900);
	border-top: 0;
	color: #fff;
}
/* The switcher renders as <nav class="mgc-lang"> holding plain links. */
.mgc-header__rail .mgc-lang { gap: 0; border: 1px solid var(--ink-700); }
.mgc-header__rail .mgc-lang a + a { border-left: 1px solid var(--ink-700); }
.mgc-header__rail .mgc-lang a {
	min-width: 44px;
	border-radius: 0;
	color: #fff;
}
.mgc-header__rail .mgc-lang a:hover { background: var(--ink-800); color: #fff; }
.mgc-header__rail .mgc-lang a.current-lang,
.mgc-header__rail .mgc-lang .current-lang > a { background: #fff; color: var(--ink-900); }
.mgc-header__rail .mgc-lang a:focus-visible { outline-color: var(--gold-500); }
.mgc-header .mgc-header__cta {
	align-self: stretch;
	box-sizing: border-box;
	min-height: var(--mast-rail);
	padding: 0 22px;
	border: 0;
	border-radius: 0;
}
.mgc-header .wp-block-navigation__responsive-container-open { color: #fff; }
.mgc-header .wp-block-navigation__responsive-container-open:hover { background: var(--ink-800); color: var(--gold-500); }
.mgc-header .wp-block-navigation__responsive-container-open:focus-visible { outline-color: var(--gold-500); }
@media (min-width: 1025px) {
	.mgc-header .mgc-nav .wp-block-navigation-item__content { color: #fff; }
	.mgc-header .mgc-nav .wp-block-navigation-item__content:hover,
	.mgc-header .mgc-nav .wp-block-navigation-item__content:focus-visible { color: var(--gold-500); outline-color: var(--gold-500); }
	.mgc-header .mgc-nav .wp-block-navigation-item__content::after { background: var(--gold-500); }
	.mgc-header .mgc-nav .current-menu-item > .wp-block-navigation-item__content,
	.mgc-header .mgc-nav .current-menu-ancestor > .wp-block-navigation-item__content {
		color: #fff;
		background-image: none;
	}
}
/* Phones: the rail cannot seat four language codes, the join button and the
   menu, so the switcher moves up into the logo band, centred on its height. */
@media (max-width: 720px) {
	.mgc-header__rail .mgc-lang {
		position: absolute;
		top: calc(-1 * (var(--mast-logo) / 2 + var(--mast-band-pad) + 23px));
		right: var(--mast-gutter);
		border-color: var(--ink-200);
	}
	.mgc-header__rail .mgc-lang a { color: var(--ink-900); }
	.mgc-header__rail .mgc-lang a + a { border-left-color: var(--ink-200); }
	.mgc-header__rail .mgc-lang a:hover { background: var(--ink-100); color: var(--ink-900); }
	.mgc-header__rail .mgc-lang a.current-lang,
	.mgc-header__rail .mgc-lang .current-lang > a { background: var(--ink-900); color: #fff; }
	.mgc-header__rail .mgc-lang a:focus-visible { outline-color: var(--focus-ring); }
}
@media (max-width: 400px) {
	.wp-site-blocks > header.wp-block-template-part { --mast-logo: 52px; }
	.mgc-header__rail .mgc-lang a { flex: 0 0 36px; min-width: 0; padding: 0; }
}

/* ---- Home: no page-colour strips between the full-width sections ------- */
.home .wp-block-post-content > * { margin-block-start: 0; }

/* ---- Home hero: live frame, Štip at dusk -------------------------------- */
/* 150% height, anchored top, keeps the parked car in the panorama out of frame. */
.mgc-dusk-hero .wp-block-cover__image-background { height: 150%; }
/* The full-photo gradient replaces the redesign layer's local text scrim. */
.mgc-dusk-hero .wp-block-cover__inner-container::before { content: none; }
/* Static, so the bridge can be placed against the whole photo; the text keeps
   its own stacking above the gradient. */
.mgc-dusk-hero .wp-block-cover__inner-container { position: static; }
.mgc-dusk-hero .wp-block-cover__inner-container > * { position: relative; z-index: 2; }
.mgc-dusk-hero .wp-block-cover__inner-container > .mgc-dusk-bridge {
	position: absolute;
	inset: 0 0 auto 0;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}
.mgc-dusk-bridge path {
	fill: none;
	stroke: var(--gold-500);
	stroke-width: 2;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: mgc-dusk-draw 2.4s cubic-bezier(0.5, 0, 0.2, 1) 0.2s forwards;
}
.mgc-dusk-bridge path:nth-of-type(2) { animation-delay: 0.35s; }
.mgc-dusk-bridge path:nth-of-type(3) { animation-delay: 0.5s; }
@keyframes mgc-dusk-draw { to { stroke-dashoffset: 0; } }
.mgc-dusk-hero .mgc-eyebrow { font-size: 1.25rem; letter-spacing: 0; }
.mgc-dusk-hero h1 { color: #fff; font-weight: 500; line-height: 1.08; margin-bottom: 24px; text-shadow: none; }
.mgc-dusk-hero .mgc-btn--onphoto {
	min-height: 48px;
	padding: 12px 24px;
	border-color: var(--red-500);
	background: var(--red-500);
	color: #fff;
	font-size: 1rem;
}
.mgc-dusk-hero .mgc-btn--onphoto:hover { border-color: var(--red-600); background: var(--red-600); color: #fff; }

/* Tiles: same colours and grid; labels in Lora, set bottom left, with a fine
   inner frame. Ink text on blue (5.12:1) replaces white on blue (3.36:1). */
.mgc-hero .mgc-tile {
	align-items: flex-start;
	justify-content: flex-end;
	gap: 12px;
	padding: clamp(18px, 2vw, 30px);
	text-align: left;
	outline: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	outline-offset: -12px;
}
.mgc-hero .mgc-tile svg { width: 44px; height: 44px; }
.mgc-hero .mgc-tile:hover svg { transform: none; }
.mgc-hero .mgc-tile__label {
	display: block;
	min-height: 0;
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: clamp(1.125rem, 1.6vw, 1.5rem);
	letter-spacing: 0;
}
.mgc-hero .mgc-tile:hover .mgc-tile__label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mgc-hero .mgc-tile:focus-visible { outline: 3px solid currentColor; outline-offset: -10px; }
.mgc-hero .mgc-tile--red,
.mgc-hero .mgc-tile--red:hover { background: var(--red-500); color: #fff; }
.mgc-hero .mgc-tile--ink,
.mgc-hero .mgc-tile--ink:hover { background: var(--ink-800); color: #fff; }
.mgc-hero .mgc-tile--blue,
.mgc-hero .mgc-tile--blue:hover { background: var(--blue-500); color: var(--ink-900); }
.mgc-hero .mgc-tile--gold,
.mgc-hero .mgc-tile--gold:hover { background: var(--gold-500); color: var(--ink-900); }
@media (max-width: 600px) {
	.mgc-hero .mgc-tile { gap: 8px; padding: 16px; outline-offset: -8px; }
	.mgc-hero .mgc-tile svg { width: 36px; height: 36px; }
	.mgc-hero .mgc-tile__label { font-size: 1.125rem; }
}

/* ---- Shared Dusk pieces ------------------------------------------------- */
.mgc-dusk-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.mgc-dusk-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.mgc-dusk-links a,
a.mgc-dusk-more {
	display: inline-block;
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 1.0625rem;
	line-height: 44px;
	color: var(--gold-500) !important;
	text-decoration: underline !important;
	text-underline-offset: 5px;
	white-space: nowrap;
}
.mgc-dusk-links a:hover,
a.mgc-dusk-more:hover { color: #fff !important; }

/* ---- Programme: one sentence while nothing is published ---------------- */
.mgc-dusk-prog {
	background: var(--ink-900);
	color: var(--ink-300);
	padding: clamp(48px, 7vw, 104px) 28px;
}
.mgc-dusk-prog h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 14px; }
.mgc-dusk-prog__empty {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 56px;
}
.mgc-dusk-prog__lead {
	max-width: 20em;
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.625rem, 3.4vw, 3rem);
	line-height: 1.2;
	color: #fff;
}
.mgc-dusk-prog:has(.wp-block-post-template) .mgc-dusk-prog__empty { display: none; }
.mgc-dusk-prog:not(:has(.wp-block-post-template)) .mgc-dusk-prog__full { display: none; }
.mgc-dusk-prog__full { gap: 40px clamp(40px, 6vw, 96px); margin: 0; }
.mgc-dusk-prog .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.mgc-dusk-row {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0 20px;
	min-height: 44px;
	padding: 14px 0;
	border-top: 1px solid var(--ink-700);
}
.mgc-dusk-row:not(:has(.mgc-dusk-row__date)) { grid-template-columns: minmax(0, 1fr) auto; }
.mgc-dusk-row > * { margin: 0; }
.mgc-dusk-row__date {
	grid-row: span 2;
	min-width: 86px;
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--gold-500);
}
.mgc-dusk-row__title { font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.mgc-dusk-row__title a { color: #fff !important; text-decoration: none !important; }
.mgc-dusk-row__title a:hover { text-decoration: underline !important; }
.mgc-dusk-row__title a::after { content: ""; position: absolute; inset: 0; }
.mgc-dusk-row__branch { position: relative; z-index: 1; grid-column: -2; font-size: 1rem; }
.mgc-dusk-row__branch a { color: var(--ink-300) !important; }
.mgc-dusk-prog .wp-block-query-no-results p { color: var(--ink-300); }

/* ---- What is MGC: one long read on paper -------------------------------- */
.mgc-dusk-who { background: var(--paper-warm); padding: clamp(56px, 9vw, 136px) 28px; }
.mgc-dusk-who .wp-block-columns { gap: 16px clamp(24px, 5vw, 72px); margin: 0; }
.mgc-dusk-who h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--red-600); }
.mgc-dusk-who__text {
	max-width: 32em;
	font-family: var(--font-serif);
	font-size: clamp(1.375rem, 2.5vw, 2.25rem);
	line-height: 1.42;
	color: var(--ink-900);
	hyphens: auto;
}

/* ---- Pillars: three stepped columns ------------------------------------- */
.mgc-dusk-work { background: var(--paper-warm); padding: 0 28px clamp(64px, 8vw, 120px); }
.mgc-dusk-work__head { gap: 12px clamp(24px, 5vw, 72px); margin: 0 0 clamp(28px, 4vw, 56px); }
.mgc-dusk-work h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 12px; }
.mgc-dusk-work__intro { max-width: 42em; font-size: 1.1875rem; }
.mgc-dusk-steps { gap: clamp(16px, 2.4vw, 36px); margin: 0; }
.mgc-dusk-steps > .wp-block-column:nth-child(2) { margin-top: 72px; }
.mgc-dusk-steps > .wp-block-column:nth-child(3) { margin-top: 144px; }
.mgc-dusk-steps figure { margin: 0; }
.mgc-dusk-steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mgc-dusk-steps h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); margin: 16px 0 6px; }
.mgc-dusk-steps p { hyphens: auto; }

/* ---- Branches: two full-height photos ----------------------------------- */
.mgc-dusk-towns { padding: 0; background: var(--ink-900); }
.mgc-dusk-towns > .wp-block-columns { gap: 2px; margin: 0; }
.mgc-dusk-town { min-height: clamp(420px, 62vw, 680px) !important; padding: clamp(20px, 3vw, 44px) !important; }
.mgc-dusk-town .wp-block-cover__image-background { transition: transform 0.8s ease; }
.mgc-dusk-town:hover .wp-block-cover__image-background { transform: scale(1.03); }
.mgc-dusk-town h3 { margin: 0 0 6px; color: #fff; font-size: clamp(2.5rem, 6vw, 5.5rem); }
.mgc-dusk-town p { max-width: 30em; margin: 0; color: #e8e4dd; }

/* ---- Join: a paper doorway, with the country links inside --------------- */
.mgc-dusk-door { background: var(--ink-900); padding: clamp(56px, 8vw, 112px) 28px 0; }
.mgc-dusk-door__arch {
	width: min(760px, 100%);
	margin: 0 auto;
	padding: clamp(72px, 11vw, 150px) clamp(24px, 6vw, 84px) clamp(40px, 5vw, 64px);
	border-radius: 380px 380px 0 0;
	background: var(--paper-warm);
	text-align: center;
}
.mgc-dusk-door h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin: 0 0 16px; }
.mgc-dusk-door p { margin: 0 0 24px; hyphens: auto; }
.mgc-dusk-door .wp-block-buttons { justify-content: center; }
.mgc-dusk-lands {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--ink-200);
}
.mgc-dusk-lands a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 1.125rem;
	color: var(--ink-900) !important;
	text-decoration: none !important;
}
.mgc-dusk-lands a:hover { text-decoration: underline !important; }
.mgc-dusk-lands img { width: 30px; height: auto; box-shadow: 0 0 0 1px var(--ink-200); }

/* ---- Small screens ------------------------------------------------------ */
@media (max-width: 781px) {
	.mgc-dusk-steps > .wp-block-column:nth-child(n) { margin-top: 0; }
	.mgc-dusk-steps img { aspect-ratio: 3 / 2; }
	.mgc-dusk-row__date { min-width: 62px; font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
	.mgc-dusk-bridge path { animation: none; stroke-dashoffset: 0; }
	.mgc-dusk-town .wp-block-cover__image-background { transition: none; }
}
