@font-face {
    font-family: "Lexend A11y";
    src: url("../fonts/lexend/Lexend-Regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "OpenDyslexic A11y";
    src:
        local("OpenDyslexic"),
        local("OpenDyslexic Regular"),
        url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@5.3.0/latin-400-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "OpenDyslexic A11y";
    src:
        local("OpenDyslexic Bold"),
        url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@5.3.0/latin-700-normal.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

:root {
    --a11y-text-scale: 100%;
    --a11y-panel-width: 440px;
    --a11y-focus: #ffbf47;
    --a11y-ink: #172033;
    --a11y-muted: #536174;
    --a11y-surface: #ffffff;
    --a11y-soft: #eef6fa;
    --a11y-primary: #154f91;
    --a11y-border: #9fb6c9;
}

html {
    font-size: var(--a11y-text-scale, 100%);
}

html.a11y-font-lexend body,
html.a11y-font-lexend button,
html.a11y-font-lexend input,
html.a11y-font-lexend select,
html.a11y-font-lexend textarea {
    font-family: "Lexend A11y", "Trebuchet MS", Arial, sans-serif !important;
}

html.a11y-font-opendyslexic body,
html.a11y-font-opendyslexic button,
html.a11y-font-opendyslexic input,
html.a11y-font-opendyslexic select,
html.a11y-font-opendyslexic textarea {
    font-family: "OpenDyslexic A11y", "Trebuchet MS", Arial, sans-serif !important;
}


.a11y-audio-region {
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid var(--a11y-border);
    border-radius: 12px;
    background: var(--a11y-soft);
}

.a11y-audio-title {
    margin: 0 0 10px;
    color: var(--a11y-ink);
    font-weight: 800;
}

.a11y-preview-lexend {
    font-family: "Lexend A11y", "Trebuchet MS", Arial, sans-serif;
}

.a11y-preview-opendyslexic {
    font-family: "OpenDyslexic A11y", "Trebuchet MS", Arial, sans-serif;
}

.a11y-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1300;
    max-width: calc(100vw - 24px);
    padding: 12px 18px;
    border: 3px solid #111111;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    text-decoration: underline;
    transform: translateY(-180%);
    transition: transform 0.15s ease;
}

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

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

.a11y-tools [hidden] {
    display: none !important;
}

.a11y-trigger {
    position: fixed;
    right: clamp(16px, 2.2vw, 30px);
    bottom: calc(clamp(16px, 2.2vw, 30px) + 72px);
    z-index: 1180;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #154f91;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 45, 78, 0.3);
    cursor: pointer;
    touch-action: manipulation;
}

.a11y-trigger:hover {
    background: #0f3f76;
}

.a11y-trigger:focus-visible,
.a11y-panel :focus-visible {
    outline: 4px solid var(--a11y-focus);
    outline-offset: 3px;
}

.a11y-trigger-icon,
.a11y-trigger-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.a11y-trigger-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.a11y-trigger-label {
    position: absolute;
    right: 66px;
    width: max-content;
    max-width: min(260px, calc(100vw - 100px));
    padding: 8px 12px;
    border: 1px solid #163f6b;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 8px 20px rgba(15, 45, 78, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.a11y-trigger:hover .a11y-trigger-label,
.a11y-trigger:focus-visible .a11y-trigger-label,
.a11y-trigger[aria-expanded="true"] .a11y-trigger-label {
    opacity: 1;
    transform: translateX(0);
}

.a11y-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(14, 27, 45, 0.62);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.a11y-backdrop.is-open {
    opacity: 1;
}

.a11y-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1210;
    display: flex;
    width: min(var(--a11y-panel-width), calc(100vw - 24px));
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    border-left: 2px solid var(--a11y-border);
    background: var(--a11y-surface);
    color: var(--a11y-ink);
    box-shadow: -18px 0 48px rgba(10, 27, 45, 0.28);
    transform: translateX(105%);
    transition: transform 0.26s ease;
}

.a11y-panel.is-open {
    transform: translateX(0);
}

.a11y-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--a11y-border);
    background: var(--a11y-soft);
}

