/* Explain: Styles for the accessibility widget and its states. */
/* Accessibility widget + user preference states */
.a11y-fab {
    position: fixed;
    bottom: 1.25rem;
    inset-inline-start: 1.25rem;
    z-index: 60;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.35rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 12px 30px rgba(31, 29, 26, .25);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.a11y-fab:hover {
    transform: scale(1.06);
    background: var(--accent-color);
    color: #241d10;
}

.a11y-panel {
    position: fixed;
    bottom: 5.5rem;
    inset-inline-start: 1.25rem;
    z-index: 60;
    width: min(20rem, calc(100vw - 2.5rem));
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(31, 29, 26, .18);
    padding: 1rem;
}

.a11y-panel h2 {
    font-size: 1rem;
    margin: 0 0 .75rem;
}

.a11y-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.a11y-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem .5rem;
    border: 1px solid var(--border-color);
    border-radius: .6rem;
    background: var(--background-color);
    color: var(--text-color);
    font-size: .8rem;
    line-height: 1.2;
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.a11y-action:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.a11y-action.is-on {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.a11y-link {
    display: block;
    margin-top: .75rem;
    text-align: center;
    font-size: .82rem;
    color: var(--accent-color);
}

.a11y-link:hover {
    text-decoration: underline;
}

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

html.a11y-underline a {
    text-decoration: underline;
}

html.a11y-contrast {
    --background-color: #ffffff;
    --surface-color: #ffffff;
    --text-color: #000000;
    --text-muted: #1a1a1a;
    --border-color: #000000;
    --accent-color: #000000;
    --accent-soft: #e5e5e5;
    --primary-color: #000000;
    --primary-hover: #333333;
}