* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--mm-font-body);
  background: transparent;
  color: #191617;
}

body.is-scroll-locked {
  overflow: hidden;
}

/* WordPress integration reset:
   neutralize the previous theme menu layer so the DS JS/GSAP remains the only
   driver of panel visibility and movement. */
.mega-menu-overlay,
.mega-menu-backdrop,
.mega-menu-panel,
.mega-menu-links,
.mega-menu-mobile-inner {
  transition: none;
}

.mega-menu-panel {
  opacity: 1;
  transform: translateZ(0);
  will-change: auto;
}

.mega-menu-overlay[aria-hidden="false"] .mega-menu-panel-level1,
.mega-menu-overlay[aria-hidden="false"] .mega-menu-panel-level2,
.mega-menu-overlay.is-state-3[aria-hidden="false"] .mega-menu-panel-level3 {
  opacity: 1;
  transform: translateZ(0);
}

.mega-menu-mobile-inner {
  transform: none;
}

.mega-menu-page {
  min-height: 100vh;
}

.mega-menu-hero {
  position: relative;
  height: var(--mm-height);
  overflow: hidden;
  background: var(--mm-overlay-bg);
}

.mega-menu-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-menu-header-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 32px 16px;
  background: var(--mm-topbar-bg);
  color: var(--mm-text-active);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(0);
  transition: transform 280ms ease;
  will-change: transform;
}

.mega-menu-header-top.is-hidden-on-scroll {
  transform: translateY(calc(-100% - 8px));
}

.mega-menu-header-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.mega-menu-header-line-main {
  justify-content: space-between;
}

.mega-menu-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mega-menu-burger-btn {
  display: none;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--mm-text-active);
  padding: 0;
  cursor: pointer;
}

.mega-menu-burger-icon,
.mega-menu-burger-icon::before,
.mega-menu-burger-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.mega-menu-burger-icon {
  position: relative;
}

.mega-menu-burger-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.mega-menu-burger-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.mega-menu-logo {
  width: var(--mm-logo-width);
  max-width: 100%;
  height: auto;
}

.mega-menu-topbar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mega-menu-topbar-link,
.mega-menu-lang-btn,
.mega-menu-mobile-lang-btn,
.mega-menu-trigger-btn {
  color: var(--mm-text-active);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--mm-font-ui);
  font-size: var(--mm-font-size-top);
  letter-spacing: 0em;
  text-transform: uppercase;
  opacity: 0.9;
  position: relative;
  display: inline-block;
  width: max-content;
  text-decoration: none;
}

.mega-menu-trigger-btn {
  font-size: var(--mm-font-size-menu);
  font-weight: var(--mm-font-weight-menu);
  letter-spacing: 0em;
}

.mega-menu-header-top .mega-menu-topbar-link::after,
.mega-menu-header-top .mega-menu-lang-btn::after,
.mega-menu-mobile-lang-btn::after,
.mega-menu-header-top .mega-menu-trigger-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.mega-menu-search-btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mm-text-active);
  opacity: 0.9;
  cursor: pointer;
}

.mega-menu-search-btn img {
  width: 17px;
  height: 19px;
}

.mega-menu-search-btn:hover,
.mega-menu-search-btn:focus-visible {
  opacity: 1;
}

.mega-menu-search-panel[hidden],
.mega-menu-search-backdrop[hidden] {
  display: none;
}

.mega-menu-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 62;
  padding: 0 32px 24px;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.mega-menu-search-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-search-panel-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  width: 100%;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mega-menu-search-close-btn {
  margin-top: 14px;
}

.mega-menu-search-form {
  width: 100%;
}

