:root {
    --a11y-reader-y: 50vh;
    --a11y-contrast-filter: contrast(1);
    --a11y-color-filter: saturate(1);
}

.accessibility-controls,
.accessibility-controls *,
.accessibility-skip-link {
    box-sizing: border-box;
}

.accessibility-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.accessibility-controls {
    position: fixed;
    right: auto;
    bottom: 16px;
    left: 16px;
    z-index: 2147483000;
    color: #1b1b1b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    color-scheme: light;
}

.accessibility-controls button {
    appearance: none;
    font: inherit;
    letter-spacing: normal;
}

.accessibility-controls__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    color: #fff;
    background: #202020;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 16px rgb(0 0 0 / 30%);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.accessibility-controls__trigger:hover {
    background: #000;
}

.accessibility-controls__trigger svg {
    flex: 0 0 auto;
}

.accessibility-controls__trigger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.accessibility-controls__panel {
    position: fixed;
    right: auto;
    bottom: 82px;
    left: 16px;
    width: min(430px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 100px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px;
    color: #1b1b1b;
    background: #fcfbf8;
    border: 1px solid #1b1b1b;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 26%);
    scrollbar-color: #555 #eee;
    scrollbar-width: thin;
}

.accessibility-controls__panel[hidden] {
    display: none;
}

.accessibility-controls__panel-header {
    position: sticky;
    top: -22px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: -22px -22px 0;
    padding: 22px 22px 15px;
    background: rgb(252 251 248 / 96%);
    border-bottom: 1px solid #ddd9d0;
    backdrop-filter: blur(8px);
}

.accessibility-controls__eyebrow,
.accessibility-controls__intro,
.accessibility-controls__hint,
.accessibility-controls__note,
.accessibility-controls__status {
    margin: 0;
}

.accessibility-controls__eyebrow {
    margin-bottom: 4px;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accessibility-controls__panel h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.accessibility-controls__close {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #1b1b1b;
    background: #fcfbf8;
    border: 1px solid #1b1b1b;
    border-radius: 50%;
    cursor: pointer;
    place-items: center;
}

.accessibility-controls__close:hover {
    color: #fff;
    background: #1b1b1b;
}

.accessibility-controls__intro {
    margin-top: 16px;
    color: #3e3e3e;
    font-size: 13px;
    line-height: 1.45;
}

.accessibility-controls__reset--footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f1efe9;
    border-color: #aaa59b;
}

.accessibility-controls__section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #d7d3ca;
}

.accessibility-controls__section h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.accessibility-controls__section-icon {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #fff;
    background: #1b1b1b;
    border-radius: 9px;
    place-items: center;
}

.accessibility-controls__section-icon svg {
    width: 15px;
    height: 15px;
}

