/* Accessibility Tools panel + contrast themes
   Plain CSS (no @apply) so it works without regenerating the Tailwind build. */

/* -------------------------------------------------------------------------- */
/* Panel + trigger                                                            */
/* -------------------------------------------------------------------------- */

.a11y-tools {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 10050;
    transform: translateY(-50%);
    font-family: inherit;
}

.a11y-tools__trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 44px;
    min-height: 96px;
    padding: 14px 8px;
    border: none;
    border-radius: 10px 0 0 10px;
    background: #dc2626;
    color: #ffffff;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.a11y-tools__trigger:hover,
.a11y-tools__trigger:focus-visible {
    background: #b91c1c;
    outline: none;
}

.a11y-tools__trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35), -2px 2px 10px rgba(0, 0, 0, 0.18);
}

.a11y-tools__trigger-icon,
.a11y-tools__trigger-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.a11y-tools__trigger-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.a11y-tools__trigger-chevron img {
    width: 18px;
    height: 18px;
}

.a11y-tools.is-open .a11y-tools__trigger-chevron img {
    transform: rotate(180deg);
}

.a11y-tools__panel {
    position: absolute;
    top: 50%;
    right: 52px;
    width: 360px;
    max-width: calc(100vw - 72px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px 18px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%);
}

.a11y-tools__panel[hidden] {
    display: none !important;
}

.a11y-tools__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.a11y-tools__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.a11y-tools__close {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    text-decoration: none;
}

.a11y-tools__close:hover,
.a11y-tools__close:focus-visible {
    color: #111827;
    text-decoration: underline;
    outline: none;
}

.a11y-tools__section {
    margin-bottom: 14px;
}

.a11y-tools__section-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #9ca3af;
    text-transform: none;
}

.a11y-tools__grid {
    display: grid;
    gap: 8px;
}

.a11y-tools__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a11y-tools__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
}

.a11y-tools__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #e5e7eb;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.a11y-tools__btn:hover {
    background: #d1d5db;
}

.a11y-tools__btn:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.a11y-tools__btn.is-active,
.a11y-tools__btn[aria-pressed="true"] {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    font-weight: 600;
}

.a11y-tools__btn--reset {
    width: 100%;
    min-height: 42px;
    font-size: 13px;
}

.a11y-tools__footer {
    margin-top: 4px;
}

