/*
Theme Name: Memel Gravel
Theme URI: https://memelgravel.eu
Author: Memel Gravel
Description: Gravel bendruomenės tema: pilno ekrano hero, renginiai, maršrutai, rėmėjai. Dvikalbė (LT/EN) su Polylang.
Version: 1.53.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: memel-gravel
*/

:root {
  /* Club kit colours: Bioracer blue → navy → black */
  --mg-blue: #1663e0;
  --mg-blue-light: #5b95ff;
  --mg-navy: #0b2f6b;
  --mg-kit-black: #140c10;
  --mg-sea: var(--mg-blue);
  --mg-ink: #111214;
  --mg-ink-2: #1c1e22;
  --mg-paper: #f6f4ef;
  --mg-muted: #6b6f76;
  --mg-line: #e2ded5;
  --mg-grad: linear-gradient(165deg, var(--mg-blue) 0%, var(--mg-navy) 58%, var(--mg-kit-black) 100%);
  --mg-grad-x: linear-gradient(90deg, var(--mg-blue) 0%, var(--mg-navy) 65%, var(--mg-kit-black) 100%);
  --mg-grad-text: linear-gradient(95deg, var(--mg-blue-light) 0%, var(--mg-blue) 100%);
  --mg-radius: 14px;
  --mg-max: 1180px;
  --mg-head: "Unbounded", system-ui, sans-serif;
  --mg-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mg-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--mg-ink);
  background: var(--mg-paper);
  -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--mg-sea); }
a:hover { color: var(--mg-ink); }
h1, h2, h3, h4 { font-family: var(--mg-head); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.screen-reader-text { position: absolute; left: -9999px; }

.mg-wrap { max-width: var(--mg-max); margin: 0 auto; padding: 0 20px; }
.mg-section { padding: 80px 0; }
.mg-section--dark { background: var(--mg-ink); color: #f1f1f1; }
.mg-section--dark a { color: var(--mg-blue-light); }
.mg-section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.mg-section__head h2 { margin: 0; }
.mg-grad-text { background: var(--mg-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.mg-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding: 18px 0; color: #fff;
}
.mg-header--solid { position: sticky; background: var(--mg-ink); }
.admin-bar .mg-header--solid { top: 32px; }
.mg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mg-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--mg-head); font-weight: 800; font-size: 1.05rem; }
.mg-brand:hover { color: #fff; }
.mg-brand img { height: 52px; width: auto; }
@media (max-width: 600px) { .mg-brand img { height: 42px; } }
.mg-nav { display: flex; align-items: center; gap: 6px; }
.mg-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.mg-nav a { color: #fff; text-decoration: none; padding: 8px 11px; border-radius: 999px; font-weight: 500; font-size: .93rem; white-space: nowrap; display: inline-block; }
.mg-nav a:hover, .mg-nav .current-menu-item > a { background: rgba(255,255,255,.14); color: #fff; }
.mg-lang { display: flex; gap: 2px; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.3); }
.mg-lang a { padding: 6px 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; opacity: .6; }
.mg-lang a.is-current { opacity: 1; }
.mg-burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.mg-burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

@media (max-width: 1240px) {
  .mg-burger { display: block; }
  .mg-nav {
    position: fixed; inset: 0; background: var(--mg-ink); flex-direction: column; justify-content: center;
    transform: translateX(100%); transition: transform .3s ease; z-index: 30;
  }
  .mg-nav.is-open { transform: none; }
  .mg-nav ul { flex-direction: column; align-items: center; gap: 8px; }
  .mg-nav a { font-size: 1.3rem; }
  .mg-lang { border: 0; margin: 20px 0 0; padding: 0; }
  .mg-burger { position: relative; z-index: 40; }
  .mg-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mg-burger.is-open span:nth-child(2) { opacity: 0; }
  .mg-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.mg-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; overflow: hidden; background: #222;
}
.mg-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(.7);
  transform: scale(1.03);
}
.mg-hero__bg--placeholder { background-image: radial-gradient(ellipse at 30% 20%, #555 0%, #1a1a1a 70%); }
.mg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.55) 100%); }
.mg-hero__content { position: relative; z-index: 2; padding: 120px 20px 80px; }
.mg-hero__title {
  font-family: var(--mg-head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 9rem); line-height: .92; letter-spacing: -0.03em; margin: 0 0 18px;
  background: var(--mg-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 30px rgba(0,0,0,.35));
}
.mg-hero__logo { margin: 0 auto 26px; }
.mg-hero__logo img { width: min(clamp(220px, 34vw, 400px), 44vh); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.45)); }
.mg-hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 620px; margin: 0 auto 30px; opacity: .92; }
.mg-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mg-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  background: rgba(17,18,20,.85); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); transition: .2s;
}
.mg-pill:hover { background: #fff; color: var(--mg-ink); transform: translateY(-2px); }
.mg-pill svg { width: 18px; height: 18px; fill: currentColor; }
.mg-hero__scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; opacity: .7; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; }

/* ---------- About intro ---------- */
.mg-about .mg-wrap { max-width: 980px; }
.mg-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mg-sea); margin-bottom: 18px; padding-bottom: 6px; border-bottom: 3px solid; border-image: var(--mg-grad-x) 1; }
.mg-about__text { font-family: var(--mg-head); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 28px; }