.accessibility-controls__profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.accessibility-controls__profiles button {
    position: relative;
    display: flex;
    min-height: 112px;
    padding: 12px;
    color: #1b1b1b;
    background: #f3f1eb;
    border: 1px solid #c9c4b9;
    border-radius: 12px;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.accessibility-controls__profiles button:hover {
    background: #e9e6de;
    border-color: #1b1b1b;
    transform: translateY(-1px);
}

.accessibility-controls__profiles button[aria-pressed="true"] {
    color: #fff;
    background: #1b1b1b;
    border-color: #1b1b1b;
    box-shadow: inset 0 0 0 2px #fff;
}

.accessibility-controls__profiles button[aria-pressed="true"]:hover {
    background: #000;
}

.accessibility-controls__profiles button[aria-pressed="true"]::after {
    position: absolute;
    top: 8px;
    right: 9px;
    display: grid;
    width: 21px;
    height: 21px;
    color: #1b1b1b;
    background: #fff;
    border-radius: 50%;
    content: '✓';
    font-size: 13px;
    font-weight: 700;
    place-items: center;
}

.accessibility-controls__profiles button[aria-pressed="true"] .accessibility-controls__profile-icon {
    color: #1b1b1b !important;
    background: #fff;
}

.accessibility-controls__profiles button[aria-pressed="true"] .accessibility-controls__profile-copy,
.accessibility-controls__profiles button[aria-pressed="true"] .accessibility-controls__profile-copy > span {
    color: #fff !important;
}

.accessibility-controls__profiles strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.accessibility-controls__profile-icon {
    display: grid !important;
    width: 34px;
    height: 34px;
    color: #fff !important;
    background: #1b1b1b;
    border-radius: 50%;
    place-items: center;
}

.accessibility-controls__profile-icon svg {
    width: 16px;
    height: 16px;
}

.accessibility-controls__profile-copy {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    color: #1b1b1b !important;
}

.accessibility-controls__profile-copy > span {
    display: block;
    color: #4a4a4a;
    font-size: 11px;
    line-height: 1.35;
}

.accessibility-controls__group {
    min-inline-size: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.accessibility-controls__group legend {
    display: block;
    width: 100%;
    margin-bottom: 7px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.accessibility-controls__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.accessibility-controls__options--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.accessibility-controls__options button,
.accessibility-controls__reset {
    min-height: 42px;
    padding: 7px 8px;
    color: #1b1b1b;
    background: #fff;
    border: 1px solid #6b6b6b;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.accessibility-controls__options button:hover,
.accessibility-controls__reset:hover {
    background: #ededed;
    border-color: #1b1b1b;
}

.accessibility-controls__options button[aria-pressed="true"] {
    color: #fff;
    background: #1b1b1b;
    border-color: #1b1b1b;
    box-shadow: inset 0 0 0 2px #fff;
}

.accessibility-controls__toggles {
    display: grid;
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d3cfc6;
    border-radius: 11px;
}

.accessibility-controls__toggles button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 9px 12px;
    color: #1b1b1b;
    background: #fff;
    border: 0;
    border-top: 1px solid #e0ddd5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.accessibility-controls__toggles button:hover {
    background: #f3f1eb;
}

.accessibility-controls__toggles button:first-child {
    border-top: 0;
}

.accessibility-controls__toggles button:disabled {
    color: #777;
    background: #f4f4f4;
    cursor: not-allowed;
}

.accessibility-controls__switch {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    background: #6d6d6d;
    border: 1px solid #4b4b4b;
    border-radius: 999px;
}

.accessibility-controls__switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    content: '';
    transition: transform 140ms ease;
}

.accessibility-controls__toggles button[aria-pressed="true"] .accessibility-controls__switch {
    background: #176b3a;
    border-color: #0e4c28;
}

.accessibility-controls__toggles button[aria-pressed="true"] .accessibility-controls__switch::after {
    transform: translateX(18px);
}

.accessibility-controls__speech-icon {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: #fff;
    background: #1b1b1b;
    border-radius: 50%;
    font-size: 11px;
    place-items: center;
}

.accessibility-controls__toggles button[aria-pressed="true"] .accessibility-controls__speech-icon {
    background: #a20e0e;
}

.accessibility-controls__hint {
    margin-top: 10px;
    color: #4d4d4d;
    font-size: 11px;
    line-height: 1.45;
}

.accessibility-controls kbd {
    display: inline-block;
    min-width: 23px;
    padding: 1px 4px;
    color: #1b1b1b;
    background: #f1f1f1;
    border: 1px solid #999;
    border-bottom-width: 2px;
    border-radius: 3px;
    font: 700 10px/1.4 Arial, Helvetica, sans-serif;
    text-align: center;
}

.accessibility-controls__footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #c9c9c9;
}

.accessibility-controls__reset {
    width: 100%;
    min-height: 46px;
    font-size: 13px;
}

.accessibility-controls__note {
    margin-top: 9px;
    color: #555;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

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

.accessibility-controls button:focus-visible,
.accessibility-controls__panel:focus-visible {
    outline: 3px solid #066ac9;
    outline-offset: 3px;
}

/* Site-wide visitor preferences. The controls themselves live outside #page. */
html.a11y-line-comfortable :where(#page, body > main) :where(p, li, dd, dt, blockquote, figcaption, td, th, address, label) {
    line-height: 1.7 !important;
}

html.a11y-line-comfortable :where(#page, body > main) :where(h1, h2, h3, h4, h5, h6) {
    line-height: 1.35 !important;
}

html.a11y-line-relaxed :where(#page, body > main) :where(p, li, dd, dt, blockquote, figcaption, td, th, address, label) {
    line-height: 2 !important;
}

html.a11y-line-relaxed :where(#page, body > main) :where(h1, h2, h3, h4, h5, h6) {
    line-height: 1.55 !important;
}

html.a11y-letters-wide :where(#page, body > main) :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th, address, label, a, button) {
    letter-spacing: 0.06em !important;
    word-spacing: 0.08em !important;
}

html.a11y-letters-wider :where(#page, body > main) :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th, address, label, a, button) {
    letter-spacing: 0.1em !important;
    word-spacing: 0.14em !important;
}

/* Brand wordmarks are typography-based logos, so visitor text settings must not reshape them. */
html :where(.site-logo, .mobile-menu-open-logo, .header-zbirka-logo, .header-zbirka-mobile-logo, .mobile-menu-cross-logo),
html.a11y-font-readable :where(.site-logo, .mobile-menu-open-logo, .header-zbirka-logo, .header-zbirka-mobile-logo, .mobile-menu-cross-logo),
html.a11y-font-readable :where(.site-logo, .mobile-menu-open-logo, .header-zbirka-logo, .header-zbirka-mobile-logo, .mobile-menu-cross-logo) * {
    font-family: var(--font-elastik-regular-c) !important;
    word-spacing: normal !important;
}

html.a11y-font-readable :where(.site-logo, .mobile-menu-open-logo, .header-zbirka-logo, .header-zbirka-mobile-logo, .mobile-menu-cross-logo) .elastik-regular-b {
    font-family: var(--font-elastik-regular-b) !important;
}

html.a11y-letters-wide :where(.site-logo, .header-zbirka-logo),
html.a11y-letters-wider :where(.site-logo, .header-zbirka-logo) {
    letter-spacing: -0.44px !important;
}

html.a11y-letters-wide :where(.mobile-menu-open-logo, .header-zbirka-mobile-logo, .mobile-menu-cross-logo),
html.a11y-letters-wider :where(.mobile-menu-open-logo, .header-zbirka-mobile-logo, .mobile-menu-cross-logo) {
    letter-spacing: 0 !important;
}

/* With enlarged text, logos stay in the top row and navigation gets its own full-width row. */
@media (min-width: 1024px) {
    html.a11y-text-large :where(.site-header, .header-zbirka) {
        padding-bottom: 26px !important;
    }

    html.a11y-text-large .site-header > div:first-child {
        display: block !important;
    }

    html.a11y-text-large .site-header > div:first-child > div:nth-child(2) {
        position: absolute;
        top: 0;
        right: 0;
    }

    html.a11y-text-large .site-header__leading {
        width: 100%;
        min-width: 0;
        flex-direction: column !important;
        gap: 14px !important;
    }

    html.a11y-text-large .site-header__leading > div:last-child {
        width: 100%;
        min-width: 0;
        padding-top: 0 !important;
    }

    html.a11y-text-large .header-zbirka__masthead {
        flex-wrap: wrap;
    }

    html.a11y-text-large .header-zbirka__menu {
        order: 3;
        width: 100%;
        min-width: 0;
        flex: 1 0 100%;
        padding-top: 0 !important;
    }

    html.a11y-text-large :where(.site-header, .header-zbirka) #primary-menu > ul {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        column-gap: 18px;
    }

    html.a11y-text-large :where(.site-header, .header-zbirka) #primary-menu :where(li, a) {
        min-width: 0;
        line-height: 1.25 !important;
        white-space: nowrap;
    }

    html.a11y-text-extra-large :where(.site-header, .header-zbirka) {
        padding-bottom: 32px !important;
    }

    html.a11y-text-huge :where(.site-header, .header-zbirka) {
        padding-bottom: 40px !important;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .site-header > div:first-child {
        display: block !important;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .site-header > div:first-child > div:nth-child(2) {
        position: absolute;
        top: 0;
        right: 0;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .site-header__leading,
    html:is(.a11y-text-extra-large, .a11y-text-huge) .header-zbirka__menu {
        min-width: 0;
        flex: 1 1 auto;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .site-header__leading {
        width: 100%;
        flex-direction: column !important;
    }

    html.a11y-text-extra-large .site-header__leading {
        gap: 18px !important;
    }

    html.a11y-text-huge .site-header__leading {
        gap: 24px !important;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .site-header__leading > div:last-child {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        padding-top: 0 !important;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .site-header #primary-menu > ul {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
        align-items: end;
        column-gap: 24px;
    }

    html.a11y-text-extra-large .site-header #primary-menu > ul {
        row-gap: 12px;
    }

    html.a11y-text-huge .site-header #primary-menu > ul {
        row-gap: 18px;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .site-header #primary-menu a {
        white-space: nowrap;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .header-zbirka #primary-menu > ul {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
        column-gap: 24px;
    }

    html.a11y-text-extra-large .header-zbirka #primary-menu > ul {
        row-gap: 12px;
    }

    html.a11y-text-huge .header-zbirka #primary-menu > ul {
        row-gap: 18px;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) #primary-menu :where(li, a) {
        min-width: 0;
        line-height: 1.25 !important;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .header-zbirka__masthead {
        flex-wrap: wrap;
    }

    html:is(.a11y-text-extra-large, .a11y-text-huge) .header-zbirka__menu {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        padding-top: 0 !important;
    }

    /* Enlarged menus keep natural spacing and only wrap items that no longer fit. */
    html:is(.a11y-text-large, .a11y-text-extra-large, .a11y-text-huge) .site-header #primary-menu > ul,
    html:is(.a11y-text-large, .a11y-text-extra-large, .a11y-text-huge) .header-zbirka #primary-menu > ul {
        display: flex !important;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 0 24px;
        grid-template-columns: none;
    }
}