.a11y-panel-kicker {
    margin: 0 0 4px;
    color: var(--a11y-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.a11y-panel h2,
.a11y-panel h3,
.a11y-panel p {
    text-align: left;
}

.a11y-panel h2 {
    margin: 0;
    color: var(--a11y-ink);
    font-family: inherit;
    font-size: 1.55rem;
    line-height: 1.25;
}

.a11y-panel-header p:last-child {
    margin: 8px 0 0;
    color: var(--a11y-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.a11y-icon-button {
    display: inline-flex;
    min-width: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--a11y-primary);
    border-radius: 10px;
    background: #ffffff;
    color: var(--a11y-primary);
    cursor: pointer;
}

.a11y-icon-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.a11y-panel-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 24px 26px;
}

.a11y-setting-card,
.a11y-text-size,
.a11y-fieldset {
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid var(--a11y-border);
    border-radius: 14px;
    background: #ffffff;
}

.a11y-fieldset {
    min-width: 0;
}

.a11y-fieldset legend {
    float: none;
    width: auto;
    margin: 0 0 12px;
    padding: 0;
    color: var(--a11y-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.a11y-setting-copy h3 {
    margin: 0;
    color: var(--a11y-ink);
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.35;
}

.a11y-setting-copy p {
    margin: 6px 0 14px;
    color: var(--a11y-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.a11y-switch {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.a11y-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.a11y-switch-track {
    position: relative;
    width: 54px;
    height: 30px;
    flex: 0 0 54px;
    border: 2px solid #697a8f;
    border-radius: 999px;
    background: #ffffff;
}

.a11y-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #526275;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.a11y-switch input:checked + .a11y-switch-track {
    border-color: var(--a11y-primary);
    background: #dcecf7;
}

.a11y-switch input:checked + .a11y-switch-track::after {
    background: var(--a11y-primary);
    transform: translateX(24px);
}

.a11y-switch input:focus-visible + .a11y-switch-track {
    outline: 4px solid var(--a11y-focus);
    outline-offset: 3px;
}

.a11y-switch input:disabled + .a11y-switch-track {
    opacity: 0.62;
}

.a11y-switch input:disabled ~ .a11y-switch-text {
    color: #5e6670;
}

.a11y-switch-text {
    color: var(--a11y-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.a11y-radio-group {
    display: grid;
    gap: 10px;
}

.a11y-radio-option {
    display: flex;
    min-height: 58px;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 2px solid #c4d1dc;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.a11y-radio-option:has(input:checked) {
    border-color: var(--a11y-primary);
    background: #edf6fb;
}

.a11y-radio-option input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
    accent-color: var(--a11y-primary);
}

.a11y-radio-option strong,
.a11y-radio-option small {
    display: block;
}

.a11y-radio-option strong {
    color: var(--a11y-ink);
    font-size: 0.98rem;
}

.a11y-radio-option small {
    margin-top: 3px;
    color: var(--a11y-muted);
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.4;
}

.a11y-text-controls {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 10px;
    align-items: stretch;
}

.a11y-text-button {
    min-width: 54px;
    min-height: 50px;
    padding: 8px;
    border: 2px solid var(--a11y-primary);
    border-radius: 10px;
    background: #ffffff;
    color: var(--a11y-primary);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}

.a11y-text-button:hover:not(:disabled) {
    background: #e8f2f8;
}

.a11y-text-button:disabled {
    border-color: #a9b2bb;
    color: #707982;
    cursor: not-allowed;
    opacity: 0.65;
}

#a11y-text-current {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--a11y-border);
    border-radius: 10px;
    background: var(--a11y-soft);
    color: var(--a11y-ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.a11y-panel-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--a11y-border);
    background: #f8fafc;
}

.a11y-reset-button,
.a11y-close-button {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
}

.a11y-reset-button {
    border: 2px solid #334155;
    background: #ffffff;
    color: #253246;
}

.a11y-close-button {
    border: 2px solid var(--a11y-primary);
    background: var(--a11y-primary);
    color: #ffffff;
}

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

html.a11y-dys-mode #site-main {
    line-height: 1.75;
    letter-spacing: 0.025em;
    word-spacing: 0.11em;
}

html.a11y-dys-mode #site-main :is(p, li, dd, dt, blockquote, figcaption, label, input, textarea, select, button, a) {
    line-height: 1.75 !important;
    text-align: left !important;
}

html.a11y-dys-mode #site-main :is(p, li, dd, blockquote) {
    max-width: 70ch;
}

html.a11y-dys-mode #site-main :is(h1, h2, h3, h4, h5, h6) {
    max-width: 34ch;
    line-height: 1.3 !important;
    letter-spacing: 0.015em;
    text-align: left !important;
}

html.a11y-dys-mode #site-main p + p {
    margin-top: 1.15em !important;
}

html.a11y-dys-mode #site-main :is(input, textarea, select, button, .btn, [class*="btn"]) {
    min-height: 44px;
    white-space: normal;
}

