/* Maraton Challenge – layout layer (header, Facebook feed, footer, terrain background).
   Page content keeps its original Gridbox CSS; everything here uses the `mcl-` prefix
   because the site's own custom sections already use `mc-`. */

:root {
  --mcl-green: rgb(46, 147, 27);
  --mcl-green-rgb: 46, 147, 27;
  --mcl-green-glow: rgb(98, 214, 64);
  --mcl-green-deep: rgb(30, 108, 15);
  --mcl-ink: rgb(33, 35, 33);
  --mcl-ink-2: rgb(22, 24, 22);
  --mcl-paper: rgb(226, 229, 215);
  --mcl-muted: rgb(188, 191, 180);
  --mcl-line: rgba(226, 229, 215, 0.12);
  --mcl-glass: rgba(255, 255, 255, 0.035);
  --mcl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mcl-font: 'Montserrat', system-ui, sans-serif;
}

/* Gridbox hid the body until its JS ran; we don't need that any more. */
body { opacity: 1 !important; overflow-x: hidden; }
/* page background: 30% darker than the original theme grey rgb(33,35,33) */
html, body { background-color: rgb(23, 24, 23) !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* shared glass card with gradient border (same recipe as the Árak section) */
.mcl-glass {
  position: relative;
  border-radius: 22px;
  background: var(--mcl-glass);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mcl-glass::before,
.mcl-fb__post::before,
.mcl-footer__news::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(var(--mcl-green-rgb), 0.35), rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* =====================================================================
   HEADER – floating bar, all menu points visible, sliding indicator
   ===================================================================== */
.mcl-header {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: var(--mcl-font);
}
.mcl-pill {
  pointer-events: auto;
  width: min(1320px, calc(100% - 28px));
  border-radius: 999px;
  background: rgba(22, 24, 22, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--mcl-line);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
  color: var(--mcl-paper);
  overflow: hidden;
  transition: background-color 0.4s var(--mcl-ease), box-shadow 0.4s var(--mcl-ease);
}
.mcl-pill.is-scrolled { background: rgba(22, 24, 22, 0.82); box-shadow: 0 14px 44px -14px rgba(0, 0, 0, 0.75); }
.mcl-pill.is-open { border-radius: 28px; background: rgba(18, 20, 18, 0.95); }

.mcl-pill__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 12px 0 10px;
  transition: height 0.45s var(--mcl-ease);
}
.mcl-pill.is-scrolled .mcl-pill__bar { height: 54px; }
.mcl-pill__logo { display: block; flex: none; line-height: 0; border-radius: 50%; margin-right: 6px; }
.mcl-pill__logo img { width: 40px; height: 40px; object-fit: contain; }

/* main links */
.mcl-nav { position: relative; flex: 1; display: flex; justify-content: center; min-width: 0; }
.mcl-nav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.mcl-nav__list a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mcl-muted);
  font: 600 13.5px/1 var(--mcl-font);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.35s var(--mcl-ease);
}
.mcl-nav__list .mcl-menu__num { display: none; }
.mcl-nav__list .mcl-menu__text { font: inherit; text-transform: none; letter-spacing: inherit; color: inherit; transform: none !important; }
.mcl-nav__list a:hover,
.mcl-nav__list a.is-active { color: #fff; }
.mcl-nav__ink {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 36px;
  margin-top: -18px;
  border-radius: 999px;
  background: rgba(var(--mcl-green-rgb), 0.18);
  box-shadow: inset 0 0 0 1px rgba(var(--mcl-green-rgb), 0.55);
  opacity: 0;
  pointer-events: none;
}
.mcl-nav__ink::after {               /* bright green underline dot-bar */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 3px;
  background: var(--mcl-green-glow);
  box-shadow: 0 0 10px rgba(98, 214, 64, 0.8);
}

/* sub-pages (E-bike, Pályarajz, Támogatás) */
.mcl-nav-extra { display: flex; gap: 2px; margin: 0; padding: 0 6px 0 8px; list-style: none; border-left: 1px solid var(--mcl-line); }
.mcl-nav-extra a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--mcl-paper);
  font: 500 13px/1 var(--mcl-font);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s var(--mcl-ease), color 0.3s var(--mcl-ease);
}
.mcl-nav-extra i { color: var(--mcl-green-glow); font-size: 13px; }
.mcl-nav-extra a:hover,
.mcl-nav-extra a[aria-current='page'] { background: rgba(226, 229, 215, 0.08); color: #fff; }

.mcl-pill__social,
.mcl-menu__social { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mcl-pill__social { flex: none; }
.mcl-pill__social a,
.mcl-menu__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--mcl-paper);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s var(--mcl-ease), color 0.3s var(--mcl-ease), transform 0.3s var(--mcl-ease);
}
.mcl-pill__social a:hover,
.mcl-menu__social a:hover { background: var(--mcl-green); color: #fff; transform: translateY(-2px); }

.mcl-pill__toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 700 12px/1 var(--mcl-font);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--mcl-ease);
}
.mcl-pill__toggle:hover { background: rgba(226, 229, 215, 0.08); }
.mcl-pill__toggle:focus-visible,
.mcl-pill a:focus-visible { outline: 2px solid var(--mcl-green-glow); outline-offset: 2px; }
.mcl-pill__label { min-width: 4.6em; text-align: right; }
.mcl-burger { position: relative; width: 20px; height: 10px; }
.mcl-burger i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--mcl-ease), top 0.5s var(--mcl-ease), width 0.5s var(--mcl-ease);
}
.mcl-burger i:first-child { top: 0; }
.mcl-burger i:last-child { top: 8px; width: 65%; }
.mcl-pill__toggle:hover .mcl-burger i:last-child { width: 100%; }
.mcl-pill.is-open .mcl-burger i:first-child { top: 4px; transform: rotate(45deg); }
.mcl-pill.is-open .mcl-burger i:last-child { top: 4px; width: 100%; transform: rotate(-45deg); }

