/* Article sorting: the same navy surfaces, type and selection treatment as topic pills. */
body .article-sort-control.dmb-sort-enhanced::after { content: none; }
body .article-sort-control.dmb-sort-enhanced > select[hidden] { display: none !important; }
body .article-sort-control .dmb-sort-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    min-width: 170px;
    min-height: 44px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid rgba(114, 197, 255, .3);
    border-radius: var(--designmybit-control-radius, 5px);
    background: var(--designmybit-card-background, #04090f);
    color: #eef3f8;
    font-family: var(--designmybit-body-font, sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
body .dmb-sort-trigger::after {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #b9cde0;
    border-bottom: 1.5px solid #b9cde0;
    transform: translateY(-2px) rotate(45deg);
}
body .dmb-sort-trigger[aria-expanded="true"] { border-color: #72c5ff; }
body .dmb-sort-trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
body .dmb-sort-trigger:focus-visible { outline: 2px solid #72c5ff; outline-offset: 3px; }
body .dmb-sort-listbox {
    position: fixed;
    z-index: 100000;
    inset: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 5px;
    max-width: calc(100vw - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(114, 197, 255, .3);
    border-radius: 8px;
    background: var(--designmybit-card-background, #04090f);
    color: #eef3f8;
    font-family: var(--designmybit-body-font, sans-serif);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
body .dmb-sort-listbox[hidden] { display: none !important; }
body .dmb-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--designmybit-control-radius, 5px);
    background: transparent;
    color: #c9d3df;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}
body .dmb-sort-option + .dmb-sort-option { margin-top: 2px; }
body .dmb-sort-option[aria-selected="true"] {
    border-color: rgba(114, 197, 255, .45);
    background: var(--designmybit-button-background, linear-gradient(90deg, #05212b, #245e8f));
    color: #fff;
}
body .dmb-sort-option[aria-selected="true"]::after {
    content: "";
    flex: 0 0 5px;
    width: 5px;
    height: 9px;
    margin-right: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}
body .dmb-sort-option.is-active:not([aria-selected="true"]),
body .dmb-sort-option:hover:not([aria-disabled="true"]):not([aria-selected="true"]) {
    background: #111e2b;
    color: #fff;
    border-color: rgba(114, 197, 255, .2);
}
body .dmb-sort-option[aria-disabled="true"] { opacity: .45; cursor: default; }
@media (max-width: 991px) {
    body .article-sort-control .dmb-sort-trigger { min-width: 160px; font-size: 12px; }
}
