/* Compact in-page switch for the three Skills views. */
.skills-switcher {
  display: flex;
  gap: 6px;
  margin: -6px 0 28px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.skills-switcher::-webkit-scrollbar {
  display: none;
}

.skills-switcher a {
  flex: 1 0 148px;
  min-width: 0;
  padding: 9px 12px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.skills-switcher a:hover {
  border-color: var(--border);
  background: var(--surface);
}

.skills-switcher a.active {
  border-color: rgba(91, 94, 245, .35);
  background: var(--surface);
  box-shadow: 0 4px 14px -10px rgba(91, 94, 245, .55);
}

.skills-switcher strong {
  display: block;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
  white-space: nowrap;
}

.skills-switcher a.active strong {
  color: var(--primary);
}

.skills-switcher span {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skills-switcher a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Phones: three short labels fit on one row, so drop the hints instead of
   cutting the last segment off at the edge. */
@media (max-width: 560px) {
  .skills-switcher {
    gap: 4px;
    margin: -2px 0 22px;
    padding: 4px;
  }

  .skills-switcher a {
    flex: 1 1 0;
    padding: 9px 6px;
    text-align: center;
  }

  .skills-switcher strong {
    font-size: 13.5px;
    line-height: 19px;
  }

  .skills-switcher span {
    display: none;
  }
}