/* mobile panel */
.mcl-pill__panel { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 24px 24px; border-top: 1px solid var(--mcl-line); max-height: calc(100dvh - 96px); overflow-y: auto; }
.mcl-pill__panel[hidden] { display: none; }
.mcl-menu__main,
.mcl-menu__extra { margin: 0; padding: 0; list-style: none; }
.mcl-menu__main a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  color: var(--mcl-paper);
  text-decoration: none;
  border-bottom: 1px solid var(--mcl-line);
}
.mcl-menu__num { flex: none; width: 22px; font: 700 11px/1 var(--mcl-font); letter-spacing: 0.08em; color: var(--mcl-green-glow); }
.mcl-menu__text {
  font: 900 clamp(21px, 5.6vw, 32px)/1.1 var(--mcl-font);
  text-transform: uppercase;
  color: var(--mcl-paper);
  transition: color 0.4s var(--mcl-ease), transform 0.55s var(--mcl-ease);
}
.mcl-menu__main a:hover .mcl-menu__text,
.mcl-menu__main a.is-active .mcl-menu__text { color: var(--mcl-green-glow); }
.mcl-menu__main a:hover .mcl-menu__text { transform: translateX(8px); }
.mcl-menu__extra { padding-top: 8px; }
.mcl-menu__extra a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--mcl-muted); font: 500 15px/1.2 var(--mcl-font); text-decoration: none; }
.mcl-menu__extra i { width: 18px; color: var(--mcl-green-glow); text-align: center; }
.mcl-menu__social { padding-top: 6px; }

