/* Anahata v2 — bottom tab bar. Figma: "Tab View". */

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--a-space-4);
  padding: var(--a-space-3) var(--a-space-6);
  padding-bottom: calc(var(--a-space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--a-gradient-brand);
  border-radius: var(--a-radius-pill) var(--a-radius-pill) 0 0;
  box-shadow: var(--a-shadow-bar-top);
}

.tab-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--a-space-2) var(--a-space-3);
  border-radius: var(--a-radius-15);
  color: var(--a-surface);
  text-decoration: none;
}

.tab-bar__item.is-active {
  background: var(--a-scrim-press);
}

.tab-bar__label {
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-label);
  line-height: 1;
}

@media screen and (min-width: 750px) {
  .tab-bar {
    max-width: 402px;
    margin-inline: auto;
  }
}

.tab-bar--hidden {
  display: none;
}

/* From 990px the desktop header (sections/site-header) takes over the tab
   bar's job — its sidebar lists the same pages. */
@media screen and (min-width: 990px) {
  .tab-bar {
    display: none;
  }
}
