/* =========================================================
   Elands Marathon theme
   Palette taken from the N4 itself: asphalt, the yellow edge
   line, white kerb paint and the overcast Lowveld sky.
   Type: Barlow (from highway signage) + Barlow Condensed.
   Works for plain WordPress markup (.em-section > .em-wrap)
   and Elementor markup (.elementor-section.em-section).
   ========================================================= */

:root {
	--em-yellow: #F1E040;
	--em-yellow-deep: #E0CC1E;
	--em-asphalt: #232427;
	--em-asphalt-2: #2E3033;
	--em-shoulder: #55595B;
	--em-overcast: #ECEDEA;
	--em-line: #D3D5D0;
	--em-white: #FFFFFF;
	--em-text: #2E3033;
	--em-muted: #5B5F62;
	--em-wa: #25D366;

	--em-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--em-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

	--em-wrap: 1200px;
	--em-gutter: clamp(16px, 4vw, 32px);
	--em-pad: clamp(56px, 8vw, 104px);
	--em-radius: 6px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--em-white);
	color: var(--em-text);
	font-family: var(--em-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--em-yellow-deep); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--em-asphalt); outline-offset: 3px; }
.em-hero :focus-visible, .em-header :focus-visible, .em-footer :focus-visible,
.em-dates :focus-visible, .em-whatsapp-band :focus-visible, .em-callout :focus-visible { outline-color: var(--em-yellow); }

h1, h2, h3, h4 {
	font-family: var(--em-display);
	color: var(--em-asphalt);
	font-weight: 800;
	line-height: 1.04;
	margin: 0 0 .5em;
	letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }
p, ul, ol, dl, table, figure { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

.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;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 16px; background: var(--em-yellow); color: var(--em-asphalt);
}

.em-wrap { width: 100%; max-width: calc(var(--em-wrap) + 2 * var(--em-gutter)); margin: 0 auto; padding: 0 var(--em-gutter); }

/* Elementor: use the same content width */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--em-wrap); }
body .elementor-widget-heading .elementor-heading-title { line-height: 1.04; font-family: var(--em-display); font-weight: 800; }
body .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(2.6rem, 6vw, 4.5rem); }
body .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(2rem, 4vw, 3rem); }
body .elementor-widget-heading h3.elementor-heading-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; }
.elementor-widget-text-editor, .elementor-widget-html, .elementor-widget-shortcode { color: inherit; }

