﻿﻿﻿:root {
    color-scheme: light;
    --font-scale: 1; /* 1 = 100%, 1.1 = 110%, etc. */
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #eef2f7;
    color: #1f1f1f;
    margin: 0;
    padding: 0 24px 32px;
    line-height: 1.55;
    transition: background-color 0.25s ease, color 0.25s ease;
    font-size: calc(100% * var(--font-scale));
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, #134a9c 0%, #1c65d6 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    margin: 0 -24px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.brand-text h1 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.02em;
}

.version-tag {
    font-size: 0.85rem;
    opacity: 0.85;
}

.main-nav {
    display: flex;
    gap: 10px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.search-container,
.results-container {
    background-color: #fff;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 33, 77, 0.08);
    margin-bottom: 18px;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 140px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.search-form button {
    padding: 8px;
    border: 1px solid #c6cfdd;
    border-radius: 12px;
    font: inherit;
}

.search-form button {
    background-color: #1a73e8;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.search-form button:hover,
.search-form button:focus-visible {
    background-color: #155bb5;
    transform: translateY(-1px);
    outline: none;
}

.status {
    margin-top: 10px;
    font-weight: 600;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: fixed;
    background: transparent;
}

.results-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    border: none;
    color: #57627b;
}

.results-table tbody tr {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 33, 77, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.results-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 33, 77, 0.18);
}

.results-table td {
    border: none;
    padding: 12px 16px;
    vertical-align: top;
    color: #2a2e39;
}

.col-issue {
    width: 120px;
    font-weight: 700;
    font-size: 0.95rem;
}

.col-publication {
    width: auto;
}

.col-publication strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
    color: #123066;
}

.col-publication .management-info,
.col-publication .publication-date {
    display: block;
    font-size: 0.85rem;
    color: #4a5874;
    line-height: 1.35;
}

.col-publication .publication-date {
    color: #1f3154;
    margin-top: 2px;
}

.col-size {
    width: 90px;
    text-align: center;
    font-weight: 600;
}

.col-actions {
    width: 100px;
    text-align: center;
}

.snippet {
    margin: 0;
    color: #424a5f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    font-size: 0.92rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a73e8, #63a4ff);
    color: #fff;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.download-link:hover,
.download-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.35);
    outline: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.pagination button {
    background-color: #e0e6ef;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.site-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95rem;
    color: #4a4f61;
}

.site-footer a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body.contrast-mode {
    background-color: #0a0a0a;
    color: #f5f5f5;
}

body.contrast-mode .topbar {
    background: #000;
    box-shadow: none;
}

body.contrast-mode .search-container,
body.contrast-mode .results-container,
body.contrast-mode .results-table tbody tr {
    background-color: #111;
    color: #f5f5f5;
    box-shadow: none;
}

body.contrast-mode .results-table thead th,
body.contrast-mode .col-publication small,
body.contrast-mode .site-footer {
    color: #dcdcdc;
}

body.contrast-mode .download-link {
    background: #f5f5f5;
    color: #0a0a0a;
}

body.calm-mode {
    background-color: #f8f5ec;
    color: #2b2b2b;
    letter-spacing: 0.02em;
}

body.calm-mode .topbar {
    background: #254977;
    box-shadow: none;
}

body.calm-mode .search-container,
body.calm-mode .results-container,
body.calm-mode .results-table tbody tr {
    background-color: #faf5e9;
    box-shadow: none;
}

