/* Narrow-phone navigation: keep all seven touch targets visible and label the current destination. */
@media (max-width: 480px) {
  :root {
    --middleton-mobile-nav-height: 72px !important;
  }

  .common-tabs {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(7, minmax(44px, 1fr));
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .common-tabs::-webkit-scrollbar {
    display: none;
  }

  .common-tabs a {
    position: relative;
    display: grid;
    width: auto;
    min-width: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    grid-template-rows: 1fr;
    place-items: center;
    padding: 3px 1px 14px !important;
  }

  .common-tab-icon {
    width: 29px;
    height: 29px;
  }

  .common-tabs a .common-nav-label {
    display: none !important;
  }

  .common-tabs a.active .common-nav-label {
    position: absolute;
    right: 1px;
    bottom: 2px;
    left: 1px;
    display: block !important;
    max-width: none;
    overflow: hidden !important;
    font-size: .68rem !important;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
