/*
 * No-JS tab mechanism for the teammade toggle bundle.
 * The radio inputs drive the visible panel purely via CSS :checked.
 * A theme may override the visual styling; the display rules below are the
 * functional core and should be kept.
 */

.tabcontrol-native .tab-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Radios are the state carriers; keep them out of the flow but accessible. */
.tabcontrol-native .tab-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tabcontrol-native .tab-label {
    order: 1;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: block;
}

.tabcontrol-native .tab-content {
    order: 2;
    width: 100%;
    display: none;
}

/* Show the panel that follows the checked radio + its label. */
.tabcontrol-native .tab-switch:checked + .tab-label + .tab-content {
    display: block;
}

/* Active tab label state. */
.tabcontrol-native .tab-switch:checked + .tab-label {
    font-weight: 700;
}

/* Keyboard focus visibility (radios are visually hidden). */
.tabcontrol-native .tab-switch:focus-visible + .tab-label {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

