/*! Accessibility tool v2.0.1 (2026-11-26) */

:root {
    --a11y-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --a11y-z: 9999;

    --a11y-red: #c0392b;
    --a11y-panel-bg: #bfc4c3;
    --a11y-separator: #5f6564;
    --a11y-text: #000000;
    --a11y-text-muted: #313736;
    --a11y-link-hover: #00130f;

    --a11y-panel-width: min(320px, calc(100vw - var(--a11y-ribbon-button-side) - var(--a11y-ribbon-far-side)));
    --a11y-icon-size: 2.75rem;
    --a11y-button-size: calc(var(--a11y-icon-size) + 0.5rem + 2px);
    --a11y-ribbon-button-side: calc(var(--a11y-button-size) + 0.5rem);
    --a11y-ribbon-far-side: 1.75rem;
    --a11y-ribbon-padding: 1.25rem;
    --a11y-frame: 0px;

    --a11y-yellow-fg: #000066;
    --a11y-yellow-bg: #f7f3d6;
    --a11y-dark-fg: #00ffe8;
    --a11y-dark-bg: #3a3a3a;
    --a11y-blue-fg: #000066;
    --a11y-blue-bg: #cfe5fc;
    --a11y-contrast-fg: #ffff00;
    --a11y-contrast-bg: #000000;
    --a11y-default-fg: #000000;
    --a11y-default-bg: #ffffff;
}

