/* =====================================================================
   D - Tabs (metal tab nav strip) — Figma 10159:3692
   Desktop frame 1440 x 36; content locked to 1240 .container.
   Centered row of metal tabs; active tab carries a 3px gold underline.
   Tokens only — no raw hex. New tokens reported: --gold-underline, --fs-24.
   ===================================================================== */

.tabs {
  background: var(--color-bg);
  /* breathing room above the tabs and below (between the tabs and the hero band) */
  padding-block: 28px;
}

.tabs__inner {
  min-height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tabs__nav {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(32px, 5.56vw, 80px);
}

.tabs__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-24);
  font-weight: var(--fw-regular);
  line-height: normal;
  color: var(--gray-6);
  text-align: center;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease;
}

.tabs__tab:hover {
  color: var(--charcoal);
}

.tabs__tab--active {
  color: var(--gray-8);
  border-bottom-color: var(--gold-underline);
}

/* ---- Tablet (768–1023): step font size, ensure horizontal scroll if needed ---- */
@media (max-width: 1023.98px) {
  .tabs {
    padding-block: 22px;
  }
  .tabs__tab {
    font-size: var(--fs-20);
  }
  /* Ensure nav can scroll horizontally if many tabs at tablet */
  .tabs__nav {
    overflow-x: auto;
    padding-inline: var(--pad-mobile);
    scrollbar-width: none;
  }
  .tabs__nav::-webkit-scrollbar { display: none; }
}

/* ---- Mobile — M - Tabs (Figma 10159:4408) 390-wide ----
   3 metals (Gold / Silver / Platinum) fit at 390; centered row, no scroll.
   Type drops to 16px; active keeps gold underline. */
@media (max-width: 767.98px) {
  .tabs { padding-block: 18px; }
  .tabs__inner { min-height: 27px; }
  .tabs__nav {
    gap: clamp(20px, 7vw, 36px);
    overflow-x: visible;
    padding-inline: 0;
  }
  .tabs__tab {
    font-size: var(--fs-16);
    border-bottom-width: 2px;
  }
}
