/* Keep the three managed headings readable after theme styles. */
body[class*="theme-"] [data-managed-button="news"],
body[class*="theme-"] [data-managed-button="videos"],
body[class*="theme-"] [data-managed-button="staff"] {
    min-width: 0;
    max-width: 100%;
}
body[class*="theme-"] .managed-section-title:is([data-managed-button="news"], [data-managed-button="videos"], [data-managed-button="staff"]) > h2,
body[class*="theme-"] .managed-section-title:is([data-managed-button="news"], [data-managed-button="videos"], [data-managed-button="staff"]) > a {
    color: var(--managed-text-color, #fff) !important;
}
@media (max-width: 1024px) {
    body[class*="theme-"] [data-managed-button="news"],
    body[class*="theme-"] [data-managed-button="videos"],
    body[class*="theme-"] [data-managed-button="staff"] {
        --managed-responsive-width: 100%;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    body[class*="theme-"] .managed-section-title:is([data-managed-button="news"], [data-managed-button="videos"], [data-managed-button="staff"]) > h2 {
        flex: 1 1 160px;
        min-width: 0;
        max-width: 100%;
        display: block !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere;
        line-height: 1.4 !important;
        text-align: center;
    }
    body[class*="theme-"] .managed-section-title:is([data-managed-button="news"], [data-managed-button="videos"], [data-managed-button="staff"]) > a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        white-space: normal;
        margin-left: auto !important;
        padding: 4px 8px;
    }
}
@media (max-width: 480px) {
    body[class*="theme-"] [data-managed-button="news"] > a {
        flex: 1 0 100%;
        margin: 0 !important;
    }
}
