/* Phone tab bar. All visual rules are inside the max-width query so
   desktop stays unchanged. */

.gm-tabbar,
.gm-more-backdrop,
.gm-more-sheet {
  display: none;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  body {
    padding-bottom: calc(var(--gm-tabbar-h, 72px) + 8px);
  }

  .gm-tabbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #F0E860;
    border-top: 3px solid #1A2233;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
  }

  .gm-tabbar-scroll {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gm-tabbar-scroll::-webkit-scrollbar {
    display: none;
  }

  .gm-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 62px;
    padding: 6px 8px;
    margin: 0;
    border: 0;
    background: transparent;
    color: #2F3B51;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
  }

  .gm-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 auto;
    display: block;
  }

  .gm-tab span {
    display: block;
    margin-top: 2px;
    color: inherit;
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
  }

  .gm-tab[aria-current="page"],
  .gm-tab[aria-expanded="true"] {
    color: #1A2233;
  }

  .gm-more-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 59;
    background: rgba(26, 34, 51, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .gm-more-backdrop.is-open {
    display: block;
  }

  .gm-more-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--gm-tabbar-h, 72px);
    z-index: 61;
    background: #FFFFFF;
    border-top: 3px solid #1A2233;
    border-radius: 16px 16px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(26, 34, 51, 0.12);
  }

  .gm-more-sheet.is-open {
    display: block;
  }

  .gm-more-sheet h2 {
    margin: 8px 0 10px;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5C6570;
  }

  .gm-more-sheet a {
    display: block;
    min-height: 48px;
    padding: 12px 4px;
    color: #1A2233;
    text-decoration: none;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #E6E2D9;
    line-height: 1.3;
  }

  .gm-more-sheet a:last-of-type {
    border-bottom: 0;
  }

  .gm-more-sheet a[aria-current="page"] {
    color: #A03028;
  }
}
