/* Explicit layout for the header, hero logo and mobile navigation.
   Keep these rules outside the generated utility layers. */
header {
  --sv-header-height: 64px;
}
main > section > video ~ div.relative {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 96px 20px 32px;
}
.hero-logo {
  display: block;
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: 320px;
  max-width: 100%;
  height: auto;
  min-height: 64px;
  object-fit: contain;
  margin: 0 auto;
  padding: 8px 13px;
  background: #fff;
  border-radius: 10px;
}
@media (min-width: 768px) {
  main > section > video ~ div.relative {
    padding-top: 132px;
  }
  .hero-logo {
    width: 440px;
  }
}
@media (max-width: 767px) {
  header > div:last-child {
    width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  header > div:last-child > a:first-child {
    min-width: 0;
  }
  header > div:last-child > a:first-child img {
    max-width: min(58vw, 240px);
    height: auto;
    max-height: 36px;
    object-fit: contain;
  }
  #menu-toggle {
    display: block;
    flex: 0 0 auto;
    min-width: 64px;
    min-height: 44px;
  }
  #mobile-menu.hidden {
    display: none;
  }
  #mobile-menu:not(.hidden) {
    position: fixed;
    inset: auto 0 auto 0;
    top: var(--mm-top, 64px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - var(--mm-top, 64px));
    max-height: calc(100dvh - var(--mm-top, 64px));
    margin: 0;
    padding: 8px 20px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #101d2a;
    z-index: 100;
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
  }
  #mobile-menu > a {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    width: 100%;
    padding: 10px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  main > section > video ~ div.relative > h1 {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}
@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
}
