/* V49: homepage mobile header and navigation fixes. */
@media (max-width: 820px) {
  /* Keep the brand and menu control available while the homepage scrolls. */
  body.home-page > .site-header {
    position: sticky !important;
    inset: auto !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    height: var(--header-h, 76px) !important;
    z-index: 1200 !important;
  }

  /* Remove the spacer that was only needed while the header was fixed. */
  body.home-page main#top > .hero,
  body.home-page .hero {
    padding-top: 0 !important;
  }

  /* The opened hamburger menu occupies the remaining viewport and scrolls independently. */
  body.home-page .mobile-menu {
    position: fixed !important;
    top: var(--header-h, 76px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: var(--header-h, 76px) 0 0 !important;
    width: 100% !important;
    height: calc(100dvh - var(--header-h, 76px)) !important;
    max-height: calc(100dvh - var(--header-h, 76px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    align-content: start !important;
    padding-bottom: calc(42px + env(safe-area-inset-bottom)) !important;
    z-index: 1190 !important;
  }

  /* In the open menu, Affiliate is a normal menu link, not a navigation pill. */
  body.home-page .mobile-menu .affiliate-nav-link,
  body.home-page .mobile-menu .affiliate-nav-link:link,
  body.home-page .mobile-menu .affiliate-nav-link:visited,
  body.home-page .mobile-menu .affiliate-nav-link:hover,
  body.home-page .mobile-menu .affiliate-nav-link:focus-visible,
  body.home-page .mobile-menu .affiliate-nav-link:active {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ink, #211a18) !important;
    -webkit-text-fill-color: var(--ink, #211a18) !important;
    opacity: 1 !important;
    font-family: var(--serif, "Bodoni Moda", Didot, "Times New Roman", serif) !important;
    font-size: 34px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-transform: none !important;
    white-space: normal !important;
    box-shadow: none !important;
  }

  body.home-page .mobile-menu .affiliate-nav-link:focus-visible {
    outline: 2px solid var(--wine, #6f1620) !important;
    outline-offset: 5px !important;
  }
}