.mega-menu-search-form .observatory-search__controls {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mega-menu-search-form .observatory-search__input {
  min-height: 64px;
}

.mega-menu-search-form .observatory-search__submit {
  min-height: 64px;
}

.mega-menu-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mega-menu-search-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mega-menu-header-top .mega-menu-topbar-link:hover::after,
.mega-menu-header-top .mega-menu-topbar-link:focus-visible::after,
.mega-menu-header-top .mega-menu-lang-btn:hover::after,
.mega-menu-header-top .mega-menu-lang-btn:focus-visible::after,
.mega-menu-mobile-lang-btn:hover::after,
.mega-menu-mobile-lang-btn:focus-visible::after,
.mega-menu-header-top .mega-menu-trigger-btn:hover::after,
.mega-menu-header-top .mega-menu-trigger-btn:focus-visible::after,
.mega-menu-header-top .mega-menu-trigger-btn[aria-expanded="true"]::after,
.mega-menu-header-top .mega-menu-lang-btn[aria-current="true"]::after,
.mega-menu-mobile-lang-btn[aria-current="true"]::after {
  transform: scaleX(1);
}

.mega-menu-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-lang-btn[aria-current="true"] {
  opacity: 1;
}

.mega-menu-mobile-lang-btn[aria-current="true"] {
  opacity: 1;
}

.mega-menu-overlay[hidden] {
  display: none;
}

.mega-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: transparent;
}

.mega-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  pointer-events: none;
}

.mega-menu-shell {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0;
}

.mega-menu-desktop {
  display: grid;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.mega-menu-overlay.is-state-2 .mega-menu-desktop {
  grid-template-columns: var(--mm-panel-1) var(--mm-panel-2) 690px;
}

.mega-menu-overlay.is-state-3 .mega-menu-desktop {
  grid-template-columns: var(--mm-panel-1) var(--mm-panel-2) var(--mm-panel-3) var(--mm-panel-4);
}

.mega-menu-panel {
  min-width: 0;
  border-right: 1px solid var(--mm-border);
  padding: var(--mm-padding-top) var(--mm-padding-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  background: var(--mm-overlay-bg);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.mega-menu-logo-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-menu-panel-level2 .mega-menu-logo-row,
.mega-menu-panel-level3 .mega-menu-logo-row {
  justify-content: flex-end;
}

.mega-menu-panel-level2,
.mega-menu-panel-level3 {
  position: relative;
}

.mega-menu-panel-level1 {
  position: relative;
  z-index: 4;
}

.mega-menu-panel-level2 {
  z-index: 3;
}

.mega-menu-panel-level3 {
  z-index: 2;
}

.mega-menu-close-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--mm-text-active);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mega-menu-close-btn img,
.mega-menu-link-arrow {
  width: var(--mm-icon-size);
  height: var(--mm-icon-size);
}

#megaMenuCloseL2,
#megaMenuCloseL3 {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.mega-menu-overlay.is-state-2 #megaMenuCloseL2 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mega-menu-overlay.is-state-3 #megaMenuCloseL3 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.mega-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--mm-links-gap);
}

.mega-menu-link-btn,
.mega-menu-link-anchor {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--mm-text-muted);
  font-family: var(--mm-font-ui);
  font-size: var(--mm-font-size-menu);
  font-weight: var(--mm-font-weight-menu);
  letter-spacing: 0em;
  text-transform: uppercase;
  line-height: var(--lh-125);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 20px;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: color var(--mm-motion-fast), opacity var(--mm-motion-fast), text-decoration-color var(--mm-motion-fast);
}

.mega-menu-link-anchor {
  text-decoration: none;
}

.mega-menu-link-btn:hover,
.mega-menu-link-btn:focus-visible,
.mega-menu-link-anchor:hover,
.mega-menu-link-anchor:focus-visible,
.mega-menu-item.is-active > .mega-menu-link-btn,
.mega-menu-item.is-active > .mega-menu-link-anchor {
  color: var(--mm-text-active);
  opacity: 1;
}

.mega-menu-item.is-active > .mega-menu-link-btn,
.mega-menu-item.is-active > .mega-menu-link-anchor {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-menu-link-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mega-menu-link-arrow {
  flex-shrink: 0;
  opacity: 0.9;
}

.mega-menu-panel-level3 {
  border-right: 1px solid var(--mm-border);
}

.mega-menu-overlay.is-state-2 .mega-menu-panel-level3 {
  display: none;
}

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

.mega-menu-mobile-inner {
  height: 100%;
  overflow: auto;
  padding: 0;
  background: var(--mm-overlay-bg);
  color: var(--mm-text-active);
  display: flex;
  flex-direction: column;
}

.mega-menu-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 16px;
  background: rgba(5, 54, 63, 0.5);
}