/* ---------- buttons ---------- */
.em-button {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .8em 1.35em .78em;
	border: 2px solid transparent; border-radius: 4px;
	font-family: var(--em-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
	letter-spacing: .01em; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.em-button .em-icon { width: 1.15em; height: 1.15em; }
.em-button--primary { background: var(--em-yellow); color: var(--em-asphalt); }
.em-button--primary:hover { background: var(--em-yellow-deep); color: var(--em-asphalt); }
.em-button--dark { background: var(--em-asphalt); color: var(--em-white); }
.em-button--dark:hover { background: #000; color: var(--em-yellow); }
.em-button--outline { border-color: var(--em-asphalt); color: var(--em-asphalt); }
.em-button--outline:hover { background: var(--em-asphalt); color: var(--em-white); }
.em-button--light { border-color: rgba(255,255,255,.7); color: var(--em-white); }
.em-button--light:hover { background: var(--em-white); color: var(--em-asphalt); border-color: var(--em-white); }
.em-button--whatsapp { background: var(--em-wa); color: #0B2914; }
.em-button--whatsapp:hover { background: #1EBE5A; color: #0B2914; }
.em-actions .elementor-shortcode, .em-shortcode.em-actions, .em-actions > .elementor-widget-container > .elementor-shortcode {
	display: flex; flex-wrap: wrap; gap: 12px;
}
.em-actions { margin-top: 1.75rem; }

/* ---------- topbar + header ---------- */
.em-topbar { background: var(--em-yellow); color: var(--em-asphalt); font-size: .9rem; font-weight: 600; }
.em-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.em-topbar p { margin: 0; }
.em-topbar__phone { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.em-topbar__phone .em-icon { width: 16px; height: 16px; }

.em-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--em-asphalt); color: var(--em-white);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-bar .em-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .em-header { top: 0; position: relative; } }
.em-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.em-brand img, .em-brand .custom-logo { display: block; height: 60px; width: auto; }
.em-header.is-scrolled .em-brand img { height: 48px; }
.em-brand img { transition: height .2s ease; }

.em-nav { display: flex; align-items: center; gap: 28px; }
.em-menu, .em-menu ul { list-style: none; margin: 0; padding: 0; }
.em-menu { display: flex; align-items: center; gap: 4px; }
.em-menu > li { position: relative; display: flex; align-items: center; }
.em-menu a {
	display: block; padding: 10px 12px;
	font-weight: 600; font-size: .98rem; color: var(--em-white); text-decoration: none;
	border-radius: 3px;
}
.em-menu > li > a:hover, .em-menu > li.current-menu-item > a, .em-menu > li.current-menu-ancestor > a, .em-menu > li.current_page_item > a {
	color: var(--em-yellow);
}
.em-menu > li.current-menu-item > a, .em-menu > li.current_page_item > a { box-shadow: inset 0 -3px 0 var(--em-yellow); border-radius: 0; }
.em-subtoggle {
	width: 28px; height: 28px; margin-left: -6px; padding: 0; border: 0; background: transparent; color: var(--em-white); cursor: pointer;
	display: inline-grid; place-items: center;
}
.em-subtoggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.em-subtoggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.em-menu .sub-menu, .em-menu .children {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
	background: var(--em-white); border-radius: var(--em-radius); padding: 8px;
	box-shadow: 0 18px 40px rgba(0,0,0,.28);
	border-top: 4px solid var(--em-yellow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.em-menu > li:hover > .sub-menu, .em-menu > li:focus-within > .sub-menu, .em-menu > li.is-open > .sub-menu,
.em-menu > li:hover > .children, .em-menu > li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.em-menu .sub-menu a, .em-menu .children a { color: var(--em-asphalt); padding: 9px 12px; font-weight: 500; }
.em-menu .sub-menu a:hover, .em-menu .children a:hover { background: var(--em-overcast); color: var(--em-asphalt); }
.em-menu .sub-menu .current-menu-item > a { background: var(--em-overcast); font-weight: 600; }

.em-nav-toggle {
	display: none; align-items: center; gap: 10px;
	background: transparent; border: 2px solid rgba(255,255,255,.35); border-radius: 4px;
	color: var(--em-white); padding: 9px 14px; font: 700 1.05rem/1 var(--em-display); cursor: pointer;
}
.em-nav-toggle__bars, .em-nav-toggle__bars::before, .em-nav-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease;
}
.em-nav-toggle__bars::before, .em-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.em-nav-toggle__bars::before { top: -6px; }
.em-nav-toggle__bars::after { top: 6px; }
.em-nav-toggle[aria-expanded="true"] .em-nav-toggle__bars { background: transparent; }
.em-nav-toggle[aria-expanded="true"] .em-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.em-nav-toggle[aria-expanded="true"] .em-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
	.em-nav-toggle { display: inline-flex; }
	.em-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		background: var(--em-asphalt); padding: 8px var(--em-gutter) 24px;
		border-top: 1px solid rgba(255,255,255,.1);
		max-height: calc(100vh - 84px); overflow-y: auto;
	}
	.em-nav.is-open { display: flex; }
	.em-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.em-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
	.em-menu > li > a { flex: 1; padding: 14px 0; font-size: 1.1rem; }
	.em-menu > li.current-menu-item > a, .em-menu > li.current_page_item > a { box-shadow: none; }
	.em-subtoggle { width: 44px; height: 44px; margin: 0; }
	.em-menu .sub-menu, .em-menu .children {
		position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none;
		background: transparent; box-shadow: none; border: 0; padding: 0 0 12px 12px;
	}
	.em-menu > li:hover > .sub-menu, .em-menu > li:focus-within > .sub-menu { display: none; }
	.em-menu > li.is-open > .sub-menu, .em-menu > li.is-open > .children { display: block; }
	.em-menu .sub-menu a, .em-menu .children a { color: rgba(255,255,255,.85); padding: 10px 0; }
	.em-menu .sub-menu a:hover { background: transparent; color: var(--em-yellow); }
	.em-menu .sub-menu .current-menu-item > a { background: transparent; color: var(--em-yellow); }
	.em-header__cta { align-self: flex-start; }
}
@media (max-width: 600px) {
	.em-topbar__inner { font-size: .82rem; }
	.em-topbar__phone span { display: none; }
	.em-header__inner { min-height: 72px; }
	.em-brand img, .em-brand .custom-logo { height: 48px; }
}

/* ---------- page header ---------- */
.em-page-header {
	position: relative; background: var(--em-asphalt) center / cover no-repeat; color: var(--em-white);
	padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
	border-bottom: 6px solid var(--em-yellow);
}
.em-page-header.has-image::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(35,36,39,.94) 0%, rgba(35,36,39,.78) 50%, rgba(35,36,39,.45) 100%);
}
.em-page-header > .em-wrap { position: relative; }
.em-page-header__title { color: var(--em-white); font-size: clamp(2.6rem, 7vw, 5rem); margin: 0; max-width: 18ch; }
.em-page-header__parent { margin: 0 0 8px; font-weight: 600; }
.em-page-header__parent a { color: var(--em-yellow); text-decoration: none; }
.em-page-header__parent a:hover { text-decoration: underline; }
.em-page-header__meta { margin: 12px 0 0; color: rgba(255,255,255,.75); }

/* ---------- content containers ---------- */
.em-entry > :not(.em-section):not(.elementor):not(.wp-block-html):not(.alignfull) {
	max-width: 760px; margin-left: auto; margin-right: auto; padding-left: var(--em-gutter); padding-right: var(--em-gutter);
}
.em-entry:not(.em-entry--full) > :not(.em-section):not(.elementor):first-child { margin-top: var(--em-pad); }
.em-entry:not(.em-entry--full) > :not(.em-section):not(.elementor):last-child { margin-bottom: var(--em-pad); }
.em-prose { max-width: 760px; padding-top: 48px; padding-bottom: 48px; }

/* ---------- sections (plain + Elementor) ---------- */
.em-section { position: relative; padding: var(--em-pad) 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.em-cols { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: var(--em-cols, 1fr); align-items: start; }
.em-cols--2 { grid-template-columns: var(--em-cols, repeat(2, minmax(0, 1fr))); }
.em-cols--3 { grid-template-columns: var(--em-cols, repeat(3, minmax(0, 1fr))); }
.em-cols--4 { grid-template-columns: var(--em-cols, repeat(4, minmax(0, 1fr))); }
.em-col { min-width: 0; display: flex; flex-direction: column; }
.em-col > * + * { margin-top: 1.25rem; }
@media (max-width: 1000px) { .em-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .em-cols--2, .em-cols--3, .em-cols--4 { grid-template-columns: minmax(0, 1fr); } }

/* section heading: the yellow edge line */
.em-section :is(h2.em-heading, .elementor-widget-heading h2.elementor-heading-title) {
	position: relative; padding-left: 22px;
}
.em-section :is(h2.em-heading, .elementor-widget-heading h2.elementor-heading-title)::before {
	content: ""; position: absolute; left: 0; top: .08em; bottom: .1em; width: 6px; background: var(--em-yellow); border-radius: 1px;
}

.em-lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 36em; }
.em-small { font-size: .92rem; color: var(--em-muted); }
.em-intro p { max-width: 42em; font-size: 1.15rem; }
.em-intro { padding-bottom: 0; }
.em-intro + .em-section { padding-top: 40px; }
.em-narrow .em-wrap, .em-narrow > .elementor-container { max-width: 820px !important; }

/* lists: lane-marking bullets */
.em-list { list-style: none; padding: 0; margin: 0; }
.em-list li { position: relative; padding: .5em 0 .5em 28px; border-bottom: 1px solid var(--em-line); }
.em-list li:last-child { border-bottom: 0; }
.em-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 14px; height: 4px; background: var(--em-asphalt); border-radius: 1px; }

