/*
 * ============================================================
 * CSH_ACCESSIBILITY_CONTROL_CENTER_V1
 * ============================================================
 */

.csh-a11y-root,
.csh-a11y-root * {
    box-sizing: border-box;
}


.csh-a11y-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.csh-a11y-launcher {
    position: fixed;
    z-index: 99990;

    top: 43%;
    right: 0;

    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 12px 0 0 12px;

    background: #102a46;
    color: #fff;

    box-shadow:
        0 10px 28px rgba(2, 8, 23, .25);

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        width .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}


.csh-a11y-launcher:hover {
    width: 60px;
    background: #173b62;
}


.csh-a11y-launcher svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}


.csh-a11y-launcher:focus-visible,
.csh-a11y-panel button:focus-visible,
.csh-a11y-panel a:focus-visible {
    outline: 3px solid #f5c451 !important;
    outline-offset: 3px !important;
}


.csh-a11y-backdrop {
    position: fixed;
    z-index: 99998;

    inset: 0;

    background:
        rgba(15, 23, 42, .48);

    backdrop-filter:
        blur(2px);
}


.csh-a11y-backdrop[hidden],
.csh-a11y-panel[hidden] {
    display: none !important;
}


.csh-a11y-panel {
    position: fixed;
    z-index: 99999;

    top: 0;
    right: 0;
    bottom: 0;

    width:
        min(
            390px,
            100vw
        );

    display: flex;
    flex-direction: column;

    background: #fff;
    color: #172033;

    box-shadow:
        -18px 0 60px
        rgba(15, 23, 42, .22);

    overflow: hidden;
}


.csh-a11y-panel__header {
    flex: 0 0 auto;

    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding:
        18px 20px;

    border-bottom:
        1px solid #e8edf3;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fbfcfe
        );
}


.csh-a11y-panel__header small {
    display: block;

    margin-bottom: 3px;

    color: #64748b;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .09em;
}


.csh-a11y-panel__header h2 {
    margin: 0;

    color: #102a46;

    font-size: 25px;
    line-height: 1.15;
}


.csh-a11y-close {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid #dce3eb;

    border-radius: 12px;

    background: #fff;
    color: #102a46;

    cursor: pointer;

    font-size: 28px;
    line-height: 1;
}


.csh-a11y-panel__body {
    flex: 1 1 auto;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding:
        18px 20px 30px;
}


.csh-a11y-intro {
    margin:
        0 0 20px;

    color: #526174;

    font-size: 14px;
    line-height: 1.6;
}


.csh-a11y-section {
    padding:
        18px 0;

    border-top:
        1px solid #edf1f5;
}


.csh-a11y-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}


.csh-a11y-section h3 {
    margin:
        0 0 10px;

    color: #102a46;

    font-size: 13px;
    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: .06em;
}


.csh-a11y-option {
    width: 100%;

    min-height: 54px;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        38px;

    align-items: center;

    gap: 10px;

    padding:
        9px 4px;

    border: 0;
    border-bottom:
        1px solid #f0f3f6;

    background: transparent;
    color: #233247;

    text-align: left;

    cursor: pointer;

    font-size: 15px;
}


.csh-a11y-option:hover {
    background: #f8fafc;
}


.csh-a11y-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #344155;

    font-size: 20px;
    font-weight: 800;
}


.csh-a11y-switch {
    position: relative;

    width: 34px;
    height: 20px;

    border-radius: 999px;

    background: #cbd5e1;

    transition:
        background-color .15s ease;
}


.csh-a11y-switch::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 1px 4px
        rgba(0, 0, 0, .25);

    transition:
        transform .15s ease;
}


.csh-a11y-option[aria-pressed="true"]
.csh-a11y-switch {
    background: #102a46;
}


.csh-a11y-option[aria-pressed="true"]
.csh-a11y-switch::after {
    transform:
        translateX(14px);
}


.csh-a11y-option[aria-pressed="true"] {
    color: #102a46;
    font-weight: 800;
}


.csh-a11y-font-control {
    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        48px;

    align-items: center;

    gap: 10px;

    margin:
        4px 0 12px;

    padding:
        12px;

    border:
        1px solid #e3e9ef;

    border-radius: 14px;

    background: #f8fafc;
}


.csh-a11y-font-control button {
    width: 48px;
    height: 44px;

    border:
        1px solid #cfd8e3;

    border-radius: 10px;

    background: #fff;
    color: #102a46;

    font-size: 24px;
    font-weight: 800;

    cursor: pointer;
}


.csh-a11y-font-control div {
    min-width: 0;

    text-align: center;
}


.csh-a11y-font-control span {
    display: block;

    color: #64748b;

    font-size: 12px;
}


.csh-a11y-font-control strong {
    display: block;

    margin-top: 2px;

    color: #102a46;

    font-size: 16px;
}


.csh-a11y-reset {
    width: 100%;

    min-height: 48px;

    margin-top: 8px;

    border:
        1px solid #d7e0e9;

    border-radius: 12px;

    background: #fff;
    color: #102a46;

    font-weight: 900;

    cursor: pointer;
}


