/* Accessibility mode */

.copp-skip-link {
    background: var(--copp-ink, #102f46);
    border: 3px solid var(--copp-red, #ff5a5f);
    color: #ffffff;
    font-weight: 800;
    left: 1rem;
    padding: 0.7rem 1rem;
    position: fixed;
    top: -5rem;
    transition: top 0.15s ease;
    z-index: 10050;
}

.copp-skip-link:focus {
    color: #ffffff;
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    top: 1rem !important;
    transition: none;
}

#main-content {
    scroll-margin-top: 1rem;
}

.copp-a11y-btn {
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--copp-ink);
    box-shadow: 0 8px 22px rgba(var(--copp-ink-rgb), 0.16);
    color: var(--copp-ink);
    cursor: pointer;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    padding: 0;
    position: fixed;
    right: 16px;
    top: 116px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    width: 52px;
    z-index: 10020;
}

.copp-a11y-btn:hover,
.copp-a11y-btn:focus {
    background: var(--copp-ink);
    color: #ffffff;
    outline: 3px solid rgba(var(--copp-red-rgb), 0.28);
    outline-offset: 3px;
}

.copp-a11y-btn.is-active {
    background: var(--copp-red);
    border-color: var(--copp-red);
    color: #ffffff;
}

.copp-a11y-btn svg {
    height: 25px;
    width: 25px;
}