/* ---------- Buttons ---------- */
.mg-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--mg-ink); color: #fff; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: .95rem; }
.mg-btn:hover { background: var(--mg-sea); color: #fff; }
.mg-btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.mg-btn--ghost:hover { background: var(--mg-ink); color: #fff; border-color: var(--mg-ink); }
.mg-section--dark .mg-btn--ghost:hover { background: #fff; color: var(--mg-ink); border-color: #fff; }
.mg-btn--grad { background: var(--mg-blue); color: #fff; }
.mg-btn--grad:hover { background: #fff; color: var(--mg-blue); }

/* ---------- Cards ---------- */
.mg-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mg-card { background: #fff; border-radius: var(--mg-radius); overflow: hidden; border: 1px solid var(--mg-line); display: flex; flex-direction: column; transition: .2s; color: inherit; text-decoration: none; }
.mg-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.08); color: inherit; }
.mg-card__img { aspect-ratio: 16/10; background: #ddd center/cover; }
.mg-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.mg-card__body h3 { margin-bottom: 8px; }
.mg-card__meta { color: var(--mg-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mg-section--dark .mg-card { background: var(--mg-ink-2); border-color: #2b2e33; color: #f1f1f1; }
.mg-section--dark .mg-card__meta { color: #a3a7ad; }

.mg-event { display: grid; grid-template-columns: 92px 1fr; gap: 0; }
.mg-event .mg-date { background: var(--mg-grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mg-head); padding: 16px 8px; }
.mg-date__d { font-size: 2rem; font-weight: 900; line-height: 1; }
.mg-date__m { font-size: .8rem; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; margin-top: 4px; }
.mg-date__y { font-size: .7rem; opacity: .7; }
.mg-event--past .mg-date { background: #cfcac0; }

.mg-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.mg-stat { background: var(--mg-paper); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.mg-section--dark .mg-stat { background: #2b2e33; }

/* ---------- Sponsors ---------- */
.mg-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; align-items: center; }
.mg-sponsor { display: flex; align-items: center; justify-content: center; height: 110px; padding: 18px; background: #fff; border-radius: var(--mg-radius); border: 1px solid var(--mg-line); }
.mg-sponsor img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; transition: transform .2s; }
.mg-sponsor:hover img { transform: scale(1.05); }
.mg-sponsor span { font-weight: 700; color: var(--mg-ink); text-align: center; }

/* ---------- Gallery strip ---------- */
.mg-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mg-strip a { aspect-ratio: 1; background: #ccc center/cover; display: block; filter: grayscale(.4); transition: .25s; }
.mg-strip a:hover { filter: none; }
@media (max-width: 700px) { .mg-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.mg-cta { background: var(--mg-grad); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; }
.mg-cta h2 { margin-bottom: 10px; }
.mg-cta p { max-width: 560px; margin: 0 auto 24px; }

/* ---------- Page / content ---------- */
.mg-page-hero { background: var(--mg-ink); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.mg-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--mg-grad-x); }
.mg-page-hero h1 { margin: 0; }
.mg-page-hero p { margin: 10px 0 0; opacity: .8; }
.mg-content { max-width: 780px; margin: 0 auto; padding: 60px 20px 90px; }
.mg-content--wide { max-width: var(--mg-max); }
.mg-content > * + * { margin-top: 1.1em; }
.mg-content img { border-radius: var(--mg-radius); }
.mg-content .wp-block-gallery img { border-radius: 8px; }
.mg-content .alignwide { max-width: calc(var(--mg-max) - 40px); margin-left: 50%; transform: translateX(-50%); width: 100vw; }
.mg-content iframe { width: 100%; border: 0; border-radius: var(--mg-radius); }
.mg-content .has-large-font-size { font-family: var(--mg-head); font-weight: 700; font-size: 1.5rem; line-height: 1.4; }
.mg-content blockquote { border-left: 4px solid var(--mg-blue); margin-left: 0; padding-left: 20px; font-size: 1.15rem; }

.mg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 30px; padding: 0; list-style: none; }
.mg-facts li { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 14px 16px; }
.mg-facts small { display: block; color: var(--mg-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.mg-facts strong { font-family: var(--mg-head); font-size: 1rem; line-height: 1.35; display: block; margin-top: 4px; }
.mg-embed { margin: 0 0 30px; }
.mg-embed iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--mg-radius); }

.mg-tabs { display: flex; gap: 8px; margin-bottom: 26px; }
.mg-empty { color: var(--mg-muted); padding: 30px; border: 2px dashed var(--mg-line); border-radius: var(--mg-radius); text-align: center; }

/* ---------- Forms (Contact Form 7 / WPForms basic) ---------- */
.mg-content input[type=text], .mg-content input[type=email], .mg-content input[type=tel], .mg-content textarea, .mg-content select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; background: #fff;
}
.mg-content input[type=submit], .mg-content button[type=submit] { padding: 12px 26px; border-radius: 999px; border: 0; background: var(--mg-ink); color: #fff; font-weight: 600; cursor: pointer; font: inherit; }
.mg-content button.mg-btn--grad[type=submit] { background: var(--mg-blue); padding: 14px 24px; }
.mg-content button.mg-btn--grad[type=submit]:hover { background: var(--mg-navy); color: #fff; }

/* ---------- Flagship event ---------- */
.mg-flagship { position: relative; border-radius: 24px; overflow: hidden; background: var(--mg-ink) center/cover; color: #fff; margin-bottom: 28px; }
.mg-flagship::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,18,20,.92) 0%, rgba(17,18,20,.6) 60%, rgba(17,18,20,.3) 100%); }
.mg-flagship__inner { position: relative; padding: 48px 44px; max-width: 640px; }
.mg-flagship__tag { display: inline-block; background: var(--mg-blue); color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.mg-flagship__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.mg-flagship__meta { font-weight: 600; opacity: .9; margin: 0 0 10px; }
.mg-flagship__text { opacity: .85; margin: 0 0 24px; }
.mg-btn--light { background: #fff; color: var(--mg-ink); }
.mg-btn--light:hover { background: var(--mg-blue); color: #fff; }
@media (max-width: 600px) { .mg-flagship__inner { padding: 32px 22px; } }

/* ---------- Route filter ---------- */
.mg-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.mg-chip { border: 1.5px solid var(--mg-ink); background: transparent; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.mg-chip.is-active, .mg-chip:hover { background: var(--mg-ink); color: #fff; }

/* ---------- About: stats & team ---------- */
.mg-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 40px 0 !important; }
.mg-statbox { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 22px; }
.mg-statbox strong { display: block; font-family: var(--mg-head); font-weight: 900; font-size: 2.4rem; line-height: 1; }
.mg-statbox span { color: var(--mg-muted); font-size: .95rem; }
.mg-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px; margin-bottom: 40px; }
.mg-person strong { display: block; margin-top: 10px; }
.mg-person span { color: var(--mg-muted); font-size: .9rem; }
.mg-person__img { aspect-ratio: 1; border-radius: 50%; background: #d9d5cc center/cover; }
.mg-pills--left { justify-content: flex-start; margin-top: 30px !important; }
.mg-pills--left .mg-pill { background: var(--mg-ink); }
.mg-pills--left .mg-pill:hover { background: var(--mg-sea); color: #fff; }
.mg-pills--stack { flex-direction: column; align-items: flex-start; margin-top: 10px !important; }

/* ---------- Sponsors page ---------- */
.mg-sponsor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 40px !important; }
.mg-sponsor-item { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
.mg-sponsor-item h3 { margin-bottom: 4px; }
.mg-sponsor-item p { margin: 0 0 6px; color: var(--mg-muted); font-size: .95rem; }

/* ---------- Contact page ---------- */
.mg-contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; }
.mg-contact__main > * + * { margin-top: 1.1em; }
.mg-contact__side { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 28px; align-self: start; }
.mg-contact__side small { display: block; color: var(--mg-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-top: 10px; }
@media (max-width: 800px) { .mg-contact { grid-template-columns: 1fr; } }

/* ---------- FAQ (details block) ---------- */
.mg-content details { background: #fff; border: 1px solid var(--mg-line); border-radius: 12px; padding: 14px 18px; }
.mg-content details + details { margin-top: 10px; }
.mg-content summary { font-weight: 700; cursor: pointer; }
.mg-content details[open] summary { margin-bottom: 8px; }

/* ---------- Lightbox ---------- */
.mg-content .wp-block-gallery a { cursor: zoom-in; }
.mg-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.94); display: none; align-items: center; justify-content: center; }
.mg-lightbox.is-open { display: flex; }
.mg-lightbox figure { margin: 0; max-width: 92vw; text-align: center; color: #ddd; }
.mg-lightbox img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: 6px; margin: 0 auto; }
.mg-lightbox figcaption { margin-top: 10px; font-size: .9rem; }
.mg-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 10px 18px; opacity: .8; }
.mg-lightbox button:hover { opacity: 1; }
.mg-lb-close { top: 10px; right: 10px; }
.mg-lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.mg-lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Merch ---------- */
.mg-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.mg-product { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); overflow: hidden; display: flex; flex-direction: column; }
.mg-product__img { position: relative; aspect-ratio: 1; background: #f7f5f1; overflow: hidden; }
.mg-product__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; transition: opacity .35s ease; }
.mg-product__back { opacity: 0; }
.mg-product__img.has-back:hover .mg-product__back { opacity: 1; }
.mg-product__img img.mg-product__ph { inset: 25%; width: 50%; height: 50%; opacity: .18; }
.mg-product__badge { position: absolute; top: 12px; left: 12px; background: var(--mg-ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.mg-product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.mg-product__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.mg-product__body p { color: var(--mg-muted); font-size: .92rem; margin: 0 0 14px; }
.mg-product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mg-product__foot strong { font-family: var(--mg-head); font-size: 1.15rem; }
.mg-product__foot .mg-btn { padding: 9px 16px; font-size: .88rem; }

/* ---------- Footer ---------- */
.mg-footer { background: var(--mg-ink); color: #c9ccd1; padding: 60px 0 30px; font-size: .95rem; }
.mg-footer a { color: #fff; text-decoration: none; }
.mg-footer a:hover { color: var(--mg-blue-light); }
.mg-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.mg-footer__logo { width: 220px; height: auto; margin-bottom: 16px; }
.mg-footer__title { font-family: var(--mg-head); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 10px; }
.mg-footer ul { list-style: none; padding: 0; margin: 0; }
.mg-footer li { margin-bottom: 6px; }
.mg-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.mg-footer__bottom { border-top: 1px solid #2b2e33; margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .mg-footer__grid { grid-template-columns: 1fr; gap: 28px; } .mg-section { padding: 56px 0; } }

/* CTA on the kit gradient: white button */
.mg-cta .mg-btn { background: #fff; color: var(--mg-ink); }
.mg-cta .mg-btn:hover { background: var(--mg-blue-light); color: #fff; }
.mg-order-note { margin-top: 44px !important; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 24px 26px; }
.mg-order-note p { margin: 0; font-weight: 600; }
.mg-order-note .mg-pills { margin-top: 14px !important; }
.mg-kitnote { margin-top: 44px !important; display: flex; gap: 20px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, var(--mg-blue), var(--mg-navy) 70%, var(--mg-kit-black)); color: #fff; border-radius: var(--mg-radius); padding: 26px 28px; }
.mg-kitnote h3 { margin: 0 0 6px !important; color: #fff; font-size: 1.2rem; }
.mg-kitnote p { margin: 0 !important; max-width: 620px; opacity: .9; }
.mg-kitnote .mg-btn { background: #fff; color: var(--mg-navy); flex: 0 0 auto; }
.mg-kitnote + .mg-order-note { margin-top: 20px !important; }

/* ---------- Gallery block (own grid, independent of core styles) ---------- */
.mg-content .wp-block-gallery, .mg-content .wp-block-gallery.alignwide { display: grid !important; width: auto !important; max-width: none !important; margin-left: 0 !important; transform: none !important; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0 0; padding: 0; }
.mg-content .wp-block-gallery > .wp-block-image { margin: 0 !important; width: auto !important; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.mg-content .wp-block-gallery > .wp-block-image a, .mg-content .wp-block-gallery > .wp-block-image img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.mg-content .wp-block-gallery > .wp-block-image:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .mg-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.mg-statrow { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mg-statbox strong { font-size: 2.1rem; }
.mg-person__img--initials { background: var(--mg-grad); display: flex; align-items: center; justify-content: center; }
.mg-person__img--initials span { color: #fff; font-family: var(--mg-head); font-weight: 800; font-size: 2.6rem; letter-spacing: .02em; }
.mg-fbevents { margin-top: 60px; }
.mg-fbevents__box { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 560px; }
.mg-fbevents__box p { margin: 0; color: var(--mg-muted); font-size: .88rem; }
.mg-cta .mg-pills .mg-btn { background: #fff; color: var(--mg-ink); }
.mg-statbox strong { white-space: nowrap; }
.mg-consent .mg-fbevents__box { max-width: none; min-height: 260px; justify-content: center; }
.mg-gpxmap { margin: 0 0 30px; }
.mg-gpxmap .mg-fbevents__box { max-width: none; min-height: 300px; justify-content: center; }
.mg-gpxmap.is-loaded { height: 460px; border-radius: var(--mg-radius); overflow: hidden; border: 1px solid var(--mg-line); }
@media (max-width: 600px) { .mg-gpxmap.is-loaded { height: 360px; } }
.mg-gm { margin-top: 70px; }
.mg-gm:first-child { margin-top: 0; }
.mg-gm__lead { color: var(--mg-muted); margin: 6px 0 0; max-width: 620px; }
.mg-gmcard__src { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-blue); margin-bottom: 8px; }
.mg-section--dark .mg-gmcard__src { color: var(--mg-blue-light); }
.mg-how { margin: 0 0 60px; }
.mg-content .mg-how { margin: 50px 0 0; }
.mg-how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mg-how__item { background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 22px; }
.mg-how__item h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.mg-how__item p { margin: 0; color: var(--mg-muted); font-size: .95rem; line-height: 1.55; }
.mg-how__ic { font-size: 1.5rem; }
.mg-note { margin-top: 40px !important; background: #eef3fd; border-left: 4px solid var(--mg-blue); border-radius: 10px; padding: 20px 24px; }
.mg-note h3 { margin: 0 0 8px; }
.mg-note p { margin: 0 0 6px; }
.mg-content .mg-how__grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .mg-content .mg-how__grid { grid-template-columns: 1fr; } }
.mg-how__btn { margin-top: 14px; padding: 8px 16px; font-size: .85rem; }
.mg-routebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.mg-routebar .mg-filter { margin: 0; }
.mg-sort { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.mg-sort select { font: inherit; padding: 8px 12px; border: 1.5px solid var(--mg-ink); border-radius: 999px; background: #fff; cursor: pointer; }
.mg-card__img--ph { background: var(--mg-grad); position: relative; }
.mg-card__img--ph::after { content: ""; position: absolute; inset: 22%; background: url(assets/img/logo-emblem-white.svg) center/contain no-repeat; opacity: .9; }
.mg-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.7); opacity: 0; transition: opacity .8s ease; }
.mg-hero__video.is-playing { opacity: 1; }
.mg-gpm { margin-top: 40px !important; background: var(--mg-ink); color: #fff; border-radius: 24px; padding: 36px 34px; position: relative; overflow: hidden; background-image: repeating-linear-gradient(-30deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); }
.mg-gpm h2 { color: #fff; margin: 14px 0 10px; }
.mg-gpm p { opacity: .9; }
.mg-gpm__badge { display: inline-block; background: var(--mg-blue); color: #fff; font-family: var(--mg-head); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
.mg-steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0 26px; }
.mg-steps li { counter-increment: s; position: relative; padding: 0 0 14px 46px; line-height: 1.5; }
.mg-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--mg-ink); font-family: var(--mg-head); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.mg-code { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4); border-radius: 12px; padding: 8px 10px 8px 14px; }
.mg-code strong { font-family: var(--mg-head); font-size: 1.4rem; letter-spacing: .06em; }
.mg-copy { border: 0; background: #fff; color: var(--mg-ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; }
.mg-copy:hover { background: var(--mg-blue-light); color: #fff; }
@media (max-width: 600px) { .mg-gpm { padding: 28px 20px; } }
.mg-rules { margin: 0 0 60px; scroll-margin-top: 100px; }
.mg-rules__list { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.mg-rules__list li { counter-increment: r; position: relative; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 16px 18px 16px 62px; line-height: 1.5; }
.mg-rules__list li::before { content: counter(r); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--mg-ink); color: #fff; font-family: var(--mg-head); font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.mg-rules__list li.is-key { border-color: var(--mg-blue); background: #eef3fd; font-weight: 600; }
.mg-rules__list li.is-key::before { background: var(--mg-blue); }
.mg-rules-link { margin-top: 24px !important; font-weight: 600; }
.mg-bankfacts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mg-copy--dark { background: var(--mg-ink); color: #fff; margin-top: 8px; }
.mg-copy--dark:hover { background: var(--mg-blue); }
.mg-partner { margin-top: 60px !important; background: var(--mg-grad); color: #fff; border-radius: 24px; padding: 40px 36px; }
.mg-partner h2 { color: #fff; margin: 14px 0 10px; }
.mg-partner .mg-gpm__badge { background: #fff; color: var(--mg-ink); }
.mg-partner__lead { max-width: 760px; opacity: .92; }
.mg-partner__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0 18px; }
.mg-partner__item { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--mg-radius); padding: 18px; }
.mg-partner__item span { font-size: 1.5rem; }
.mg-partner__item h3 { color: #fff; font-size: 1rem; margin: 8px 0 6px; }
.mg-partner__item p { margin: 0; font-size: .92rem; opacity: .85; }
.mg-partner__note { font-size: .92rem; opacity: .8; margin: 0 0 22px; }
.mg-partner__mail { margin-left: 14px; opacity: .85; font-weight: 600; }
@media (max-width: 600px) { .mg-partner { padding: 30px 20px; } .mg-partner__mail { display: block; margin: 12px 0 0; } }
.mg-partnerbar { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: #fff; border: 1.5px dashed var(--mg-blue); border-radius: var(--mg-radius); padding: 20px 24px; }
.mg-partnerbar strong { display: block; font-family: var(--mg-head); font-size: 1.05rem; margin-bottom: 4px; }
.mg-partnerbar span { color: var(--mg-muted); font-size: .95rem; }
.mg-partner { scroll-margin-top: 100px; }

/* Sponsor logos: always fully visible */
.mg-sponsor { overflow: hidden; padding: 16px 18px; }
.mg-sponsor img { display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 64px; object-fit: contain; margin: 0 auto; }
.mg-sponsor-item { grid-template-columns: 150px minmax(0, 1fr); }
.mg-sponsor-item .mg-sponsor { height: 110px; }
.mg-sponsor-item a { overflow-wrap: anywhere; }
.mg-sponsor img, .mg-person__img img { border-radius: 0 !important; }
.mg-qa { min-height: calc(100vh - 88px); background: var(--mg-ink); background-image: repeating-linear-gradient(-30deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 80px; }
.mg-qa__card { width: 100%; max-width: 560px; color: #fff; }
.mg-qa__card h1 { color: #fff; font-size: clamp(2rem, 7vw, 3rem); margin: 16px 0 10px; }
.mg-qa__lead { opacity: .85; margin: 0 0 22px; }
.mg-qa__form { display: flex; flex-direction: column; gap: 8px; }
.mg-qa__form label { font-weight: 600; font-size: .95rem; margin-top: 6px; }
.mg-qa__form small { opacity: .6; font-weight: 400; }
.mg-qa__form textarea, .mg-qa__form input[type=text] { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #3a3d43; background: #1c1e22; color: #fff; }
.mg-qa__form textarea:focus, .mg-qa__form input:focus { outline: none; border-color: var(--mg-blue-light); }
.mg-qa__form button { margin-top: 14px; padding: 16px 22px; font-size: 1.05rem; }
.mg-qa__hp { position: absolute; left: -9999px; }
.mg-qa__note { font-size: .82rem; opacity: .6; margin: 10px 0 0; }
.mg-qa__msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.mg-qa__msg--ok { background: #1f7a3a; } .mg-qa__msg--err { background: #7a1f1f; }

/* ---------- Membership sign-up ---------- */
.mg-join__lead { font-size: 1.08rem; margin: 0 0 18px !important; }
.mg-join__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: linear-gradient(135deg, var(--mg-blue), var(--mg-navy) 70%, var(--mg-kit-black)); color: #fff; border-radius: var(--mg-radius); padding: 20px 24px; margin: 0 0 26px; }
.mg-join__price small { width: 100%; opacity: .85; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.mg-join__price strong { font-family: var(--mg-head); font-size: 2.2rem; line-height: 1.1; }
.mg-join__price span { opacity: .9; }
.mg-join { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 24px; }
.mg-join p { margin: 0 !important; }
.mg-join__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .mg-join__row { grid-template-columns: 1fr; } .mg-join { padding: 18px; } }
.mg-join label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.mg-join label small { font-weight: 400; opacity: .7; }
.mg-join input[type=text], .mg-join input:not([type]), .mg-join input[type=email], .mg-join input[type=tel], .mg-join select { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 1px solid #cfd5df; border-radius: 10px; background: #fff; color: inherit; }
.mg-join input:focus, .mg-join select:focus { outline: 2px solid var(--mg-blue); outline-offset: 1px; border-color: var(--mg-blue); }
.mg-join .mg-join__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; }
.mg-join__check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--mg-blue); }
.mg-join button { align-self: flex-start; margin-top: 6px; }
.mg-join__note { font-size: .88rem; opacity: .75; }
.mg-join__msg { border-radius: var(--mg-radius); padding: 18px 22px; margin: 0 0 22px; font-weight: 600; }
.mg-join__msg p { margin: 0 0 8px !important; }
.mg-join__msg p:last-child { margin-bottom: 0 !important; }
.mg-join__msg--ok { background: #e8f6ec; border-left: 4px solid #1a7f37; }
.mg-join__msg--err { background: #fdeeee; border-left: 4px solid #b32d2e; }
.mg-join__msg .mg-bankfacts { font-weight: 400; }

/* ---------- Gallery slideshow ---------- */
.mg-slides { margin: 30px 0 0; }
.mg-slides__stage { position: relative; border-radius: 16px; overflow: hidden; background: var(--mg-ink); }
.mg-slides__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.mg-slides__track::-webkit-scrollbar { display: none; }
.mg-slides__slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; height: min(72vh, 680px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mg-slides__slide::before { content: ""; position: absolute; inset: -30px; background: var(--mg-bg) center / cover no-repeat; filter: blur(28px) brightness(.55); }
.mg-slides .mg-slides__slide figure.wp-block-image { position: relative; margin: 0 !important; width: 100% !important; height: 100%; display: flex; align-items: center; justify-content: center; }
.mg-slides .mg-slides__slide figure a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.mg-slides .mg-slides__slide img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain !important; border-radius: 0 !important; }
.mg-slides .mg-slides__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 30px 20px 46px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: .95rem; text-align: center; }
.mg-slides__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--mg-ink); font-size: 1.9rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background .2s; }
.mg-slides__nav:hover { background: #fff; }
.mg-slides__prev { left: 16px; } .mg-slides__next { right: 16px; }
.mg-slides__bar { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 8px; align-items: center; }
.mg-slides__count { background: rgba(0,0,0,.55); color: #fff; font-size: .82rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.mg-slides__play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: .7rem; }
.mg-slides__play::before { content: "❚❚"; }
.mg-slides.is-paused .mg-slides__play::before { content: "▶"; }
.mg-slides__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.mg-slides__progress i { display: block; height: 100%; width: 0; background: var(--mg-blue); }
.mg-slides__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 6px; scrollbar-width: thin; }
.mg-slides__thumb { flex: 0 0 92px; height: 62px; border-radius: 8px; border: 2px solid transparent; background: #ddd center / cover no-repeat; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; padding: 0; }
.mg-slides__thumb:hover { opacity: .9; }
.mg-slides__thumb.is-active { opacity: 1; border-color: var(--mg-blue); }
@media (max-width: 700px) {
  .mg-content .mg-slides { margin-left: -20px; margin-right: -20px; }
  .mg-slides__stage { border-radius: 0; }
  .mg-slides__slide { height: min(115vw, 72vh); }
  .mg-slides__thumbs { padding-left: 16px; padding-right: 16px; }
  .mg-slides__nav { display: none; }
  .mg-slides__thumb { flex-basis: 64px; height: 46px; }
}

/* ---------- Official spot ---------- */
.mg-spot { margin-top: 28px !important; background: #fff; border: 1.5px dashed var(--mg-blue); border-radius: 24px; padding: 36px; scroll-margin-top: 100px; }
.mg-spot h2 { margin: 14px 0 10px; }
.mg-spot__lead { max-width: 780px; }
.mg-spot__sub { margin: 24px 0 0 !important; font-size: 1.05rem; }
.mg-spot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 14px 0 20px; }
.mg-spot__item { background: #eef3fd; border-radius: var(--mg-radius); padding: 18px; }
.mg-spot__item span { font-size: 1.5rem; }
.mg-spot__item h3 { font-size: 1rem; margin: 8px 0 6px; }
.mg-spot__item p { margin: 0; font-size: .92rem; color: var(--mg-muted); }
.mg-spot__need { margin: 0 0 22px !important; }
@media (max-width: 600px) { .mg-spot { padding: 26px 20px; } }
.mg-adminhint { margin-top: 16px !important; background: #fff8e1; border: 1.5px dashed #c99700; border-radius: 10px; padding: 14px 18px; font-size: .95rem; }
.mg-adminhint a { font-weight: 600; }

/* Product photo switcher + options */
.mg-product__img.has-gallery img.mg-product__slide { opacity: 0; }
.mg-product__img.has-gallery img.mg-product__slide.is-active { opacity: 1; }
.mg-product__img.has-gallery { cursor: pointer; }
.mg-product__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.mg-product__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,.22); cursor: pointer; }
.mg-product__dots button.is-active { background: var(--mg-blue); width: 22px; border-radius: 6px; }
.mg-product__opts { list-style: none; margin: 4px 0 14px !important; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.mg-product__opts li { margin: 0 !important; line-height: 1.4; }
.mg-product__opts small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mg-muted); font-weight: 700; }
.mg-product__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.mg-product__chips span { background: #f1f3f7; border: 1px solid var(--mg-line); border-radius: 999px; padding: 3px 10px; font-size: .82rem; line-height: 1.35; }

/* ---------- Reviews ---------- */
.mg-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 0 0 6px; }
.mg-reviews--all { margin-top: 30px; }
.mg-review { margin: 0 !important; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 24px 24px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; }
.mg-review::before { content: "“"; position: absolute; top: 4px; right: 18px; font-family: Georgia, serif; font-size: 4.2rem; line-height: 1; color: var(--mg-blue); opacity: .22; }
.mg-review blockquote { margin: 0; padding: 0; border: 0; font-size: 1rem; line-height: 1.6; }
.mg-review blockquote p { margin: 0 0 10px; }
.mg-review blockquote p:last-child { margin: 0; }
.mg-review figcaption { display: flex; align-items: center; gap: 12px; }
.mg-review__avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--mg-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mg-head); font-size: 1rem; }
.mg-review figcaption strong { display: block; }
.mg-review figcaption small { display: block; color: var(--mg-muted); font-size: .85rem; }
.mg-reviewform { margin-top: 50px !important; max-width: 780px; scroll-margin-top: 100px; }
.mg-reviewform h2 { margin-bottom: 8px; }
.mg-join textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 1px solid #cfd5df; border-radius: 10px; resize: vertical; }
.mg-join textarea:focus { outline: 2px solid var(--mg-blue); outline-offset: 1px; }
.mg-rules__more { margin: 14px 0 0 !important; font-weight: 600; }

/* ---------- Instagram feed ---------- */
.mg-ig { margin-top: 56px; }
.mg-ig.mg-section { margin-top: 0; }
.mg-ig.mg-section + .mg-section { padding-top: 0; }
.mg-ig__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mg-ig.mg-section .mg-ig__grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .mg-ig__grid, .mg-ig.mg-section .mg-ig__grid { grid-template-columns: repeat(3, 1fr); } }
.mg-ig__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #e9e6df; }
.mg-ig__item img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; margin: 0 !important; transition: transform .4s ease; }
.mg-ig__item:hover img { transform: scale(1.04); }
.mg-ig__badge { position: absolute; top: 8px; right: 10px; color: #fff; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mg-ig__cap { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-size: .82rem; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .25s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mg-ig__item:hover .mg-ig__cap { opacity: 1; }
@media (max-width: 600px) {
  .mg-ig.mg-section { padding: 56px 0; }
  .mg-ig .mg-section__head { margin-bottom: 20px; }
  .mg-ig .mg-section__head h2 { font-size: 1.6rem; }
  .mg-ig .mg-section__head .mg-btn { padding: 9px 16px; font-size: .9rem; }
  .mg-ig__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .mg-ig__item { border-radius: 12px; }
  .mg-ig__cap { display: none; }
  /* Home page: one swipeable row of bigger tiles instead of a cramped grid. */
  .mg-ig.mg-section .mg-ig__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; scrollbar-width: none; }
  .mg-ig.mg-section .mg-ig__grid::-webkit-scrollbar { display: none; }
  .mg-ig.mg-section .mg-ig__item { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- Report a problem ---------- */
.mg-report { background: none; border: 1px solid #3a3d43; color: #cfd2d6; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.mg-report:hover { border-color: #fff; color: #fff; }
.mg-reportbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mg-reportbox[hidden] { display: none; }
.mg-reportbox__card { position: relative; width: 100%; max-width: 460px; background: #fff; color: var(--mg-ink); border-radius: 18px; padding: 26px 24px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.mg-reportbox__card h3 { margin: 0; font-size: 1.25rem; }
.mg-reportbox__card p { margin: 0 0 6px; color: var(--mg-muted); font-size: .92rem; }
.mg-reportbox__card label { font-weight: 600; font-size: .9rem; margin-top: 4px; }
.mg-reportbox__card textarea, .mg-reportbox__card input[type=email] { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 13px; border: 1px solid #cfd5df; border-radius: 10px; }
.mg-reportbox__card button[type=submit] { align-self: flex-start; margin-top: 8px; }
.mg-reportbox__x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--mg-muted); }
.mg-reportbox__st { font-weight: 600; color: var(--mg-ink) !important; min-height: 1.2em; }

/* ---------- Questions to the guest on an event page ---------- */
.mg-ask { margin-top: 40px !important; background: var(--mg-ink); color: #fff; border-radius: 20px; padding: 28px 26px; scroll-margin-top: 100px; }
.mg-ask h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.mg-ask__lead { opacity: .85; margin: 0 0 16px !important; }
.mg-ask .mg-qa__msg { margin: 0 0 14px; color: #fff; }
@media (max-width: 600px) { .mg-ask { padding: 22px 18px; margin-left: -4px; margin-right: -4px; } }

/* ---------- Countdown ---------- */
.mg-cd { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; padding: 14px 22px 12px; border-radius: 18px; background: rgba(10,12,16,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.mg-cd__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.mg-cd__units { display: flex; gap: 14px; }
.mg-cd__units > span { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.mg-cd__units b { font-family: var(--mg-head); font-size: 1.9rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mg-cd__units small { font-size: .72rem; opacity: .75; margin-top: 2px; }
.mg-cd__live { font-family: var(--mg-head); font-size: 1.3rem; }
.mg-cd__event { color: #fff !important; font-size: .9rem; font-weight: 600; text-decoration: none; opacity: .9; }
.mg-cd__event:hover { opacity: 1; text-decoration: underline; }
.mg-cd--page { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; margin: 0 0 28px !important; background: var(--mg-grad); border: 0; backdrop-filter: none; padding: 16px 22px; }
@media (max-width: 600px) {
  .mg-cd { padding: 12px 14px 10px; margin-top: 20px; }
  .mg-cd__units { gap: 8px; }
  .mg-cd__units > span { min-width: 40px; }
  .mg-cd__units b { font-size: 1.5rem; }
  .mg-cd--page { justify-content: center; text-align: center; }
}
@media (min-width: 700px) {
  .mg-cd--hero { flex-direction: row; gap: 18px; margin-top: 22px; padding: 10px 14px 10px 22px; border-radius: 999px; }
  .mg-cd--hero .mg-cd__title { max-width: 110px; text-align: left; line-height: 1.25; }
  .mg-cd--hero .mg-cd__units b { font-size: 1.55rem; }
  .mg-cd--hero .mg-cd__event { background: #fff; color: var(--mg-ink) !important; padding: 9px 16px; border-radius: 999px; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 1; }
}

/* ---------- Weekly social ride ---------- */
.mg-weekly { background: var(--mg-grad); color: #fff; border-radius: 20px; padding: 24px 26px; margin: 0 0 30px; }
.mg-weekly h3 { color: #fff; margin: 10px 0 6px; font-size: 1.35rem; }
.mg-weekly p { margin: 0 0 6px; opacity: .92; max-width: 760px; }
.mg-weekly__badge { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
.mg-weekly__note { background: rgba(255,255,255,.14); border-radius: 10px; padding: 8px 12px; display: inline-block; }
.mg-weekly__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mg-weekly .mg-btn { background: #fff; color: var(--mg-ink); }
.mg-weekly .mg-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.mg-weekly--cancelled { background: linear-gradient(135deg, #5a2121, #2a1111); }
.mg-weekly--winter { background: linear-gradient(135deg, #2a4f7a, #0b2f6b 60%, #111); }
@media (max-width: 600px) { .mg-weekly { padding: 20px 18px; } .mg-weekly h3 { font-size: 1.15rem; } }

/* Review cards on the home page: shortened text + "Skaityti visą" */
.mg-review blockquote.is-clamped { max-height: 9.8em; overflow: hidden; position: relative; transition: max-height .35s ease; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.mg-review blockquote.is-clamped.is-open { max-height: 60em; -webkit-mask-image: none; mask-image: none; }
.mg-review__more { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: -8px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--mg-blue); cursor: pointer; }
.mg-review__more:hover { text-decoration: underline; }
.mg-reviews { align-items: start; }
.mg-review figcaption small.mg-review__lang { font-size: .75rem; opacity: .8; margin-top: 2px; }
.mg-weekly__notice { background: #fff; color: var(--mg-ink); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px !important; opacity: 1 !important; font-weight: 600; max-width: none !important; }

/* ---------- Tools: tyre pressure, weather, winter challenge ---------- */
.mg-tool { border-radius: 20px; padding: 26px; margin: 0 0 30px; }
.mg-tool h2 { margin: 6px 0 6px; font-size: 1.45rem; }
.mg-tool__lead { margin: 0 0 18px; color: var(--mg-muted); }
.mg-tool__note { font-size: .82rem; color: var(--mg-muted); margin: 16px 0 0 !important; }
.mg-tire { background: #fff; border: 1px solid var(--mg-line); margin-top: 60px; scroll-margin-top: 100px; }
.mg-tire__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; }
.mg-tire__form { display: flex; flex-direction: column; gap: 16px; }
.mg-tire__form label { font-weight: 600; font-size: .92rem; display: block; }
.mg-tire__form output { float: right; font-family: var(--mg-head); color: var(--mg-blue); }
.mg-tire__form input[type=range] { width: 100%; margin-top: 8px; accent-color: var(--mg-blue); }
.mg-tire__seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mg-tire__seg span { width: 100%; font-weight: 600; font-size: .92rem; }
.mg-tire__seg button { border: 1.5px solid var(--mg-line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; cursor: pointer; }
.mg-tire__seg button.is-on { background: var(--mg-ink); color: #fff; border-color: var(--mg-ink); }
.mg-tire__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-tire__out > div { background: var(--mg-grad); color: #fff; border-radius: 16px; padding: 20px 16px; text-align: center; }
.mg-tire__out small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; opacity: .85; }
.mg-tire__out b { display: block; font-family: var(--mg-head); font-size: 2rem; margin: 6px 0 2px; }
.mg-tire__out span { opacity: .85; font-size: .9rem; }
@media (max-width: 760px) { .mg-tire__grid { grid-template-columns: 1fr; } .mg-tool { padding: 20px 18px; } }

.mg-wx { background: #fff; border: 1px solid var(--mg-line); border-left: 6px solid #1a7f37; }
.mg-wx.mg-wx--l1 { border-left-color: #c99700; } .mg-wx.mg-wx--l2 { border-left-color: #d9622b; } .mg-wx.mg-wx--l3 { border-left-color: #b32d2e; }
.mg-wx__q { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mg-muted); }
.mg-wx__facts { margin: 0 0 16px; color: var(--mg-muted); }
.mg-wx__days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mg-wx__day { background: #f6f7f9; border-radius: 14px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 3px; border-top: 4px solid #1a7f37; }
.mg-wx__day.mg-wx--l1 { border-top-color: #c99700; } .mg-wx__day.mg-wx--l2 { border-top-color: #d9622b; } .mg-wx__day.mg-wx--l3 { border-top-color: #b32d2e; }
.mg-wx__day small { font-weight: 700; } .mg-wx__day span { font-size: .8rem; color: var(--mg-muted); } .mg-wx__day em { font-style: normal; font-size: 1.2rem; }
.mg-wx__big { font-size: 1.8rem !important; color: inherit !important; }
.mg-wx--compact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 18px; border-radius: 14px; margin: -14px 0 30px; }
.mg-wx--compact strong { font-size: 1rem; }
.mg-wx--compact .mg-wx__f { font-size: .85rem; color: var(--mg-muted); }

.mg-ch { background: linear-gradient(135deg, #2a4f7a, #0b2f6b 60%, #111); color: #fff; margin-top: 30px; }
.mg-ch h2 { color: #fff; }
.mg-ch__badge { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; }
.mg-ch__text { opacity: .88; margin: 0 0 16px !important; max-width: 760px; }
.mg-ch__nums { font-size: 1.05rem; margin-bottom: 8px; }
.mg-ch__nums b { font-family: var(--mg-head); font-size: 2rem; }
.mg-ch__nums span { float: right; font-family: var(--mg-head); font-size: 1.3rem; color: #8fb6ff; margin-top: 8px; }
.mg-ch__bar { position: relative; height: 16px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: visible; }
.mg-ch__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #8fb6ff, #fff); }
.mg-ch__bar em { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #ffd166; border-radius: 2px; }
.mg-ch__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .9rem; opacity: .92; }
.mg-ch__foot span { margin-right: auto; }
.mg-ch__foot a { color: #fff !important; font-weight: 600; }

/* ---------- Winter season block ---------- */
.mg-winter { background: linear-gradient(135deg, #2a4f7a, #0b2f6b 60%, #111); color: #fff; margin-top: 30px; }
.mg-winter__grid { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-top: 14px; }
.mg-winter__big { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 18px 22px; text-align: center; min-width: 220px; }
.mg-winter__big small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.mg-winter__big b { display: block; font-family: var(--mg-head); font-size: 3.2rem; line-height: 1.1; margin: 6px 0; }
.mg-winter__big b span { font-size: 1.2rem; opacity: .8; }
.mg-winter__big em { font-style: normal; font-size: .82rem; opacity: .85; }
.mg-winter__list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.mg-winter__list li { display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; line-height: 1.45; }
.mg-winter__list li > span:first-child { font-size: 1.3rem; line-height: 1.1; }
.mg-winter__tip { background: rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 700px) { .mg-winter__grid { grid-template-columns: 1fr; } }

/* ---------- Tools page & kit (inc-kit.php) ---------- */
.mg-tools-page { padding: 40px 20px 90px; }
.mg-tools-page .mg-tool { scroll-margin-top: 100px; }
.mg-tools-page .mg-tire { margin-top: 0; }
.mg-toolnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.mg-toolnav a, .mg-toolstrip a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--mg-line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; color: var(--mg-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.mg-toolnav a:hover, .mg-toolstrip a:hover { border-color: var(--mg-blue); transform: translateY(-1px); }
.mg-toolstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -10px 0 34px; }
.mg-toolstrip__t { font-weight: 700; margin-right: 4px; }
.mg-firsttime { margin: -14px 0 24px; font-weight: 600; }
.mg-firsttime a { color: var(--mg-blue); }
.mg-tools-page__first { font-weight: 600; font-size: 1.05rem; }

.mg-dress, .mg-finder, .mg-cal { background: #fff; border: 1px solid var(--mg-line); }
.mg-dress__out { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mg-dress__out li { display: flex; gap: 12px; align-items: flex-start; background: #f6f7f9; border-radius: 12px; padding: 10px 14px; line-height: 1.4; }
.mg-dress__out li > span { font-size: 1.3rem; line-height: 1.2; }
.mg-dress__out small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-muted); }
.mg-dress__extra { background: #eef3fd !important; }
.mg-dress__grid { align-items: start; }

.mg-finder__wind { background: #eef3fd; border-radius: 12px; padding: 12px 16px; font-weight: 600; margin: 0 0 18px !important; }
.mg-finder__ctl { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 20px; }
.mg-finder__ctl .mg-tire__seg span { width: auto; margin-right: 6px; }
.mg-finder__item[hidden] { display: none; }
.mg-finder__item { display: flex; flex-direction: column; }
.mg-finder__item .mg-card { flex: 1; }
.mg-finder__fit { margin: 8px 0 0 !important; font-size: .85rem; font-weight: 600; }
.mg-finder__fit.is-good { color: #1a7f37; } .mg-finder__fit.is-mid { color: #8a6d00; } .mg-finder__fit.is-bad { color: #b32d2e; }
.mg-finder__none { font-weight: 600; }

.mg-fuel__tips { margin: 18px 0 0; padding-left: 20px; }
.mg-fuel__tips li { margin: 4px 0; }

.mg-dusk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-dusk__row input { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; background: #fff; }
.mg-dusk__out { display: flex; flex-direction: column; gap: 12px; }
.mg-dusk__verdict { border-radius: 14px; padding: 16px 18px; font-weight: 700; background: #f6f7f9; line-height: 1.4; }
.mg-dusk__verdict.is-good { background: #e6f4ea; color: #14532d; } .mg-dusk__verdict.is-mid { background: #fff4d6; color: #6b4e00; } .mg-dusk__verdict.is-bad { background: #fde8e8; color: #7f1d1d; }
.mg-dusk__out ul { list-style: none; margin: 0; padding: 0; }
.mg-dusk__out li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--mg-line); font-size: .92rem; }
.mg-dusk__out li b { font-family: var(--mg-head); white-space: nowrap; }

.mg-road__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mg-road h3 { font-size: 1.05rem; margin: 0 0 10px; }
.mg-road h3 small { font-family: var(--mg-head); color: var(--mg-muted); margin-left: 6px; }
.mg-road h3 small.is-done { color: #1a7f37; }
.mg-road__kit { list-style: none; margin: 0; padding: 0; }
.mg-road__kit li { border-bottom: 1px solid var(--mg-line); }
.mg-road__kit label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; cursor: pointer; line-height: 1.4; }
.mg-road__kit input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mg-blue); flex: none; }
.mg-road__kit input:checked + span { color: var(--mg-muted); text-decoration: line-through; }
.mg-road__reset { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--mg-blue); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.mg-road__help details { border: 1px solid var(--mg-line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.mg-road__help summary { padding: 12px 14px; font-weight: 700; cursor: pointer; }
.mg-road__help ol { margin: 0; padding: 0 18px 12px 34px; }
.mg-road__help li { margin: 5px 0; line-height: 1.45; }
.mg-road__sos { display: inline-block; margin-top: 8px; background: #b32d2e; color: #fff !important; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; }

.mg-cal { display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center; }
.mg-cal .mg-tool__note { grid-column: 1 / -1; margin: 0 !important; }
.mg-cal .mg-tool__lead { margin: 0; }
.mg-cal__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 420px; }
.mg-cal--compact { margin-top: 40px; }
.mg-addcal { margin: 0 0 24px !important; font-size: .95rem; }
.mg-addcal span { font-weight: 700; }

.mg-first details, .mg-content .wp-block-details { border: 1px solid var(--mg-line); border-radius: 12px; padding: 0 16px; margin: 0 0 10px; background: #fff; }
.mg-content .wp-block-details summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.mg-content .wp-block-details p { margin: 0 0 14px; }
.mg-first__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mg-footer__grid ul + ul { margin-top: 0; }

@media (max-width: 760px) {
  .mg-road__grid, .mg-cal { grid-template-columns: 1fr; }
  .mg-cal__btns { justify-content: flex-start; }
  .mg-finder__ctl .mg-tire__seg span { width: 100%; }
}

/* ---------- v1.42 extras ---------- */
.mg-hp { position: absolute; left: -9999px; }
/* gravel condition */
.mg-grv { margin: -6px 0 16px !important; padding: 10px 14px; border-radius: 12px; background: #f6f7f9; font-size: .95rem; }
.mg-grv small { color: var(--mg-muted); margin-left: 4px; }
.mg-grv--l0 { background: #e6f4ea; } .mg-grv--l1 { background: #fff8db; } .mg-grv--l2 { background: #ffeedd; } .mg-grv--l3 { background: #f3e6dc; } .mg-grv--l-1 { background: #e5f0fb; }
span.mg-grv { margin: 0 !important; padding: 3px 10px; font-size: .82rem; font-weight: 600; border-radius: 999px; }
/* PWA */
.mg-pwa { background: var(--mg-grad); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 30px; align-items: center; }
.mg-pwa h2 { color: #fff; } .mg-pwa .mg-tool__lead { color: rgba(255,255,255,.85); margin: 0; }
.mg-pwa__how { font-size: .85rem; opacity: .85; margin: 10px 0 0 !important; }
.mg-pwa-btn[hidden] { display: none !important; }
/* cyclist's map */
.mg-mappage { padding: 40px 20px 90px; }
.mg-places__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mg-places__chips small { opacity: .6; margin-left: 2px; }
.mg-places__map.is-loaded, .mg-allroutes__map.is-loaded { height: 480px; }
.mg-places__map { margin-bottom: 20px; }
.mg-places__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.mg-places__list li { display: flex; gap: 12px; background: #fff; border: 1px solid var(--mg-line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.mg-places__list li[hidden] { display: none; }
.mg-places__list li:hover { border-color: var(--mg-blue); }
.mg-places__list p { margin: 3px 0 !important; font-size: .9rem; }
.mg-places__list small { font-size: .82rem; color: var(--mg-muted); }
.mg-places__ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.mg-pin span { display: flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; font-size: 17px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.mg-allroutes { margin-top: 50px; }
/* random */
.mg-random { cursor: pointer; }
.mg-card.is-picked { outline: 4px solid var(--mg-blue); outline-offset: 3px; animation: mg-pick .6s ease 2; }
@keyframes mg-pick { 50% { transform: scale(1.03); } }
.mg-finder__ctl .mg-random { align-self: flex-end; }
/* member card */
.mg-cardpage { padding: 40px 20px 90px; max-width: 760px; }
.mg-mcard { background: var(--mg-grad); color: #fff; border-radius: 24px; padding: 26px; max-width: 420px; margin: 0 auto; box-shadow: 0 20px 50px rgba(11,47,107,.35); }
.mg-mcard.is-expired { filter: grayscale(1); opacity: .75; }
.mg-mcard__top { display: flex; justify-content: space-between; align-items: center; }
.mg-mcard__top img { width: 150px; height: auto; }
.mg-mcard__top span { font-weight: 800; letter-spacing: .2em; font-size: .78rem; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; }
.mg-mcard__name { font-family: var(--mg-head); font-size: 1.6rem; margin: 26px 0 14px; line-height: 1.15; }
.mg-mcard__meta { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; justify-content: space-between; }
.mg-mcard__meta small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.mg-mcard__meta b { font-size: .95rem; }
.mg-mcard__qr { background: #fff; border-radius: 16px; padding: 12px; margin: 22px auto 10px; width: 220px; }
.mg-mcard__qr svg { display: block; width: 100%; height: auto; }
.mg-mcard__hint { text-align: center; font-size: .8rem; opacity: .85; margin: 0 !important; }
.mg-cardpage__save { text-align: center; margin: 22px auto !important; max-width: 520px; color: var(--mg-muted); }
.mg-verify { text-align: center; border-radius: 22px; padding: 34px 20px; margin-bottom: 30px; }
.mg-verify.is-ok { background: #e6f4ea; color: #14532d; } .mg-verify.is-bad { background: #fde8e8; color: #7f1d1d; }
.mg-verify__ic { font-size: 3.4rem; line-height: 1; }
.mg-verify h2 { margin: 12px 0 8px; color: inherit; }
.mg-perks { margin: 34px 0; }
.mg-perks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mg-perks__list li { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--mg-line); border-radius: 12px; padding: 12px 16px; }
.mg-perks__list span { color: var(--mg-blue); font-weight: 700; }
.mg-cardresend { margin: 30px 0; border: 1px solid var(--mg-line); border-radius: 14px; background: #fff; padding: 0 18px; }
.mg-cardresend summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.mg-cardresend form { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 16px; }
.mg-cardresend input[type=email] { flex: 1 1 240px; padding: 11px 14px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; }
.mg-cardresend__ok { background: #e6f4ea; color: #14532d; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
/* invite */
.mg-invite { display: grid; grid-template-columns: 1fr auto; gap: 16px 30px; align-items: center; background: #fff; border: 1px solid var(--mg-line); border-radius: 20px; padding: 24px 26px; margin: 40px 0 0; }
.mg-invite h2 { margin: 0 0 6px; font-size: 1.35rem; }
.mg-invite p { margin: 0 !important; color: var(--mg-muted); }
.mg-invite__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 460px; }
.mg-invite__btns [hidden] { display: none; }
/* volunteers */
.mg-vol { background: #fff; border: 1px solid var(--mg-line); border-radius: 20px; padding: 26px; margin-top: 40px; scroll-margin-top: 100px; }
.mg-vol h2 { margin-top: 0; }
.mg-vol__form { display: flex; flex-direction: column; gap: 14px; }
.mg-vol__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mg-vol__form label { font-weight: 600; font-size: .92rem; }
.mg-vol__form input[type=text], .mg-vol__form input[type=email], .mg-vol__form input[type=tel], .mg-vol__form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; font-weight: 400; }
.mg-vol__form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mg-vol__form legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.mg-vol__chk { font-weight: 400 !important; display: flex; gap: 8px; align-items: flex-start; }
.mg-vol__chk input { margin-top: 4px; accent-color: var(--mg-blue); }
.mg-vol__form button { align-self: flex-start; }
.mg-vol__ok { background: #e6f4ea; color: #14532d; border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.mg-vol__err { color: #b32d2e; font-weight: 600; }
/* quiz */
.mg-quiz { background: #fff; border: 1px solid var(--mg-line); }
.mg-quiz__bar { height: 6px; background: #eef0f3; border-radius: 999px; overflow: hidden; }
.mg-quiz__bar i { display: block; height: 100%; background: var(--mg-grad-x); transition: width .3s; }
.mg-quiz__n { font-size: .8rem; font-weight: 700; color: var(--mg-muted); margin: 10px 0 4px !important; }
.mg-quiz h3 { margin: 0 0 14px; font-size: 1.2rem; }
.mg-quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-quiz__opts button { text-align: left; border: 1.5px solid var(--mg-line); background: #fff; border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; transition: border-color .15s; }
.mg-quiz__opts button:hover:not(:disabled) { border-color: var(--mg-blue); }
.mg-quiz__opts button.is-ok { background: #e6f4ea; border-color: #1a7f37; color: #14532d; font-weight: 600; }
.mg-quiz__opts button.is-bad { background: #fde8e8; border-color: #b32d2e; color: #7f1d1d; }
.mg-quiz__opts button:disabled { cursor: default; }
.mg-quiz__exp { margin: 14px 0 0 !important; background: #f6f7f9; border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.mg-quiz__next { margin-top: 10px; }
.mg-quiz__res { text-align: center; padding: 10px 0; }
.mg-quiz__res b { display: block; font-family: var(--mg-head); font-size: 3rem; background: var(--mg-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-quiz__act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
@media (max-width: 760px) {
  .mg-pwa, .mg-invite { grid-template-columns: 1fr; }
  .mg-invite__btns { justify-content: flex-start; }
  .mg-vol__row, .mg-quiz__opts { grid-template-columns: 1fr; }
  .mg-places__map.is-loaded, .mg-allroutes__map.is-loaded { height: 380px; }
}
/* copy buttons styled as ghost buttons (calendar, invite) */
.mg-btn.mg-btn--ghost.mg-copy { background: transparent; color: inherit; border: 1.5px solid currentColor; padding: 12px 22px; font-size: .95rem; font-weight: 600; }
.mg-btn.mg-btn--ghost.mg-copy:hover { background: var(--mg-ink); color: #fff; border-color: var(--mg-ink); }

/* ---------- Survey (v1.43) ---------- */
.mg-svpage { max-width: 760px; }
.mg-sv__intro { color: var(--mg-muted); }
.mg-sv__progress { height: 6px; background: #e7e4dc; border-radius: 999px; overflow: hidden; margin: 10px 0 24px; }
.mg-sv__progress i { display: block; height: 100%; width: 25%; background: var(--mg-grad-x); transition: width .3s; }
.mg-sv__form:not(.is-js) .mg-sv__nav [data-next], .mg-sv__form:not(.is-js) .mg-sv__nav [data-prev] { display: none; }
.mg-sv__step { scroll-margin-top: 100px; }
.mg-sv__step[hidden] { display: none; }
.mg-sv__stepn { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--mg-muted); margin: 0 !important; }
.mg-sv__step > h2 { margin: 4px 0 18px; }
.mg-sv__q { border: 1px solid var(--mg-line); background: #fff; border-radius: 16px; padding: 18px 20px; margin: 0 0 14px; min-width: 0; }
.mg-sv__q.is-missing { border-color: #b32d2e; box-shadow: 0 0 0 3px rgba(179,45,46,.12); }
.mg-sv__q legend { font-weight: 700; font-size: 1.02rem; padding: 0; float: left; width: 100%; margin-bottom: 10px; }
.mg-sv__q legend + * { clear: both; }
.mg-sv__req { color: #b32d2e; }
.mg-sv__help { font-size: .88rem; color: var(--mg-muted); margin: 0 0 10px !important; clear: both; }
.mg-sv__err { color: #b32d2e; font-weight: 600; font-size: .88rem; margin: 8px 0 0 !important; }
.mg-sv__scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; clear: both; }
.mg-sv__scale label, .mg-sv__mrow label { position: relative; }
.mg-sv__scale input, .mg-sv__mrow input, .mg-sv__opts input { position: absolute; opacity: 0; pointer-events: none; }
.mg-sv__scale span, .mg-sv__mrow label span { display: flex; align-items: center; justify-content: center; height: 42px; border: 1.5px solid var(--mg-line); border-radius: 10px; font-weight: 700; cursor: pointer; background: #fff; }
.mg-sv__scale input:checked + span, .mg-sv__mrow input:checked + span { background: var(--mg-blue); border-color: var(--mg-blue); color: #fff; }
.mg-sv__scale input:focus-visible + span, .mg-sv__mrow input:focus-visible + span, .mg-sv__opts input:focus-visible + span { outline: 3px solid var(--mg-blue-light); outline-offset: 2px; }
.mg-sv__ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--mg-muted); margin-top: 6px; }
.mg-sv__opts { display: flex; flex-direction: column; gap: 6px; clear: both; }
.mg-sv__opts label { position: relative; display: block; }
.mg-sv__opts label > span { display: block; padding: 11px 14px 11px 42px; border: 1.5px solid var(--mg-line); border-radius: 12px; cursor: pointer; position: relative; line-height: 1.35; }
.mg-sv__opts label > span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid #9aa0a6; border-radius: 50%; }
.mg-sv__opts input[type=checkbox] + span::before { border-radius: 4px; }
.mg-sv__opts input:checked + span { border-color: var(--mg-blue); background: #eef3fd; font-weight: 600; }
.mg-sv__opts input:checked + span::before { border-color: var(--mg-blue); background: var(--mg-blue); box-shadow: inset 0 0 0 3px #fff; }
.mg-sv__opts input:disabled + span { opacity: .45; cursor: not-allowed; }
.mg-sv__other { display: flex !important; align-items: center; gap: 10px; }
.mg-sv__other span { font-weight: 600; }
.mg-sv__other input, .mg-sv__q textarea { position: static !important; opacity: 1 !important; pointer-events: auto !important; flex: 1; padding: 10px 12px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; width: 100%; box-sizing: border-box; }
.mg-sv__q textarea { clear: both; display: block; }
.mg-sv__matrix { display: flex; flex-direction: column; gap: 10px; clear: both; }
.mg-sv__mrow > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.mg-sv__mrow > div { display: grid; grid-template-columns: repeat(5, 1fr) 1.8fr; gap: 5px; }
.mg-sv__mrow .mg-sv__nz span { font-weight: 500; font-size: .85rem; }
.mg-sv__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.mg-sv__nav .mg-btn--grad { margin-left: auto; }
.mg-sv__done { text-align: center; background: #fff; border: 1px solid var(--mg-line); border-radius: 20px; padding: 34px 22px; }
.mg-sv__done > div:first-child { font-size: 3rem; }
.mg-sv__done h2 { margin: 8px 0; }
.mg-sv__email { text-align: left; border-top: 1px solid var(--mg-line); margin-top: 22px; padding-top: 18px; }
.mg-sv__emailrow { display: flex; gap: 8px; flex-wrap: wrap; }
.mg-sv__emailrow input { flex: 1 1 220px; padding: 11px 14px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; }
.mg-sv__consent { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--mg-muted); margin-top: 10px; }
.mg-svcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: var(--mg-grad); color: #fff; border-radius: 18px; padding: 20px 24px; margin: 0 0 24px; }
.mg-svcta strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.mg-svcta span { opacity: .9; }
.mg-svcta .mg-btn--grad { background: #fff; color: var(--mg-blue); }
@media (max-width: 560px) {
  .mg-sv__scale { grid-template-columns: repeat(6, 1fr); }
  .mg-sv__mrow > div { grid-template-columns: repeat(5, 1fr); }
  .mg-sv__mrow .mg-sv__nz { grid-column: 1 / -1; }
  .mg-sv__q { padding: 16px 14px; }
}

/* ---------- v1.44: Dalyvausiu, push, suggestions, event photos, winter service ---------- */
.mg-push-btn[hidden], .mg-rsvp [hidden], .mg-push-msg[hidden] { display: none !important; }
.mg-rsvp { background: #fff; border: 1px solid var(--mg-line); border-radius: 20px; padding: 22px 24px; margin: 0 0 28px; scroll-margin-top: 100px; }
.mg-rsvp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.mg-rsvp h2 { margin: 0; font-size: 1.35rem; }
.mg-rsvp__count { margin: 4px 0 0; color: var(--mg-muted); font-weight: 600; }
.mg-rsvp__me { margin: 0; color: #1a7f37; }
.mg-rsvp__me a { color: var(--mg-muted); font-weight: 400; }
.mg-rsvp .mg-vol__ok, .mg-rsvp__cancel, .mg-rsvp__form { margin-top: 16px; }
.mg-rsvp__cancel p { margin: 0 0 10px; }
.mg-rsvp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-rsvp__row input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; font-weight: 400; box-sizing: border-box; }
.mg-rsvp__note { margin: 14px 0 0; font-size: .86rem; color: var(--mg-muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.mg-rsvp__push { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--mg-blue); cursor: pointer; }
.mg-push-btn.is-on:not(.mg-report):not(.mg-rsvp__push) { background: #fff; color: var(--mg-ink); border: 1.5px solid var(--mg-line); }
.mg-push-msg { font-size: .88rem; color: var(--mg-muted); margin: 8px 0 0; }
.mg-push-msg--inline { display: block; flex-basis: 100%; }
.mg-pushbox { background: #fff; border: 1px solid var(--mg-line); display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; scroll-margin-top: 100px; }
.mg-pushbox .mg-tool__lead { margin: 0; }
.mg-idea { scroll-margin-top: 100px; }
.mg-idea__form > label { font-weight: 600; font-size: .92rem; }
.mg-idea__form > label:not(.mg-vol__chk) input, .mg-idea__form > label textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; font-weight: 400; box-sizing: border-box; }
.mg-idea__types { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
.mg-idea__types legend { grid-column: 1 / -1; }
.mg-idea__types label { position: relative; cursor: pointer; }
.mg-idea__types input { position: absolute; opacity: 0; }
.mg-idea__types span { display: block; border: 1.5px solid var(--mg-line); border-radius: 12px; padding: 12px 14px; background: #fff; font-weight: 600; }
.mg-idea__types input:checked + span { border-color: var(--mg-blue); background: #eef3fd; }
.mg-idea__types input:focus-visible + span { outline: 2px solid var(--mg-blue); outline-offset: 2px; }
.mg-ideacta { margin: 40px 0 0; }
.mg-recap { margin: 0 0 30px; scroll-margin-top: 100px; }
.mg-recap h2 { margin-top: 0; }
.mg-recap__video, .mg-recap__iframe, .mg-recap__yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #111 center / cover no-repeat; margin: 0 0 16px; }
.mg-recap__video { height: auto; max-height: 80vh; }
.mg-recap__yt { position: relative; cursor: pointer; color: #fff; }
.mg-recap__yt::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); border-radius: 16px; }
.mg-recap__yt span { position: relative; display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--mg-grad); font-size: 1.8rem; }
.mg-recap__yt em { position: relative; display: block; margin-top: 10px; font-style: normal; font-weight: 700; }
.mg-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.mg-gal__i { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #eef0f3; }
.mg-gal__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; margin: 0 !important; }
.mg-gal__i:hover img { transform: scale(1.04); }
.mg-gal__i.is-more { display: none; }
.mg-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8, 9, 11, .94); display: grid; place-items: center; }
.mg-lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.mg-lb button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.mg-lb__x { top: 14px; right: 14px; }
.mg-lb__p { left: 12px; top: 50%; transform: translateY(-50%); }
.mg-lb__n { right: 12px; top: 50%; transform: translateY(-50%); }
.mg-lb__c { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.mg-service__bar { height: 8px; background: #eef0f3; border-radius: 999px; overflow: hidden; margin: 0 0 18px; }
.mg-service__bar i { display: block; height: 100%; width: 0; background: var(--mg-grad-x); transition: width .3s; }
.mg-service__grid { columns: 2 300px; column-gap: 30px; }
.mg-service__g { break-inside: avoid; margin-bottom: 18px; }
.mg-service h2 small { font-family: var(--mg-head); font-size: .9rem; color: var(--mg-muted); margin-left: 6px; }
.mg-service h2 small.is-done { color: #1a7f37; }
.mg-service .mg-road__kit small { display: block; color: var(--mg-muted); font-size: .84rem; margin-top: 2px; }
.mg-service .mg-road__kit input:checked + span small { text-decoration: none; }
.mg-service__perk { background: #eef3fd; border-radius: 12px; padding: 12px 16px; font-weight: 600; margin: 4px 0 12px; }
@media (max-width: 760px) {
  .mg-rsvp__row, .mg-pushbox, .mg-idea__types { grid-template-columns: 1fr; }
  .mg-rsvp { padding: 18px 16px; }
  .mg-gal { grid-template-columns: repeat(3, 1fr); gap: 5px; }
}
.mg-pushbox[hidden] { display: none !important; }
/* v1.45: riding in the dark */
.mg-dark .mg-road__kit small { display: block; color: var(--mg-muted); font-size: .84rem; margin-top: 2px; }
.mg-dark__bat { margin-top: 20px; background: #f4f6f9; border-radius: 14px; padding: 16px; }
.mg-dark__bat h3 { margin: 0 0 10px; }
.mg-dark__bat label { font-weight: 600; font-size: .88rem; }
.mg-dark__bat small { color: var(--mg-muted); font-size: .8rem; }
.mg-dark__res { font-weight: 700; margin: 12px 0 6px; }
.mg-dark__res.is-ok { color: #1a7f37; } .mg-dark__res.is-low { color: #a15c00; } .mg-dark__res.is-no { color: #b32d2e; }
.mg-dark .mg-road__help ul { margin: 0; padding: 0 16px 12px 32px; }
.mg-dark .mg-road__help li { margin: 5px 0; line-height: 1.45; }
.mg-dark .mg-road__help details p { margin: 0; padding: 0 16px 14px; line-height: 1.5; }
.mg-dark__dusk { margin-top: 12px; font-weight: 600; }
.mg-darkcta { display: flex; gap: 12px; align-items: flex-start; background: #0f1b33; color: #fff; border-radius: 16px; padding: 14px 18px; margin: 0 0 20px; }
.mg-darkcta > span { font-size: 1.5rem; line-height: 1.2; }
.mg-darkcta p { margin: 0; line-height: 1.5; }
.mg-darkcta a { color: #ffd166; font-weight: 700; white-space: nowrap; }
/* v1.46: games */
.mg-toolstrip__hot { background: var(--mg-grad) !important; color: #fff !important; border-color: transparent !important; }
.mg-game { background: #fff; border: 1px solid var(--mg-line); scroll-margin-top: 100px; }
.mg-dash { position: relative; border-radius: 16px; overflow: hidden; background: #78b4eb; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.mg-dash__cv { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; cursor: pointer; }
.mg-dash__ui { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 10, 16, .35); padding: 10px; }
.mg-dash__ui[hidden] { display: none; }
.mg-dash__card { background: #fff; border-radius: 16px; padding: 16px 20px; text-align: center; max-width: 360px; width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.mg-dash__card--start { background: rgba(255, 255, 255, .92); }
.mg-dash__card h3 { margin: 0; }
.mg-dash__card p { margin: 6px 0; }
.mg-dash__score { font-family: var(--mg-head); font-size: 2rem; line-height: 1.1; }
.mg-dash__score small { font-family: var(--mg-body); font-size: .9rem; color: var(--mg-muted); }
.mg-dash__best { color: var(--mg-muted); font-weight: 600; font-size: .9rem; }
.mg-dash__save { display: flex; gap: 6px; margin-top: 8px; }
.mg-dash__save input { flex: 1; min-width: 0; padding: 9px 10px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; }
.mg-dash__save .mg-btn { padding: 9px 14px; font-size: .88rem; }
.mg-dash__msg { font-size: .88rem; font-weight: 600; min-height: 1.2em; }
.mg-dash__act .mg-btn { padding: 8px 14px; font-size: .88rem; }
.mg-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.mg-boards h3, .mg-km__grid h3, .mg-pz__grid h3 { font-size: 1.05rem; margin: 0 0 8px; }
.mg-board { list-style: none; margin: 0; padding: 0; }
.mg-board li { display: flex; gap: 10px; align-items: baseline; padding: 7px 4px; border-bottom: 1px solid var(--mg-line); }
.mg-board li span { width: 2em; flex: none; text-align: center; }
.mg-board li b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-board li em { font-style: normal; font-weight: 700; font-family: var(--mg-head); font-size: .9rem; }
.mg-board li.is-me { background: #eef3fd; border-radius: 8px; }
.mg-board__empty { color: var(--mg-muted); }
.mg-km__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.mg-km__big b { font-family: var(--mg-head); font-size: 2.4rem; background: var(--mg-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-km__big span { font-weight: 700; color: var(--mg-muted); }
.mg-km__big small { display: block; font-weight: 600; }
.mg-km__stats { display: flex; gap: 14px; color: var(--mg-muted); font-weight: 600; font-size: .9rem; }
.mg-km__track { height: 12px; background: #eef0f3; border-radius: 999px; overflow: hidden; margin: 12px 0 14px; }
.mg-km__track i { display: block; height: 100%; width: 0; background: var(--mg-grad-x); transition: width .8s; }
.mg-km__stops { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.mg-km__stops li { flex: 0 0 auto; min-width: 86px; text-align: center; border: 1.5px solid var(--mg-line); border-radius: 12px; padding: 8px 6px; opacity: .55; }
.mg-km__stops li.is-done { opacity: 1; border-color: var(--mg-blue); background: #eef3fd; }
.mg-km__stops span { display: block; font-size: 1.3rem; }
.mg-km__stops b { display: block; font-size: .82rem; }
.mg-km__stops small { color: var(--mg-muted); font-size: .72rem; }
.mg-km__grid, .mg-pz__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.mg-km__form { display: flex; flex-direction: column; gap: 12px; background: #f4f6f9; border-radius: 14px; padding: 16px; }
.mg-km__form label { font-weight: 600; font-size: .9rem; }
.mg-km__form input, .mg-km__form select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; font-weight: 400; box-sizing: border-box; background: #fff; }
.mg-km__form .mg-btn { align-self: flex-start; }
.mg-km__form small { color: var(--mg-muted); font-size: .8rem; }
.mg-km__msg { margin: 0; font-weight: 600; min-height: 1.2em; }
.mg-pz__q h3 { font-size: 1.2rem; margin: 0 0 14px; }
.mg-pz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-pz__opts button { border: 1.5px solid var(--mg-line); background: #fff; border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--mg-ink); }
.mg-pz__opts button:hover:not(:disabled) { border-color: var(--mg-blue); }
.mg-pz__opts button:disabled { cursor: default; }
.mg-pz__opts button.is-right { border-color: #1a7f37; background: #e6f4ea; }
.mg-pz__opts button.is-wrong { border-color: #b32d2e; background: #fde8e8; }
.mg-pz__nick { display: block; margin-top: 14px; font-weight: 600; font-size: .9rem; }
.mg-pz__nick input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; box-sizing: border-box; }
.mg-pz__res { margin: 14px 0 0; line-height: 1.5; }
.mg-pz__played { color: var(--mg-muted); font-size: .85rem; margin: 8px 0 0; }
.mg-gamescta { margin-top: 30px; }
@media (max-width: 760px) {
  .mg-boards, .mg-km__grid, .mg-pz__grid, .mg-pz__opts { grid-template-columns: 1fr; }
  .mg-dash__cv { aspect-ratio: 5 / 4; }
  .mg-dash__card { padding: 10px 12px; border-radius: 12px; }
  .mg-dash__card h3 { font-size: 1rem; }
  .mg-dash__card p { margin: 3px 0; }
  .mg-dash__score { font-size: 1.5rem; }
  .mg-dash__save { flex-wrap: wrap; }
  .mg-dash__save input { flex-basis: 100%; }
  .mg-dash__save .mg-btn { flex: 1; }
}

/* v1.47: cookie consent */
.mg-ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; max-width: 560px; margin: 0 auto; background: #111214; color: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font-size: .92rem; line-height: 1.5; }
.mg-ck[hidden] { display: none; }
.mg-ck p { margin: 0 0 12px; }
.mg-ck strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.mg-ck a { color: #9cc0ff; }
.mg-ck__btns { display: flex; gap: 10px; }
.mg-ck__b { flex: 1; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.mg-ck__b:hover, .mg-ck__b:focus-visible { background: #fff; color: #111214; border-color: #fff; }

/* v1.49: partners page */
.mg-pp { max-width: 1080px; }
.mg-pp h2 { margin: 56px 0 18px; }
.mg-pp__lead { font-size: 1.2rem; line-height: 1.6; max-width: 760px; }
.mg-pp__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mg-pp__facts { margin-top: 14px; }
.mg-pp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mg-pp__card { background: #fff; border: 1px solid var(--mg-line); border-radius: 18px; padding: 20px; }
.mg-pp__card > span { font-size: 1.8rem; }
.mg-pp__card h3 { margin: 8px 0 6px; font-size: 1.08rem; }
.mg-pp__card p { margin: 0; color: var(--mg-muted); line-height: 1.5; }
.mg-pp__packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mg-pp__pack { background: #fff; border: 1.5px solid var(--mg-line); border-radius: 20px; padding: 24px; }
.mg-pp__pack.is-main { background: var(--mg-grad); color: #fff; border-color: transparent; }
.mg-pp__icon { font-size: 2rem; }
.mg-pp__pack h3 { margin: 8px 0 2px; font-size: 1.25rem; }
.mg-pp__for { margin: 0 0 12px; opacity: .75; font-size: .92rem; }
.mg-pp__pack ul { margin: 0; padding-left: 20px; line-height: 1.55; }
.mg-pp__note { color: var(--mg-muted); margin-top: 16px; max-width: 820px; }
.mg-pp__logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mg-pp__logos a, .mg-pp__logos span { display: grid; place-items: center; width: 150px; height: 90px; background: #fff; border: 1px solid var(--mg-line); border-radius: 14px; padding: 12px; }
.mg-pp__logos img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.mg-pp__form { background: #fff; border: 1px solid var(--mg-line); border-radius: 22px; padding: 28px; margin-top: 56px; scroll-margin-top: 100px; }
.mg-pp__form h2 { margin-top: 0; }
.mg-pp__form .mg-vol__form > label:not(.mg-vol__chk) input, .mg-pp__form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--mg-line); border-radius: 10px; font: inherit; font-weight: 400; box-sizing: border-box; }
@media (max-width: 760px) { .mg-pp__packs { grid-template-columns: 1fr; } .mg-pp__form { padding: 20px 16px; } .mg-pp__logos a, .mg-pp__logos span { width: calc(50% - 6px); } }
.mg-pp .mg-statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .mg-pp .mg-statrow { grid-template-columns: repeat(2, 1fr); } .mg-pp .mg-statbox strong { font-size: 1.7rem; } }

/* v1.51 – Memel Gravel Club member list */
.mg-memlist { margin: 40px 0 0; }
.mg-memlist h2 small { font-size: .6em; color: var(--mg-muted); font-weight: 600; }
.mg-memlist ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mg-memlist li { background: #fff; border: 1px solid var(--mg-line); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.mg-memlist__note { font-size: .85rem; color: var(--mg-muted); margin-top: 10px; }

/* v1.52 – gift membership */
.mg-join [hidden] { display: none !important; }
.mg-join__for { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.mg-join__for legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.mg-join .mg-join__for label { display: flex; align-items: center; gap: 8px; border: 1px solid #cfd5df; border-radius: 999px; padding: 10px 18px; margin: 0; cursor: pointer; }
.mg-join__for label:has(input:checked) { border-color: var(--mg-blue); background: rgba(22,99,224,.08); }
.mg-join__for input { accent-color: var(--mg-blue); }
.mg-join__payer { font-size: .9rem; color: var(--mg-muted); }
.mg-join__gift { display: flex; flex-direction: column; gap: 14px; background: #f6f8fc; border: 1px dashed #b9c6dd; border-radius: 14px; padding: 18px; }
.mg-join textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border: 1px solid #cfd5df; border-radius: 10px; background: #fff; color: inherit; resize: vertical; }
.mg-gcard__what { margin: 22px 0 0 !important; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.mg-gcard .mg-mcard__name { margin-top: 8px; }
.mg-gcard__msg { font-style: italic; font-size: 1.05rem; margin: 0 0 8px !important; }
.mg-gcard__from { font-weight: 700; margin: 0 0 14px !important; }
.mg-gcard__list { margin: 0; padding-left: 18px; font-size: .88rem; opacity: .92; display: grid; gap: 4px; }
.mg-giftpage__print { text-align: center; margin: 18px 0 30px; }
.mg-giftpage #mg-gift-claim { max-width: 560px; margin: 0 auto 40px; }
@media print {
  .mg-header, .mg-footer, .mg-noprint, .mg-cookie, #wpadminbar { display: none !important; }
  body { background: #fff !important; }
  .mg-giftpage { padding: 0 !important; }
  .mg-gcard { box-shadow: none !important; margin-top: 20mm !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* v1.53 – Club label on the member card */
.mg-mcard__club { margin: 24px 0 0 !important; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.mg-mcard__club + .mg-mcard__name { margin-top: 6px; }
