/* Sliding highlight for segmented tabs (see nfseg.js) and a short fade for content that switches with them. */
.nf-seg { position: relative; isolation: isolate; }
.nf-seg > .nf-thumb { position: absolute; top: 0; left: 0; z-index: -1; border-radius: 6px; pointer-events: none; opacity: 0;
                      background: var(--bg-elevated); box-shadow: inset 0 0 0 1px var(--border);
                      transition: transform .26s cubic-bezier(.2, .8, .2, 1), width .26s cubic-bezier(.2, .8, .2, 1), opacity .15s; }
.sp-tabs.nf-seg > .nf-thumb { border-radius: var(--r-md); }
/* the thumb draws the active background, the buttons only change their text color */
.nf-seg > [aria-pressed="true"], .nf-seg > [aria-selected="true"] { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.nf-seg > button, .nf-seg > a { transition: color .2s; }
@keyframes nf-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sp-view:not([hidden]), .mk-tabbody { animation: nf-in .22s cubic-bezier(.2, .8, .2, 1); }
.mk-tabbody.out { opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .nf-seg > .nf-thumb { transition: none; }
  .sp-view:not([hidden]), .mk-tabbody { animation: none; }
}