/* responsive steps */
@media (max-width: 1260px) {
  .mcl-pill__social { display: none; }
}
@media (max-width: 1120px) {
  .mcl-nav-extra span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mcl-nav-extra a { padding: 9px 11px; }
  .mcl-nav__list a { padding: 10px 11px; font-size: 13px; }
}
@media (max-width: 1023px) {
  .mcl-pill { width: min(560px, calc(100% - 24px)); }
  .mcl-nav, .mcl-nav-extra { display: none; }
  .mcl-pill__toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .mcl-header { inset-block-start: 10px; }
  .mcl-pill__bar, .mcl-pill.is-scrolled .mcl-pill__bar { height: 54px; }
}

/* =====================================================================
   FACEBOOK FEED (rendered at build time from the hourly sync)
   ===================================================================== */
.mcl-fb { font-family: var(--mcl-font); color: var(--mcl-paper); }
.mcl-fb__head { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.mcl-fb__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 1px var(--mcl-line); }
.mcl-fb__who { display: grid; line-height: 1.3; }
.mcl-fb__who strong { font-size: 15px; font-weight: 700; color: #fff; }
.mcl-fb__who span { font-size: 12px; color: var(--mcl-muted); letter-spacing: 0.02em; }
.mcl-fb__follow,
.mcl-fb__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font: 700 12px/1 var(--mcl-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color 0.3s var(--mcl-ease), color 0.3s var(--mcl-ease), transform 0.3s var(--mcl-ease), border-color 0.3s var(--mcl-ease);
}
.mcl-fb__follow { margin-left: auto; padding: 12px 18px; background: var(--mcl-green); color: #fff !important; }
.mcl-fb__follow:hover { background: var(--mcl-green-deep); transform: translateY(-2px); }
.mcl-fb__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.mcl-fb__post {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(26, 29, 26, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.45s var(--mcl-ease), box-shadow 0.45s var(--mcl-ease);
}
.mcl-fb__post:hover { transform: translateY(-4px); box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55); }
.mcl-fb__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0, 0, 0, 0.35); }
.mcl-fb__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--mcl-ease); }
.mcl-fb__post:hover .mcl-fb__media img { transform: scale(1.04); }
.mcl-fb__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(22, 24, 22, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.mcl-fb__play::after { content: ''; position: absolute; left: 22px; top: 18px; border: 10px solid transparent; border-left: 15px solid #fff; border-right: 0; }
.mcl-fb__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; border-left: 3px solid var(--mcl-green); margin: 16px 0 0; }
.mcl-fb__post.is-text .mcl-fb__body { margin-top: 22px; }
.mcl-fb__date { color: var(--mcl-green-glow); font: 700 11px/1.2 var(--mcl-font); letter-spacing: 0.16em; text-transform: uppercase; }
.mcl-fb .mcl-fb__text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.85);
  font: 400 14px/1.7 var(--mcl-font) !important;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.mcl-fb__post.is-text .mcl-fb__text { -webkit-line-clamp: 12; }
.mcl-fb__text a { color: var(--mcl-green-glow); text-decoration: none; }
.mcl-fb__meta { display: flex; align-items: center; gap: 14px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--mcl-line); font-size: 13px; color: var(--mcl-muted); }
.mcl-fb__open { margin-left: auto; color: var(--mcl-paper) !important; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none !important; }
.mcl-fb__open span { display: inline-block; transition: transform 0.3s var(--mcl-ease); }
.mcl-fb__open:hover { color: var(--mcl-green-glow) !important; }
.mcl-fb__open:hover span { transform: translateX(4px); }
.mcl-fb__more { margin: 26px auto 0; display: flex; width: max-content; padding: 14px 22px; border: 1px solid rgba(226, 229, 215, 0.25); color: var(--mcl-paper) !important; }
.mcl-fb__more:hover { border-color: var(--mcl-green); background: rgba(var(--mcl-green-rgb), 0.12); }
.mcl-fb__empty a { color: var(--mcl-green-glow); }
@media (max-width: 960px) { .mcl-fb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .mcl-fb__grid { grid-template-columns: 1fr; }
  .mcl-fb__head { flex-wrap: wrap; }
  .mcl-fb__follow { margin-left: 0; }
}