body.calm-mode .download-link {
    background: linear-gradient(135deg, #274f93, #5f86d9);
}

body.calm-mode * {
    transition: none !important;
}

.main-nav a:focus-visible,
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid #ffb300;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    body {
        padding: 0 12px 24px;
    }

    .topbar {
        margin: 0 -12px 20px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .results-table thead {
        display: none;
    }

    .results-table {
        border-spacing: 0 16px;
    }

    .results-table tbody tr {
        display: block;
        padding: 14px;
    }

    .results-table td {
        display: block;
        width: 100%;
        padding: 4px 0;
    }

    .col-size,
    .col-actions {
        text-align: left;
        margin-top: 6px;
    }

    .download-link {
        width: 40px;
        height: 40px;
        
    }
}
/* Corrige imagem do FAB caso exista regra global para img */
.bot-launcher {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    padding: -00px;
    box-shadow: 0 12px 24px rgba(14, 31, 72, 0.25);
    background: linear-gradient(135deg, #0f3b, #1f6ae2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 40;
}

.bot-launcher:hover,
.bot-launcher:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 30px rgba(14, 31, 72, 0.35);
}

.bot-launcher img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.bot-panel {
    position: fixed;
    bottom: 112px;
    right: 32px;
    width: 360px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 160px);
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 56px rgba(15, 33, 77, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
}

.bot-panel.bot-panel--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #113f8c, #1c65d6);
    color: #fff;
}

.bot-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-header-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px;
}

.bot-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
}

.bot-close:hover,
.bot-close:focus-visible {
    background-color: rgba(255, 255, 255, 0.18);
}