.copp-a11y-btn__text {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.copp-a11y-panel {
    background: #ffffff;
    border: 2px solid var(--copp-ink);
    box-shadow: 0 18px 48px rgba(var(--copp-ink-rgb), 0.22);
    color: var(--copp-ink);
    display: none;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.45;
    max-height: calc(100vh - 184px);
    overflow: hidden;
    position: fixed;
    right: 16px;
    top: 176px;
    width: min(360px, calc(100vw - 32px));
    z-index: 10021;
}

.copp-a11y-panel.is-open {
    display: flex;
}

.copp-a11y-panel__header {
    align-items: center;
    background: var(--copp-ink);
    color: #ffffff;
    display: flex;
    font-family: var(--copp-font-heading);
    font-size: 17px;
    font-weight: 900;
    justify-content: space-between;
    line-height: 1.2;
    padding: 16px 18px;
}

.copp-a11y-panel__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.copp-a11y-panel__close:hover,
.copp-a11y-panel__close:focus {
    background: #ffffff;
    color: var(--copp-ink);
    outline: none;
}

.copp-a11y-panel__body {
    overflow-y: auto;
}

.copp-a11y-panel__group {
    border-bottom: 1px solid rgba(var(--copp-ink-rgb), 0.14);
    display: grid;
    gap: 10px;
    padding: 16px 18px;
}

.copp-a11y-panel__label {
    color: var(--copp-ink);
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.copp-a11y-panel__controls {
    align-items: center;
    display: flex;
    gap: 8px;
}

.copp-a11y-panel__btn {
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--copp-ink);
    color: var(--copp-ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: var(--copp-font-heading);
    font-size: 15px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 0 14px;
    text-align: center;
}

.copp-a11y-panel__btn:hover,
.copp-a11y-panel__btn:focus {
    background: var(--copp-ink);
    color: #ffffff;
    outline: none;
}

.copp-a11y-panel__btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.copp-a11y-panel__value {
    color: var(--copp-ink);
    flex: 1 1 auto;
    font-family: var(--copp-font-heading);
    font-size: 16px;
    font-weight: 900;
    min-width: 48px;
    text-align: center;
}

.copp-a11y-panel__schemes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.copp-a11y-panel__btn--scheme {
    padding-left: 8px;
    padding-right: 8px;
    width: 100%;
}

.copp-a11y-panel__btn--scheme.is-active,
.copp-a11y-panel__btn--off {
    background: var(--copp-ink);
    color: #ffffff;
}

.copp-a11y-panel__footer {
    border-top: 2px solid var(--copp-ink);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    padding: 14px 18px;
}

.copp-a11y-panel__btn--reset,
.copp-a11y-panel__btn--off {
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
}

html[data-a11y="on"][data-a11y-scheme="bw"] {
    --copp-red: #000000;
    --copp-red-rgb: 0, 0, 0;
    --copp-red-dark: #000000;
    --copp-red-deep: #000000;
    --copp-pale: #f3f3f3;
    --copp-pale-rgb: 243, 243, 243;
    --copp-soft: #ffffff;
    --copp-soft-rgb: 255, 255, 255;
    --copp-ink: #000000;
    --copp-ink-rgb: 0, 0, 0;
    --copp-ink-soft: #000000;
    --copp-ink-soft-rgb: 0, 0, 0;
    --copp-dark: #000000;
    --copp-dark-rgb: 0, 0, 0;
    --copp-muted: #202020;
    --copp-muted-rgb: 32, 32, 32;
    --copp-line: #000000;
    --copp-line-rgb: 0, 0, 0;
    --copp-accent-rgb: 0, 0, 0;
}

html[data-a11y="on"][data-a11y-scheme="wb"] {
    --copp-red: #ffffff;
    --copp-red-rgb: 255, 255, 255;
    --copp-red-dark: #ffffff;
    --copp-red-deep: #ffffff;
    --copp-pale: #111111;
    --copp-pale-rgb: 17, 17, 17;
    --copp-soft: #000000;
    --copp-soft-rgb: 0, 0, 0;
    --copp-ink: #ffffff;
    --copp-ink-rgb: 255, 255, 255;
    --copp-ink-soft: #ffffff;
    --copp-ink-soft-rgb: 255, 255, 255;
    --copp-dark: #000000;
    --copp-dark-rgb: 0, 0, 0;
    --copp-muted: #e5e5e5;
    --copp-muted-rgb: 229, 229, 229;
    --copp-line: #ffffff;
    --copp-line-rgb: 255, 255, 255;
    --copp-accent-rgb: 255, 255, 255;
}

html[data-a11y="on"][data-a11y-scheme="yb"] {
    --copp-red: #ffdd00;
    --copp-red-rgb: 255, 221, 0;
    --copp-red-dark: #ffdd00;
    --copp-red-deep: #ffdd00;
    --copp-pale: #151500;
    --copp-pale-rgb: 21, 21, 0;
    --copp-soft: #000000;
    --copp-soft-rgb: 0, 0, 0;
    --copp-ink: #ffdd00;
    --copp-ink-rgb: 255, 221, 0;
    --copp-ink-soft: #ffdd00;
    --copp-ink-soft-rgb: 255, 221, 0;
    --copp-dark: #000000;
    --copp-dark-rgb: 0, 0, 0;
    --copp-muted: #ffe866;
    --copp-muted-rgb: 255, 232, 102;
    --copp-line: #ffdd00;
    --copp-line-rgb: 255, 221, 0;
    --copp-accent-rgb: 255, 221, 0;
}

html[data-a11y="on"] body {
    background: var(--copp-soft) !important;
    color: var(--copp-ink) !important;
    font-size: var(--copp-a11y-body-size, 18px);
    letter-spacing: var(--copp-a11y-letter-spacing, 0);
    line-height: var(--copp-a11y-line-height, 1.6);
}

html[data-a11y="on"] *,
html[data-a11y="on"] *::before,
html[data-a11y="on"] *::after {
    text-shadow: none !important;
}

html[data-a11y="on"] :where(p, li, dt, dd, blockquote, address, figcaption, td, th, label, legend, input, select, textarea) {
    color: var(--copp-ink) !important;
    font-size: var(--copp-a11y-body-size, 18px) !important;
    letter-spacing: var(--copp-a11y-letter-spacing, 0) !important;
    line-height: var(--copp-a11y-line-height, 1.6) !important;
}

html[data-a11y="on"] :where(small, time, .text-muted, [class*="__meta"], [class*="__eyebrow"], [class*="__label"]) {
    color: var(--copp-muted) !important;
    font-size: var(--copp-a11y-label-size, 15px) !important;
    letter-spacing: var(--copp-a11y-letter-spacing, 0) !important;
    line-height: var(--copp-a11y-line-height, 1.6) !important;
}

html[data-a11y="on"] :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    color: var(--copp-ink) !important;
    letter-spacing: var(--copp-a11y-letter-spacing, 0) !important;
    line-height: 1.2 !important;
}

html[data-a11y="on"] :where(a, a:hover, a:focus) {
    color: var(--copp-red) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

html[data-a11y="on"] :where(button, .btn, .nav-link, .dropdown-item, .copp-news-btn, input, select, textarea) {
    border-color: var(--copp-line) !important;
    font-size: var(--copp-a11y-button-size, 17px) !important;
    letter-spacing: var(--copp-a11y-letter-spacing, 0) !important;
    line-height: 1.25 !important;
}

html[data-a11y="on"] :where(button:focus, a:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus) {
    outline: 3px solid var(--copp-red) !important;
    outline-offset: 3px !important;
}

html[data-a11y="on"] :where(.icms-header__middle, .dropdown-menu, .modal-content, .card, .list-group-item, .copp-mobile-menu__panel, .copp-mobile-nav) {
    background-color: var(--copp-soft) !important;
    color: var(--copp-ink) !important;
}

html[data-a11y="on"] :where(
    [class*="__card"],
    [class*="__panel"],
    [class*="__tile"],
    [class*="__box"],
    [class*="__item"],
    [class*="__stat"],
    [class*="-card"],
    [class*="-panel"],
    [class*="-tile"],
    [class*="-box"],
    [class*="-stat"],
    .content_item,
    .content_list_item
) {
    background-color: var(--copp-soft) !important;
    border-color: var(--copp-line) !important;
    color: var(--copp-ink) !important;
}

html[data-a11y="on"] :where(
    [class*="__card"] *,
    [class*="__panel"] *,
    [class*="__tile"] *,
    [class*="__box"] *,
    [class*="__item"] *,
    [class*="__stat"] *,
    [class*="-card"] *,
    [class*="-panel"] *,
    [class*="-tile"] *,
    [class*="-box"] *,
    [class*="-stat"] *
) {
    border-color: var(--copp-line) !important;
}

html[data-a11y="on"] :where(
    [class*="__card"],
    [class*="__panel"],
    [class*="__tile"],
    [class*="__box"],
    [class*="__item"],
    [class*="__stat"],
    [class*="-card"],
    [class*="-panel"],
    [class*="-tile"],
    [class*="-box"],
    [class*="-stat"]
) :where(div, span, strong, b, em, small, time) {
    color: inherit !important;
}

html[data-a11y="on"] :where(.btn-primary, .badge-primary, .copp-news-btn--primary, .copp-mobile-nav__home-circle, .copp-a11y-panel__btn--off) {
    background: var(--copp-ink) !important;
    border-color: var(--copp-ink) !important;
    color: var(--copp-soft) !important;
}

html[data-a11y="on"] :where(.copp-rift, .copp-palette-switcher) {
    display: none !important;
}

html[data-a11y="on"] :where(.copp-visual, .copp-rift, .copp-scroll-square) {
    opacity: 0.18 !important;
}

html[data-a11y="on"] :where(img, video, iframe, canvas) {
    filter: grayscale(1) contrast(1.12);
}

html[data-a11y="on"] :where(.copp-a11y-btn, .copp-a11y-panel, .copp-a11y-panel *) {
    filter: none;
    letter-spacing: 0 !important;
}

html[data-a11y="on"] .copp-a11y-btn {
    background: var(--copp-ink) !important;
    border-color: var(--copp-ink) !important;
    color: var(--copp-soft) !important;
}

html[data-a11y="on"] .copp-a11y-panel {
    background: var(--copp-soft) !important;
    border-color: var(--copp-line) !important;
    color: var(--copp-ink) !important;
}

html[data-a11y="on"] .copp-a11y-panel__header {
    background: var(--copp-ink) !important;
    color: var(--copp-soft) !important;
}

html[data-a11y="on"] .copp-a11y-panel__btn {
    background: var(--copp-soft) !important;
    border-color: var(--copp-line) !important;
    color: var(--copp-ink) !important;
}

html[data-a11y="on"] .copp-a11y-panel__btn:hover,
html[data-a11y="on"] .copp-a11y-panel__btn:focus,
html[data-a11y="on"] .copp-a11y-panel__btn--scheme.is-active,
html[data-a11y="on"] .copp-a11y-panel__btn--off {
    background: var(--copp-ink) !important;
    color: var(--copp-soft) !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition: none !important;
        transition-duration: 0.01ms !important;
    }

    .copp-a11y-btn,
    .copp-a11y-panel,
    .copp-a11y-panel * {
        transition: none !important;
    }
}

@media (max-width: 991.98px) {
    .copp-a11y-btn {
        bottom: 76px;
        height: 46px;
        right: 12px;
        top: auto;
        width: 46px;
    }

    .copp-a11y-btn svg {
        height: 22px;
        width: 22px;
    }

    .copp-a11y-panel {
        bottom: 130px;
        max-height: min(560px, calc(100vh - 150px));
        right: 10px;
        top: auto;
        width: min(360px, calc(100vw - 20px));
    }
}

@media (max-width: 575.98px) {
    .copp-a11y-panel__header {
        font-size: 16px;
        padding: 14px 16px;
    }

    .copp-a11y-panel__group {
        padding: 14px 16px;
    }

    .copp-a11y-panel__footer {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px 16px;
    }
}