.csh-a11y-reset:hover {
    background: #f8fafc;
}


.csh-a11y-information {
    margin-top: 20px;

    padding:
        15px;

    border:
        1px solid #e4eaf0;

    border-radius: 14px;

    background: #f8fafc;

    color: #526174;

    font-size: 13px;
    line-height: 1.55;
}


.csh-a11y-information strong {
    display: block;

    margin-bottom: 5px;

    color: #102a46;
}


.csh-a11y-information p {
    margin:
        0 0 8px;
}


.csh-a11y-information a {
    color: #0b5fa5;

    font-weight: 800;

    text-decoration: underline;
}


body.csh-a11y-panel-open {
    overflow: hidden !important;
}


/*
 * Keyboard focus baseline.
 */
:where(
    a,
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]:not([tabindex="-1"])
):focus-visible {
    outline:
        3px solid #0b5fa5 !important;

    outline-offset:
        3px !important;
}


/*
 * Skip navigation.
 */
.csh-a11y-skip-link {
    position: fixed;

    z-index: 100001;

    top: 10px;
    left: 10px;

    transform:
        translateY(-180%);

    padding:
        11px 16px;

    border-radius: 10px;

    background: #102a46;
    color: #fff;

    font-weight: 900;

    text-decoration: none;

    transition:
        transform .12s ease;
}


.csh-a11y-skip-link:focus {
    transform:
        translateY(0);
}


/*
 * Text scaling.
 */
html.csh-a11y-text-scale {
    font-size:
        calc(
            100%
            * var(
                --csh-a11y-font-scale,
                1
            )
        ) !important;
}


/*
 * Filter stack.
 *
 * Applied to direct body surfaces rather than BODY itself,
 * so fixed-position UI is not accidentally re-based.
 */
html {
    --csh-a11y-gray:
        grayscale(0);

    --csh-a11y-contrast:
        contrast(1);

    --csh-a11y-invert:
        invert(0);
}


html.csh-a11y-grayscale {
    --csh-a11y-gray:
        grayscale(1);
}


html.csh-a11y-high-contrast {
    --csh-a11y-contrast:
        contrast(1.32);
}


html.csh-a11y-invert {
    --csh-a11y-invert:
        invert(1)
        hue-rotate(180deg);
}


html.csh-a11y-grayscale
body > *:not(.csh-a11y-root),
html.csh-a11y-high-contrast
body > *:not(.csh-a11y-root),
html.csh-a11y-invert
body > *:not(.csh-a11y-root) {
    filter:
        var(--csh-a11y-gray)
        var(--csh-a11y-contrast)
        var(--csh-a11y-invert);
}


html.csh-a11y-underline-links
a:not(.csh-a11y-launcher) {
    text-decoration:
        underline !important;

    text-decoration-thickness:
        2px !important;

    text-underline-offset:
        .18em !important;
}


html.csh-a11y-highlight-headings
:is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6
) {
    outline:
        2px solid #d39b24 !important;

    outline-offset:
        3px !important;

    background:
        #fff4cc !important;

    color:
        #111827 !important;
}


html.csh-a11y-letter-spacing
body {
    letter-spacing:
        .075em !important;
}


html.csh-a11y-line-spacing
:is(
    p,
    li,
    label,
    input,
    select,
    textarea,
    button,
    a
) {
    line-height:
        1.8 !important;
}


/*
 * Disable animation.
 */
html.csh-a11y-reduce-motion *,
html.csh-a11y-reduce-motion *::before,
html.csh-a11y-reduce-motion *::after {
    scroll-behavior:
        auto !important;

    animation-duration:
        .001ms !important;

    animation-iteration-count:
        1 !important;

    transition-duration:
        .001ms !important;

    transition-delay:
        0ms !important;
}


/*
 * Large cursor – light.
 */
html.csh-a11y-cursor-light,
html.csh-a11y-cursor-light * {
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 2l20 18-9 1 5 8-5 3-5-9-6 7z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E")
        4 2,
        auto !important;
}


/*
 * Large cursor – dark.
 */
html.csh-a11y-cursor-dark,
html.csh-a11y-cursor-dark * {
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 2l20 18-9 1 5 8-5 3-5-9-6 7z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E")
        4 2,
        auto !important;
}


/*
 * Native OS reduced-motion preference is always respected,
 * regardless of whether the user opens the widget.
 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            .001ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .001ms !important;
    }
}


@media (max-width: 640px) {

    .csh-a11y-launcher {
        top: 38%;

        width: 50px;
        height: 50px;

        border-radius:
            12px 0 0 12px;
    }


    .csh-a11y-panel {
        width: 100%;
    }


    .csh-a11y-panel__header {
        min-height: 76px;

        padding:
            14px 16px;
    }


    .csh-a11y-panel__body {
        padding:
            16px
            16px
            calc(
                28px
                + env(
                    safe-area-inset-bottom
                )
            );
    }
}


@media (forced-colors: active) {

    .csh-a11y-launcher,
    .csh-a11y-panel button {
        forced-color-adjust: auto;
    }
}