html.a11y-dys-mode #site-main [style*="text-align: justify"],
html.a11y-dys-mode #site-main .text-justify {
    text-align: left !important;
}

html.a11y-high-contrast body,
html.a11y-high-contrast #site-main,
html.a11y-high-contrast #site-header,
html.a11y-high-contrast #site-footer,
html.a11y-high-contrast #site-main section {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111111 !important;
}

html.a11y-high-contrast #site-main :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, label, legend, small),
html.a11y-high-contrast #site-footer :is(h2, h3, p, li, label, small),
html.a11y-high-contrast #site-header {
    color: #111111 !important;
}

html.a11y-high-contrast #site-main a:not(.btn):not([class*="btn"]),
html.a11y-high-contrast #site-footer a,
html.a11y-high-contrast #site-header nav a {
    color: #003f88 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 0.18em;
}

html.a11y-high-contrast #site-main :is(.card, .od-card, [class*="-card"]),
html.a11y-high-contrast #site-footer,
html.a11y-high-contrast #site-header {
    border-color: #111111 !important;
    box-shadow: none !important;
}

html.a11y-high-contrast #site-main :is(button, .btn, [class*="btn"]):not(.btn-link),
html.a11y-high-contrast #primary-cta-appointment {
    border: 2px solid #111111 !important;
    background: #003f88 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

html.a11y-high-contrast #site-main :is(input, textarea, select),
html.a11y-high-contrast #site-footer :is(input, textarea, select) {
    border: 2px solid #111111 !important;
    background: #ffffff !important;
    color: #111111 !important;
}

html.a11y-high-contrast #site-main :is(.alert-danger, .invalid-feedback, .text-danger, [role="alert"]) {
    border: 2px solid #8b0000 !important;
    background: #ffffff !important;
    color: #8b0000 !important;
    font-weight: 800;
}

html.a11y-high-contrast :focus-visible {
    outline: 4px solid #ffbf47 !important;
    outline-offset: 3px !important;
}

html.a11y-simplified body,
html.a11y-simplified #site-main {
    background: #ffffff !important;
}

html.a11y-simplified #site-main {
    line-height: 1.7;
}

html.a11y-simplified #site-main section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    background-image: none !important;
}

html.a11y-simplified #site-main :is(.od-card, .card, [class*="-card"]) {
    border: 1px solid #b8c2cc !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html.a11y-simplified #site-main :is([class$="-grid"], [class*="-grid "]) {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

html.a11y-simplified #site-main :is([class*="decoration"], [class*="decorative"], [class*="shape"], [class*="blob"], [class*="sparkle"]) {
    display: none !important;
}

html.a11y-simplified #site-main :is(.od-reveal, [class*="reveal"]) {
    opacity: 1 !important;
    transform: none !important;
}

html.a11y-simplified #home-newsletter,
html.a11y-simplified #home-testimonials {
    display: none !important;
}

html.a11y-simplified #article-content .od-article-shell,
html.a11y-simplified #article-content .article-body-wrap,
html.a11y-simplified #article-content .a11y-readable-content {
    width: 100% !important;
    max-width: 74ch !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

