/* Clone enhancements — keep original Planarise CSS intact */
img[src="/logo/logo.png"] {
  object-fit: contain;
  height: auto;
  max-height: 30px;
  width: auto;
}

[data-nimg="fill"] {
  position: absolute !important;
  height: 100% !important;
  width: 100% !important;
  inset: 0;
  object-fit: cover;
}

#mobile-nav-panel[hidden] {
  display: none !important;
}

#mobile-nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 60;
  padding: 1rem 1rem 1.5rem;
}

#mobile-nav-panel a {
  display: block;
  padding: 0.75rem 0;
  color: #111;
  text-decoration: none;
  font-family: var(--font-inter), Inter, system-ui, sans-serif;
  font-size: 15px;
}

#mobile-nav-panel .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

#mobile-nav-panel .cta-row a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

#mobile-nav-panel .cta-row a.primary {
  background: #111;
  color: #fff;
}

#mobile-nav-panel .cta-row a.ghost {
  border: 1px solid #d4d4d4;
  color: #333;
}

/* Keep mega menus above page content and clickable */
.sticky.top-0 {
  z-index: 100 !important;
  overflow: visible !important;
}

#dropdown-menu-wrapper,
.clone-mega-host,
.sticky.top-0 header,
.sticky.top-0 nav {
  overflow: visible !important;
}

.clone-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 640px;
  /* Transparent bridge so the pointer never leaves the host between trigger and panel */
  padding: 12px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 9999;
  pointer-events: auto;
}

.clone-mega.is-open {
  display: block;
  animation: cloneMegaIn 140ms ease-out;
}

.clone-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 24px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #eaebeb;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 15, 16, 0.12);
}

.clone-mega__title {
  font-family: var(--font-inter), Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #959a9d;
  margin-bottom: 10px;
}

.clone-mega__link {
  display: block;
  padding: 6px 0;
  color: #1d1f20;
  text-decoration: none;
  font-family: var(--font-inter), Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
  transition: color 120ms ease;
}

.clone-mega__link:hover {
  color: #006399;
}

.clone-mega-host {
  position: relative;
}

@keyframes cloneMegaIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .clone-mega {
    display: none !important;
  }
}
