/*
 * MySportClub design tokens + Astra bridge.
 * This file intentionally does not style page content, Elementor output,
 * shortcodes, SEO Core renderers, cards, forms, headings or page shells.
 */
.msc-common-theme {
  --msc-navy: #071734;
  --msc-navy-soft: #26364f;
  --msc-muted: #607086;
  --msc-cyan: #33d8e8;
  --msc-teal: #21b8b0;
  --msc-orange: #ff7a1a;
  --msc-card-radius: 18px;
  --msc-shadow-sm: 0 6px 18px rgba(7, 23, 52, .08);
  --msc-shadow-md: 0 14px 38px rgba(7, 23, 52, .13);
  --msc-page-max: 1180px;
  --msc-page-gutter: 32px;
  --msc-mobile-gutter: 12px;
  --msc-mobile-space: 16px;
  --msc-chrome-line: rgba(7, 23, 52, .12);
}

/* Narrow Astra header bridge. */
.msc-common-theme #masthead.site-header,
.msc-common-theme #masthead .ast-primary-header-bar,
.msc-common-theme #masthead .main-header-bar {
  position: relative;
  z-index: 80;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--msc-chrome-line);
  background: #fff;
  box-shadow: 0 3px 14px rgba(7, 23, 52, .06);
}

.msc-common-theme #masthead .site-primary-header-wrap,
.msc-common-theme #masthead .ast-builder-grid-row-container-inner {
  width: min(var(--msc-page-max), calc(100% - (2 * var(--msc-page-gutter)))) !important;
  max-width: none !important;
  min-height: 72px;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

.msc-common-theme #masthead .custom-logo-link,
.msc-common-theme #masthead .site-logo-img {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
}

.msc-common-theme #masthead .custom-logo-link img,
.msc-common-theme #masthead .site-logo-img img,
.msc-common-theme #masthead .site-logo-img .custom-logo {
  width: auto;
  max-width: 190px;
  max-height: 42px;
  object-fit: contain;
}

.msc-common-theme #masthead .main-header-menu > .menu-item > .menu-link,
.msc-common-theme #masthead .ast-builder-menu-1 .menu-item > .menu-link {
  color: var(--msc-navy);
  font-size: 14px;
  font-weight: 600;
}

.msc-common-theme #masthead .main-header-menu > .menu-item > .menu-link:hover,
.msc-common-theme #masthead .main-header-menu > .menu-item > .menu-link:focus-visible,
.msc-common-theme #masthead .ast-builder-menu-1 .menu-item > .menu-link:hover,
.msc-common-theme #masthead .ast-builder-menu-1 .menu-item > .menu-link:focus-visible {
  color: #08758d;
}

/* Narrow Astra footer bridge. */
.msc-common-theme #colophon.site-footer,
.msc-common-theme #colophon .site-primary-footer-wrap,
.msc-common-theme #colophon .site-below-footer-wrap {
  color: var(--msc-muted);
  background: #fff;
}

.msc-common-theme #colophon .site-primary-footer-wrap,
.msc-common-theme #colophon .site-below-footer-wrap {
  min-height: 0;
  padding: 28px 0 18px;
  border-top: 1px solid var(--msc-chrome-line);
}

.msc-common-theme #colophon .site-primary-footer-wrap:first-child,
.msc-common-theme #colophon .site-below-footer-wrap:first-child {
  border-top-color: rgba(255, 122, 26, .65);
  border-top-width: 2px;
}

.msc-common-theme #colophon .site-primary-footer-inner-wrap,
.msc-common-theme #colophon .site-below-footer-inner-wrap {
  width: min(var(--msc-page-max), calc(100% - (2 * var(--msc-page-gutter))));
  max-width: none;
  margin-inline: auto;
  gap: 20px;
  align-items: center;
}

.msc-common-theme #colophon .ast-footer-copyright,
.msc-common-theme #colophon .footer-widget-area,
.msc-common-theme #colophon .menu-item {
  color: var(--msc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.msc-common-theme #colophon a {
  color: #47607a;
  text-decoration: none;
}

.msc-common-theme #colophon a:hover,
.msc-common-theme #colophon a:focus-visible {
  color: #08758d;
}

@media (max-width: 920px) {
  .msc-common-theme {
    --msc-page-gutter: 12px;
  }

  .msc-common-theme #masthead .site-primary-header-wrap,
  .msc-common-theme #masthead .ast-builder-grid-row-container-inner {
    min-height: 62px;
  }
}

@media (max-width: 544px) {
  .msc-common-theme #masthead .ast-mobile-header-wrap {
    position: relative;
    z-index: 90;
    width: 100%;
  }

  .msc-common-theme #masthead .ast-mobile-header-wrap .ast-primary-header-bar,
  .msc-common-theme #masthead .ast-mobile-header-wrap .main-header-bar {
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 0 !important;
    background: #fff;
  }

  .msc-common-theme #masthead .custom-logo-link,
  .msc-common-theme #masthead .site-logo-img,
  .msc-common-theme #masthead .custom-logo-link img,
  .msc-common-theme #masthead .site-logo-img img,
  .msc-common-theme #masthead .site-logo-img .custom-logo {
    max-width: 180px;
    max-height: 40px;
  }

  .msc-common-theme #masthead .ast-button-wrap .menu-toggle,
  .msc-common-theme #masthead .ast-mobile-menu-trigger-fill {
    display: grid !important;
    place-items: center;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 9px !important;
    border: 1px solid rgba(7, 23, 52, .08) !important;
    border-radius: 10px !important;
    color: var(--msc-navy) !important;
    background: rgba(238, 252, 255, .72) !important;
    box-shadow: none !important;
  }

  .msc-common-theme #masthead .ast-button-wrap .menu-toggle .ast-mobile-svg,
  .msc-common-theme #masthead .ast-button-wrap .menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--msc-navy) !important;
  }

  .msc-common-theme #masthead .ast-mobile-header-content,
  .msc-common-theme #masthead .ast-builder-menu-mobile .main-header-menu {
    margin: 8px var(--msc-mobile-gutter) 0 !important;
    padding: 8px !important;
    overflow: hidden;
    border: 1px solid rgba(51, 216, 232, .3) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: var(--msc-shadow-md) !important;
    backdrop-filter: blur(16px);
  }

  .msc-common-theme #masthead .ast-mobile-header-content .menu-link,
  .msc-common-theme #masthead .ast-builder-menu-mobile .menu-link {
    min-height: 44px;
    margin: 2px 0;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 10px;
    color: var(--msc-navy) !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 600;
  }

  .msc-common-theme #masthead .ast-mobile-header-content .menu-link:hover,
  .msc-common-theme #masthead .ast-mobile-header-content .menu-link:focus-visible,
  .msc-common-theme #masthead .ast-builder-menu-mobile .menu-link:hover,
  .msc-common-theme #masthead .ast-builder-menu-mobile .menu-link:focus-visible {
    color: #08758d !important;
    background: #eefcff !important;
  }

  .msc-common-theme #colophon .site-primary-footer-wrap,
  .msc-common-theme #colophon .site-below-footer-wrap {
    padding: 20px 0 14px;
  }

  .msc-common-theme #colophon .site-primary-footer-inner-wrap,
  .msc-common-theme #colophon .site-below-footer-inner-wrap {
    grid-template-columns: 1fr !important;
    gap: 10px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msc-common-theme #masthead *,
  .msc-common-theme #colophon * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
