/* Content switcher: Carbon Classic v10 values ($ui-05 #161616 selected, not the v11 g10 inverse #393939) (v7 React Storybook, measured in output/carbon-54/54b/classic-switcher.json).
   Transparent surface: it sits on whatever layer owns it. */
.wave-content-switcher { --wave-switcher-selected: #161616; display: flex; justify-content: space-evenly; width: 100%; height: 40px; }
.wave-content-switcher[data-size="sm"] { height: 32px; }
.wave-content-switcher[data-size="lg"] { height: 48px; }
.wave-content-switcher[data-fit="content"] { display: inline-flex; width: auto; max-width: 100%; }
.wave-content-switcher-btn {
    position: relative; display: inline-flex; align-items: center; overflow: hidden; box-sizing: border-box;
    width: 100%; min-width: 0; margin: 0; padding: 8px 16px;
    border: solid var(--cds-border-inverse, #161616); border-width: 1px 0; border-radius: 0;
    background-color: transparent; color: var(--cds-text-secondary, #525252);
    font: var(--wave-type-body-short-01); letter-spacing: .16px; text-align: left; text-decoration: none; white-space: nowrap;
    outline: 2px solid transparent; outline-offset: -2px; cursor: pointer;
}
.wave-content-switcher[data-fit="content"] > .wave-content-switcher-btn { width: auto; flex: 0 1 auto; }
.wave-content-switcher-btn::after {
    position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%;
    background-color: var(--wave-switcher-selected); content: "";
    transform: scaleY(0); transform-origin: bottom; transition: transform 150ms cubic-bezier(.2, 0, .38, .9);
}
.wave-content-switcher-btn::before {
    position: absolute; z-index: 2; top: calc(50% - 8px); left: 0; display: block; width: 1px; height: 16px;
    background-color: var(--wave-border-subtle, #e0e0e0); content: "";
}
.wave-content-switcher-btn:first-of-type::before { display: none; }
.wave-content-switcher-btn:first-child { border-left: 1px solid var(--cds-border-inverse, #161616); border-radius: 4px 0 0 4px; }
.wave-content-switcher-btn:last-child { border-right: 1px solid var(--cds-border-inverse, #161616); border-radius: 0 4px 4px 0; }
.wave-content-switcher-label { z-index: 1; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.wave-content-switcher-btn:hover, .wave-content-switcher-btn:active { z-index: 3; background-color: var(--wave-layer-hover, #e5e5e5); color: var(--cds-text-primary, #161616); }
.wave-content-switcher-btn:focus { z-index: 3; border-color: var(--cds-focus, #0f62fe); box-shadow: inset 0 0 0 2px var(--cds-focus, #0f62fe), inset 0 0 0 3px #ffffff; }
.wave-content-switcher-btn:focus::after { clip-path: inset(3px); }
.wave-content-switcher-btn:is(:focus, :hover, [aria-selected="true"])::before,
.wave-content-switcher-btn:is(:focus, :hover, [aria-selected="true"]) + .wave-content-switcher-btn::before { background-color: transparent; }
.wave-content-switcher-btn[aria-selected="true"] { z-index: 3; border: 0; background-color: var(--wave-switcher-selected); color: var(--cds-text-on-color, #ffffff); }
.wave-content-switcher-btn[aria-selected="true"]::after { transform: scaleY(1); }
.wave-content-switcher-btn:disabled { border-color: var(--wave-field, #f4f4f4); background-color: transparent; color: var(--wave-text-disabled, #c6c6c6); cursor: not-allowed; }
.wave-content-switcher-btn:disabled::after { display: none; }
.wave-content-switcher-btn:disabled::before { background-color: var(--wave-field, #f4f4f4); }
.wave-content-switcher-btn[aria-selected="true"]:disabled { background-color: #8d8d8d; color: var(--wave-text-disabled, #c6c6c6); }
@media (prefers-reduced-motion: reduce) { .wave-content-switcher-btn::after { transition: none; } }