.mega-menu-mobile-title {
  font-family: var(--mm-font-ui);
  font-size: var(--mm-font-size-menu);
  font-weight: var(--mm-font-weight-menu);
  letter-spacing: 0em;
  text-transform: uppercase;
  color: var(--mm-text-active);
}

.mega-menu-close-btn-mobile {
  width: 44px;
  height: 44px;
}

.mega-menu-mobile-back-row {
  min-height: 20px;
  display: flex;
  align-items: center;
}

.mega-menu-mobile-back {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--mm-text-active);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.mega-menu-mobile-back img {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

.mega-menu-mobile-back[hidden] {
  visibility: hidden;
}

.mega-menu-mobile-body {
  flex: 1 1 auto;
  min-height: 0;
}

.mega-menu-mobile-panels {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

#megaMenuMobileRoot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mega-menu-mobile-root {
  width: 100%;
  height: 100%;
}

.mega-menu-mobile-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--mm-overlay-bg);
  padding: 24px 32px 32px;
}

.mega-menu-mobile-panel-body {
  margin-top: 24px;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.mega-menu-mobile-panel-content {
  position: relative;
  z-index: 1;
}

.mega-menu-mobile-panel-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mega-menu-mobile-step-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.mega-menu-mobile-list,
.mega-menu-mobile-sublist,
.mega-menu-mobile-thirdlist {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mega-menu-mobile-item {
  border-top: 0;
}

.mega-menu-mobile-nav-btn,
.mega-menu-mobile-link {
  width: 100%;
  min-height: 20px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--mm-text-muted);
  font-family: var(--mm-font-ui);
  font-size: var(--mm-font-size-menu);
  font-weight: var(--mm-font-weight-menu);
  letter-spacing: 0em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  line-height: var(--lh-120);
}

.mega-menu-mobile-nav-btn {
  opacity: 0.6;
}

.mega-menu-mobile-nav-btn.is-active {
  opacity: 1;
  color: var(--mm-text-active);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-menu-mobile-link {
  opacity: 0.6;
  text-decoration: none;
}

.mega-menu-mobile-item + .mega-menu-mobile-item {
  margin-top: 15px;
}

.mega-menu-mobile-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mega-menu-mobile-footer-link,
.mega-menu-mobile-footer-social {
  color: var(--mm-text-active);
  text-decoration: none;
  font-family: var(--mm-font-body);
  font-size: var(--mm-font-size-menu);
  font-weight: 400;
  line-height: var(--lh-20);
  letter-spacing: 0em;
  opacity: 0.45;
}

.mega-menu-mobile-footer-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: max-content;
  color: var(--mm-text-active);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--lh-145);
  opacity: 0.45;
}

.mega-menu-mobile-footer-social img {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  margin-bottom: 3px;
}

.mega-menu-mobile-footer-social:hover {
  opacity: 1;
}

.mega-menu-mobile-footer-social::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.mega-menu-mobile-footer-social:hover::after,
.mega-menu-mobile-footer-social:focus-visible::after {
  transform: scaleX(1);
}

.mega-menu-mobile-langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mega-menu-trigger-btn:focus-visible,
.mega-menu-link-btn:focus-visible,
.mega-menu-link-anchor:focus-visible,
.mega-menu-close-btn:focus-visible,
.mega-menu-topbar-link:focus-visible,
.mega-menu-lang-btn:focus-visible,
.mega-menu-mobile-nav-btn:focus-visible,
.mega-menu-mobile-link:focus-visible,
.mega-menu-mobile-footer-link:focus-visible,
.mega-menu-mobile-footer-social:focus-visible,
.mega-menu-mobile-lang-btn:focus-visible {
  outline: 2px solid var(--mm-focus-ring);
  outline-offset: 2px;
}

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

@media (max-width: 1100px) {
  .mega-menu-header-top {
    max-width: none;
    min-height: 80px;
    padding: 16px;
    gap: 0;
    justify-content: center;
  }

  .mega-menu-header-line-top,
  .mega-menu-header-right,
  #megaMenuPrimaryTriggers {
    display: none;
  }

  .mega-menu-burger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mega-menu-header-line-main {
    width: 100%;
    justify-content: space-between;
  }

  .mega-menu-desktop {
    display: none;
  }

  .mega-menu-mobile {
    display: block;
    height: 100%;
  }

  .mega-menu-search-panel,
  .mega-menu-search-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
