/* Controles de acessibilidade integrados à navbar: contraste, escala de fonte, idioma e VLibras */

.a11y-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.a11y-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.a11y-pill:hover,
.a11y-pill:focus {
    background: rgba(255,255,255,.24);
    border-color: rgba(255,255,255,.45);
    color: #fff;
    text-decoration: none;
}

.a11y-pill:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.a11y-pill.active {
    background: #fff;
    color: var(--blue-600, #004277);
    border-color: #fff;
}

.navbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue-600, #004277);
    font-size: 11px;
    font-weight: 700;
    flex: none;
}

.a11y-sep {
    color: rgba(255,255,255,.35);
    font-size: 16px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    pointer-events: none;
}


/* Botão flutuante do VLibras oculto: o widget é aberto pelo botão #vlibras-toggle da navbar */
#vlibras-access-wrapper {
    display: none !important;
}

/* Escala de fonte (aplicada na <html>) */
html.a11y-font-1 { font-size: 106.25%; }
html.a11y-font-2 { font-size: 112.5%; }
html.a11y-font-3 { font-size: 118.75%; }

/* Alto contraste (aplicado na <html>) */
html.a11y-high-contrast,
html.a11y-high-contrast body {
    background: #000 !important;
    color: #fff !important;
}

html.a11y-high-contrast a {
    color: #ffd400 !important;
}

html.a11y-high-contrast .navbar {
    background: #000 !important;
    border-bottom: 1px solid #fff !important;
}

html.a11y-high-contrast img {
    filter: grayscale(100%) contrast(120%);
}

html.a11y-high-contrast *:not(.navbar):not(.navbar *) {
    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-high-contrast *::before,
html.a11y-high-contrast *::after {
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.a11y-high-contrast button,
html.a11y-high-contrast .btn,
html.a11y-high-contrast input,
html.a11y-high-contrast select,
html.a11y-high-contrast textarea {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}