@font-face {
    font-family: 'adys';
    src: url(../accessibility/ADYS-Regular.woff2) format('woff2'),
        url(../accessibility/ADYS-Regular-V5-4.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.a11y-controls,
.accessibility-content {
    font-family: var(--a11y-font);
}

.a11y-controls *,
.accessibility-content * {
    font-family: inherit;
}

.a11y-controls {
    position: relative;
}

.a11y-controls--fixed {
    position: fixed;
    right: 1rem;
    bottom: max(5vh, 4.5rem);

    z-index: var(--a11y-z);
}

.a11y-tools {
    position: absolute;
    top: 0;
    left: 0;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    overflow-y: auto;

    font-family: inherit;
    transition: opacity 0.3s;
    z-index: var(--a11y-z);
}

.a11y-tools__button {
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    padding: 0.25rem;

    background-color: var(--a11y-red);
    border: 1px solid var(--a11y-red);
    border-radius: 50%;

    z-index: calc(var(--a11y-z) + 1);
}

.a11y-tools__button:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

.a11y-tools__icon {
    display: block;
    flex-shrink: 0;
    width: var(--a11y-icon-size);
    height: var(--a11y-icon-size);

    background: url(./man-accessibility.svg) center no-repeat;
    background-size: cover;
    border-radius: 50%;
}

@media (forced-colors: active) {
    .a11y-tools__button {
        border: 2px solid ButtonText;
        forced-color-adjust: none;
    }

    .a11y-tools__button:focus-visible {
        outline: 3px solid Highlight;
        outline-offset: 2px;
    }
}

.a11y-tools__credits {
    padding: 0.75rem 1rem;

    color: var(--a11y-text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.a11y-tools__contrast {
    padding: 1rem 0;
}

.a11y-tools__nav .a11y-tools__heading {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.75rem 1rem;

    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: uppercase;

    background-color: var(--a11y-red);
    border-radius: 0;
}

.a11y-controls[data-mode="connected"] .a11y-tools__heading {
    width: calc(100% + var(--a11y-ribbon-button-side) + var(--a11y-ribbon-far-side) + 2 * var(--a11y-frame));
    min-height: var(--a11y-button-size);
}

.a11y-controls[data-mode="connected"][data-align="start"] .a11y-tools__heading {
    margin: 0 calc((var(--a11y-ribbon-far-side) + var(--a11y-frame)) * -1) 0 calc((var(--a11y-ribbon-button-side) + var(--a11y-frame)) * -1);
    padding: 0.5rem var(--a11y-ribbon-padding) 0.5rem calc(var(--a11y-ribbon-button-side) + var(--a11y-ribbon-padding));

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

.a11y-controls[data-mode="connected"][data-align="end"] .a11y-tools__heading {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin: 0 calc((var(--a11y-ribbon-button-side) + var(--a11y-frame)) * -1) 0 calc((var(--a11y-ribbon-far-side) + var(--a11y-frame)) * -1);
    padding: 0.5rem calc(var(--a11y-ribbon-button-side) + var(--a11y-ribbon-padding)) 0.5rem var(--a11y-ribbon-padding);

    text-align: right;
    border-radius: 0 999px 999px 0;
}

.a11y-tools__list {
    margin-bottom: 0;
}

.a11y-tools__list li:not(:last-child) {
    border-bottom: 1px solid var(--a11y-separator);
}

.a11y-tools__nav {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: var(--a11y-panel-width);

    color: white;

    background-color: var(--a11y-panel-bg);
    -webkit-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

.a11y-controls[data-mode="connected"][data-align="start"] .a11y-tools__nav {
    margin: 0 var(--a11y-ribbon-far-side) 0 var(--a11y-ribbon-button-side);
}

.a11y-controls[data-mode="connected"][data-align="end"] .a11y-tools__nav {
    margin: 0 var(--a11y-ribbon-button-side) 0 var(--a11y-ribbon-far-side);
}

.a11y-controls.is-open .a11y-tools__nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.a11y-tools__nav ul {
    top: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0.5rem 0;

    list-style: none;
}

.a11y-tools__nav ul li {
    padding: 0.7rem;
}

.a11y-tools__title {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    color: var(--a11y-text);
    font-size: 1.3rem;
    text-transform: uppercase;
}

.a11y-tools__title::before {
    content: '';
    top: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 25px;
    height: 25px;
    margin-right: 10px;

    background: url(../accessibility/contrast.svg) center no-repeat;
    background-size: 25px 25px;
}

.a11y__btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    padding: 0.5rem 1rem;
}

.a11y__btn--c {
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
    margin-left: 5px;

    font-weight: 800;

    border: 1px solid transparent;
    outline-offset: -5px;
}

.a11y__btn--c[aria-pressed="true"] {
    box-shadow: 0 0 0 4px var(--a11y-bg, var(--a11y-panel-bg)), 0 0 0 7px var(--a11y-fg, var(--a11y-text));
}

.a11y__btn--c:focus-visible {
    border: 1px solid white;
    outline-offset: -5px;
    outline: 8px solid black;
}

.a11y__btn--c:hover {
    outline-width: 3px;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .a11y__btn--c {
        width: 40px;
        margin: 0 auto;
    }

    .a11y__btn--c a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 50px;
    }
}

.a11y__btn--blue {
    color: var(--a11y-blue-fg) !important;

    background-color: var(--a11y-blue-bg) !important;
    outline: 2px solid var(--a11y-blue-fg);
}

.a11y__btn--clear {
    color: var(--a11y-default-fg) !important;

    background-color: var(--a11y-default-bg) !important;
    outline: 2px solid var(--a11y-default-fg);
}

.a11y__btn--contrast {
    color: var(--a11y-contrast-fg) !important;

    background-color: var(--a11y-contrast-bg) !important;
    outline: 2px solid var(--a11y-contrast-fg);
}

.a11y__btn--dark {
    color: var(--a11y-dark-fg) !important;

    background-color: var(--a11y-dark-bg) !important;
    outline: 2px solid var(--a11y-dark-fg);
}

.a11y__btn--yellow {
    color: var(--a11y-yellow-fg) !important;

    background-color: var(--a11y-yellow-bg) !important;
    outline: 2px solid var(--a11y-yellow-fg);
}

.a11y__item__button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 1rem 0.5rem;

    color: var(--a11y-text);
    text-align: left;

    background-color: transparent;
    border-color: transparent;
}

.a11y__item__button:hover,
.a11y__item__button:focus,
.a11y__item__button[aria-pressed="true"] {
    background-color: white;
    -webkit-filter: invert(1);
    filter: invert(1);
}

.a11y__item__button[aria-pressed="true"]::after {
    content: '✓';
    content: '✓' / '';
    -ms-flex-item-align: center;
    align-self: center;
    margin-left: auto;
    padding-right: 0.5rem;

    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.a11y__item__button span {
    color: inherit;
    font-size: 0.9375rem;
    font-weight: bold;
    text-transform: uppercase;
}

.a11y__item--clear button::before,
.a11y__item--dyslexic button::before,
.a11y__item--increase button::before,
.a11y__item--textonly button::before {
    content: '';
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 25px;
    height: 25px;
    margin-right: 10px;

    background-size: 25px 25px;
}

.a11y__item--clear button::before {
    background: url(../accessibility/reset.svg) center no-repeat;
}

.a11y__item--dyslexic button::before {
    background: url(../accessibility/dyslexia.svg) center no-repeat;
}

.a11y__item--increase button::before {
    background: url(../accessibility/fontscale-up.svg) center no-repeat;
}

.a11y__item--textonly button::before {
    background: url(../accessibility/text-version.svg) center no-repeat;
}

.accessibility-content {
    position: absolute;
    top: 30px;
    left: calc(var(--a11y-panel-width) * -1);
    box-sizing: border-box;
    width: 100%;
    max-width: var(--a11y-panel-width);
    overflow: hidden;

    background-color: var(--a11y-panel-bg);
    border-radius: 5px;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;

    z-index: 1000;
}

.accessibility-content:focus,
.accessibility-content:focus-within {
    left: 20px;
}

.accessibility-content a:hover,
.accessibility-content a:focus {
    color: white !important;

    background-color: var(--a11y-link-hover);
    outline: 1px dashed var(--a11y-link-hover);
    outline-offset: 2px;
}

.accessibility-content ul {
    list-style: none;
}

.accessibility-content ul:not(:last-child),
.accessibility-content > ul > li:not(:last-child) {
    border-bottom: 1px solid var(--a11y-separator);
}

.accessibility-content > ul {
    margin-bottom: 0;
}

.accessibility-content > ul a {
    display: block;
    padding: 10px 20px;

    color: var(--a11y-link-hover);
    font-family: inherit;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 0.45px;
    text-decoration: none;
}

.accessibility-content > ul li {
    padding: 10px;
}

.accessibility-content > ul > li > a {
    display: block;
    padding: 20px 15px;

    color: var(--a11y-text);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.45px;
    text-decoration: none;
    text-transform: uppercase;
}

.accessibility-content > ul > li > a::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 20px;
    height: 20px;

    color: red;
    background: url('./goto.svg');
}

html.accessibility-blue {
    --a11y-fg: var(--a11y-blue-fg);
    --a11y-bg: var(--a11y-blue-bg);
    --a11y-icon-filter: brightness(0);
}

html.accessibility-contrast {
    --a11y-fg: var(--a11y-contrast-fg);
    --a11y-bg: var(--a11y-contrast-bg);
    --a11y-icon-filter: brightness(0) invert(1);
}

html.accessibility-dark {
    --a11y-fg: var(--a11y-dark-fg);
    --a11y-bg: var(--a11y-dark-bg);
    --a11y-icon-filter: brightness(0) invert(1);
}

html.accessibility-yellow {
    --a11y-fg: var(--a11y-yellow-fg);
    --a11y-bg: var(--a11y-yellow-bg);
    --a11y-icon-filter: brightness(0);
}

html.a11y-theme *:not(img, .a11y__btn--c, .a11y__btn--c *, .a11y-tools__icon, .a11y-keep-colors, .a11y-keep-colors *) {
    color: var(--a11y-fg) !important;
    background-color: var(--a11y-bg) !important;
}

html.a11y-theme svg:not(.a11y-keep-colors) {
    fill: currentColor;
}

html.a11y-theme svg:not(.a11y-keep-colors) [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

html.a11y-theme svg:not(.a11y-keep-colors) [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

html.a11y-theme .a11y-no-bg {
    background-image: none !important;
}

html.a11y-theme .a11y-mono-icon,
html.a11y-theme .a11y-icon,
html.a11y-theme .a11y-tools__title::before,
html.a11y-theme .a11y__item__button::before {
    filter: var(--a11y-icon-filter) !important;
}

html.a11y-theme ::placeholder {
    opacity: 0.8;
    color: var(--a11y-fg) !important;
}

html.a11y-theme a:not(.a11y-controls *, .accessibility-content *) {
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

html.a11y-theme :is(button, [role="button"], input, select, textarea):not(.a11y-controls *) {
    box-shadow: inset 0 0 0 1px var(--a11y-fg) !important;
}

html.a11y-theme :focus-visible {
    outline: 3px solid var(--a11y-fg) !important;
    outline-offset: 2px !important;
}

html.a11y-theme .a11y-tools__button {
    background-color: var(--a11y-fg) !important;
    border-color: var(--a11y-fg);
}

html.a11y-theme .a11y-tools__icon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4.5' r='2.2'/%3E%3Cpath d='M3.5 7.2 12 8.8l8.5-1.6.4 2-5.9 1.3v4.2l2.4 6.6-2 .7L12 15.6l-3.4 6.4-2-.7L9 14.7v-4.2L3.1 9.2z'/%3E%3C/svg%3E") center / 75% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='4.5' r='2.2'/%3E%3Cpath d='M3.5 7.2 12 8.8l8.5-1.6.4 2-5.9 1.3v4.2l2.4 6.6-2 .7L12 15.6l-3.4 6.4-2-.7L9 14.7v-4.2L3.1 9.2z'/%3E%3C/svg%3E") center / 75% no-repeat;

    background: var(--a11y-bg);
}

html.a11y-theme .a11y__item__button:is(:hover, :focus-visible, [aria-pressed="true"]),
html.a11y-theme .a11y__item__button:is(:hover, :focus-visible, [aria-pressed="true"]) * {
    color: var(--a11y-bg) !important;

    background-color: var(--a11y-fg) !important;
    filter: none;
}

html.a11y-theme .a11y__item__button:is(:hover, :focus-visible, [aria-pressed="true"])::before {
    filter: var(--a11y-icon-filter) invert(1) !important;
}

html.a11y-theme {
    --a11y-frame: 2px;
}

html.a11y-theme .a11y-tools__nav {
    border: var(--a11y-frame) solid var(--a11y-fg);
}

html.a11y-theme .a11y-tools__list li:not(:last-child) {
    border-bottom-color: var(--a11y-fg);
}

html.accessibility-textOnly svg,
html.accessibility-textOnly iframe {
    display: none !important;
}

.dyslectic-font * {
    font-family: 'adys' !important;
}

.font-resize {
    font-size: 200%;
}

@media (min-width: 48em) {
    .font-resize {
        font-size: 110%;
    }
}

@media (min-width: 62em) {
    .font-resize {
        font-size: 120%;
    }
}

@media (min-width: 75em) {
    .font-resize {
        font-size: 130%;
    }
}

@media (min-width: 87.5em) {
    .font-resize {
        font-size: 140%;
    }
}
