/* Animated Tabs (Build UI, 21st.dev, MIT): in the original the bubble is the primary colour with mix-blend difference,
   which over a light page shows as a light grey pill under dark words. That look is drawn directly here (a blend has
   nothing to invert inside our header's layers): a pill in the text colour at 9%, under the words; the glide is a
   spring with a little bounce over 0.6 s. */
.atabs { position: relative; display: inline-flex; gap: 4px; }
.atabs__tab { position: relative; z-index: 1; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--color-text); font: 500 14px / 20px var(--type-body-family); cursor: pointer; transition: color 0.15s; -webkit-tap-highlight-color: transparent; }
.atabs__tab[aria-selected="false"]:hover { color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.atabs__tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.atabs__bubble { position: absolute; z-index: 0; inset-block: 0; left: var(--x, 0); width: var(--w, 0); border-radius: 999px; background: color-mix(in srgb, var(--color-text) 9%, transparent); pointer-events: none; }
.atabs.is-ready .atabs__bubble { transition: left 0.6s cubic-bezier(0.34, 1.25, 0.64, 1), width 0.6s cubic-bezier(0.34, 1.25, 0.64, 1); }
@media (prefers-reduced-motion: reduce) { .atabs.is-ready .atabs__bubble { transition: none; } }