/* callout */
.em-callout {
	background: var(--em-asphalt); color: rgba(255,255,255,.9); border-radius: var(--em-radius);
	padding: clamp(24px, 3vw, 36px); border-top: 6px solid var(--em-yellow);
}
.em-callout h3 { color: var(--em-yellow); margin-bottom: .4em; }
.em-callout strong { color: var(--em-white); }
.em-callout a { color: var(--em-yellow); }
.em-callout .em-list li { border-color: rgba(255,255,255,.12); }
.em-callout .em-list li::before { background: var(--em-yellow); }

/* photos */
.em-photo img { display: block; width: 100%; border-radius: var(--em-radius); }
.em-photo figcaption, .em-photo .widget-image-caption { margin-top: 10px; font-size: .92rem; color: var(--em-muted); }
.em-image { margin: 0; }

/* ---------- hero ---------- */
.em-hero {
	min-height: min(86vh, 820px); display: flex; align-items: flex-end;
	padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(40px, 6vw, 72px);
	background-color: var(--em-asphalt); color: var(--em-white);
}
.em-hero.elementor-section { align-items: flex-end; }
.em-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background:
		linear-gradient(0deg, rgba(35,36,39,1) 0%, rgba(35,36,39,0) 28%),
		linear-gradient(90deg, rgba(35,36,39,.93) 0%, rgba(35,36,39,.74) 48%, rgba(35,36,39,.2) 100%);
}
.em-hero > * { position: relative; z-index: 1; width: 100%; }
.em-hero .em-cols { align-items: end; }
.em-hero > .elementor-container { align-items: flex-end; }
.em-hero :is(h1, .elementor-heading-title) {
	color: var(--em-white); text-transform: uppercase; font-size: clamp(3rem, 8.4vw, 7rem); line-height: .9; letter-spacing: -.01em;
	margin: 0 0 .25em; max-width: 9ch;
}
body .em-hero .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(3rem, 8.4vw, 7rem); line-height: .9; }
.em-hero__date {
	display: inline-block; margin: 0 0 18px; padding: 6px 12px 5px;
	background: var(--em-yellow); color: var(--em-asphalt);
	font: 800 clamp(1.2rem, 2vw, 1.6rem)/1 var(--em-display); border-radius: 3px;
}
.em-hero .em-lead { color: rgba(255,255,255,.9); }
.em-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.em-tags li { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 5px 13px; font-size: .92rem; font-weight: 600; }
.em-countdown-title { margin: 0 0 10px; font: 700 1.2rem/1 var(--em-display); color: var(--em-yellow); }
.em-hero__note { margin-top: 14px; font-size: .92rem; color: rgba(255,255,255,.75); }

