/* Painel de controles de leitura — gerado automaticamente */

/* Fix: inline color/background dos documentos colados no modo escuro do tema */
[data-md-color-scheme="slate"] .md-content__inner *,
[data-md-color-scheme="slate"] .md-content article * {
  color: inherit !important;
  background-color: transparent !important;
}

/* Modo Noturno (fundo preto para máximo contraste) */
body.rdr-nocturno .md-content__inner {
  background-color: #050505 !important;
  color: #e0e0e0 !important;
}
body.rdr-nocturno .md-content__inner * {
  color: inherit !important;
  background-color: transparent !important;
}
body.rdr-nocturno .md-content__inner pre,
body.rdr-nocturno .md-content__inner code {
  background-color: #141414 !important;
}

/* Botões prev/next e page-info: estilos aplicados 100% via JS (sem conflito de especificidade) */

#rdr-wrap {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  font-family: inherit;
}
.rdr-panel {
  background: var(--md-default-bg-color, #fff);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: .5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  padding: .9rem 1rem;
  min-width: 205px;
  margin-bottom: .55rem;
}
[data-md-color-scheme="slate"] .rdr-panel {
  border-color: rgba(255,255,255,.14);
}
.rdr-label {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light, #666);
  margin: 0 0 .4rem;
}
.rdr-label + .rdr-label { margin-top: .75rem; }
.rdr-row { display: flex; align-items: center; gap: .35rem; }
.rdr-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .3rem;
  color: var(--md-default-fg-color, #333);
  cursor: pointer;
  font-size: .8rem;
  padding: .22rem .5rem;
  transition: background .12s;
}
.rdr-btn:hover { background: rgba(0,0,0,.07); }
.rdr-btn:disabled { opacity: .4; cursor: default; }
.rdr-btn.active {
  background: var(--md-primary-fg-color, #1976d2);
  border-color: var(--md-primary-fg-color, #1976d2);
  color: var(--md-primary-bg-color, #fff);
}
[data-md-color-scheme="slate"] .rdr-btn { border-color: rgba(255,255,255,.2); }
.rdr-val {
  font-size: .85rem;
  font-weight: 700;
  min-width: 38px;
  text-align: center;
  color: var(--md-default-fg-color, #333);
}
.rdr-flex { flex: 1; text-align: center; }
.rdr-toggle {
  display: block;
  margin-left: auto;
  background: var(--md-primary-fg-color, #1976d2);
  border: none;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  color: var(--md-primary-bg-color, #fff);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  transition: opacity .15s;
}
.rdr-toggle:hover { opacity: .88; }

/* ── Tabelas — exibição explícita para browsers limitados (e-ink/WebView) ─── */
.md-typeset table {
  display: table !important;
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 1em 0 !important;
}
.md-typeset table thead { display: table-header-group !important; }
.md-typeset table tbody { display: table-row-group !important; }
.md-typeset table tr    { display: table-row !important; }
.md-typeset table th,
.md-typeset table td {
  display: table-cell !important;
  border: 1px solid rgba(0,0,0,.3) !important;
  padding: .35em .6em !important;
  text-align: left !important;
  text-indent: 0 !important;
}
[data-md-color-scheme="slate"] .md-typeset table th,
[data-md-color-scheme="slate"] .md-typeset table td {
  border-color: rgba(255,255,255,.25) !important;
}

/* ── Formatação dos acórdãos ────────────────────────────────────────────────── */

/* Headings: mesmo recuo e justificado */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  text-indent: 2.5cm;
  text-align: justify;
  text-justify: inter-word;
}

/* Listas: nível raiz alinhado com text-indent */
.md-typeset ul,
.md-typeset ol {
  margin-left: 2.5cm !important;
  padding-left: 1.2em !important;
}
/* Aninhados: +1cm por nível */
.md-typeset li > ul,
.md-typeset li > ol {
  margin-left: 1cm !important;
  padding-left: 1.2em !important;
}
.md-typeset li,
.md-typeset li p {
  text-indent: 0 !important;
  text-align: justify !important;
  text-justify: inter-word !important;
}

/* Parágrafos: justificado + recuo de 2,5cm na primeira linha */
.md-typeset p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  text-indent: 2.5cm;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}

/* Transcrição nível 1 — left 4,5cm, first-line 1cm, sem borda */
.md-typeset blockquote {
  margin-left: 3.5cm !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  background: none !important;
  color: inherit !important;
}
.md-typeset blockquote p {
  text-indent: 1cm;
}

/* Transcrição nível 2 — left 6,5cm */
.md-typeset blockquote blockquote {
  margin-left: 2cm !important;
}

/* Transcrição nível 3 — left 7,5cm */
.md-typeset blockquote blockquote blockquote {
  margin-left: 1cm !important;
}

/* Ementa — admonition abstract (gerado pelo mkdocs-callouts a partir de > [!abstract]) */
.md-typeset details.abstract,
.md-typeset .admonition.abstract {
  margin-left: 8cm !important;
  margin-right: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
}
.md-typeset details.abstract > summary,
.md-typeset .admonition.abstract > .admonition-title {
  display: none !important;
}
.md-typeset details.abstract > p,
.md-typeset .admonition.abstract > p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  text-indent: 0 !important;
  margin: 0 !important;
}
