/* Barra flutuante e ajustes de acessibilidade — Câmara Monte Azul */

.header-top-links a.is-current {
    text-decoration: underline;
    font-weight: 600;
    opacity: 1;
}

.a11y-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10001;
    padding: 12px 20px;
    background: var(--primary, #003366);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.a11y-skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
}

.a11y-toolbar-toggle {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9998;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #0d6e6e;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.a11y-toolbar-toggle:hover,
.a11y-toolbar-toggle:focus {
    background: #0a5555;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.a11y-toolbar-toggle[aria-expanded="true"] {
    background: var(--primary, #003366);
}

.a11y-toolbar-panel {
    position: fixed;
    left: 16px;
    bottom: 78px;
    z-index: 9998;
    width: min(320px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #c5d4e4;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.2);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.a11y-toolbar-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.a11y-toolbar-panel h2 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-family: Montserrat, sans-serif;
    color: var(--primary, #003366);
}

.a11y-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.a11y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #c5d4e4;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--primary, #003366);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.a11y-btn:hover,
.a11y-btn:focus {
    background: #e8eef4;
    border-color: var(--primary, #003366);
    outline: none;
}

.a11y-btn.is-active {
    background: var(--primary, #003366);
    color: #fff;
    border-color: var(--primary, #003366);
}

.a11y-btn-full {
    grid-column: 1 / -1;
}

.a11y-toolbar-footer {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #e8eef4;
    font-size: 0.78rem;
    text-align: center;
}

.a11y-toolbar-footer a {
    color: var(--primary, #003366);
    font-weight: 600;
}

/* Ajustes aplicados no documento */
html.a11y-font-1 {
    font-size: 106.25%;
}

html.a11y-font-2 {
    font-size: 118.75%;
}

html.a11y-font-3 {
    font-size: 131.25%;
}

html.a11y-underline-links a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

html.a11y-spacing p,
html.a11y-spacing li,
html.a11y-spacing .service-tile-body p,
html.a11y-spacing .section-subtitle {
    line-height: 1.75 !important;
}

html.a11y-spacing p + p,
html.a11y-spacing li + li {
    margin-top: 0.65em !important;
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

html.a11y-contrast body {
    background: #000 !important;
    color: #fff !important;
}

html.a11y-contrast .header-top,
html.a11y-contrast .header-brand,
html.a11y-contrast .header-nav,
html.a11y-contrast #site-header {
    background: #000 !important;
    border-bottom: 2px solid #ff0 !important;
}

html.a11y-contrast .header-top-links a,
html.a11y-contrast .header-nav a,
html.a11y-contrast .header-nav button,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast h4,
html.a11y-contrast p,
html.a11y-contrast li,
html.a11y-contrast label,
html.a11y-contrast span,
html.a11y-contrast td,
html.a11y-contrast th {
    color: #fff !important;
}

html.a11y-contrast a {
    color: #ff0 !important;
}

html.a11y-contrast .service-tile,
html.a11y-contrast .ouvidoria-action-card,
html.a11y-contrast .contato-card,
html.a11y-contrast .faq-item,
html.a11y-contrast .a11y-card,
html.a11y-contrast .doc-download-card,
html.a11y-contrast main,
html.a11y-contrast .page-main,
html.a11y-contrast section,
html.a11y-contrast footer,
html.a11y-contrast .a11y-toolbar-panel {
    background: #111 !important;
    border-color: #ff0 !important;
    color: #fff !important;
}

html.a11y-contrast .a11y-btn {
    background: #222 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

html.a11y-contrast .a11y-btn.is-active {
    background: #ff0 !important;
    color: #000 !important;
}

html.a11y-contrast img {
    filter: contrast(1.1);
}

/* Página Acessibilidade */
.page-acessibilidade .a11y-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(135deg, #e8f4f4 0%, #f0f7ff 100%);
    border: 1px solid #b8d4e8;
    border-radius: 12px;
    margin-bottom: 32px;
}

.page-acessibilidade .a11y-hero-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0d6e6e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.page-acessibilidade .a11y-hero-lead {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 8px 0 0;
    line-height: 1.55;
}

.a11y-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.a11y-card {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.06);
}

.a11y-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.a11y-card h3 i {
    color: #0d6e6e;
}

.a11y-card p,
.a11y-card li {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.55;
    margin: 0 0 10px;
}

.a11y-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.a11y-page-controls {
    background: #f8fafc;
    border: 1px solid #c5d4e4;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.a11y-page-controls h3 {
    margin: 0 0 16px;
    color: var(--primary);
}

.a11y-page-controls .a11y-toolbar-actions {
    max-width: 480px;
}

.a11y-vlibras-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff8e6;
    border: 1px solid #e8c96a;
    border-radius: 10px;
    margin-top: 24px;
}

.a11y-vlibras-note img {
    height: 40px;
    width: auto;
}

@media (max-width: 576px) {
    .a11y-toolbar-toggle {
        left: 12px;
        bottom: 12px;
        width: 48px;
        height: 48px;
    }

    .a11y-toolbar-panel {
        left: 12px;
        bottom: 68px;
    }

    .page-acessibilidade .a11y-hero {
        flex-direction: column;
    }
}
