/* Shared mobile navigation: the approved Library hub, without page variants. */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .brandbook-body.has-mobile-nav {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 48;
    display: grid;
    width: 100%;
    max-width: none;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    min-height: calc(72px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 0;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border: 0;
    border-top: 1px solid rgba(15, 17, 21, 0.06);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -3px 12px rgba(15, 17, 21, 0.05);
    backdrop-filter: blur(14px) saturate(1.15);
  }

  .mobile-bottom-nav a {
    display: flex;
    height: 72px;
    min-height: 72px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(17, 17, 17, 0.6);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav a.is-active {
    color: var(--primary);
    background: transparent;
    box-shadow: none;
  }

  .mobile-bottom-nav .mobile-nav-icon {
    display: none;
  }

  .brandbook-body.has-mobile-nav .mobile-bottom-nav svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav a small {
    display: block;
    max-width: none;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav .mobile-nav-add {
    width: 62px;
    height: 62px;
    min-height: 62px;
    align-self: start;
    justify-self: center;
    margin: -4px 0 0;
    border: 0;
    border-radius: 22px;
    background: var(--brand-gradient);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.15);
    color: #fff;
  }

  .brandbook-body.has-mobile-nav .mobile-bottom-nav .mobile-nav-add svg {
    width: 28px;
    height: 28px;
  }

  .mobile-bottom-nav a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
  }
}
