/* Accessibility menu (added Nov 7, 2026 at Vaibhav's request). Built in-house, no third party script. */

.a11y-ui { --a11y-navy: #102a43; --a11y-red: #b5192d; --a11y-line: #dde2e8; --a11y-mist: #f3f5f8; --a11y-ink: #2b313b; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; }

/* Floating button */
.a11y-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--a11y-navy);
    color: #fff;
    box-shadow: 0 6px 18px rgba(16, 42, 67, .35);
    cursor: pointer;
}
.a11y-toggle svg { width: 30px; height: 30px; }
.a11y-toggle:hover { background: var(--a11y-red); }
.a11y-toggle:focus-visible, .a11y-panel button:focus-visible, .a11y-panel a:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
@media (max-width: 820px) { .a11y-toggle { bottom: 72px; left: 12px; width: 48px; height: 48px; } }

/* Panel */
.a11y-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 400px;
    max-width: 100vw;
    background: var(--a11y-mist);
    color: var(--a11y-ink);
    box-shadow: 8px 0 40px rgba(16, 42, 67, .25);
    transform: translateX(-105%);
    transition: transform .25s ease;
    visibility: hidden;
}
.a11y-panel.is-open { transform: none; visibility: visible; }
.a11y-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 18px 22px;
    background: var(--a11y-navy);
    color: #fff;
}
.a11y-panel__head h2 { flex: 1; margin: 0; color: #fff; font-family: inherit; font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.a11y-panel__icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 19px;
    background: transparent;
    color: #fff;
    font: 700 12px/1 inherit;
    font-family: inherit;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
}
.a11y-panel__icon-btn:hover { background: rgba(255, 255, 255, .12); }
.a11y-panel__body { flex: 1; overflow-y: auto; padding: 18px 18px 8px; }
.a11y-panel__section { margin: 0 0 20px; }
.a11y-panel__section h3 { margin: 0 0 10px; color: var(--a11y-navy); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }

/* Text size control */
.a11y-size {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid var(--a11y-line);
    border-radius: 12px;
}
.a11y-size__label { font-size: 14.5px; font-weight: 700; }
.a11y-size__controls { display: flex; align-items: center; gap: 8px; }
.a11y-size__controls button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--a11y-navy);
    color: #fff;
    font: 700 22px/1 Arial, sans-serif;
    cursor: pointer;
}
.a11y-size__controls button:hover { background: var(--a11y-red); }
.a11y-size__value { min-width: 58px; padding: 8px 0; border-radius: 16px; background: var(--a11y-mist); text-align: center; font-size: 14px; font-weight: 700; }

/* Option tiles */
.a11y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a11y-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 84px;
    padding: 14px 14px 12px;
    border: 2px solid var(--a11y-line);
    border-radius: 12px;
    background: #fff;
    color: var(--a11y-ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.a11y-tile:hover { border-color: var(--a11y-navy); }
.a11y-tile__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.a11y-tile__state { display: flex; gap: 4px; width: 100%; }
.a11y-tile__state i { flex: 1; height: 4px; border-radius: 2px; background: var(--a11y-line); }
.a11y-tile[aria-pressed="true"] { border-color: var(--a11y-navy); background: #eaf1f8; }
.a11y-tile[aria-pressed="true"] .a11y-tile__state i { background: var(--a11y-navy); }
.a11y-tile[aria-pressed="true"]::after {
    content: "On";
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 7px;
    border-radius: 9px;
    background: var(--a11y-navy);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.a11y-panel__foot { padding: 14px 22px 18px; border-top: 1px solid var(--a11y-line); background: #fff; font-size: 13px; line-height: 1.5; }
.a11y-panel__foot a { color: var(--a11y-navy); font-weight: 700; }
@media (max-width: 440px) { .a11y-panel { width: 100vw; } }

/* Reading guide and mask */
.a11y-guide { position: fixed; left: 0; right: 0; z-index: 890; height: 12px; margin-top: -6px; background: rgba(255, 191, 0, .55); border-top: 2px solid #102a43; border-bottom: 2px solid #102a43; pointer-events: none; display: none; }
.a11y-mask-top, .a11y-mask-bottom { position: fixed; left: 0; right: 0; z-index: 889; background: rgba(0, 0, 0, .55); pointer-events: none; display: none; }
.a11y-mask-top { top: 0; }
.a11y-mask-bottom { bottom: 0; }
html.a11y-guide-on .a11y-guide { display: block; }
html.a11y-mask-on .a11y-mask-top, html.a11y-mask-on .a11y-mask-bottom { display: block; }

/* ---------- Adjustments applied to the page (never to the menu itself) ---------- */
html.a11y-readable body *:not(.a11y-ui):not(.a11y-ui *) { font-family: "Atkinson Hyperlegible", Arial, Helvetica, sans-serif !important; }
html.a11y-letter body *:not(.a11y-ui):not(.a11y-ui *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-line body :is(p, li, dd, dt, td, th, label, blockquote, address, span, a):not(.a11y-ui *) { line-height: 1.95 !important; }
html.a11y-bold body *:not(.a11y-ui):not(.a11y-ui *) { font-weight: 700 !important; }
html.a11y-left body *:not(.a11y-ui):not(.a11y-ui *) { text-align: left !important; }
html.a11y-links body a:not(.a11y-ui a) { outline: 2px solid #ffbf00 !important; outline-offset: 2px; background-color: #fff3c4 !important; color: #102a43 !important; text-decoration: underline !important; }
html.a11y-headings body :is(h1, h2, h3, h4, h5, h6):not(.a11y-ui *) { outline: 3px dashed #b5192d !important; outline-offset: 4px; }
html.a11y-hide-images body :is(img, picture, video, iframe):not(.a11y-ui *) { visibility: hidden !important; }
html.a11y-hide-images body [style*="background-image"]:not(.a11y-ui *) { background-image: none !important; }
html.a11y-stop-motion body *:not(.a11y-ui):not(.a11y-ui *),
html.a11y-stop-motion body *::before,
html.a11y-stop-motion body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-stop-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 4l30 16-13 3-6 13z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important; }

/* Colour modes: applied to page content only, so the menu always stays readable */
html.a11y-contrast body > *:not(.a11y-ui) { filter: contrast(1.45); }
html.a11y-dark body > *:not(.a11y-ui) { filter: invert(.92) hue-rotate(180deg); }
html.a11y-dark body > *:not(.a11y-ui) :is(img, video, iframe, picture) { filter: invert(1) hue-rotate(180deg); }
html.a11y-dark body { background: #111 !important; }
html.a11y-mono body > *:not(.a11y-ui) { filter: grayscale(1); }
html.a11y-lowsat body > *:not(.a11y-ui) { filter: saturate(.4); }
html.a11y-highsat body > *:not(.a11y-ui) { filter: saturate(2); }
