/* Tabs (src/ui/components/tabs.js): big, round tab buttons over one panel. */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  min-width: 0;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: var(--tap);
  padding: var(--sp-1) var(--sp-4);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--sea-800);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.tabs__tab:hover {
  background: var(--sea-50);
}

.tabs__tab.is-on {
  background: var(--sea-600);
  border-color: var(--sea-700);
  color: #ffffff;
}

.tabs__emoji {
  font-size: 1.2em;
  line-height: 1;
}

.tabs__count,
.tabs__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.35em;
  border-radius: var(--r-pill);
  background: var(--accent-100);
  color: var(--accent-700);
  font-size: var(--fs-xs);
  font-weight: 900;
}

/* A tab's one-word phone label (TabGroup.short): hidden on wide screens. */
.tabs__short {
  display: none;
}

@media (max-width: 35em) {
  .tabs__tab {
    flex: 1 1 0;
    justify-content: center;
    padding: var(--sp-1) var(--sp-3);
  }

  /* Phones: the emoji and one word; the full name stays the tab's spoken name (visually hidden). */
  .tabs__tab.has-short .tabs__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .tabs__tab.has-short .tabs__short {
    display: inline;
    white-space: nowrap;
  }
}