/* countdown */
.em-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.em-countdown__unit {
	background: rgba(20,21,23,.72); border: 1px solid rgba(255,255,255,.14); border-radius: var(--em-radius);
	padding: 14px 6px 12px; text-align: center; backdrop-filter: blur(4px);
}
.em-countdown__num { display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--em-display); color: var(--em-white); font-variant-numeric: tabular-nums; }
.em-countdown__label { display: block; margin-top: 6px; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.7); }
.em-countdown.is-finished { display: block; font: 800 1.6rem/1.2 var(--em-display); color: var(--em-yellow); }
.em-section:not(.em-hero) .em-countdown__unit { background: var(--em-asphalt); }

/* ---------- elevation ---------- */
.em-hero-profile { padding: 0 0 36px; background: var(--em-asphalt); color: var(--em-white); }
.em-elevation { margin: 0; position: relative; }
.em-elevation svg { display: block; width: 100%; overflow: visible; }
.em-elevation--hero svg { height: clamp(70px, 10vw, 120px); }
.em-elevation--full svg { height: clamp(140px, 22vw, 240px); }
.em-elevation__area { fill: rgba(35,36,39,.09); }
.em-elevation__line { fill: none; stroke: var(--em-asphalt); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.em-elevation--hero .em-elevation__area { fill: rgba(241,224,64,.1); }
.em-elevation--hero .em-elevation__line { stroke: var(--em-yellow); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; animation: em-draw 2.4s cubic-bezier(.3,.1,.2,1) .3s both; }
@keyframes em-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.em-elevation__grid { stroke: rgba(35,36,39,.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.em-elevation__labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: .95rem; }
.em-elevation__labels strong { font: 800 1.35rem/1 var(--em-display); margin-right: 4px; }
.em-elevation--hero .em-elevation__labels { color: rgba(255,255,255,.8); }
.em-elevation--hero .em-elevation__labels strong { color: var(--em-yellow); }
.em-elevation--full .em-elevation__labels { position: absolute; top: 0; left: 0; right: 0; margin: 0; pointer-events: none; }
.em-elevation--full .em-elevation__start { transform: translateY(-115%); }
.em-elevation--full .em-elevation__end { align-self: flex-end; transform: translateY(clamp(70px, 14vw, 160px)); text-align: right; }
.em-elevation__axis { position: relative; height: 22px; margin-top: 6px; font-size: .8rem; color: var(--em-muted); font-variant-numeric: tabular-nums; }
.em-elevation__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.em-elevation__axis span:first-child { transform: none; }
.em-elevation__axis span:last-child { transform: translateX(-100%); }
@media (max-width: 600px) {
	.em-elevation__axis span:nth-child(even):not(:last-child), .em-elevation__axis span:nth-child(9) { display: none; }
	.em-elevation--full .em-elevation__labels { position: static; margin-top: 12px; }
	.em-elevation--full .em-elevation__start, .em-elevation--full .em-elevation__end { transform: none; }
	.em-elevation--full .em-elevation__axis { margin-top: 6px; }
}
.em-route .em-elevation--full, .em-route-page .em-elevation--full { margin-top: 56px; }

/* ---------- distances: race bibs ---------- */
.em-intro, .em-bibs, .em-route, .em-charities, .em-route-other, .em-bus-summary { background: var(--em-overcast); }
.em-bibs > .elementor-container > .elementor-column > .elementor-widget-wrap { height: 100%; }
.em-bib {
	position: relative; flex: 1; height: 100%;
	background: var(--em-white); border-radius: var(--em-radius);
	padding: 0 28px 28px; overflow: hidden;
	box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 12px 28px -16px rgba(35,36,39,.35);
	background-image:
		radial-gradient(circle at 16px 52px, var(--em-overcast) 0 4px, transparent 5px),
		radial-gradient(circle at calc(100% - 16px) 52px, var(--em-overcast) 0 4px, transparent 5px),
		radial-gradient(circle at 16px calc(100% - 16px), var(--em-overcast) 0 4px, transparent 5px),
		radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), var(--em-overcast) 0 4px, transparent 5px);
}
.em-bib.elementor-widget { margin-bottom: 0; }
.em-bib__race {
	margin: 0 -28px 18px; padding: 10px 28px;
	background: var(--em-yellow); color: var(--em-asphalt);
	font: 700 1.2rem/1.2 var(--em-display);
}
.em-bib__dist {
	margin: 0 0 14px; font: 800 clamp(4.5rem, 9vw, 6.75rem)/.85 var(--em-display);
	color: var(--em-asphalt); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.em-bib__dist small { font-size: .32em; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.em-bib__facts { list-style: none; margin: 0; padding: 14px 0 0; border-top: 2px dashed var(--em-line); }
.em-bib__facts li { padding: 4px 0; }
.em-bib__facts strong { font: 800 1.2rem/1 var(--em-display); color: var(--em-asphalt); }

/* ---------- about ---------- */
.em-about .em-cols, .em-about > .elementor-container { align-items: center; }

/* ---------- dates: timeline ---------- */
.em-dates { background: var(--em-asphalt); color: var(--em-white); }
.em-dates :is(h2, .elementor-heading-title) { color: var(--em-white); }
.em-timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.em-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: repeating-linear-gradient(90deg, var(--em-yellow) 0 28px, transparent 28px 44px); }
.em-timeline li { position: relative; padding: 36px 16px 0 0; }
.em-timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--em-asphalt); border: 4px solid var(--em-yellow); }
.em-timeline li:last-child::before { background: var(--em-yellow); }
.em-timeline time { display: block; font: 800 clamp(1.5rem, 2.4vw, 2rem)/1 var(--em-display); color: var(--em-yellow); margin-bottom: 8px; }
.em-timeline span { display: block; color: rgba(255,255,255,.88); max-width: 16ch; }
@media (max-width: 860px) {
	.em-timeline { grid-template-columns: 1fr; gap: 26px; }
	.em-timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--em-yellow) 0 22px, transparent 22px 34px); }
	.em-timeline li { padding: 0 0 0 44px; }
	.em-timeline span { max-width: none; }
}

