/* Shared smartphone-style header/drawer at tablet widths. */
@media (min-width: 801px) and (max-width: 1200px) {
  html:has(body) { scroll-padding-top: calc(var(--mobile-header-height, 122px) + 16px); }
  body.is-menu-open { overflow: hidden; }
  .subpage .subpage-main { padding-top: var(--mobile-header-height, 174px); }
  .home-page .mv__side { display: none; }
  /* Header / drawer */
  :is(.home-page, .subpage) .header__marquee { padding-block: 10px; }
  :is(.home-page, .subpage) .header__marquee-tile { height: 48px; }
  :is(.home-page, .subpage) .header__inner {
    min-height: 62px;
    padding: 10px 18px;
  }
  :is(.home-page, .subpage) .header[data-state="mv"] .header__inner { background: transparent; }
  /* Blur creates a stacking context that traps the close button under the drawer. */
  :is(.home-page, .subpage) .header.is-menu-open .header__inner {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  :is(.home-page, .subpage) .header__logo img { height: 36px; }
  :is(.home-page, .subpage) .header__nav { display: none; }
  :is(.home-page, .subpage) .header__menu-button {
    position: relative;
    z-index: 103;
    display: block;
    width: 84px;
    height: 84px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
  }
  :is(.home-page, .subpage) .header__menu-icon {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .3s ease, transform .35s var(--ease-out);
  }
  :is(.home-page, .subpage) .header__menu-icon--open { transform: scale(1.25); }
  :is(.home-page, .subpage) .header__menu-icon--close { display: none; }
  :is(.home-page, .subpage) .header__menu-button::before,
  :is(.home-page, .subpage) .header__menu-button::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    background: #fff;
    pointer-events: none;
  }
  :is(.home-page, .subpage) .header__menu-button::before {
    width: 30px;
    height: 2px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: opacity .2s ease, transform .35s var(--ease-out);
  }
  :is(.home-page, .subpage) .header__menu-button::after {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff;
    transform: translate(-50%, -50%);
    transition: width .25s ease, height .25s ease, box-shadow .2s ease, transform .35s var(--ease-out);
  }
  :is(.home-page, .subpage) .header.is-menu-open .header__menu-icon--open { transform: scale(1.25); }
  :is(.home-page, .subpage) .header.is-menu-open .header__menu-button::before { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg); }
  :is(.home-page, .subpage) .header.is-menu-open .header__menu-button::after {
    width: 30px;
    height: 2px;
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  :is(.home-page, .subpage) .mobile-nav {
    position: fixed;
    top: var(--mobile-marquee-height, 70px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 101;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 24px 40px 56px;
    background: #292929;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity .3s ease, visibility .3s ease, transform .3s var(--ease-out);
  }
  :is(.home-page, .subpage) .header.is-menu-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  :is(.home-page, .subpage) .mobile-nav__inner {
    width: min(100%, 430px);
    min-height: 100%;
    margin-inline: auto;
  }
  :is(.home-page, .subpage) .mobile-nav__brand {
    display: block;
    width: 220px;
    margin-bottom: 24px;
  }
  :is(.home-page, .subpage) .mobile-nav__brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
  }
  :is(.home-page, .subpage) .mobile-nav__entry {
    display: block;
    width: 100%;
    margin-bottom: 34px;
  }
  :is(.home-page, .subpage) .mobile-nav__entry img {
    display: block;
    width: 100%;
    height: auto;
  }
  :is(.home-page, .subpage) .mobile-nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    font-family: var(--ff-zen);
    color: #fff;
  }
  :is(.home-page, .subpage) .mobile-nav__group { display: grid; gap: 10px; }
  :is(.home-page, .subpage) .mobile-nav__heading {
    justify-self: start;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .8);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
  }
  :is(.home-page, .subpage) .mobile-nav__sub-links {
    display: grid;
    gap: 0;
    padding-left: 8px;
  }
  :is(.home-page, .subpage) .mobile-nav__sub-links a {
    color: rgba(255, 255, 255, .82);
    display: flex;
    align-items: center;
    min-height: 36px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
  }

}
