:root { --a11y-accent: #0b2545; }   /* change to match your theme */

/* ---------- header icon (inside .topHeaderLinks) ---------- */
.topHeaderLinks .a11y-item {
    display: inline-block; vertical-align: middle;
    margin-left: 12px; padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.3);
}
.topHeaderLinks .a11y-item button {
    background: none; border: 0; padding: 0; line-height: 1;
    color: #fff; font-size: 20px; cursor: pointer;
}
.topHeaderLinks .a11y-item button:hover,
.topHeaderLinks .a11y-item button[aria-expanded="true"] { color: #d9b35b; }
.topHeaderLinks .a11y-item button:focus-visible { outline: 2px solid #d9b35b; outline-offset: 3px; }

/* ---------- panel ---------- */
.a11y-panel {
    position: fixed; top: 70px; right: 20px; z-index: 99999;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 90px); overflow-y: auto;
    background: #fff; color: #222; padding: 16px 18px 18px;
    border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
    font-family: inherit; text-align: left;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; }
.a11y-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.a11y-close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; }
.a11y-panel h3 {
    margin: 16px 0 8px; padding-bottom: 4px; font-size: 14px; font-weight: 600;
    border-bottom: 1px solid #333;
}
.a11y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a11y-grid-2 { grid-template-columns: repeat(2, 1fr); }
.a11y-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 74px; padding: 8px 4px; background: #fff; color: #222;
    border: 1px solid #ddd; border-radius: 4px; cursor: pointer;
    font-size: 12px; line-height: 1.2; text-align: center;
}
.a11y-btn i { font-size: 18px; }
.a11y-btn:hover { background: #f2f5fa; }
.a11y-btn[aria-pressed="true"] { border: 2px solid var(--a11y-accent); color: var(--a11y-accent); background: #eef3fb; }
.a11y-panel button:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.a11y-reset-all {
    width: 100%; margin-top: 16px; padding: 8px; cursor: pointer;
    background: var(--a11y-accent); color: #fff; border: 0; border-radius: 4px; font-size: 13px;
}

/* ---------- features (classes set on <html>) ---------- */
html.a11y-hc body,
html.a11y-hc body *:not(img):not(video) {
    background-color: #000 !important; background-image: none !important;
    color: #fff !important; border-color: #fff !important;
    box-shadow: none !important; text-shadow: none !important;
}
html.a11y-hc a, html.a11y-hc a * { color: #ffd600 !important; }
html.a11y-hc .a11y-btn[aria-pressed="true"] { outline: 3px solid #ffd600; }

html.a11y-spacing body *:not(.a11y-panel):not(.a11y-panel *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-lineheight body *:not(.a11y-panel):not(.a11y-panel *) { line-height: 1.8 !important; }

html.a11y-noimg img, html.a11y-noimg video { visibility: hidden !important; }
html.a11y-noimg body *:not(.a11y-panel):not(.a11y-panel *) { background-image: none !important; }

html.a11y-cursor, html.a11y-cursor * {
    cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-7 2 4 8-3 1-4-8-5 5z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}

/* ---------- Screen Reader Access page ---------- */
a.a11y-btn { text-decoration: none; }

.sr-page { padding: 40px 15px 60px; background: #fafafa; }   /* raise padding-top if your header overlaps inner pages */
.sr-card {
    max-width: 1100px; margin: 0 auto; padding: 30px 44px 40px;
    background: #fff; border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,.08);
    font-size: 16px; line-height: 1.7; color: #333;
}
.sr-breadcrumb { font-size: 14px; margin-bottom: 8px; }
.sr-breadcrumb a { text-decoration: none; }
.sr-breadcrumb span { margin: 0 4px; }
.sr-title { text-align: center; font-size: 32px; font-weight: 700; color: #111; margin: 0 0 24px; }
.sr-title::after { content: ""; display: block; width: 36px; height: 4px; background: #c8102e; margin: 8px auto 0; }
.sr-card h2 { font-size: 22px; font-weight: 700; color: #111; margin: 28px 0 8px; }
.sr-table-wrap { overflow-x: auto; margin-top: 12px; }
.sr-table { width: 100%; border-collapse: collapse; }
.sr-table caption { padding: 10px 0; text-align: center; color: #333; }
.sr-table th { background: #9aa0ae; color: #111; text-align: left; padding: 10px 14px; border: 1px solid #777; }
.sr-table td { padding: 10px 14px; border: 1px solid #777; }
.sr-card kbd { background: #f1f1f1; border: 1px solid #ccc; border-radius: 3px; padding: 0 5px; font-size: 13px; }
@media (max-width: 600px) { .sr-card { padding: 20px 16px 30px; } .sr-title { font-size: 26px; } }

.topHeaderLinks .a11y-item,
.topHeaderLinks .translate-item {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    height: 22px;
}

    .topHeaderLinks .a11y-item button {
        display: flex;
        align-items: center;
        font-size: 20px;
    }

.topHeaderLinks .lang-btn,
.topHeaderLinks .lang-sep {
    line-height: 1;
}