﻿/* Static-clone repairs for Moonbeam's animated Next.js homepage.
   The live site initializes text and slider state at runtime; these rules keep
   the mirrored page visually stable when served as a standalone static copy. */

html,
body {
  overflow-x: hidden;
}

.static-mobile-menu {
  display: none !important;
}

.screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.c-ani-rolling,
.c-ani-text {
  opacity: 1 !important;
  visibility: visible !important;
}

.c-ani-rolling[data-static-label],
.c-ani-text[data-static-label] {
  display: inline-flex !important;
  align-items: center;
  gap: 0.2em;
  white-space: nowrap;
}

.g-header {
  overflow: visible !important;
}

.g-header__inner {
  max-width: 100%;
}

.g-header__action {
  flex: 0 0 auto !important;
  width: auto;
  min-width: 0 !important;
  max-width: none;
  white-space: nowrap !important;
}

.g-mobile-menu-trigger {
  flex: 0 0 auto !important;
}

@media (max-width: 767px) {
  .g-header {
    height: 70px;
    overflow: visible !important;
    z-index: 1000 !important;
  }

  .g-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding-inline: 0 !important;
    height: 70px !important;
    position: relative !important;
  }

  .g-header__logo,
  .g-header__logo__link {
    width: 179px !important;
    min-width: 0 !important;
    flex: 0 0 179px !important;
    order: 1 !important;
  }

  .g-header__logo svg {
    width: 140px !important;
    max-width: 140px !important;
  }

  .g-header__nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    flex: 0 0 auto !important;
    transform: none !important;
    order: 2 !important;
    margin-left: auto !important;
  }

  .g-header__action {
    position: absolute !important;
    right: 50px !important;
    top: 20px !important;
    transform: none !important;
    width: 149px !important;
    min-width: 149px !important;
    max-width: 149px !important;
    flex: 0 0 149px !important;
    height: 30px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    order: 2 !important;
  }

  .g-header__action svg,
  .g-header__action .c-glow-border-button {
    display: none !important;
  }

  .g-mobile-menu-trigger {
    position: absolute !important;
    right: 10px !important;
    top: 20px !important;
    transform: none !important;
    width: 30px !important;
    height: 30px !important;
    margin-left: 0 !important;
    order: 3 !important;
  }

  .g-header__nav__menu {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 1001 !important;
    overflow: visible !important;
  }

  html.static-menu-open,
  html.static-menu-open body {
    overflow: hidden !important;
  }

  html.static-menu-open .g-header__nav__menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: min(664px, 100vh) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    background: rgb(3, 45, 52) !important;
    transform: none !important;
  }

  html.static-menu-open .g-header__nav__menu__inner {
    width: calc(100% - 12px) !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
  }

  .c-block-grid__content,
  .s-home-latest-news__articles {
    overflow-x: auto !important;
    max-width: 100vw !important;
    scroll-snap-type: x mandatory;
  }

  .c-block-grid-item,
  .c-article-card {
    scroll-snap-align: start;
  }

  .static-mobile-menu {
    display: none;
  }

  html.static-menu-open .static-mobile-menu {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 999 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: auto !important;
    background: rgb(3, 45, 52) !important;
    padding: 70px 6px 32px !important;
  }

  .static-mobile-menu__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .static-mobile-menu a {
    min-height: 68px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-transform: uppercase;
    font-size: 28px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.04em;
    text-decoration: none;
  }

  .static-mobile-menu__group {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .static-mobile-menu__group p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .static-mobile-menu__group a {
    min-height: 36px;
    padding: 0;
    border: 0;
    font-size: 16px;
    letter-spacing: 0;
  }
}

