/* A calm, full-screen mobile navigation panel with the hierarchy and spacing
 * of an app menu, rather than a dark desktop drawer squeezed onto a phone. */
@media (max-width: 1024px) {
  #mobile-drawer,
  #mobile-drawer.popup-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  #mobile-drawer .drawer-inner {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh;
    color: #17191e;
    background: #fff !important;
  }

  #mobile-drawer .drawer-header {
    min-height: 92px;
    padding: max(18px, env(safe-area-inset-top)) 25px 14px;
    background: #fff;
  }

  #mobile-drawer .drawer-header button,
  #mobile-drawer .drawer-header .menu-toggle-open,
  #mobile-drawer .drawer-header .menu-toggle-close {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #17191e;
    background: #f4f5f6;
    box-shadow: none;
  }

  #mobile-drawer .drawer-content {
    padding: 0 28px max(42px, env(safe-area-inset-bottom));
    background: #fff;
  }

  #mobile-drawer .cphd-mobile-menu-brand {
    display: flex;
    align-items: center;
    min-height: 70px;
    margin: 0 0 34px;
  }

  #mobile-drawer .cphd-mobile-menu-brand img {
    display: block;
    width: min(250px, 66vw);
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
  }

  #mobile-drawer .mobile-navigation,
  #mobile-drawer .mobile-navigation > div,
  #mobile-drawer .mobile-navigation > div > ul,
  #mobile-drawer .mobile-navigation > ul,
  #mobile-drawer .mobile-navigation .menu {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #mobile-drawer .mobile-navigation > div > ul > li,
  #mobile-drawer .mobile-navigation > ul > li,
  #mobile-drawer .mobile-navigation li {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both;
    width: 100% !important;
    margin: 0 0 8px;
    border: 0 !important;
  }

  #mobile-drawer .mobile-navigation > div > ul > li:first-child,
  #mobile-drawer .mobile-navigation > ul > li:first-child {
    border: 0 !important;
  }

  #mobile-drawer .mobile-navigation a {
    color: #17191e !important;
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.26rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
  }

  #mobile-drawer .mobile-navigation > div > ul > li > a,
  #mobile-drawer .mobile-navigation > ul > li > a,
  #mobile-drawer .mobile-navigation .drawer-nav-drop-wrap > a {
    display: flex;
    min-height: 70px;
    align-items: center;
    padding: 16px 58px 16px 0;
    border: 0 !important;
    box-shadow: none !important;
  }

  #mobile-drawer .mobile-navigation li.current-menu-item > a,
  #mobile-drawer .mobile-navigation li.current-menu-ancestor > a,
  #mobile-drawer .mobile-navigation a:hover,
  #mobile-drawer .mobile-navigation a:focus-visible {
    color: #c92819 !important;
  }

  #mobile-drawer .mobile-navigation .drawer-nav-drop-wrap {
    position: static !important;
    display: flex !important;
    width: 100%;
    height: 70px;
    z-index: 2;
    border: 0 !important;
    color: #17191e;
  }

  #mobile-drawer .mobile-navigation .drawer-nav-drop-wrap > a {
    flex: 1 1 auto;
    min-width: 0;
  }

  #mobile-drawer .mobile-navigation .drawer-nav-drop-wrap button,
  #mobile-drawer .mobile-navigation .drawer-nav-drop-wrap .drawer-sub-toggle {
    display: grid !important;
    flex: 0 0 56px;
    width: 56px;
    height: 100%;
    place-items: center;
    border: 0;
    color: inherit;
    background: transparent;
  }

  #mobile-drawer .mobile-navigation .sub-menu {
    display: none !important;
    margin: 0 0 13px;
    padding: 0 0 4px 19px;
  }

  #mobile-drawer .mobile-navigation .sub-menu.show-drawer.active {
    display: block !important;
  }

  #mobile-drawer .mobile-navigation .sub-menu li {
    border: 0 !important;
  }

  #mobile-drawer .mobile-navigation .sub-menu a {
    display: block;
    padding: 10px 0;
    color: #555b64 !important;
    font-family: Inter, sans-serif;
    font-size: .96rem;
    font-weight: 650;
  }

  #mobile-drawer .mobile-navigation li,
  #mobile-drawer .mobile-navigation a,
  #mobile-drawer .mobile-navigation .menu-item,
  #mobile-drawer .mobile-navigation .menu-item > a {
    border-color: transparent !important;
  }
}
