/* Patient menu additions reuse the existing header, drawer and mega-menu layout. */
.mega-menu__item-icon {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  background: #e8f2f5;
}

.mega-menu__item:hover .mega-menu__item-icon,
.mega-menu__item:focus-visible .mega-menu__item-icon {
  background: #d9e5ea;
}

.mega-menu__item-icon svg {
  width: 22px;
  height: 22px;
}

.mega-menu__item-icon--official {
  isolation: isolate;
  overflow: hidden;
}

.mega-menu__item-icon--official img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Neutralize the PNG's white surround against the shared icon background. */
  mix-blend-mode: darken;
}

.mega-menu__subtitle,
.mega-menu__item-desc,
.mega-menu__item-note {
  color: var(--text);
}

.mega-menu__item-note {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.mega-menu__item-availability {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgb(109 165 188 / 12%);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.mega-menu__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.patient-menu-overview {
  padding-block: var(--section-space);
}

.patient-menu-overview__intro {
  max-width: 880px;
  margin-bottom: 24px;
}

.patient-menu-overview__intro h2 {
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.patient-menu-overview__intro p,
.patient-menu-overview__note {
  color: var(--text);
  line-height: 1.6;
}

.patient-menu-overview__note {
  margin: 20px 0 0;
  font-size: 0.875rem;
}

.patient-menu-overview .journey__step {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.patient-menu-overview .journey__step a {
  color: var(--brand-700);
  text-underline-offset: 3px;
}

@media (min-width: 1024px) {
  .nav-item.is-open .mega-menu__clip {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mega-menu[data-mega-menu="entender"] .mega-menu__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .mega-menu[data-mega-menu="entender"] .mega-menu__item {
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgb(44 63 77 / 10%);
    border-radius: var(--radius-md);
  }

  .mega-menu[data-mega-menu="entender"] .mega-menu__item-body {
    align-self: stretch;
  }

  .mega-menu[data-mega-menu="entender"] .mega-menu__item-desc {
    margin-bottom: 12px;
  }

  .mega-menu[data-mega-menu="entender"] .mega-menu__item-availability {
    margin-top: auto;
  }

}
