/* Shared segmented control. Page variants belong under their page selectors. */
/* Segmented Control */
.segmented-control {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}

.segmented-control-btn {
  padding: 0.3rem 0.65rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.segmented-control-btn:not(:last-child) {
  border-right: 1px solid #cbd5e1;
}

.segmented-control-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.segmented-control-btn.is-active {
  background: var(--primary-color, #3273dc);
  color: #ffffff;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .segmented-control {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .segmented-control-btn {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
  }
}

.is-dark .segmented-control {
  background: #3a3a3a;
  border-color: #555;
}

.is-dark .segmented-control-btn {
  color: #b5b5b5;
}

.is-dark .segmented-control-btn:not(:last-child) {
  border-right-color: #555;
}

.is-dark .segmented-control-btn:hover {
  background: #4a4a4a;
  color: #f5f5f5;
}

.is-dark .segmented-control-btn.is-active {
  background: var(--primary-color, #3273dc);
  color: #ffffff;
}