/* ---------- info ---------- */
.em-info .em-callout + .em-actions, .em-info .em-actions { margin-top: 20px; }

/* ---------- whatsapp band ---------- */
.em-whatsapp-band { background-color: var(--em-asphalt); color: var(--em-white); }
.em-whatsapp-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,36,39,.95) 0%, rgba(35,36,39,.82) 55%, rgba(35,36,39,.55) 100%); }
.em-whatsapp-band > * { position: relative; z-index: 1; }
.em-whatsapp-band :is(h2, .elementor-heading-title) { color: var(--em-white); }
.em-whatsapp-band p { max-width: 36em; font-size: 1.15rem; color: rgba(255,255,255,.88); }

/* ---------- tables ---------- */
.em-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.em-facts { width: 100%; border-collapse: collapse; }
.em-facts th, .em-facts td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--em-line); }
.em-facts th { width: 36%; padding-right: 20px; font-weight: 600; color: var(--em-muted); }
.em-facts td { font-weight: 500; }
.em-fees { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.em-fees th, .em-fees td { padding: 10px 0; border-bottom: 2px solid var(--em-asphalt); text-align: left; }
.em-fees th { font: 700 1.5rem/1 var(--em-display); }
.em-fees td { text-align: right; font: 800 2.4rem/1 var(--em-display); font-variant-numeric: tabular-nums; }

.em-prize { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.em-prize caption { text-align: left; caption-side: top; padding-bottom: 12px; color: var(--em-muted); font-size: .95rem; }
.em-prize thead th { background: var(--em-asphalt); color: var(--em-white); font: 700 1.15rem/1 var(--em-display); padding: 14px 12px; text-align: right; }
.em-prize thead th:first-child, .em-prize thead th:nth-child(2) { text-align: left; }
.em-prize tbody th { text-align: left; font: 800 1.2rem/1 var(--em-display); padding: 10px 12px; color: var(--em-asphalt); }
.em-prize td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--em-line); }
.em-prize td:nth-child(2) { text-align: left; color: var(--em-muted); }
.em-prize tr.em-prize__group > * { border-top: 2px solid var(--em-asphalt); }
.em-prize tbody tr:first-child > * { border-top: 0; }
.em-prize__none { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(35,36,39,.05) 6px 8px); }
.em-prize tbody tr:not(.em-prize__group) th { border-bottom: 0; }
.em-bus-table { min-width: 640px; }
.em-bus-table thead th, .em-bus-table td { text-align: left !important; }
.em-bus-table tbody th { font-size: 1.05rem; white-space: nowrap; }
.em-bus-table td:nth-child(2) { color: inherit; }
.em-bus-table tr > * { border-top: 0 !important; border-bottom: 1px solid var(--em-line); }
.em-prize-section .em-cols, .em-prize-section > .elementor-container { align-items: flex-start; }

