/* ========================================
  Tab Navigation Block Styles - Mobile First
   ======================================== */

.tab-navigation {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.tab-navigation-title {
  font-size: var(--font-size-display-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  text-align: center;
  margin: 0;
  width: 100%;
}

.tab-navigation-wrapper {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  overflow: auto;
  gap: 0;
  width: 100%;
  border-bottom: 1.25px solid #ddd;
  min-height: 2.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.tab-navigation-wrapper::-webkit-scrollbar {
  display: none;
}

.tab-navigation-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  flex: 0 0 auto;
  min-width: max-content;
  height: 2.75rem;
  border-bottom: none;
  position: relative;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-size: var(--font-size-heading-5);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  color: var(--color-primary);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.tab-navigation-item:hover {
  text-decoration: none;
  opacity: 0.8;
}

.tab-navigation-item.active {
  border-bottom: 2px solid var(--color-primary);
  background-color: transparent;
  font-weight: var(--font-weight-semibold);
}

.tab-navigation-link {
  /* Legacy support - properties moved to .tab-navigation-item */
}

@media (width >= 768px) {
  .tab-navigation-title {
    font-size: var(--font-size-heading-2);
    line-height: 1.4;
  }

  .tab-navigation-link {
    font-size: var(--font-size-body-xl);
  }

  .tab-navigation-item {
    font-size: var(--font-size-body-xl);
  }
}

@media (width >= 1024px) {
  .tab-navigation {
    gap: 2.5rem;
  }

  .tab-navigation-wrapper {
    justify-content: center;
    gap: 0.625rem;
    padding: 0;
  }

  .tab-navigation-item {
    padding: 0.625rem 1.25rem;
  }

  .tab-navigation-item.active {
    border-bottom: 2.5px solid var(--color-primary);
  }
}

.tab-navigation-item[aria-current="page"] {
  font-weight: var(--font-weight-semibold);
}

.investor-relations .tab-navigation .tab-navigation-wrapper h3,
.group-page .tab-navigation .tab-navigation-wrapper h3 {
  font-family: Poppins, sans-serif;
  font-size: 20px;
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tab-navigation-item {
    transition: none;
  }
}