/* =====================================================================
   TERRAIN – fixed contour map behind the page, from right after the hero.
   Performance: the map is one static image on its own GPU layer; the route and
   the rider dot are drawn by CSS scroll-driven animations (no JS per frame, no filters).
   ===================================================================== */
.mcl-terrain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.mcl-terrain.is-on { opacity: 0.4; }   /* kept dim so content stays in front */
.mcl-terrain__map,
.mcl-terrain__route {
  position: absolute;
  left: 0;
  top: -4%;
  width: 100%;
  height: 112%;
  will-change: transform;
  backface-visibility: hidden;
}
.mcl-terrain__map { background: url('/assets/mc/terrain.svg') center / cover no-repeat; }
.mcl-terrain::after {   /* static vignette keeps text readable */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(22, 24, 22, 0.5), rgba(22, 24, 22, 0.08) 70%, transparent);
}
.mcl-terrain__route path { fill: none; stroke-linecap: round; }
.mcl-r-glow { stroke: rgba(98, 214, 64, 0.22); stroke-width: 9; }
.mcl-r-line { stroke: var(--mcl-green-glow); stroke-width: 2.2; }
.mcl-r-halo, .mcl-r-dot { display: none; }
@supports (animation-timeline: scroll()) {
  .mcl-r-glow, .mcl-r-line { stroke-dasharray: 1 1; animation: mcl-draw linear both; animation-timeline: scroll(root); }
  .mcl-r-halo, .mcl-r-dot { display: inline; stroke-dasharray: 0.0001 1; animation: mcl-ride linear both; animation-timeline: scroll(root); }
  .mcl-r-halo { stroke: rgba(98, 214, 64, 0.3); stroke-width: 26; }
  .mcl-r-dot { stroke: var(--mcl-green-glow); stroke-width: 13; }
  .mcl-terrain__map, .mcl-terrain__route { animation: mcl-drift linear both; animation-timeline: scroll(root); }
}
@keyframes mcl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mcl-ride { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@keyframes mcl-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -6%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .mcl-terrain__map, .mcl-terrain__route, .mcl-r-glow, .mcl-r-line, .mcl-r-halo, .mcl-r-dot { animation: none !important; }
  .mcl-r-glow, .mcl-r-line { stroke-dasharray: none; }
  .mcl-r-halo, .mcl-r-dot { display: none; }
}
body > .body,
body > .mcl-footer { position: relative; z-index: 1; }
/* sections after the hero become see-through so the map shows */
.mcl-see-through > .ba-section,
.mcl-see-through > .ba-section > .ba-overlay { background-color: transparent !important; background-image: none !important; }
/* no live blur over the moving map (that was the lag) – solid dark glass instead */
.mc-fees__card,
.mc-events .mc-event,
.mcl-fb__post,
.mcl-footer__news,
.mcl-glass,
.mcl-fb__play { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mc-fees__card { background-color: rgba(26, 29, 26, 0.88) !important; }

/* =====================================================================
   HERO (home): the photo and its dark overlay fade into transparent,
   so the contour map continues seamlessly below it.
   ===================================================================== */
#item-16365342080 { background-image: none !important; isolation: isolate; }
#item-16365342080::before {
  content: '';
  display: block !important;          /* Gridbox clearfix sets display: table */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: url('/images/compressed/header/2.webp') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 70%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, 0.55) 70%, transparent 97%);
  pointer-events: none;
}
#item-16365342080 > .parallax-wrapper { display: none !important; }   /* Gridbox's 2nd (unmasked) copy of the photo */
#item-16365342080 > .ba-section-items { position: relative; z-index: 2; }   /* content above photo + overlay */
#item-16365342080 > .ba-overlay {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 98%);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.mcl-footer {
  position: relative;
  padding: clamp(90px, 12vw, 160px) 24px 28px;
  background: linear-gradient(180deg, transparent, rgba(16, 18, 16, 0.9) 22%);
  color: var(--mcl-muted);
  font: 400 15px/1.7 var(--mcl-font);
}
.mcl-footer__inner { max-width: 1180px; margin: 0 auto; }
.mcl-footer a { color: var(--mcl-paper); text-decoration: none; transition: color 0.3s var(--mcl-ease); }
.mcl-footer a:hover { color: var(--mcl-green-glow); }
.mcl-footer p, .mcl-footer li, .mcl-footer ul { line-height: 1.75; }