.a11y-tools__status {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

@media (max-width: 480px) {
    .a11y-tools__panel {
        width: 300px;
        right: 48px;
        padding: 14px;
    }

    .a11y-tools__grid--3 {
        grid-template-columns: 1fr;
    }

    .a11y-tools__grid--2 {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------- */
/* Black Contrast — black backgrounds, gold text                              */
/* -------------------------------------------------------------------------- */

html.a11y-contrast-black,
html.a11y-contrast-black body {
    background-color: #000000 !important;
    color: #ffd700 !important;
}

html.a11y-contrast-black *:not(script):not(style):not(link):not(meta):not(br):not(hr):not(img):not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(g):not(use):not(video):not(canvas):not(iframe):not(source) {
    background-color: #000000 !important;
    color: #ffd700 !important;
    border-color: #ffd700 !important;
    box-shadow: none !important;
    outline-color: #ffd700 !important;
}

html.a11y-contrast-black img,
html.a11y-contrast-black svg,
html.a11y-contrast-black video,
html.a11y-contrast-black canvas,
html.a11y-contrast-black iframe {
    opacity: 0.9;
}

/* Keep brand red CTAs readable */
html.a11y-contrast-black .bg-red-500,
html.a11y-contrast-black .bg-red-600,
html.a11y-contrast-black .bg-red-700,
html.a11y-contrast-black .hover\:bg-red-600:hover,
html.a11y-contrast-black .hover\:bg-red-700:hover,
html.a11y-contrast-black .form-btn-primary,
html.a11y-contrast-black .mono-pill-red,
html.a11y-contrast-black button.bg-red-500,
html.a11y-contrast-black button.bg-red-600,
html.a11y-contrast-black a.bg-red-500,
html.a11y-contrast-black a.bg-red-600,
html.a11y-contrast-black [class*="bg-red-"] {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

html.a11y-contrast-black .form-btn-primary img,
html.a11y-contrast-black .mono-pill-red img,
html.a11y-contrast-black [class*="bg-red-"] img {
    opacity: 1;
    filter: none;
}

/* Accessibility trigger + panel in black mode */
html.a11y-contrast-black .a11y-tools__trigger,
html.a11y-contrast-black .a11y-tools__trigger:hover,
html.a11y-contrast-black .a11y-tools__trigger:focus-visible {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffd700 !important;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.45) !important;
}

html.a11y-contrast-black .a11y-tools__trigger-chevron img {
    filter: grayscale(1) brightness(0.2);
}

html.a11y-contrast-black .a11y-tools__panel {
    background: #000000 !important;
    border: 1px solid #ffd700 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55) !important;
}

html.a11y-contrast-black .a11y-tools__title,
html.a11y-contrast-black .a11y-tools__close,
html.a11y-contrast-black .a11y-tools__section-title,
html.a11y-contrast-black .a11y-tools__status,
html.a11y-contrast-black .a11y-tools__btn {
    color: #ffd700 !important;
    background: transparent !important;
    border-color: transparent !important;
}

html.a11y-contrast-black .a11y-tools__btn {
    border: 1px solid transparent !important;
}

html.a11y-contrast-black .a11y-tools__btn:hover {
    background: #1a1a1a !important;
    border-color: #ffd700 !important;
}

html.a11y-contrast-black .a11y-tools__btn.is-active,
html.a11y-contrast-black .a11y-tools__btn[aria-pressed="true"] {
    background: #000000 !important;
    border: 1px solid #22c55e !important;
    color: #ffd700 !important;
}

html.a11y-contrast-black .a11y-tools__btn--reset {
    border: 1px solid #ffd700 !important;
}

html.a11y-contrast-black input,
html.a11y-contrast-black textarea,
html.a11y-contrast-black select {
    background-color: #000000 !important;
    color: #ffd700 !important;
    border-color: #ffd700 !important;
    caret-color: #ffd700;
}

html.a11y-contrast-black input::placeholder,
html.a11y-contrast-black textarea::placeholder {
    color: #b8860b !important;
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Grey Contrast — dark grey backgrounds, yellow text                         */
/* -------------------------------------------------------------------------- */

html.a11y-contrast-grey,
html.a11y-contrast-grey body {
    background-color: #4a4a4a !important;
    color: #ffff00 !important;
}

html.a11y-contrast-grey *:not(script):not(style):not(link):not(meta):not(br):not(hr):not(img):not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(g):not(use):not(video):not(canvas):not(iframe):not(source) {
    background-color: #4a4a4a !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    outline-color: #ffff00 !important;
}

html.a11y-contrast-grey img,
html.a11y-contrast-grey svg,
html.a11y-contrast-grey video,
html.a11y-contrast-grey canvas,
html.a11y-contrast-grey iframe {
    opacity: 0.9;
}

html.a11y-contrast-grey .bg-red-500,
html.a11y-contrast-grey .bg-red-600,
html.a11y-contrast-grey .bg-red-700,
html.a11y-contrast-grey .hover\:bg-red-600:hover,
html.a11y-contrast-grey .hover\:bg-red-700:hover,
html.a11y-contrast-grey .form-btn-primary,
html.a11y-contrast-grey .mono-pill-red,
html.a11y-contrast-grey button.bg-red-500,
html.a11y-contrast-grey button.bg-red-600,
html.a11y-contrast-grey a.bg-red-500,
html.a11y-contrast-grey a.bg-red-600,
html.a11y-contrast-grey [class*="bg-red-"] {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

html.a11y-contrast-grey .form-btn-primary img,
html.a11y-contrast-grey .mono-pill-red img,
html.a11y-contrast-grey [class*="bg-red-"] img {
    opacity: 1;
    filter: none;
}

html.a11y-contrast-grey .a11y-tools__trigger,
html.a11y-contrast-grey .a11y-tools__trigger:hover,
html.a11y-contrast-grey .a11y-tools__trigger:focus-visible {
    background: #4a4a4a !important;
    color: #ffffff !important;
    border: 1px solid #ffff00 !important;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.35) !important;
}

html.a11y-contrast-grey .a11y-tools__trigger-chevron img {
    filter: grayscale(1) brightness(0.35);
}

html.a11y-contrast-grey .a11y-tools__panel {
    background: #4a4a4a !important;
    border: 1px solid #ffff00 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

html.a11y-contrast-grey .a11y-tools__title,
html.a11y-contrast-grey .a11y-tools__close,
html.a11y-contrast-grey .a11y-tools__section-title,
html.a11y-contrast-grey .a11y-tools__status,
html.a11y-contrast-grey .a11y-tools__btn {
    color: #ffff00 !important;
    background: transparent !important;
    border-color: transparent !important;
}

html.a11y-contrast-grey .a11y-tools__btn {
    border: 1px solid transparent !important;
}

html.a11y-contrast-grey .a11y-tools__btn:hover {
    background: #5a5a5a !important;
    border-color: #ffff00 !important;
}

html.a11y-contrast-grey .a11y-tools__btn.is-active,
html.a11y-contrast-grey .a11y-tools__btn[aria-pressed="true"] {
    background: #4a4a4a !important;
    border: 1px solid #22c55e !important;
    color: #ffff00 !important;
}

html.a11y-contrast-grey .a11y-tools__btn--reset {
    border: 1px solid #ffff00 !important;
}

html.a11y-contrast-grey input,
html.a11y-contrast-grey textarea,
html.a11y-contrast-grey select {
    background-color: #4a4a4a !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    caret-color: #ffff00;
}

html.a11y-contrast-grey input::placeholder,
html.a11y-contrast-grey textarea::placeholder {
    color: #cfcf66 !important;
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Highlight Links                                                            */
/* Normal: black box + yellow text/underline                                  */
/* Black/Grey contrast: strong yellow/gold underline on links                 */
/* Skips button-style CTAs (primary/secondary/red) so Login etc. stay red     */
/* -------------------------------------------------------------------------- */

html.a11y-highlight-links a:not(.form-btn-primary):not(.form-btn-secondary):not(.form-btn-secondary-img):not(.mono-pill-red):not(.mono-pill-white):not([class*="bg-red-"]):not(.a11y-tools__close) {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
    text-decoration: underline !important;
    text-decoration-color: #ffff00 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    box-shadow: none !important;
    outline-color: #ffff00 !important;
}

html.a11y-highlight-links a:not(.form-btn-primary):not(.form-btn-secondary):not(.form-btn-secondary-img):not(.mono-pill-red):not(.mono-pill-white):not([class*="bg-red-"]):not(.a11y-tools__close):hover,
html.a11y-highlight-links a:not(.form-btn-primary):not(.form-btn-secondary):not(.form-btn-secondary-img):not(.mono-pill-red):not(.mono-pill-white):not([class*="bg-red-"]):not(.a11y-tools__close):focus-visible {
    background-color: #111111 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    text-decoration: underline !important;
    text-decoration-color: #ffff00 !important;
}

/* Black contrast + highlight: gold underline (page already black/gold) */
html.a11y-contrast-black.a11y-highlight-links a:not(.form-btn-primary):not(.form-btn-secondary):not(.form-btn-secondary-img):not(.mono-pill-red):not(.mono-pill-white):not([class*="bg-red-"]):not(.a11y-tools__close) {
    background-color: transparent !important;
    color: #ffd700 !important;
    border: none !important;
    border-bottom: 2px solid #ffd700 !important;
    border-radius: 0 !important;
    text-decoration: underline !important;
    text-decoration-color: #ffd700 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    padding-bottom: 1px;
}

/* Grey contrast + highlight: yellow underline */
html.a11y-contrast-grey.a11y-highlight-links a:not(.form-btn-primary):not(.form-btn-secondary):not(.form-btn-secondary-img):not(.mono-pill-red):not(.mono-pill-white):not([class*="bg-red-"]):not(.a11y-tools__close) {
    background-color: transparent !important;
    color: #ffff00 !important;
    border: none !important;
    border-bottom: 2px solid #ffff00 !important;
    border-radius: 0 !important;
    text-decoration: underline !important;
    text-decoration-color: #ffff00 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    padding-bottom: 1px;
}

/* Keep brand red CTA links when highlight is on */
html.a11y-highlight-links a.form-btn-primary,
html.a11y-highlight-links a.bg-red-500,
html.a11y-highlight-links a.bg-red-600,
html.a11y-highlight-links a[class*="bg-red-"] {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    text-decoration: none !important;
}

/* -------------------------------------------------------------------------- */
/* Line Height — apply ONLY to readable text nodes                            */
/* Do NOT set on html/body (inheritance stretches navbar, radios, badges)     */
/* -------------------------------------------------------------------------- */

html.a11y-line-height p,
html.a11y-line-height li,
html.a11y-line-height h1,
html.a11y-line-height h2,
html.a11y-line-height h3,
html.a11y-line-height h4,
html.a11y-line-height h5,
html.a11y-line-height h6,
html.a11y-line-height label,
html.a11y-line-height .form-radio-text,
html.a11y-line-height .mufg-page-title,
html.a11y-line-height .mufg-page-subtitle,
html.a11y-line-height .mufg-login-form-title,
html.a11y-line-height .mufg-login-form-text,
html.a11y-line-height .mufg-create-form-label,
html.a11y-line-height .auth-form-title,
html.a11y-line-height .auth-form-description,
html.a11y-line-height .auth-success-info,
html.a11y-line-height .welcome,
html.a11y-line-height .steps-para,
html.a11y-line-height .steps-title,
html.a11y-line-height .fee-description {
    line-height: 1.8 !important;
}

/* Prose / content text utilities — skip chrome headers & controls */
html.a11y-line-height main .text-sm,
html.a11y-line-height main .text-xs,
html.a11y-line-height main .text-base,
html.a11y-line-height main .text-lg,
html.a11y-line-height main .text-xl,
html.a11y-line-height main .text-2xl,
html.a11y-line-height .content-container .text-sm,
html.a11y-line-height .content-container .text-xs,
html.a11y-line-height .content-container .text-base,
html.a11y-line-height .content-container .text-lg {
    line-height: 1.8 !important;
}

html.a11y-line-height a:not(button):not(.form-btn-primary):not(.form-btn-secondary):not([class*="bg-red-"]):not(#clear-filter-btn):not(.table-action-button):not(.close-modal):not(.previewLink):not(.tickets-preview-link) {
    line-height: 1.8 !important;
}

/* ---- Hard exclusions (must beat main .text-sm / .text-xs rules) ---- */

html.a11y-line-height main header,
html.a11y-line-height main header *,
html.a11y-line-height main header .text-sm,
html.a11y-line-height main header .text-xs,
html.a11y-line-height main header .text-base,
html.a11y-line-height main header .text-lg,
html.a11y-line-height header.h-16,
html.a11y-line-height header.h-16 *,
html.a11y-line-height .notif-bell-wrap,
html.a11y-line-height .notif-bell-wrap *,
html.a11y-line-height .notif-unread-badge,
html.a11y-line-height .notifBtn,
html.a11y-line-height #companySwitcher,
html.a11y-line-height #companySwitcher *,
html.a11y-line-height main button,
html.a11y-line-height main button *,
html.a11y-line-height main .form-btn-primary,
html.a11y-line-height main .form-btn-secondary,
html.a11y-line-height main a.form-btn-primary,
html.a11y-line-height main a.form-btn-secondary,
html.a11y-line-height main #clear-filter-btn,
html.a11y-line-height main #download-all-btn,
html.a11y-line-height main #downloadAllBtn,
html.a11y-line-height .a11y-tools,
html.a11y-line-height .a11y-tools * {
    line-height: normal !important;
}

html.a11y-line-height .notif-unread-badge,
html.a11y-line-height main header .notif-unread-badge {
    line-height: 15px !important;
    height: 15px !important;
    min-height: 15px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Custom radios — fixed circles (form helpers + DepositoryForm admission cards) */
html.a11y-line-height main .form-radio-outer,
html.a11y-line-height main .form-radio-inner,
html.a11y-line-height main input[type="radio"],
html.a11y-line-height main input[type="checkbox"],
html.a11y-line-height main span.w-4.h-4.rounded-full,
html.a11y-line-height main span.w-2.h-2.rounded-full,
html.a11y-line-height main span.absolute.w-2.h-2.rounded-full {
    line-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

html.a11y-line-height main .form-radio-outer,
html.a11y-line-height main span.w-4.h-4.rounded-full {
    height: 1rem !important;
    width: 1rem !important;
    min-height: 1rem !important;
}

html.a11y-line-height main .form-radio-inner,
html.a11y-line-height main span.w-2.h-2.rounded-full,
html.a11y-line-height main span.absolute.w-2.h-2.rounded-full {
    height: 0.5rem !important;
    width: 0.5rem !important;
    min-height: 0.5rem !important;
}

/* Fee / pill badges (Same day credit, etc.) */
html.a11y-line-height main .fee-badge,
html.a11y-line-height main .fee-badge.text-xs,
html.a11y-line-height main span.fee-badge {
    line-height: 1.25 !important;
    padding-top: 0.125rem !important;
    padding-bottom: 0.125rem !important;
    margin-bottom: 0 !important;
    align-self: center;
}

/* Clear filter pills */
html.a11y-line-height main #clear-filter-btn,
html.a11y-line-height main a#clear-filter-btn {
    line-height: 1.25 !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Flatpickr — leave calendar sizing alone */
html.a11y-line-height .flatpickr-calendar,
html.a11y-line-height .flatpickr-calendar *,
html.a11y-line-height body > .flatpickr-calendar,
html.a11y-line-height body > .flatpickr-calendar * {
    line-height: normal !important;
}

html.a11y-line-height .flatpickr-day,
html.a11y-line-height .flatpickr-calendar .flatpickr-day {
    line-height: 39px !important;
    height: 39px !important;
    max-width: 39px !important;
    padding: 0 !important;
}

/* Document previewer modal — no line-height at all (incl. close X) */
html.a11y-line-height .pdf-modal,
html.a11y-line-height .pdf-modal *,
html.a11y-line-height .close-modal,
html.a11y-line-height button.close-modal {
    line-height: normal !important;
}

html.a11y-line-height .close-modal {
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Table action buttons (Settings/Groups View, etc.) — keep icon + label aligned */
html.a11y-line-height main .table-action-button,
html.a11y-line-height main a.table-action-button,
html.a11y-line-height main .table-action-button *,
html.a11y-line-height main .table-action-button span,
html.a11y-line-height main .table-action-button-icon,
html.a11y-line-height .table-action-buttons,
html.a11y-line-height .table-action-buttons * {
    line-height: normal !important;
}

html.a11y-line-height main a.table-action-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

/* -------------------------------------------------------------------------- */
/* Text Spacing — nearly global (navbar, buttons, activity log, notifications) */
/* Only skip non-text / fixed-geometry chrome                                 */
/* -------------------------------------------------------------------------- */

html.a11y-text-spacing,
html.a11y-text-spacing body {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

html.a11y-text-spacing *:not(script):not(style):not(link):not(meta):not(br):not(hr):not(img):not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(g):not(use):not(video):not(canvas):not(iframe):not(source) {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

/* Minimal exclusions — fixed-size / icon-only UI */
html.a11y-text-spacing .notif-unread-badge,
html.a11y-text-spacing .a11y-tools__trigger,
html.a11y-text-spacing .form-radio-outer,
html.a11y-text-spacing .form-radio-inner,
html.a11y-text-spacing span.w-4.h-4.rounded-full,
html.a11y-text-spacing span.w-2.h-2.rounded-full,
html.a11y-text-spacing span.absolute.w-2.h-2.rounded-full,
html.a11y-text-spacing .flatpickr-day {
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* -------------------------------------------------------------------------- */
/* Big Cursor — hide system cursor; JS follower shows the large black pointer */
/* -------------------------------------------------------------------------- */

html.a11y-big-cursor,
html.a11y-big-cursor * {
    cursor: none !important;
}

.a11y-big-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: 2147483647;
    background: url("../images/big-cursor.svg") no-repeat 0 0 / contain;
    transform: translate(-100px, -100px);
    opacity: 0;
    will-change: transform;
}

.a11y-big-cursor-follower.is-visible {
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Hide Images — hide all page images; keep a11y UI + PDF previewer visible   */
/* -------------------------------------------------------------------------- */

html.a11y-hide-images img:not(.a11y-tools img):not(.a11y-tools__trigger img):not(.pdf-modal img),
html.a11y-hide-images picture:not(.pdf-modal picture),
html.a11y-hide-images video:not(.pdf-modal video) {
    visibility: hidden !important;
}

/* Also strip CSS background photos (hero banners, etc.) */
html.a11y-hide-images *:not(.a11y-tools):not(.a11y-tools *):not(.pdf-modal):not(.pdf-modal *):not(.a11y-big-cursor-follower) {
    background-image: none !important;
}