html.a11y-simplified #article-related .od-related-grid,
html.a11y-simplified #site-footer .od-footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

html.a11y-simplified #site-main :is(button, .btn, [class*="btn"]) {
    min-height: 48px;
    padding: 12px 18px;
    white-space: normal;
}

html.a11y-text-large #site-header .od-header-inner {
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
}

html.a11y-text-large #main-navigation,
html.a11y-text-large #primary-cta-appointment {
    display: none !important;
}

html.a11y-text-large .od-mobile-toggle {
    display: inline-flex !important;
    grid-column: 2;
    justify-self: end;
}

html.a11y-text-xlarge .a11y-trigger-label {
    display: none;
}

html.a11y-reduced-motion,
html.a11y-dys-mode,
html.a11y-simplified {
    scroll-behavior: auto !important;
}

html.a11y-reduced-motion *,
html.a11y-reduced-motion *::before,
html.a11y-reduced-motion *::after,
html.a11y-dys-mode .od-reveal,
html.a11y-dys-mode .od-reveal::before,
html.a11y-dys-mode .od-reveal::after,
html.a11y-simplified *,
html.a11y-simplified *::before,
html.a11y-simplified *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

html.a11y-reduced-motion :is(.od-reveal, [class*="reveal"]),
html.a11y-dys-mode :is(.od-reveal, [class*="reveal"]),
html.a11y-simplified :is(.od-reveal, [class*="reveal"]) {
    opacity: 1 !important;
    transform: none !important;
}

html.a11y-reduced-motion [data-od-carousel-track],
html.a11y-dys-mode [data-od-carousel-track],
html.a11y-simplified [data-od-carousel-track] {
    transition: none !important;
}

html.a11y-high-contrast .a11y-panel,
html.a11y-high-contrast .a11y-panel-header,
html.a11y-high-contrast .a11y-panel-footer,
html.a11y-high-contrast .a11y-setting-card,
html.a11y-high-contrast .a11y-fieldset,
html.a11y-high-contrast .a11y-text-size,
html.a11y-high-contrast .a11y-radio-option {
    border-color: #111111 !important;
    background: #ffffff !important;
    color: #111111 !important;
}

html.a11y-high-contrast .a11y-panel :is(h2, h3, p, legend, strong, small, span) {
    color: #111111 !important;
}

html.a11y-high-contrast .a11y-trigger,
html.a11y-high-contrast .a11y-close-button {
    border-color: #111111 !important;
    background: #003f88 !important;
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .a11y-trigger {
        width: 50px;
        height: 50px;
        bottom: calc(16px + 66px);
    }

    .a11y-trigger-icon,
    .a11y-trigger-icon svg {
        width: 25px;
        height: 25px;
    }

    .a11y-trigger-label {
        display: none;
    }

    .a11y-panel {
        top: auto;
        right: 0;
        bottom: 0;
        width: 100%;
        height: min(88dvh, 780px);
        max-height: 88dvh;
        border-top: 2px solid var(--a11y-border);
        border-left: 0;
        border-radius: 18px 18px 0 0;
        transform: translateY(105%);
    }

    .a11y-panel.is-open {
        transform: translateY(0);
    }

    .a11y-panel-header {
        padding: 20px 18px 16px;
    }

    .a11y-panel-content {
        padding: 16px 18px 22px;
    }

    .a11y-panel-footer {
        grid-template-columns: 1fr;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    }

    .a11y-text-controls {
        grid-template-columns: 50px minmax(0, 1fr) 50px;
    }
}

@media (max-width: 390px) {
    .a11y-panel h2 {
        font-size: 1.3rem;
    }

    .a11y-panel-header p:last-child {
        font-size: 0.86rem;
    }

    .a11y-setting-card,
    .a11y-text-size,
    .a11y-fieldset {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    :is(.od-reveal, [class*="reveal"]) {
        opacity: 1 !important;
        transform: none !important;
    }

    [data-od-carousel-track] {
        transition: none !important;
    }
}
