html[data-a11y-size="125"] { font-size: 125%; }
html[data-a11y-size="150"] { font-size: 150%; }

html.a11y-space body { line-height: 1.9; letter-spacing: 0.02em; }
html.a11y-space p,
html.a11y-space li { margin-bottom: 1rem; }

html.a11y-links a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

html.a11y-motion,
html.a11y-motion * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html.a11y-contrast {
    --navy: #000000;
    --navy-soft: #111111;
    --teal: #ffff00;
    --teal-dark: #ffff00;
    --paper: #000000;
    --white: #000000;
    --ink: #ffff00;
    --muted: #ffffff;
    --line: #ffff00;
}

html.a11y-contrast body {
    background: #000;
    color: #ffff00;
}

html.a11y-contrast .page-banner,
html.a11y-contrast .page-sheet,
html.a11y-contrast .page-facts article {
    background: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

html.a11y-contrast a,
html.a11y-contrast .kicker,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast label,
html.a11y-contrast .legal {
    color: #ffff00 !important;
}

html.a11y-contrast .btn-primary,
html.a11y-contrast .highlight,
html.a11y-contrast .a11y-fab {
    background: #ffff00 !important;
    color: #000 !important;
    border-color: #ffff00 !important;
}

html.a11y-contrast input,
html.a11y-contrast select,
html.a11y-contrast textarea {
    background: #000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

html.a11y-contrast :focus-visible {
    outline: 3px solid #ffff00;
    outline-offset: 3px;
}

.a11y-fab {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 80;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 2px solid var(--navy);
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(11, 37, 69, 0.28);
}

.a11y-fab:hover { filter: brightness(1.08); }

.wa-float { right: 1rem; left: auto; }

.a11y-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 37, 69, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
}

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

.a11y-dialog {
    background: #fff;
    color: var(--ink);
    width: min(22rem, 100%);
    max-height: min(90vh, 36rem);
    overflow: auto;
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.3rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.a11y-dialog h2 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.a11y-intro {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.a11y-dialog fieldset {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.85rem;
}

.a11y-dialog legend {
    padding: 0 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.a11y-sizes {
    display: flex;
    gap: 0.45rem;
}

.a11y-sizes button {
    flex: 1;
    min-height: 2.6rem;
    border: 2px solid var(--navy);
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
}

.a11y-sizes button[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
}

.a11y-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.a11y-check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.a11y-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.a11y-actions .btn { flex: 1; min-height: 2.6rem; }

.a11y-more {
    margin-top: 0.85rem;
    font-size: 0.88rem;
}

html.a11y-contrast .a11y-dialog {
    background: #000;
    color: #ffff00;
    border: 2px solid #ffff00;
}

html.a11y-contrast .a11y-sizes button {
    border-color: #ffff00;
    background: #000;
    color: #ffff00;
}

html.a11y-contrast .a11y-sizes button[aria-pressed="true"] {
    background: #ffff00;
    color: #000;
}

@media (max-width: 480px) {
    .a11y-fab { left: 0.7rem; bottom: 0.7rem; }
}