@media (max-width: 1023px) {
    html.a11y-letters-wide :where(.site-logo, .header-zbirka-logo),
    html.a11y-letters-wider :where(.site-logo, .header-zbirka-logo) {
        letter-spacing: 0 !important;
    }
}

html.a11y-align-left :where(#page, body > main) :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th, address) {
    text-align: left !important;
}

html.a11y-align-center :where(#page, body > main) :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th, address) {
    text-align: center !important;
}

html.a11y-font-readable :where(#page, body > main),
html.a11y-font-readable :where(#page, body > main) * {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

html.a11y-underlined-links :where(#page, body > main) a {
    text-decoration: underline !important;
    text-decoration-thickness: 0.12em !important;
    text-underline-offset: 0.16em !important;
}

html.a11y-highlight-links :where(#page, body > main) a {
    color: #000 !important;
    background: #ffe600 !important;
    box-shadow: 0 0 0 2px #ffe600;
    text-decoration-color: #000 !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

html.a11y-highlight-headings :where(#page, body > main) :where(h1, h2, h3, h4, h5, h6) {
    padding-bottom: 0.14em !important;
    border-bottom: 3px solid currentColor !important;
}

html.a11y-highlight-focus :where(#page, body > main) :focus {
    outline: 4px solid #ffbf00 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 2px #111 !important;
}

html.a11y-reduced-motion :where(#page, body > main),
html.a11y-reduced-motion :where(#page, body > main) *,
html.a11y-reduced-motion :where(#page, body > main) *::before,
html.a11y-reduced-motion :where(#page, body > main) *::after {
    scroll-behavior: auto !important;
    animation-delay: 0s !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0.001ms !important;
}

html.a11y-hide-images :where(#page, body > main) :where(img, picture, video, canvas, iframe) {
    opacity: 0 !important;
}

html.a11y-hide-images :where(#page, body > main) * {
    background-image: none !important;
}

html.a11y-large-cursor,
html.a11y-large-cursor body,
html.a11y-large-cursor body * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M5 3v28l8-7 6 13 6-3-6-13h11z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 5 3, auto !important;
}

html.a11y-contrast-high {
    --a11y-contrast-filter: contrast(1);
}

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

html.a11y-color-grayscale {
    --a11y-color-filter: grayscale(1);
}

html.a11y-color-saturated {
    --a11y-color-filter: saturate(1.9);
}

html:is(.a11y-contrast-invert, .a11y-color-grayscale, .a11y-color-saturated) :where(#page, body > main) {
    filter: var(--a11y-contrast-filter) var(--a11y-color-filter);
}

html.a11y-contrast-high body {
    background-color: #000 !important;
}

html.a11y-contrast-high :where(#page, body > main),
html.a11y-contrast-high :where(#page, body > main) :where(header, main, footer, section, article, aside, nav, div, ul, ol, li, form, fieldset, label, input, textarea, select, button, table, thead, tbody, tr, th, td) {
    color: #fff !important;
    background-color: #000 !important;
    border-color: #fff !important;
}

html.a11y-contrast-high :where(#page, body > main) *,
html.a11y-contrast-high :where(#page, body > main) *::before,
html.a11y-contrast-high :where(#page, body > main) *::after {
    color: #fff !important;
    border-color: #fff !important;
    text-shadow: none !important;
}

html.a11y-contrast-high :where(#page, body > main) * {
    background-image: none !important;
}

html.a11y-contrast-high :where(#page, body > main) *:not(img):not(video):not(canvas):not(iframe):not(svg):not(path) {
    background-color: #000 !important;
}

html.a11y-contrast-high :where(#page, body > main) a {
    color: #fff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 0.12em !important;
    text-underline-offset: 0.16em !important;
}

html.a11y-contrast-high :where(#page, body > main) :where(input, textarea, select, button) {
    box-shadow: 0 0 0 1px #fff !important;
}

html.a11y-contrast-high :where(#page, body > main) :where(input, textarea)::placeholder {
    color: #fff !important;
    opacity: 0.8 !important;
}

html.a11y-contrast-high :where(#page, body > main) :where(img, picture, video, canvas, iframe) {
    background-color: transparent !important;
}

html.a11y-contrast-invert :where(#page, body > main) :where(img, video, canvas, iframe) {
    filter: invert(1) hue-rotate(180deg);
}

.accessibility-reading-guide,
.accessibility-reading-mask {
    position: fixed;
    display: none;
    pointer-events: none;
}

.accessibility-reading-guide {
    top: calc(var(--a11y-reader-y) - 3px);
    right: 0;
    left: 0;
    z-index: 2147481900;
    height: 6px;
    background: #ffd900;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}

.accessibility-reading-mask {
    inset: 0;
    z-index: 2147481800;
    background: linear-gradient(
        to bottom,
        rgb(0 0 0 / 68%) 0,
        rgb(0 0 0 / 68%) calc(var(--a11y-reader-y) - 68px),
        transparent calc(var(--a11y-reader-y) - 68px),
        transparent calc(var(--a11y-reader-y) + 68px),
        rgb(0 0 0 / 68%) calc(var(--a11y-reader-y) + 68px),
        rgb(0 0 0 / 68%) 100%
    );
}

html.a11y-reading-guide-active .accessibility-reading-guide,
html.a11y-reading-mask-active .accessibility-reading-mask {
    display: block;
}

@media (max-width: 600px) {
    .accessibility-controls {
        right: auto;
        bottom: 10px;
        left: 10px;
    }

    .accessibility-controls__trigger {
        width: 52px;
        height: 52px;
    }

    .accessibility-controls__panel {
        right: 8px;
        bottom: 70px;
        left: 8px;
        width: auto;
        max-height: calc(100dvh - 82px);
        padding: 18px;
        border-radius: 12px;
    }

    .accessibility-controls__panel-header {
        top: -18px;
        margin: -18px -18px 0;
        padding: 18px 18px 14px;
    }

    .accessibility-controls__profiles {
        grid-template-columns: 1fr;
    }

    .accessibility-controls__profiles button {
        min-height: 0;
        align-items: center;
        flex-direction: row;
    }
}

@media (max-width: 370px) {
    .accessibility-controls__options,
    .accessibility-controls__options--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .accessibility-skip-link,
    .accessibility-controls__switch::after {
        transition: none;
    }
}

@media (forced-colors: active) {
    .accessibility-controls__trigger,
    .accessibility-controls__panel,
    .accessibility-controls__options button[aria-pressed="true"],
    .accessibility-controls__toggles button[aria-pressed="true"] .accessibility-controls__switch {
        border: 2px solid ButtonText;
        forced-color-adjust: auto;
    }
}

@media print {
    .accessibility-controls,
    .accessibility-skip-link,
    .accessibility-reading-guide,
    .accessibility-reading-mask {
        display: none !important;
    }
}
