.tabs {
    display: flex;
    flex-flow: column nowrap;
}

.tabs>ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-end;
    gap: 0.25em;
    padding: 0.5rem 0.25rem 0 0.25rem;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border-color);
}

.tabs>ul li {
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.4em 0.5em 0.4em 0.5em;
    cursor: pointer;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-bottom: none;
    margin: 0;
}

.tabs>ul a {
    font-weight: normal;
    text-decoration: none;
}

.tabs>ul li.selected {
    padding: 0.6em 0.5em 0.4em 0.5em;
    cursor: default;
    margin: 1px 0 -1px 0;
    background-color: var(--color-accent);
    border: 0px solid var(--border-color);
    border-bottom-width: 1px;
}

.tabs>ul li.selected a {
    color: var(--color-emphasis-over);
    font-weight: bold;
}

.tabs>section {
    padding: 0.5em;
    background-color: var(--colibri-cinza-claro);
    border-radius: 0 0 0.25rem 0.25rem;
    position: relative;
    z-index: 0;
    border: 1px solid var(--border-color);
    border-top: 0;
    margin: 0 0 1em 0;
    font-size: 0.9rem;
    display: flex;
    flex-flow: column;
    gap: 0.5em;
    width: 100%;
}

.tabs>section h2:first-child {
    margin: 0.5rem 0 0.75rem 0;
    font-size: 1.75em;
}

.tabs .list {
    font-size: 0.8em;
}

.tabs>section header {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1em 0;
}

.tabs>section summary+header {
    margin-top: 1.5em;
}

.tabs>section header>* {
    margin: 0;
}

.tabs>section header p {
    flex: 1 0 100%;
}

.tabs>section header button {
    font-size: 0.85em;
}