/* A small set of mutually exclusive options. Mark the picked one with
   aria-pressed="true" (buttons) or aria-current (links). */
.sn-segmented {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  height: var(--sn-control-md);
  padding: 2px;
  border: 1px solid var(--sn-border-strong);
  border-radius: var(--sn-radius-control);
}
.sn-segmented > :is(button, a) {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--sn-s-3);
  border: 0;
  border-radius: calc(var(--sn-radius-control) - 2px);
  background: transparent;
  color: var(--sn-fg-muted);
  font-family: var(--sn-font-control);
  font-size: var(--sn-text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--sn-transition), background var(--sn-transition);
}
.sn-segmented > :is(button, a):hover { color: var(--sn-fg); background: var(--sn-hover); }
.sn-segmented > :is(button, a):focus-visible { outline: none; text-decoration: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sn-accent) 55%, transparent); }
.sn-segmented > :is([aria-pressed="true"], [aria-current]),
.sn-segmented > :is([aria-pressed="true"], [aria-current]):hover { background: var(--sn-fg); color: var(--sn-fg-inverse); }
.sn-segmented__label { display: inline-flex; align-items: center; padding: 0 var(--sn-s-2); color: var(--sn-fg-subtle); font-size: var(--sn-text-xs); }
.sn-segmented--sm { height: var(--sn-control-sm); }
.sn-segmented--sm > :is(button, a) { padding: 0 var(--sn-s-2); }
