:root {
    --accent: var(--yellow-color);
    /* amarelo */
    --text: var(--text-color);
    /* texto normal */
    --muted: #6b6b6b;
    --radius: 0;
    --tab-pad-x: 2dvw;
    --tab-pad-y: .9rem;
    --underline-h: 4px;
    --gap: 2.5rem;
    font-synthesis-weight: none;
}

.tabs {
    max-width: 100%;
}

/* NAV */
.tablist-wrap {
    position: relative;
    padding-bottom: calc(var(--underline-h) + 2px);
}

/* full-width yellow underline */
.tablist-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--underline-h);
    background: var(--accent);
}

.tablist {
    display: flex;
    gap: var(--gap);
    align-items: flex-end;
    justify-content: center;
    /* keep buttons snug to underline */
}

.tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    padding: var(--tab-pad-y) var(--tab-pad-x);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    position: relative;
    translate: 0 0;
    /* avoid subpixel blurring */
}

.tab:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--accent) 60%, black);
    outline-offset: 2px;
    border-radius: 8px;
}

/* active tab becomes a yellow block that “sits” on the underline */
.tab[aria-selected="true"] {
    background: var(--accent);
    color: white;
    font-weight: 600;
    /* visually connect with underline */
    box-shadow: 0 var(--underline-h) 0 0 var(--accent);
}

/* PANELS */
.panels {
    background: #fff;
}

.panel[hidden] {
    display: none;
}

.panel {
    padding: 2dvh 4dvw;
    color: var(--text);
}

/* small screens */
@media (max-width: 700px) {
    .tablist {
        gap: .5rem;
        flex-wrap: wrap;
    }

    .tab {
        padding: .6rem .9rem;
    }
}