/* =====================================================================
   MEGAGEN — Homepage + global chrome elevation (rd-home.css)
   Loads AFTER enhance.css and redesign.css. Editorial, confident,
   medical-B2B: disciplined display type, kicker+heading rhythm,
   tabular numerals, calm restrained accent, refined chrome.

   Scope: nav pill (VISUAL only), hero, marquee, stats, feature/stacking
   sections, testimonials, newsletter/CTA band, footer, FAB, scroll
   progress, homepage articles band, homepage section kickers.

   Never touches: #site-header / .mg-pdp-headwrap / .mg-nav positioning,
   html/body overflow, [data-reveal] opacity/transform.
   ===================================================================== */

/* =====================================================================
   1. GLOBAL NAV — refine the floating pill (visual only)
   ===================================================================== */
body.home #site-header .mg-nav {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 22, 38, 0.07);
  box-shadow:
    0 1px 2px rgba(11, 19, 32, 0.05),
    0 18px 44px -20px rgba(11, 19, 32, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  gap: 14px;
}
body.home #site-header .mg-nav__brand {
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--mg-heading, #0a1626);
}
body.home #site-header .mg-nav__right { gap: 8px; }

/* Primary CTA — confident, single accent, no gimmicks */
body.home #site-header .mg-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  background: var(--mg-accent, #0067b1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px -10px rgba(0, 103, 177, 0.55);
}
body.home #site-header .mg-nav__cta:hover {
  background: var(--mg-accent-deep, #024e86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 28px -10px rgba(0, 103, 177, 0.5);
}

/* Menu button — near-black ink pill, crafted micro-detail */
body.home #site-header .mg-menu-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  gap: 0;
  letter-spacing: -0.01em;
  background: var(--mg-heading, #0a1626);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 20px -12px rgba(10, 22, 38, 0.6);
}
body.home #site-header .mg-menu-btn__bars { gap: 4.5px; }
body.home #site-header .mg-menu-btn__bars span { width: 17px; height: 1.75px; }

/* Icon buttons: account + theme toggle — quiet, consistent, ≥44px */
body.home #site-header .mg-nav__acct,
body.home #site-header .mg-nav__phone,
body.home #site-header .mg-nav .mg-theme-toggle {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--mg-border, #e5eaf1);
  color: var(--mg-heading, #0a1626);
}
body.home #site-header .mg-nav__acct:hover,
body.home #site-header .mg-nav__phone:hover,
body.home #site-header .mg-nav .mg-theme-toggle:hover {
  background: var(--mg-accent-soft, #e9f1fa);
  border-color: var(--mg-border-strong, #d4dce7);
  color: var(--mg-accent-deep, #024e86);
}

/* Language switcher — crisper pills */
body.home #site-header .mg-langsw {
  background: rgba(10, 22, 38, 0.045);
  border-color: var(--mg-border, #e5eaf1);
  padding: 3px;
}
body.home #site-header .mg-langsw__btn {
  min-width: 34px;
  height: 32px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--mg-muted, #56677b);
}
body.home #site-header .mg-langsw__btn.is-active {
  background: var(--mg-heading, #0a1626);
  color: #fff;
}
body.home #site-header .mg-langsw__btn:hover:not(.is-active) { color: var(--mg-accent-deep, #024e86); }

/* Nav — dark mode */
[data-theme="dark"] body.home #site-header .mg-nav {
  background: rgba(15, 23, 37, 0.8);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 18px 44px -18px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] body.home #site-header .mg-nav__brand { color: var(--mg-text, #e8eef6); }
[data-theme="dark"] body.home #site-header .mg-nav__acct,
[data-theme="dark"] body.home #site-header .mg-nav__phone,
[data-theme="dark"] body.home #site-header .mg-nav .mg-theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--mg-text, #e8eef6);
}
[data-theme="dark"] body.home #site-header .mg-nav__acct:hover,
[data-theme="dark"] body.home #site-header .mg-nav__phone:hover,
[data-theme="dark"] body.home #site-header .mg-nav .mg-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
[data-theme="dark"] body.home #site-header .mg-langsw {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] body.home #site-header .mg-langsw__btn.is-active { background: var(--mg-accent, #0067b1); }
[data-theme="dark"] body.home #site-header .mg-menu-btn { background: var(--mg-accent, #0067b1); }

