/* Leave enough room for the account and language controls beside the mobile menu. */
@media (max-width: 479px) {
  body.nk-portal.nk-shared-mobile-shell:is(.nk-home-page, :has(#nkbio)) .nk-header .nk-header-row {
    grid-template-rows: minmax(54px, auto) auto auto !important;
  }

  body.nk-portal.nk-shared-mobile-shell:is(.nk-home-page, :has(#nkbio)) .nk-header-row > #nkNavigation ~ .nk-site-utilities {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0;
    flex-wrap: wrap !important;
    margin: 0 0 8px !important;
  }

  body.nk-portal.nk-shared-mobile-shell:is(.nk-home-page, :has(#nkbio)) .nk-header #nkNavigation {
    grid-row: 3 !important;
  }
}

@media (max-width: 767px) {
  body.nk-portal.nk-home-page.nk-mobile-home .nk-header .nk-header-row {
    flex-wrap: wrap !important;
    row-gap: 0 !important;
  }

  body.nk-portal.nk-home-page.nk-mobile-home .nk-header-row > .nk-mobile-toggle {
    margin-inline-start: auto !important;
  }

  body.nk-portal.nk-home-page.nk-mobile-home .nk-header-row > .nk-site-utilities {
    flex: 0 0 100% !important;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    margin-block-end: 8px !important;
  }
}
