/*
 * The Classic/New switch (new_ui_toggle_html() in legacy/includes/new_ui_view.php), printed into
 * both branches of a converted page, so the control does not restyle itself when the user flips.
 *
 * Unintrusive by design: it sits inline in the page heading and reads as a caption until hovered.
 */

.new-ui-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding: 2px 8px;
    border: 1px solid #E4ECEE; /* Mist */
    border-radius: 999px;
    font-size: 11px;
    line-height: 18px;
    vertical-align: middle;
    white-space: nowrap;
}

.new-ui-toggle__current {
    color: #00253E; /* Navy */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.new-ui-toggle__switch,
.new-ui-toggle__switch:link,
.new-ui-toggle__switch:visited {
    color: #20737B; /* Teal */
    text-decoration: none;
    border-left: 1px solid #E4ECEE;
    padding-left: 6px;
}

.new-ui-toggle__switch:hover,
.new-ui-toggle__switch:focus {
    color: #00253E;
    text-decoration: underline;
}

.new-ui-toggle__switch:focus-visible {
    outline: 2px solid #20737B;
    outline-offset: 2px;
    border-radius: 2px;
}