/* newsletter band */
.mcl-footer__news {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(var(--mcl-green-rgb), 0.22), transparent 70%),
    rgba(26, 29, 26, 0.9);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mcl-footer .mcl-footer__big {
  margin: 0;
  text-align: left;
  color: #fff;
  font: 900 clamp(26px, 3.6vw, 44px)/1.08 var(--mcl-font);
  letter-spacing: -0.01em;
}
.mcl-news__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mcl-news__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mcl-news__row {
  display: flex;
  border: 1px solid rgba(226, 229, 215, 0.25);
  border-radius: 999px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s var(--mcl-ease), box-shadow 0.3s var(--mcl-ease);
}
.mcl-news__row:focus-within { border-color: var(--mcl-green-glow); box-shadow: 0 0 0 4px rgba(var(--mcl-green-rgb), 0.18); }
.mcl-news input[type='email'] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--mcl-paper);
  font: 400 16px var(--mcl-font);
  outline: none;
}
.mcl-news input::placeholder { color: rgba(188, 191, 180, 0.6); }
.mcl-footer .mcl-news button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--mcl-green);
  color: #fff;
  font: 700 12px var(--mcl-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--mcl-ease), transform 0.3s var(--mcl-ease);
}
.mcl-footer .mcl-news button:hover { background: var(--mcl-green-deep); }
.mcl-footer .mcl-news button:hover i { transform: translate(3px, -3px); }
.mcl-footer .mcl-news button i { transition: transform 0.35s var(--mcl-ease); }
.mcl-footer .mcl-news button:active { transform: scale(0.97); }
.mcl-footer .mcl-news button:disabled { opacity: 0.6; cursor: progress; }
.mcl-footer .mcl-news button:focus-visible { outline: 2px solid var(--mcl-paper); outline-offset: 2px; }
.mcl-news { position: relative; }
.mcl-footer .mcl-news__msg { position: absolute; left: 22px; top: calc(100% + 8px); margin: 0 !important; font-size: 13px; line-height: 1.4; color: var(--mcl-paper); }
.mcl-footer .mcl-news__msg:empty { display: none; }