/* ---------- FAQ ---------- */
.em-faq details { border-bottom: 1px solid var(--em-line); }
.em-faq details:first-child { border-top: 1px solid var(--em-line); }
.em-faq summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 20px 48px 20px 0; font: 700 1.4rem/1.2 var(--em-display); color: var(--em-asphalt);
}
.em-faq summary::-webkit-details-marker { display: none; }
.em-faq summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
	background: linear-gradient(var(--em-asphalt), var(--em-asphalt)) center / 14px 3px no-repeat,
		linear-gradient(var(--em-asphalt), var(--em-asphalt)) center / 3px 14px no-repeat,
		var(--em-yellow);
	border-radius: 50%; transition: transform .2s ease;
}
.em-faq details[open] summary::after { transform: rotate(45deg); }
.em-faq__answer { padding: 0 48px 22px 0; }

/* contact list */
.em-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.em-contact li { display: flex; align-items: center; gap: 10px; }
.em-contact a { font-weight: 600; text-decoration: none; }
.em-contact a:hover { text-decoration: underline; }
.em-contact .em-icon { flex: none; color: var(--em-shoulder); }

/* ---------- route page ---------- */
.em-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 32px 0 0; border-top: 2px solid var(--em-asphalt); }
.em-stats > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--em-line); }
.em-stats dt { font-size: .92rem; color: var(--em-muted); font-weight: 600; }
.em-stats dd { margin: 4px 0 0; font: 800 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--em-display); color: var(--em-asphalt); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .em-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.em-route-map { padding-top: 0; }

/* ---------- charity, rules, buses ---------- */
.em-charity, .em-rule, .em-bus {
	height: 100%; background: var(--em-white); border-radius: var(--em-radius); padding: 26px 26px 24px;
	box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 10px 24px -18px rgba(35,36,39,.4);
}
.em-col > .em-charity, .em-col > .em-rule, .em-col > .em-bus { flex: 1; }
.em-charity { border-left: 6px solid var(--em-yellow); }
.em-charities + .em-charities { padding-top: 0; }
.em-charities { padding-bottom: clamp(24px, 3vw, 40px); }
.em-charities:last-child { padding-bottom: var(--em-pad); }
.em-charity h3 { margin-bottom: .35em; }
.em-charity p { color: var(--em-muted); font-size: .98rem; }
.em-charities > .elementor-container > .elementor-column > .elementor-widget-wrap,
.em-rules > .elementor-container > .elementor-column > .elementor-widget-wrap,
.em-buses > .elementor-container > .elementor-column > .elementor-widget-wrap { height: 100%; }
.em-rules { background: var(--em-overcast); padding-top: 0; }
.em-intro + .em-rules { padding-top: 40px; }
.em-rules + .em-rules { padding-top: 0; }
.em-rules:last-child { padding-bottom: var(--em-pad); }
.em-rules { padding-bottom: clamp(24px, 3vw, 40px); }
.em-rule h3 { display: flex; align-items: center; gap: 14px; }
.em-rule-num {
	display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 4px;
	background: var(--em-yellow); color: var(--em-asphalt); font: 800 1.4rem/1 var(--em-display);
}
.em-buses { background: var(--em-overcast); padding-top: 32px; }
.em-bus { border-top: 6px solid var(--em-yellow); }
.em-bus h3 { font-size: 2.4rem; font-weight: 800; }
.em-bus-summary { padding-top: 0; }

/* note & admin hint */
.em-note { background: var(--em-overcast); border-left: 6px solid var(--em-yellow); padding: 22px 24px; border-radius: var(--em-radius); font-size: 1.1rem; }
.em-admin-hint { margin-top: 12px; font-size: .9rem; color: #8a1f11; }

/* ---------- sponsors + footer ---------- */
.em-sponsor-band { background: var(--em-white); padding: 40px 0; border-top: 1px solid var(--em-line); }
.em-sponsors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 36px; }
.em-sponsors li { flex: 0 1 auto; }
.em-sponsors img { display: block; height: 64px; width: auto; max-width: 180px; object-fit: contain; }
.em-sponsors--custom { display: block; }
.em-sponsors--custom img { height: auto; max-width: 100%; }
@media (max-width: 900px) { .em-sponsors { justify-content: center; gap: 22px 28px; } .em-sponsors img { height: 48px; max-width: 130px; } }

