/* Legacy Drupal tabs styling */
#block-lmu2019-tabs ul:not(.contextual-links) {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#block-lmu2019-tabs ul:not(.contextual-links) li a {
    border-bottom: 1px solid #dee2e6;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-top: 1px solid transparent;
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
}
#block-lmu2019-tabs ul:not(.contextual-links) li a.is-active {
    border-bottom: 1px solid transparent;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
}
#block-lmu2019-tabs ul:not(.contextual-links) li a:hover:not(.is-active) {
    border-bottom: 1px solid #e9ecef;
    border-left: 1px dotted #e9ecef;
    border-right: 1px dotted #e9ecef;
    border-top: 1px dotted #e9ecef;
}

/* WordPress ACF Tabbed Content Block Styling - LMU Structure */
.tabbed__nav {
    border-bottom: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tabbed [role="tablist"] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.tabbed [role="tab"] {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    padding: 1rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: #f3f3f3;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    list-style: none;
}

.tabbed [role="tab"]:is(:hover, :focus-visible) {
    background-color: #0076a5;
    color: #fff;
}

@media(width < 32em) {
    .tabbed [role="tab"] {
        font-size: 0.9rem;
        padding-inline: 0.5rem;
    }
}

.tabbed [role="tab"].tabbed__tab--active {
    color: #0076a5;
    border-top: 1px solid #0076a5;
    border-left: 1px solid #0076a5;
    border-right: 1px solid #0076a5;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    background-color: transparent;
}

/* Tab content styling */
.tabbed__content {
    margin-top: 0;
    border: 1px solid #0076a5;
    padding: 1rem 1.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tabbed [role="tabpanel"].is-hidden {
    display: none;
}

.tabbed [role="tabpanel"] {
    display: block;
    padding: 1rem 1.5rem 1.5rem;
    list-style: none;
}

.tabbed__item {
    display: none;
    padding: 1rem 1.5rem 1.5rem;
    list-style: none;
}

.tabbed__item.tabbed__item--active {
    display: block;
}

.tabbed__item.is-hidden {
    display: none;
}

.tabbed__content {
    margin-top: 0;
    border: 1px solid #0076a5;
    list-style: none;
    margin: 0;
    padding: 0;
}