/* route: tagline + the seven mountains as stops on a line */
.mcl-route { margin: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 70px); text-align: center; }
.mcl-footer .mcl-route__tagline { margin: 0 0 34px !important; text-align: center !important; color: var(--mcl-paper); font: 700 clamp(14px, 1.7vw, 19px)/1.5 var(--mcl-font); letter-spacing: 0.02em; }
.mcl-route__tagline span { color: var(--mcl-green-glow); margin: 0 0.3em; }
.mcl-footer .mcl-route__stops {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
}
.mcl-route__stops::before,
.mcl-route__stops::after {             /* the track and its lit part */
  content: '';
  position: absolute;
  top: 7px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 2px;
  border-radius: 2px;
  background: rgba(226, 229, 215, 0.15);
}
.mcl-route__stops::after {
  right: auto;
  width: calc((100% - 100% / 7) * var(--progress));
  background: linear-gradient(90deg, var(--mcl-green), var(--mcl-green-glow));
  box-shadow: 0 0 10px rgba(98, 214, 64, 0.6);
}
.mcl-route__stops li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--mcl-muted);
  font: 700 12px/1.2 var(--mcl-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  counter-increment: stop;
  transition: color 0.5s var(--mcl-ease);
}
.mcl-route__stops li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mcl-ink-2);
  box-shadow: inset 0 0 0 2px rgba(226, 229, 215, 0.3);
  transition: box-shadow 0.5s var(--mcl-ease), background-color 0.5s var(--mcl-ease), transform 0.5s var(--mcl-ease);
}
.mcl-route__stops li.is-lit { color: #fff; }
.mcl-route__stops li.is-lit::before { background: var(--mcl-green-glow); box-shadow: 0 0 0 4px rgba(var(--mcl-green-rgb), 0.3), 0 0 14px rgba(98, 214, 64, 0.8); transform: scale(1.1); }

/* info columns */
.mcl-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  border-top: 1px solid var(--mcl-line);
  text-align: left;
}
.mcl-footer__col { padding: 32px 28px 34px 0; overflow-wrap: anywhere; }
.mcl-footer__col + .mcl-footer__col { padding-left: 28px; border-left: 1px solid var(--mcl-line); }
.mcl-footer .mcl-footer__title {
  margin: 0 0 20px !important;
  text-align: left;
  color: var(--mcl-paper);
  font: 700 12px/1.5 var(--mcl-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mcl-footer .mcl-footer__list { margin: 0; padding: 0; list-style: none; }
.mcl-footer .mcl-footer__list li { display: flex; align-items: flex-start; gap: 12px; padding: 0; margin: 0 0 10px; line-height: 1.55 !important; }
.mcl-footer .mcl-footer__list li:last-child { margin-bottom: 0; }
.mcl-footer__list i { flex: none; width: 16px; height: 1.55em; display: inline-flex; align-items: center; justify-content: center; color: var(--mcl-green-glow); font-size: 13px; line-height: 1; }
.mcl-footer .mcl-footer__social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mcl-footer__social a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--mcl-line);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.3s var(--mcl-ease), box-shadow 0.3s var(--mcl-ease), transform 0.3s var(--mcl-ease);
}
.mcl-footer__social i { width: 16px; text-align: center; font-size: 15px; color: var(--mcl-green-glow); }
.mcl-footer .mcl-footer__social a:hover { color: #fff; background: rgba(var(--mcl-green-rgb), 0.18); box-shadow: inset 0 0 0 1px rgba(var(--mcl-green-rgb), 0.6); transform: translateY(-2px); }

.mcl-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--mcl-line);
  font-size: 13px;
}
.mcl-footer .mcl-footer__bottom p { margin: 0; }
.mcl-footer__legal span { margin: 0 8px; opacity: 0.4; }
.mcl-footer__credit img { vertical-align: middle; margin-left: 4px; }

@media (max-width: 900px) {
  .mcl-footer__news { grid-template-columns: 1fr; }
  .mcl-footer__grid { grid-template-columns: 1fr; }
  .mcl-footer__col, .mcl-footer__col + .mcl-footer__col { padding: 26px 0; border-left: 0; }
  .mcl-footer__col + .mcl-footer__col { border-top: 1px solid var(--mcl-line); }
}
@media (max-width: 640px) {
  .mcl-footer .mcl-route__stops { grid-template-columns: 1fr; gap: 14px; justify-items: start; padding-left: 4px; }
  .mcl-route__stops::before, .mcl-route__stops::after { top: 8px; bottom: 8px; left: 11px; right: auto; width: 2px; height: auto; }
  .mcl-route__stops::after { height: calc((100% - 16px) * var(--progress)); bottom: auto; }
  .mcl-route__stops li { grid-template-columns: 16px 1fr; justify-items: start; align-items: center; }
  .mcl-news__row { flex-direction: column; border-radius: 22px; }
  .mcl-footer .mcl-news button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mcl-pill, .mcl-burger i, .mcl-menu__text, .mcl-fb__post, .mcl-fb__media img, .mcl-news button { transition: none !important; }
}