.em-footer { background: var(--em-asphalt); color: rgba(255,255,255,.82); padding: 64px 0 0; font-size: .98rem; border-top: 6px solid var(--em-yellow); }
.em-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.em-footer__logo img { width: 170px; height: auto; display: block; margin-bottom: 18px; }
.em-footer__title { color: var(--em-yellow); font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.em-footer a { color: var(--em-white); }
.em-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.em-footer-menu a { text-decoration: none; }
.em-footer-menu a:hover { text-decoration: underline; text-decoration-color: var(--em-yellow); }
.em-footer .em-contact .em-icon { color: var(--em-yellow); }
.em-footer__enter p { margin-bottom: 16px; }
.em-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 18px 0 0; }
.em-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.em-social a:hover { background: var(--em-yellow); color: var(--em-asphalt); border-color: var(--em-yellow); }
.em-footer__base { margin-top: 48px; padding-bottom: 28px; font-size: .88rem; color: rgba(255,255,255,.6); }
.em-footer__base p { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 960px) { .em-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .em-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- archive cards ---------- */
.em-archive { padding-top: var(--em-pad); padding-bottom: var(--em-pad); }
.em-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.em-card { background: var(--em-white); border: 1px solid var(--em-line); border-radius: var(--em-radius); overflow: hidden; }
.em-card__media img { display: block; width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.em-card__body { padding: 22px; }
.em-card__meta { margin: 0 0 6px; font-size: .88rem; color: var(--em-muted); }
.em-card__title { font-size: 1.6rem; }
.em-card__title a { text-decoration: none; }

/* forms */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea, select {
	font: inherit; padding: 12px 14px; border: 2px solid var(--em-line); border-radius: 4px; width: 100%; max-width: 100%; background: var(--em-white);
}
input:focus, textarea:focus, select:focus { border-color: var(--em-asphalt); outline: none; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-submit, input[type="submit"], button[type="submit"] {
	font: 700 1.1rem/1 var(--em-display); padding: 14px 20px; border: 0; border-radius: 4px; background: var(--em-asphalt); color: var(--em-white); cursor: pointer;
}

/* WordPress alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--em-muted); }

/* Elementor widget spacing inside our sections */
.em-section .elementor-widget:not(:last-child) { margin-bottom: 20px; }
.em-section .elementor-widget-text-editor p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- header search ---------- */
.em-brand { margin-right: auto; }
.em-nav { order: 2; }
.em-search-toggle { order: 3; }
.em-nav-toggle { order: 4; }
.em-search-toggle {
	display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
	background: transparent; border: 2px solid rgba(255,255,255,.35); border-radius: 4px; color: var(--em-white); cursor: pointer;
}
.em-search-toggle:hover, .em-search-toggle[aria-expanded="true"] { border-color: var(--em-yellow); color: var(--em-yellow); }
.em-search-toggle .em-icon { width: 20px; height: 20px; }
.em-search-panel { background: var(--em-asphalt-2); border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.em-search-panel[hidden] { display: none; }
.em-search-form { display: flex; gap: 10px; }
.em-search-form .search-field { flex: 1; min-width: 0; font-size: 1.05rem; }
.em-search-panel .search-field { background: var(--em-white); border-color: transparent; }
.em-search-form .em-button { flex: none; }
@media (max-width: 1120px) { .em-header__inner { gap: 10px; } }

/* ---------- search results ---------- */
.em-search-results { padding-top: 48px; padding-bottom: var(--em-pad); max-width: calc(820px + 2 * var(--em-gutter)); }
.em-search-results__count { color: var(--em-muted); margin: 28px 0 8px; font-weight: 600; }
.em-search-list { list-style: none; margin: 0; padding: 0; }
.em-search-list li { padding: 22px 0; border-bottom: 1px solid var(--em-line); }
.em-search-list h2 { font-size: 1.8rem; margin: 0 0 6px; }
.em-search-list h2 a { text-decoration: none; }
.em-search-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--em-yellow-deep); }
.em-search-list p { margin: 0 0 6px; }
.em-search-list__url { font-size: .88rem; color: var(--em-muted); }
.em-search-results .em-note { margin-top: 28px; }
.em-search-results__hint { margin-top: 16px; }

/* ---------- footer connect ---------- */
.em-footer__title--connect { margin-top: 28px; }
.em-social { margin-top: 0; flex-wrap: wrap; }
.em-social .em-icon { width: 18px; height: 18px; }

/* ---------- apparel ---------- */
.em-products { background: var(--em-overcast); }
.em-product { height: 100%; background: var(--em-white); border-radius: var(--em-radius); overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 10px 24px -18px rgba(35,36,39,.4); }
.em-col > .em-product { flex: 1; }
.em-products > .elementor-container > .elementor-column > .elementor-widget-wrap { height: 100%; }
.em-product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e5e1; }
.em-product__body { padding: 22px 24px 24px; }
.em-product h3 { margin-bottom: .3em; }
.em-product__price { font: 800 1.6rem/1 var(--em-display); color: var(--em-asphalt); margin: 0 0 10px; }
.em-sizes { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.em-sizes caption { text-align: left; caption-side: top; padding-bottom: 12px; color: var(--em-muted); }
.em-sizes th, .em-sizes td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--em-line); }
.em-sizes thead th { background: var(--em-asphalt); color: var(--em-white); font: 700 1.15rem/1 var(--em-display); }
.em-sizes tbody th { text-align: left; font: 700 1.1rem/1.1 var(--em-display); color: var(--em-asphalt); white-space: nowrap; }
.em-sizes thead th:first-child { text-align: left; }
.em-sizes td.is-na { color: var(--em-muted); }
.em-size-guide img { display: block; width: 100%; max-width: 260px; border-radius: var(--em-radius); }
.em-size-section .em-cols, .em-size-section > .elementor-container { align-items: flex-start; }