.bot-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, rgba(228, 236, 250, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.bot-message {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 90%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(40, 52, 105, 0.08);
}

.bot-message--user {
    margin-left: auto;
    background: linear-gradient(135deg, #1a73e8, #3c8bff);
    color: #fff;
}

.bot-message--bot {
    background-color: #fff;
    color: #1f1f1f;
}

.bot-message p {
    margin: 0;
}

.bot-results {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-results__item {
    background: rgba(16, 61, 133, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-results__item-title {
    font-weight: 600;
    color: #0f3d85;
    margin: 0;
}

.bot-results__item-title a {
    color: inherit;
    text-decoration: none;
}

.bot-results__item-title a:hover,
.bot-results__item-title a:focus-visible {
    text-decoration: underline;
}

.bot-results__item-meta {
    font-size: 0.85rem;
    color: #4a5874;
}

.bot-results__item-snippet {
    font-size: 0.9rem;
    color: #1f1f1f;
    margin: 0;
}

.bot-results__item-snippet em {
    background-color: #ffec3d; /* Amarelo para destaque */
    color: #1f1f1f; /* Cor do texto escura para legibilidade */
    font-style: normal;
    font-weight: 600;
}

.bot-form {
    display: flex;
    gap: 8px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(20, 56, 120, 0.15);
    background-color: #f4f6fb;
}

.bot-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #c6cfdd;
    border-radius: 12px;
    font: inherit;
}

.bot-form button {
    width: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1a73e8, #4b8fff);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bot-form button:hover,
.bot-form button:focus-visible {
    background: linear-gradient(135deg, #155ec0, #3a7bea);
}

@media (max-width: 720px) {
    .bot-launcher {
        bottom: 24px;
        right: 16px;
        width: 56px;
        height: 56px;
        padding: 10px;
    }

    .bot-panel {
        bottom: 96px;
        right: 16px;
        width: calc(100% - 32px);
        max-height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    .bot-panel {
        bottom: 88px;
        right: 12px;
        width: calc(100% - 24px);
    }

    .bot-form {
        padding: 12px 16px 16px;
    }
}
.bot-results__note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #4a5874;
}



.bot-results__status {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #4a5874;
}

.bot-results__pagination {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bot-results__page-btn {
    border: none;
    background: linear-gradient(135deg, #1a73e8, #4b8fff);
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bot-results__page-btn:disabled {
    opacity: 0.5;
    cursor: default;
    background: #d7deef;
    color: #5c6887;
}

.bot-results__page-info {
    font-size: 0.85rem;
    color: #1f3154;
    font-weight: 600;
}
    /* INÍCIO: BotDiário – links sem fundo azul */
.bot-results__item-title a.download-link,
.bot-results__item-title a.download-link:visited {
  display: inline;
  padding: 0;
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  border: 0 !important;
  text-decoration: underline; /* mantém só o sublinhado */
  color: inherit;
}
.bot-results__item-title a.download-link:hover,
.bot-results__item-title a.download-link:focus,
.bot-results__item-title a.download-link:active,
.bot-results__item-title a.download-link:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: underline;
}
/* FIM: BotDiário – links sem fundo azul */
/* --- Estilos para o Indicador de Carregamento (Spinner) --- */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 200px;
}

.spinner {
    border: 5px solid #e0e6ef; /* Cinza claro */
    border-top: 5px solid #1a73e8; /* Azul */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Estilos para o Painel de Estatísticas --- */
.stats-container {
    background-color: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 33, 77, 0.08);
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 16px;
}

.stat-item {
    text-align: center;
    color: #4a5874;
    font-size: 0.9rem;
}

/* --- Estilos para o Botão "Voltar ao Topo" --- */
#back-to-top {
  position: fixed;
  bottom: 120px; /* Posicionado acima do botão do bot */
  right: 12px;
  width: 48px;
  height: 48px;
  background-color: #4c5fc7;
  color: #f5f3f3;
  border: none;
  border-radius: 50%;
  display: none; /* Escondido por padrão */
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
  z-index: 30;
  transition: opacity 0.3s, transform 0.3s;
}

#back-to-top:hover {
  background-color: #1f3154;
  transform: translateY(-2px);
}

/* Destaque dos termos no BotDiário */
.bot-results mark.bot-hi,
.bot-results__item-title mark.bot-hi {
  font-weight: 800;        /* deixa em negrito */
  background: #ffec99;     /* troque para 'transparent' se quiser só negrito */
  color: inherit;
  padding: 0 .08rem;
  border-radius: 2px;
}

/* INÍCIO: estilos do contador ao vivo */
.live-stats{
  display:flex; gap:.6rem; justify-content:center; align-items:center;
  font-size:.95rem; opacity:.9; margin-top:.5rem;
}
.live-stats strong{ font-variant-numeric: tabular-nums; }
/* FIM: estilos do contador ao vivo */

/* Estatísticas (pílulas) */
.stats{
  display:flex; align-items:center; justify-content:center;
  gap:.75rem; flex-wrap:wrap; font-size:.95rem;
}
.stats .stat{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.35rem .6rem; border-radius:999px;
  background:#f4f6f8; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.stats .stat svg{opacity:.75}
.stats .stat b{font-variant-numeric: tabular-nums; font-weight:700}
.stats .stat small{opacity:.7}
.stats .sep{width:4px;height:4px;background:#c9d1d9;border-radius:50%}

@media (prefers-color-scheme: dark){
  .stats .stat{ background:rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
  .stats .sep{background:rgba(255,255,255,.25)}
}
/* INÍCIO: estilos A11Y NAV */
.a11y-nav {
  display: flex;
  gap: .75rem;
  align-items: center;
}

/* Botões “pílula” */
.a11y-nav .pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.a11y-nav .pill:hover { background: rgba(255,255,255,.25); }
.a11y-nav .pill[aria-pressed="true"] {
  background: #fff;
  color: #0A4ADB;
}

/* “Ícone” monograma */
.pill__icon {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: currentColor;
  color: #0A4ADB;     /* contraste sobre o círculo quando desmarcado */
  font-size: .8rem;
  font-weight: 900;
}
.pill[aria-pressed="true"] .pill__icon {
  background: #0A4ADB;
  color: #fff;        /* contraste quando ativo */
}

/* Skip link visível ao focar via teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: .75rem;
  width: auto; height: auto;
  z-index: 1000;
  background: #fff;
  color: #0A4ADB;
  padding: .5rem .75rem;
  border-radius: .5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ===== MODOS ===== */

/* 1) Baixa visão: contraste + fonte maior + foco forte */
body.a11y-lowvision { color: #0B0B0B; background-color: #ffffff; }
body.a11y-lowvision a { text-decoration: underline; }
body.a11y-lowvision *:focus { outline: 3px solid #FFB000; outline-offset: 2px; }

/* 2) Modo TEA (calmo): menos transições/animações + sombras/saturação moderadas */
body.a11y-calm * { animation: none !important; transition: none !important; }
body.a11y-calm { filter: saturate(0.85); }
body.a11y-calm .topbar, body.a11y-calm .results-container, body.a11y-calm .search-container { box-shadow: none !important; }

/* 3) Leitor de tela: foco reforçado (visual) */
body.a11y-sr *:focus { outline: 3px dashed #0A4ADB !important; outline-offset: 3px; }
/* FIM: estilos A11Y NAV */
/* INÍCIO: refinamento visual dos botões A11Y */
.topbar .a11y-nav { margin-left: auto; }              /* joga os botões para a direita */
.a11y-nav .pill{
  border:1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.08) inset, 0 2px 10px rgba(0,0,0,.06);
  padding:.45rem .9rem;
}
.a11y-nav .pill:focus-visible{
  outline:3px solid #FFB000; outline-offset:2px;
}

/* indicador tipo “dot”: contorno quando desligado, cheio quando ligado */
.pill__icon{
  width:.9rem; height:.9rem;
  background: transparent;
  border:2px solid currentColor;
  color:#0A4ADB;
}
.pill[aria-pressed="true"] .pill__icon,
.pill[role="switch"][aria-checked="true"] .pill__icon{
  background: currentColor;
  border-color: currentColor;
  color:#fff;
}

/* estado ligado: fundo branco + texto azul + leve realce */
.pill[aria-pressed="true"],
.pill[role="switch"][aria-checked="true"]{
  background:#fff; color:#0A4ADB;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
/* FIM: refinamento visual dos botões A11Y */
/* INÍCIO: Estilos unificados para controles de acessibilidade */
.a11y-controls-wrapper {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto; /* Alinha todo o bloco à direita */
}

:root {
  --a11y-text: #e6eaf2;
  --a11y-border: rgba(255, 255, 255, 0.25);
  --a11y-hover: rgba(255, 255, 255, 0.08);
  --a11y-focus: rgba(255, 255, 255, 0.35);
  --a11y-accent: #9eb8ff;
}

/* Estilo base para todos os botões de acessibilidade */
.font-controls .font-control-btn,
.a11y-reader .a11y-btn {
  background: transparent;
  color: var(--a11y-text);
  border: 1px solid var(--a11y-border);
  border-radius: 9999px;
  padding: .45rem .9rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.font-controls .font-control-btn:hover,
.a11y-reader .a11y-btn:hover {
  background: var(--a11y-hover);
}

.font-controls .font-control-btn:focus-visible,
.a11y-reader .a11y-btn:focus-visible {
  outline: 2px solid var(--a11y-focus);
  outline-offset: 2px;
}

.a11y-reader .a11y-rate { color: var(--a11y-text); font-size: .9rem; }
.a11y-reader input[type="range"] { accent-color: var(--a11y-accent); }
/* FIM: Estilos unificados para controles de acessibilidade */

/* TTS: destaque da palavra */
.tts-hi{ background:#ffec99; border-radius:2px; padding:0 .06em; }

/* INÍCIO: estilos Modal Mapa do Site */
.sitemap-modal[hidden]{ display:none; }
.sitemap-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  backdrop-filter:saturate(90%) blur(2px);
  z-index:1000;
}
.sitemap-dialog{
  position:fixed; inset:auto 0 0 0; margin:auto;
  max-width:920px; width:95%;
  background:#fff; color:#0b0b0b; border-radius:16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  z-index:1001; padding:0;
}
@media (min-width: 700px){
  .sitemap-dialog{ top:10%; bottom:auto; }
}
@media (prefers-color-scheme: dark){
  .sitemap-dialog{ background:#0f172a; color:#e5e7eb; }
}
.sitemap-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px; border-bottom:1px solid rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark){
  .sitemap-header{ border-color:rgba(255,255,255,.08); }
}
.sitemap-header h3{ margin:0; font-size:1.1rem; }
.sitemap-close{
  background:transparent; border:0; font-size:1.6rem; line-height:1;
  cursor:pointer; color:inherit;
}
.sitemap-body{ padding:14px 18px 18px; }
.sitemap-list{
  display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin:12px 0 0; padding:0; list-style:none;
}
.sitemap-list li{
  border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:12px;
  background:#f8fafc;
}
.sitemap-list h4{ margin:.1rem 0 .25rem; font-size:1rem; }
.sitemap-list p{ margin:0 0 .6rem; font-size:.9rem; opacity:.85; }
.sitemap-goto{
  border:1px solid rgba(0,0,0,.12); background:#fff; color:#0A4ADB;
  border-radius:999px; padding:.35rem .8rem; font-weight:700; cursor:pointer;
}
.sitemap-goto:hover{ background:#f1f5ff; }
@media (prefers-color-scheme: dark){
  .sitemap-list li{ background:#0b1222; border-color:rgba(255,255,255,.08); }
  .sitemap-goto{ background:#0f172a; border-color:rgba(255,255,255,.12); color:#93c5fd; }
  .sitemap-goto:hover{ background:#0b1222; }
}

/* destaque da seção ao clicar em "Ver" */
.site-highlight{
  outline:3px dashed #0A4ADB; outline-offset:3px;
  animation: sitePulse .9s ease-out 2;
}
@keyframes sitePulse{
  0%{ box-shadow:0 0 0 0 rgba(10,74,219,.35); }
  100%{ box-shadow:0 0 0 16px rgba(10,74,219,0); }
}
/* FIM: estilos Modal Mapa do Site */

/* ====== TOPO PRETO + CONTRASTE ====== */
:root{
  /* você pode trocar aqui se quiser outro tom */
  --topbar-bg: #0B0B0E;   /* quase-preto */
  --topbar-bg-2:#000000;  /* preto puro */
  --topbar-text:#FFFFFF;  /* texto do topo */
  --brand-accent:#0A4ADB; /* azul da marca (para estados ativos) */
}

/* barra inteira preta (substitui o gradiente azul) */
.topbar{
  background: linear-gradient(0deg,var(--topbar-bg),var(--topbar-bg-2));
  color: var(--topbar-text);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* textos/links dentro do topo */
.topbar h1,
.topbar small,
.topbar a{
  color: var(--topbar-text);
}

/* opcional: deixar o subtítulo um pouco translúcido p/ suavizar */
.topbar small{ opacity:.85 }

/* ====== Pílulas de acessibilidade no topo (melhor contraste no fundo preto) ====== */
.a11y-nav{ margin-left:auto }   /* mantém alinhado à direita */

.a11y-nav .pill{
  color:#EAF0FF;                         /* texto claro */
  background: rgba(255,255,255,.08);     /* leve translucido */
  border:1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.08) inset, 0 2px 10px rgba(0,0,0,.20);
  padding:.48rem .95rem;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.a11y-nav .pill:hover{ background: rgba(255,255,255,.14) }
.a11y-nav .pill:focus-visible{
  outline:3px solid #FFB000; outline-offset:2px;   /* foco forte e acessível */
}

/* “dot” (ícone redondo) com contorno bom no preto */
.pill__icon{
  width:.9rem; height:.9rem; flex:0 0 auto;
  border-radius:999px;
  border:2px solid currentColor;
  background: transparent;
}

/* estado LIGADO: fundo branco + texto azul da marca */
.pill[aria-pressed="true"],
.pill[role="switch"][aria-checked="true"]{
  background:#FFFFFF;
  color:var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.pill[aria-pressed="true"] .pill__icon,
.pill[role="switch"][aria-checked="true"] .pill__icon{
  background: currentColor;
  border-color: currentColor;
  color:#FFFFFF;
}

/* INÍCIO: estilos Acessibilidade rápida no Mapa do Site */
.sitemap-dialog .a11y-mini{
  display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .6rem;
  margin:.4rem 0 1rem;
}
.sitemap-dialog .a11y-mini .pill{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.4rem .8rem; border-radius:999px; cursor:pointer;
  background:#f2f5fb; color:#0b1a34; border:1px solid rgba(0,0,0,.08);
  font-weight:700; line-height:1;
}
.sitemap-dialog .a11y-mini .pill:hover{ background:#e9eef9; }
.sitemap-dialog .a11y-mini .pill:focus-visible{ outline:3px solid #FFB000; outline-offset:2px; }
.sitemap-dialog .a11y-mini .pill[aria-checked="true"]{
  background:#0A4ADB; color:#fff; border-color:#0A4ADB;
}
.sitemap-dialog .a11y-mini .pill__icon{
  width:.9rem; height:.9rem; border-radius:999px;
  border:2px solid currentColor; background:transparent;
}
.sitemap-dialog .a11y-mini .pill[aria-checked="true"] .pill__icon{
  background:#fff; border-color:#fff; color:#0A4ADB;
}
.sitemap-dialog .a11y-mini .mini-sep{
  width:6px; height:6px; border-radius:50%; background:rgba(0,0,0,.25);
}
@media (prefers-color-scheme: dark){
  .sitemap-dialog .a11y-mini .pill{
    background:#0f172a; color:#e5e7eb; border-color:rgba(255,255,255,.12);
  }
  .sitemap-dialog .a11y-mini .pill:hover{ background:#111c33; }
  .sitemap-dialog .a11y-mini .pill[aria-checked="true"]{
    background:#2563eb; border-color:#2563eb;
  }
  .sitemap-dialog .a11y-mini .mini-sep{ background:rgba(255,255,255,.25); }
}
/* FIM: estilos Acessibilidade rápida no Mapa do Site */


/* INÍCIO: Mapa do Site — vidro translúcido legível */
.sitemap-backdrop{
  /* leve escurecido do fundo, ainda mostrando a página */
  background: rgba(3, 6, 23, .40);
  backdrop-filter: blur(2px) saturate(0.95);
}

/* painel com vidro: translúcido e nítido para leitura */
.sitemap-dialog{
  background: rgba(255,255,255,.78);
  color:#0b0b0b;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) contrast(1.02);
  backdrop-filter: blur(14px) saturate(1.2) contrast(1.02);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

/* cartões internos também translúcidos */
.sitemap-list li{
  background: rgba(255,255,255,.60);
  border-color: rgba(0,0,0,.06);
}

/* botão “Ver” com leve transparência */
.sitemap-goto{
  background: rgba(255,255,255,.85);
  border-color: rgba(0,0,0,.12);
}

/* Dark mode coerente (tom sobre tom) */
@media (prefers-color-scheme: dark){
  .sitemap-dialog{
    background: rgba(15,23,42,.72);     /* slate-900 translúcido */
    color:#e5e7eb;
    border-color: rgba(148,163,184,.25); /* slate-400 */
  }
  .sitemap-list li{
    background: rgba(11,18,34,.62);
    border-color: rgba(148,163,184,.22);
  }
  .sitemap-goto{
    background: rgba(15,23,42,.65);
    border-color: rgba(148,163,184,.30);
    color:#93c5fd;
  }
}

/* Fallback se o navegador não suportar backdrop-filter: usa fundo sólido */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .sitemap-dialog{ background:#ffffff; }
  @media (prefers-color-scheme: dark){ .sitemap-dialog{ background:#0f172a; } }
}
/* FIM: Mapa do Site — vidro translúcido legível */