/* =====================================================================
   2. SCROLL PROGRESS — calmer, still visible over the blue panels
   ===================================================================== */
.mg-progress__bar {
  background: linear-gradient(90deg, var(--mg-accent-deep, #024e86), var(--mg-accent, #0067b1) 55%, #63b7ef);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.4),
    0 1px 3px rgba(11, 19, 32, 0.3);
}

/* =====================================================================
   3. HERO — editorial display type, real hierarchy, refined CTA
   ===================================================================== */
.mg-hero__body { max-width: 880px; }

/* Eyebrow line: numbered badge + rule + category */
.mg-hero__meta {
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  opacity: 1;
  color: rgba(255, 255, 255, 0.88);
}
.mg-hero__meta b {
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mg-hero__rule { width: 44px; height: 1px; background: rgba(255, 255, 255, 0.45); }

/* Display headline: tighter tracking, controlled scale, real measure */
.mg-hero__title {
  font-size: var(--mg-fs-display, clamp(3.1rem, 1.5rem + 7vw, 5.6rem));
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: 18ch;
  text-shadow: 0 2px 28px rgba(4, 10, 18, 0.35);
}

/* Support line: quieter, comfortable measure */
.mg-hero__addr {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
  max-width: 54ch;
  margin: 0 0 30px;
}

/* Explore CTA: a proper frosted pill instead of a bare text link */
.mg-hero__explore {
  min-height: 48px;
  gap: 12px;
  padding-block: 7px;
  padding-inline: 24px 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14.5px;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--mg-ease, ease);
}
.mg-hero__explore:hover {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  transform: translateY(-2px);
}
.mg-hero__explore span {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
}
.mg-hero__explore:hover span {
  background: rgba(255, 255, 255, 0.22);
  border-color: transparent;
}

/* Side controls: quieter glass, tabular counter */
.mg-hero__counter { font-variant-numeric: tabular-nums; }
.mg-hero__counter .cur { font-size: 24px; letter-spacing: -0.02em; }
.mg-hero__btn {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mg-hero__progress { background: rgba(255, 255, 255, 0.14); }
.mg-hero__progress i { background: rgba(255, 255, 255, 0.9); }

/* =====================================================================
   4. MARQUEE — editorial hairline band, calm scale
   ===================================================================== */
.mg-marquee {
  border-block: 1px solid var(--mg-border, #e5eaf1);
  padding-block: clamp(18px, 2.4vw, 28px);
}
.mg-marquee__item {
  font-size: clamp(19px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--mg-heading, #0a1626);
}
.mg-marquee__dot {
  color: var(--mg-accent, #0067b1);
  opacity: 0.6;
  font-weight: 400;
}

/* =====================================================================
   5. HOMEPAGE SECTION KICKERS — consistent kicker + heading pattern
   (the seeded h6 eyebrows above every h2; sizes come from Elementor,
   we add the editorial tracking + rule detail)
   ===================================================================== */
.home .elementor-widget-heading h6.elementor-heading-title {
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.home .elementor-widget-heading h6.elementor-heading-title::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--mg-accent, #0067b1);
  margin-inline-end: 12px;
  vertical-align: middle;
  opacity: 0.85;
}
.home .elementor-widget-heading h2.elementor-heading-title {
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* =====================================================================
   6. STATS — trustworthy data: heading ink, tabular, hairline dividers
   ===================================================================== */
.mg-stats { gap: clamp(20px, 3vw, 32px); }
.mg-stat { position: relative; padding-block: 8px; }
.mg-stat:not(:first-child)::before {
  content: "";
  position: absolute;
  inset-block: 12%;
  inset-inline-start: calc(-1 * clamp(10px, 1.5vw, 16px));
  width: 1px;
  background: var(--mg-border, #e5eaf1);
}
.mg-stat__num {
  font-size: clamp(32px, 4.4vw, 52px);
  color: var(--mg-heading, #0a1626);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mg-stat__num::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--mg-accent, #0067b1);
  margin: 14px auto 0;
}
.mg-stat__label {
  font-size: 14.5px;
  letter-spacing: 0.01em;
  margin-top: 10px;
  color: var(--mg-muted, #56677b);
}
@media (max-width: 780px) {
  .mg-stat:not(:first-child)::before { display: none; }
}

/* =====================================================================
   7. BENTO FEATURE GRID — align radii + chips with the system
   ===================================================================== */
.mg-bento { gap: 18px; }
.mg-bento__card { border-radius: var(--mg-r-lg, 22px); }
.mg-bento__eyebrow { letter-spacing: 0.1em; font-size: 12.5px; }
.mg-bento__title { letter-spacing: -0.02em; }
.mg-bento__chipline span,
.b-tools .mg-bento__tools span { font-weight: 600; letter-spacing: 0.01em; }
.mg-bento__phone { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* =====================================================================
   8. HORIZONTAL SHOWCASE (mg-hx) — crafted dark cards, real CTA
   ===================================================================== */
.mg-hx__eyebrow { letter-spacing: 0.16em; font-size: 13px; }
.mg-hx__h { letter-spacing: -0.03em; }
.mg-hx__card {
  background: #0d1b2c;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: var(--mg-r-lg, 22px);
}
.mg-hx__title { letter-spacing: -0.025em; }
.mg-hx__desc { color: rgba(255, 255, 255, 0.76); }
.mg-hx__tags li {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.mg-hx__link {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  align-self: flex-start;
  font-size: 14.5px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--mg-ease, ease);
}
.mg-hx__link:hover {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  transform: translateY(-2px);
}
.mg-hx__progress i { background: linear-gradient(90deg, var(--mg-accent-deep, #024e86), #63b7ef); }

/* =====================================================================
   9. STACKING PRODUCT PANELS — display type + white pill CTA
   ===================================================================== */
.mg-stack__title {
  font-size: clamp(32px, 4.8vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.mg-stack__desc {
  font-size: clamp(15.5px, 1.8vw, 18.5px);
  color: rgba(255, 255, 255, 0.87);
  max-width: 56ch;
  line-height: 2;
}
.mg-stack__tags { gap: 9px; margin-bottom: 30px; }
.mg-stack__tags span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
}
.mg-stack__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 26px;
  background: #fff;
  color: var(--mg-accent-deep, #024e86);
  border-bottom: 0;
  border-radius: 999px;
  font-size: 14.5px;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--mg-ease, ease), box-shadow 0.25s ease;
}
.mg-stack__cta:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.45);
}
.mg-stack__thumb { border-radius: var(--mg-r-lg, 22px); }

/* =====================================================================
   10. ABOUT POINTS + CONTACT INFO CARDS — calm card language
   ===================================================================== */
.mg-apoint {
  border-radius: var(--mg-r-lg, 22px);
  box-shadow: var(--mg-shadow-xs, 0 1px 2px rgba(11, 19, 32, 0.06));
}
.mg-apoint:hover { box-shadow: var(--mg-shadow, 0 10px 34px -14px rgba(11, 19, 32, 0.16)); }
.mg-apoint b { color: var(--mg-heading, #0a1626); letter-spacing: -0.01em; }
.mg-cinfo__card {
  border-radius: var(--mg-r, 14px);
  box-shadow: var(--mg-shadow-xs, 0 1px 2px rgba(11, 19, 32, 0.06));
}
.mg-cinfo__card:hover { box-shadow: var(--mg-shadow, 0 10px 34px -14px rgba(11, 19, 32, 0.16)); }
.mg-cinfo__card p { font-variant-numeric: tabular-nums; }

/* =====================================================================
   11. TESTIMONIALS — quieter mark, editorial quote, avatar ring
   ===================================================================== */
.mg-testi { padding: clamp(72px, 9vw, 116px) 24px; }
.mg-testi__mark {
  width: 42px;
  height: 42px;
  opacity: 0.28;
  margin-bottom: 14px;
}
.mg-testi__card blockquote {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 2;
  letter-spacing: -0.01em;
  color: var(--mg-heading, #0a1626);
  text-wrap: balance;
  max-width: 34ch;
  margin-inline: auto;
}
.mg-testi__ava {
  width: 54px;
  height: 54px;
  box-shadow: 0 0 0 3px var(--mg-accent-soft, #e9f1fa);
}
.mg-testi__who b { color: var(--mg-heading, #0a1626); letter-spacing: -0.01em; }
.mg-testi__who i { letter-spacing: 0.01em; }
.mg-testi__dots { margin-top: 30px; }
.mg-testi__dot { background: var(--mg-border-strong, #d4dce7); }
.mg-testi__dot:hover { background: var(--mg-faint, #8496a8); }
.mg-testi__dot.is-active { background: var(--mg-accent, #0067b1); width: 28px; }
[data-theme="dark"] .mg-testi__ava { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); }

/* Trust strip label, in the same kicker voice */
.mg-trust__title { letter-spacing: 0.16em; font-size: 11.5px; }

/* =====================================================================
   12. NEWSLETTER / CTA BAND — deep, confident brand panel
   ===================================================================== */
.mg-news__inner {
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(99, 183, 239, 0.28), transparent 55%),
    linear-gradient(120deg, #05365e 0%, var(--mg-accent-deep, #024e86) 48%, var(--mg-accent, #0067b1) 100%);
  border-radius: clamp(22px, 3vw, 30px);
  padding: clamp(34px, 5vw, 54px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--mg-shadow-lg, 0 30px 70px -26px rgba(11, 19, 32, 0.3));
}
.mg-news__txt h2 { letter-spacing: -0.025em; line-height: 1.25; }
.mg-news__txt p { color: rgba(255, 255, 255, 0.82); line-height: 2; }
.mg-news__form input[type=email] {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: inset 0 1px 2px rgba(4, 10, 18, 0.1);
}
.mg-news__form input[type=email]::placeholder { color: var(--mg-faint, #8496a8); }
.mg-news__form button {
  background: var(--mg-heading, #0a1626);
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px -12px rgba(4, 10, 18, 0.6);
}
[data-theme="dark"] .mg-news__form button { background: #04101d; color: #fff; }
[data-theme="dark"] .mg-news__form button:hover { background: #fff; color: var(--mg-accent-deep, #024e86); }

/* =====================================================================
   13. HOMEPAGE ARTICLES BAND — editorial library section
   ===================================================================== */
.mg-home-articles {
  background: var(--mg-surface, #f5f8fc);
  border-top: 1px solid var(--mg-border, #e5eaf1);
  padding: clamp(64px, 8vw, 110px) 24px;
}
[data-theme="dark"] .mg-home-articles { background: rgba(255, 255, 255, 0.025); }

.mg-home-articles__head { margin-bottom: clamp(30px, 4vw, 44px); align-items: flex-end; }

/* Kicker: drop the pill, use the editorial rule + tracked label */
.mg-home-articles__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--mg-accent, #0067b1);
  margin-bottom: 14px;
}
.mg-home-articles__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--mg-accent, #0067b1);
  opacity: 0.85;
}
.mg-home-articles__head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--mg-heading, #0a1626);
}
.mg-home-articles__head h2::after {
  width: 44px;
  height: 2px;
  background: var(--mg-accent, #0067b1);
  margin-top: 18px;
}
.mg-home-articles__head > div p {
  font-size: 15.5px;
  line-height: 2;
  max-width: 56ch;
}

/* "View all" — ghost button in the system voice */
.mg-home-articles__all {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 24px;
  font-size: 14.5px;
  color: var(--mg-heading, #0a1626);
  border-color: var(--mg-border-strong, #d4dce7);
  background: var(--mg-bg, #fff);
}
.mg-home-articles__all:hover {
  color: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  box-shadow: 0 12px 26px -14px rgba(0, 103, 177, 0.4);
}
[data-theme="dark"] .mg-home-articles__all {
  color: var(--mg-text, #e8eef6);
  border-color: rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .mg-home-articles__all:hover { color: #63b7ef; border-color: #63b7ef; }

/* Article cards — rest quietly, lift deliberately */
.mg-home-articles__grid { gap: clamp(18px, 2.2vw, 26px); }
.mg-hart {
  border-radius: var(--mg-r-lg, 22px);
  background: var(--mg-bg, #fff);
  border-color: var(--mg-border, #e5eaf1);
  box-shadow: var(--mg-shadow-xs, 0 1px 2px rgba(11, 19, 32, 0.06));
}
.mg-hart:hover {
  border-color: var(--mg-border-strong, #d4dce7);
  box-shadow: var(--mg-shadow, 0 10px 34px -14px rgba(11, 19, 32, 0.16));
  transform: translateY(-4px);
}
.mg-hart__cat {
  background: rgba(10, 22, 38, 0.78);
  letter-spacing: 0.03em;
  font-size: 11px;
}
.mg-hart__body { padding: 20px 22px 22px; gap: 10px; }
.mg-hart__title { font-size: 16.5px; line-height: 1.65; letter-spacing: -0.01em; color: var(--mg-heading, #0a1626); }
.mg-hart__ex { font-size: 13.5px; line-height: 2; }
.mg-hart__date { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.mg-hart__more { letter-spacing: 0; }

@media (max-width: 1080px) { .mg-home-articles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .mg-home-articles__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   14. FOOTER — proper editorial multi-column hierarchy
   ===================================================================== */
.mg-footer {
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: clamp(46px, 6vw, 68px);
  border-top-color: var(--mg-border, #e5eaf1);
}

/* Column labels: small tracked kickers (the brand column stays a title) */
.mg-footer :is(h2,h4) {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--mg-muted, #56677b);
  margin-bottom: 18px;
}
.mg-footer :is(h2,h4)::after { display: none; }
.mg-footer__brand :is(h2,h4) {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mg-heading, #0a1626);
  margin-bottom: 12px;
}
.mg-footer__brand p {
  font-size: 14.5px;
  line-height: 2.1;
  max-width: 36ch;
  color: var(--mg-muted, #56677b);
}
.mg-footer a,
.mg-footer p { font-size: 14.5px; line-height: 2.3; }
.mg-footer a:hover { color: var(--mg-accent, #0067b1); }
.mg-footer .mg-bento__social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mg-surface, #f5f8fc);
  border-color: var(--mg-border, #e5eaf1);
  color: var(--mg-heading, #0a1626);
}
.mg-footer .mg-bento__social a:hover {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}
.mg-footer__bar {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 24px 0 6px;
  margin-top: clamp(36px, 5vw, 52px);
  font-variant-numeric: tabular-nums;
}

/* Keep the page ending compact; the editorial footer should finish the page,
   not create an empty visual chapter after the contact block. */
.mg-footer { margin-top: clamp(24px, 3vw, 42px); padding-top: clamp(32px, 4vw, 48px); }
.mg-footer__bar { margin-top: clamp(22px, 3vw, 34px); padding-bottom: 0; }
[data-theme="dark"] .mg-footer .mg-bento__social a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--mg-text, #e8eef6);
}
[data-theme="dark"] .mg-footer .mg-bento__social a:hover {
  background: var(--mg-accent, #0067b1);
  border-color: var(--mg-accent, #0067b1);
  color: #fff;
}
[data-theme="dark"] .mg-footer__brand :is(h2,h4) { color: var(--mg-text, #e8eef6); }

/* =====================================================================
   15. FLOATING QUICK-CONTACT (FAB) — crafted, less toy-like
   ===================================================================== */
.mg-fab__toggle {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 32px -12px rgba(0, 103, 177, 0.65);
}
.mg-fab.is-open .mg-fab__toggle { background: var(--mg-heading, #0a1626); }
.mg-fab__item {
  border-radius: 999px;
  box-shadow: var(--mg-shadow, 0 10px 34px -14px rgba(11, 19, 32, 0.16));
}
.mg-fab__lbl {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: var(--mg-heading, #0a1626);
}
[data-theme="dark"] .mg-fab__lbl { color: var(--mg-text, #e8eef6); }

/* =====================================================================
   16. COMPACT MOBILE NAV — this file loads after enhance.css, so repeat
   the geometry guard here. Four controls plus the full wordmark fit from
   320px upward; the mark scales with object-fit rather than being clipped.
   ===================================================================== */
@media (max-width: 600px) {
  body.home #site-header .mg-nav { gap: 6px; padding: 6px 8px 6px 12px; box-sizing: border-box; }
  body.home #site-header .mg-nav__right { gap: 4px; }
  body.home #site-header .mg-nav__right .mg-theme-toggle,
  body.home #site-header .mg-nav__right .mg-nav__acct,
  body.home #site-header .mg-nav__right .mg-nav__phone,
  body.home #site-header .mg-menu-btn {
    display: inline-flex !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }
  body.home #site-header .mg-nav__brand { min-inline-size: 44px; min-block-size: 44px; align-items: center; }
  body.home #site-header .mg-nav__brand.has-logo { flex: 1 1 auto; overflow: visible; }
  body.home #site-header .mg-nav__brand.has-logo .mg-nav__logo {
    display: block;
    inline-size: auto;
    max-inline-size: calc(100vw - 216px);
    height: 29px;
    max-height: 29px;
    object-fit: contain;
    object-position: right center;
  }
  body.home #site-header .mg-nav__right .mg-theme-toggle svg,
  body.home #site-header .mg-nav__right .mg-nav__acct svg,
  body.home #site-header .mg-nav__right .mg-nav__phone svg { width: 17px; height: 17px; }
}
@media (max-width: 350px) {
  body.home #site-header .mg-nav { padding-inline: 7px; }
  body.home #site-header .mg-nav__right { gap: 2px; }
  body.home #site-header .mg-nav__brand.has-logo .mg-nav__logo {
    max-inline-size: calc(100vw - 170px);
    height: 26px;
    max-height: 26px;
  }
}

/* =====================================================================
   17. ACCESSIBILITY + MOTION DISCIPLINE
   ===================================================================== */
/* Focus visibility for the elements we restyled (rings, not removal) */
.mg-hero__explore:focus-visible,
.mg-stack__cta:focus-visible,
.mg-hx__link:focus-visible,
.mg-home-articles__all:focus-visible,
.mg-hart:focus-visible {
  outline: 2px solid var(--mg-accent, #0067b1);
  outline-offset: 3px;
}
.mg-hero__explore:focus-visible,
.mg-hx__link:focus-visible { outline-color: #7cc0f2; }

@media (prefers-reduced-motion: reduce) {
  .mg-hero__explore,
  .mg-hx__link,
  .mg-stack__cta,
  .mg-home-articles__all,
  .mg-hart,
  body.home #site-header .mg-nav__cta,
  body.home #site-header .mg-menu-btn { transition: none; }
  .mg-hero__explore:hover,
  .mg-hx__link:hover,
  .mg-stack__cta:hover,
  .mg-home-articles__all:hover,
  .mg-hart:hover,
  body.home #site-header .mg-nav__cta:hover,
  body.home #site-header .mg-menu-btn:hover { transform: none; }
}