/* ---------- entry QR ---------- */
.em-qr { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; text-decoration: none; color: inherit; }
.em-qr__code { display: block; width: 104px; height: 104px; background: #fff; padding: 6px; border-radius: 4px; border: 1px solid var(--em-line); }
.em-qr__label { font: 700 1.1rem/1.2 var(--em-display); max-width: 11ch; }
.em-qr:hover .em-qr__label { text-decoration: underline; text-decoration-color: var(--em-yellow-deep); }
.em-footer .em-qr__code { border-color: transparent; }
.em-footer .em-qr__label { color: var(--em-white); }

/* ---------- accommodation partner ---------- */
.em-callout--light { background: var(--em-overcast); color: var(--em-text); }
.em-callout--light h3 { color: var(--em-asphalt); }
.em-callout--light a { color: var(--em-asphalt); }
.em-partner { display: flex; gap: 24px; align-items: flex-start; }
.em-partner__logo { flex: none; width: 110px; height: auto; background: #fff; padding: 8px; border-radius: 4px; }
.em-partner .em-contact { gap: 8px; }
.em-partner .em-contact li { gap: 12px; }
.em-contact__label { flex: none; width: 64px; font-size: .88rem; font-weight: 600; color: var(--em-muted); }
@media (max-width: 480px) { .em-partner { flex-direction: column; } }

/* ---------- entry pop-up ---------- */
.em-popup {
	padding: 0; border: 0; background: transparent; overflow: visible;
	width: min(92vw, 460px); max-width: 460px; max-height: none;
}
.em-popup::backdrop { background: rgba(20, 21, 23, .78); }
.em-popup[open] { animation: em-pop-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes em-pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.em-popup__box { position: relative; background: var(--em-asphalt); border-radius: var(--em-radius); border-top: 6px solid var(--em-yellow); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.em-popup__link { display: block; line-height: 0; }
.em-popup__img { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; background: var(--em-asphalt); }
.em-popup__close {
	position: absolute; top: -18px; right: -14px; z-index: 2;
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	border: 3px solid var(--em-asphalt); background: var(--em-yellow); color: var(--em-asphalt); cursor: pointer;
	box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.em-popup__close:hover { background: var(--em-white); }
.em-popup__close:focus-visible { outline: 3px solid var(--em-white); outline-offset: 2px; }
.em-popup__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.em-popup__actions .em-button { flex: 1; justify-content: center; }
.em-popup__later { background: none; border: 0; color: rgba(255,255,255,.8); font: 600 .95rem/1 var(--em-body); cursor: pointer; padding: 10px 6px; text-decoration: underline; text-underline-offset: 3px; }
.em-popup__later:hover { color: var(--em-white); }
.em-popup__later:focus-visible { outline: 3px solid var(--em-yellow); outline-offset: 2px; }
html.em-popup-open { overflow: hidden; }
@media (max-width: 480px) { .em-popup__close { right: -6px; } }

.em-products--next { padding-top: 0; }
.em-products + .em-products--next { margin-top: calc(-1 * var(--em-pad) + 32px); }

/* ---------- home: apparel ---------- */
.em-home-apparel, .em-home-apparel-actions { background: var(--em-overcast); }
.em-home-apparel { padding-bottom: 0; }
.em-home-apparel-actions { padding-top: 28px; }
.em-home-apparel-actions .em-actions { margin-top: 0; }
.em-home-apparel > .elementor-container > .elementor-column > .elementor-widget-wrap { height: 100%; }
.em-product-mini {
	display: block; height: 100%; text-decoration: none; color: var(--em-asphalt);
	background: var(--em-white); border-radius: var(--em-radius); overflow: hidden;
	box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 10px 24px -18px rgba(35,36,39,.4);
}
.em-product-mini img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.em-product-mini span { display: block; padding: 14px 16px 16px; font: 700 1.3rem/1.1 var(--em-display); border-top: 4px solid var(--em-yellow); }
.em-product-mini:hover img { transform: scale(1.03); }
.em-product-mini:hover span { text-decoration: underline; text-decoration-color: var(--em-yellow-deep); }
@media (max-width: 860px) { .em-home-apparel .em-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 767px) {
	.em-home-apparel > .elementor-container { flex-wrap: wrap; }
	.em-home-apparel > .elementor-container > .elementor-column { width: 50%; }
}
