
.primary-content:has(> .sw-section-tabs) > :is(.hc-tabs, .sw-support-nav) {
    display: none !important;
}
.sw-section-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 4px;
    border: 1px solid #e7edf5;
    border-radius: 14px;
    background: #f5f7fa;
}
.sw-section-tabs > a {
    padding: 8px 15px;
    border-radius: 10px;
    color: #526781;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.sw-section-tabs > a[aria-current="page"] {
    background: #fff;
    color: #04223c;
    box-shadow: 0 1px 5px #10204012;
}
#main-body.announcements .primary-content > nav:has(> .pagination) {
    margin-top: 18px;
}
@media (max-width: 575px) {
    .sw-section-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sw-section-tabs > a {
        padding-inline: 8px;
        text-align: center;
    }
}

/* Give the downloads search field and submit button independent edges. */
.sw-main.downloads .kb-search.input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.sw-main.downloads .kb-search.input-group > .form-control,
.sw-main.downloads .kb-search #btnDownloadsSearch {
    box-sizing: border-box;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 14px;
}

.sw-main.downloads .kb-search.input-group > .form-control {
    width: 100%;
    min-width: 0;
}

.sw-main.downloads .kb-search > .input-group-append {
    margin: 0;
}

.sw-main.downloads .kb-search #btnDownloadsSearch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    white-space: nowrap;
}

/* Style the announcement detail return link as a theme button. */
.sw-main.viewannouncement .primary-content > a.cl-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #04223c;
    box-shadow: none;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.sw-main.viewannouncement .primary-content > a.cl-action:hover {
    color: #fff;
    text-decoration: none;
}
