/* Gerenciador de bots — CSS acessível (contraste alto, foco visível, sem ícones) */
:root {
  --fundo: #ffffff;
  --texto: #1a1a1a;
  --destaque: #003a70;      /* azul escuro, contraste AA+ sobre branco */
  --vinculo: #0047ab;
  --borda: #8794a0;
  --erro-bg: #ffe9e9;
  --erro-txt: #8a1f1f;
  --ok-bg: #e7f6e7;
  --ok-txt: #1e5b1e;
  --aviso-bg: #fff3d9;
  --aviso-txt: #6b4d00;
  --foco: 4px solid #003a70;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 60rem;
  padding: 1rem 1.5rem 3rem;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--texto);
  background: var(--fundo);
}

a { color: var(--vinculo); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: var(--foco);
  outline-offset: 3px;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--destaque);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.cabecalho {
  border-bottom: 2px solid var(--borda);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.marca { font-size: 1.15rem; margin: 0; }

.nav-principal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0.4rem 0 0;
  padding: 0;
}
.nav-principal a, .nav-principal button.link-botao {
  font-size: 1rem;
}
.link-botao {
  background: none;
  border: none;
  color: var(--vinculo);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.inline { display: inline; }

h1 { font-size: 1.7rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; }

.destaque { color: var(--texto); font-style: normal; }
.contagem { font-weight: 600; }
.dica { font-size: 0.92rem; color: #333; margin: 0.2rem 0 0.8rem; }
.anuncio { min-height: 1rem; }

.alerta {
  border: 2px solid;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
.erro { background: var(--erro-bg); border-color: var(--erro-txt); color: var(--erro-txt); }
.sucesso { background: var(--ok-bg); border-color: var(--ok-txt); color: var(--ok-txt); }
.aviso { background: var(--aviso-bg); border-color: var(--aviso-txt); color: var(--aviso-txt); }

form { margin: 1.25rem 0; }
fieldset {
  border: 2px solid var(--borda);
  border-radius: 6px;
  padding: 1rem 1.2rem 1.2rem;
  margin: 0 0 1rem;
}
legend { font-weight: 700; padding: 0 0.4rem; }

.campo { margin-bottom: 1rem; }
.campo label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.campo input[type="text"],
.campo input[type="search"],
.campo input[type="password"],
.campo textarea {
  width: 100%;
  max-width: 34rem;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--borda);
  border-radius: 4px;
}
.campo input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.4rem;
}
.inline-label { display: inline-block !important; font-weight: 600; }

.botao, .botao-primario, .botao-perigo {
  border: 2px solid var(--destaque);
  border-radius: 4px;
  padding: 0.55rem 1rem;
  background: var(--destaque);
  color: #fff;
  font-weight: 600;
  margin-right: 0.6rem;
}
.botao-perigo { border-color: #8a1f1f; background: #8a1f1f; }
.botao-primario { font-size: 1.05rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  border: 1px solid var(--borda);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { background: #eef2f6; }
caption.visually-hidden, .visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.acoes { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.lista-comandos li, .lista-eventos li { margin-bottom: 0.4rem; }

.info-bot {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1.5rem;
}
.info-bot dt { font-weight: 700; }
.info-bot dd { margin: 0; }

.estado-vazio {
  border: 2px dashed var(--borda);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1rem 0;
}
.estado-vazio h2 { margin-top: 0; }

.form-busca { display: flex; gap: 0.8rem; align-items: flex-end; flex-wrap: wrap; }

.paginacao { display: flex; gap: 1rem; align-items: baseline; margin-top: 1rem; }

code {
  background: #f1f3f5;
  border: 1px solid var(--borda);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  font-size: 0.95em;
}

.rodape {
  margin-top: 3rem;
  border-top: 1px solid var(--borda);
  padding-top: 0.75rem;
  color: #333;
}