:root {
  --fundo: #000000;
  --superficie: #0d0d0d;
  --superficie-2: #141414;
  --borda: #242424;
  --texto: #ededed;
  --texto-2: #9a9a9a;
  --destaque: #b3121f;
  --destaque-hover: #e01b2c;
  --fonte-titulo: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  --fonte-corpo: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --topo-altura: 64px;
  --largura-menu: 274px;
  --brilho: 0 0 12px rgba(179, 18, 31, 0.25);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  background: var(--fundo);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--texto);
  background-color: var(--fundo);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='ruido'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23ruido)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 110% 55% at 50% 0%, rgba(179, 18, 31, 0.12), rgba(0, 0, 0, 0) 68%),
    linear-gradient(var(--fundo), var(--fundo));
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, top center, top center;
  background-size: 180px 180px, 100% 900px, 100% 100%;
  font-family: var(--fonte-corpo);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #ffffff;
  background: var(--destaque);
}

h1,
h2,
h3,
.marca,
.menu-categoria > summary,
.menu-inicio,
.botao-menu,
.toc-titulo,
.artigo-categoria,
.pager-rotulo,
.rodape {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--texto);
}

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--texto);
}

button,
input {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--destaque-hover);
  outline-offset: 3px;
  box-shadow: var(--brilho);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pular-para-conteudo {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--destaque);
  font-family: var(--fonte-titulo);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
}

.pular-para-conteudo:focus {
  transform: translateY(0);
}

/* Rolagem */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--borda) var(--fundo);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--fundo);
}

*::-webkit-scrollbar-thumb {
  background: var(--borda);
  border: 2px solid var(--fundo);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--destaque);
}

/* Topo */

.topo {
  position: sticky;
  top: 0;
  z-index: 80;
  flex: 0 0 auto;
  width: 100%;
  background: #000000;
  border-bottom: 1px solid var(--borda);
}

.topo-interno {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1600px;
  height: var(--topo-altura);
  margin: 0 auto;
  padding: 0 24px;
}

.marca {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.marca::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 5px;
  height: 23px;
  background: var(--destaque);
}

.marca:hover {
  color: #ffffff;
}

.botao-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--texto);
  background: transparent;
  border: 1px solid var(--borda);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.botao-menu:hover {
  color: var(--destaque-hover);
  border-color: var(--destaque);
  box-shadow: var(--brilho);
}

.icone-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.icone-menu span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 150ms ease, opacity 150ms ease;
}

.botao-menu[aria-expanded="true"] .icone-menu span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.botao-menu[aria-expanded="true"] .icone-menu span:nth-child(2) {
  opacity: 0;
}

.botao-menu[aria-expanded="true"] .icone-menu span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Busca */

.busca-area {
  position: relative;
  width: 340px;
  max-width: 100%;
  margin-left: auto;
}

.busca-input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: var(--texto);
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 0;
  outline: none;
  font-size: 14px;
  line-height: 1;
  appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.busca-input::placeholder {
  color: var(--texto-2);
  opacity: 1;
}

.busca-input:hover {
  border-color: #353535;
}

.busca-input:focus {
  border-color: var(--destaque);
  box-shadow: var(--brilho);
}

.busca-input:focus-visible {
  outline: 1px solid var(--destaque-hover);
  outline-offset: 2px;
}

.busca-resultados {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 100;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  background: var(--superficie);
  border: 1px solid var(--borda);
}

.busca-resultado {
  display: block;
  padding: 12px 14px;
  color: var(--texto);
  text-decoration: none;
  border-bottom: 1px solid var(--borda);
  border-left: 2px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.busca-resultado:last-child {
  border-bottom: 0;
}

.busca-resultado:hover,
.busca-resultado.is-ativo {
  background: var(--superficie-2);
  border-left-color: var(--destaque);
}

.busca-resultado-categoria {
  display: block;
  margin-bottom: 3px;
  color: var(--texto-2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.busca-resultado-titulo {
  display: block;
  color: var(--texto);
  font-family: var(--fonte-titulo);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.busca-resultado-resumo {
  display: block;
  margin-top: 4px;
  color: var(--texto-2);
  font-size: 12px;
  line-height: 1.5;
}

.busca-vazio {
  padding: 14px;
  color: var(--texto-2);
  font-size: 13px;
  line-height: 1.5;
}

/* Estrutura */

.estrutura {
  display: grid;
  grid-template-columns: var(--largura-menu) minmax(0, 1fr);
  flex: 1 0 auto;
  align-items: stretch;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Menu lateral */

.menu-lateral {
  position: sticky;
  top: var(--topo-altura);
  max-height: calc(100vh - var(--topo-altura));
  padding: 24px 16px 40px 20px;
  overflow-y: auto;
  background: #000000;
  border-right: 1px solid var(--borda);
}

.menu-lateral a {
  text-decoration: none;
}

.menu-inicio {
  display: block;
  margin-bottom: 16px;
  padding: 8px 10px 8px 12px;
  color: var(--texto-2);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  border-left: 3px solid transparent;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.menu-inicio:hover {
  color: var(--texto);
  background: var(--superficie);
}

.menu-inicio.is-ativo {
  color: #ffffff;
  border-left-color: var(--destaque);
}

.menu-categoria {
  border-bottom: 1px solid var(--borda);
}

.menu-categoria > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 10px 4px;
  color: var(--texto-2);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.09em;
  cursor: pointer;
  list-style: none;
  transition: color 150ms ease;
}

.menu-categoria > summary::-webkit-details-marker {
  display: none;
}

.menu-categoria > summary::marker {
  content: "";
}

.menu-categoria > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--texto-2);
  font-family: var(--fonte-corpo);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.menu-categoria[open] > summary::after {
  content: "−";
  color: var(--destaque);
}

.menu-categoria > summary:hover {
  color: var(--texto);
}

.menu-lista {
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
}

.menu-link {
  display: block;
  padding: 7px 10px 7px 13px;
  color: var(--texto-2);
  font-size: 14px;
  line-height: 1.45;
  border-left: 3px solid transparent;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.menu-link:hover {
  color: var(--texto);
  background: var(--superficie);
}

.menu-link.is-ativo {
  color: #ffffff;
  font-weight: 600;
  border-left-color: var(--destaque);
  background: rgba(179, 18, 31, 0.05);
}

.menu-vazio {
  margin: 14px 0 0;
  color: var(--texto-2);
  font-size: 14px;
}

.menu-fundo {
  display: none;
}

/* Conteúdo principal */

.conteudo {
  min-width: 0;
  padding: clamp(32px, 4vw, 56px) clamp(22px, 4vw, 56px) 80px;
}

.conteudo:focus {
  outline: none;
}

.home {
  max-width: 1000px;
}

.home-cabecalho {
  max-width: 78ch;
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--borda);
}

.home-titulo {
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.home-descricao {
  max-width: 58ch;
  margin: 0;
  color: var(--texto-2);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.65;
}

.inicio-html {
  max-width: 72ch;
  margin-bottom: 44px;
}

.indice {
  max-width: 100%;
}

.indice-titulo {
  margin: 0 0 18px;
  padding-left: 12px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  border-left: 3px solid var(--destaque);
}

.indice-grupo {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--borda);
}

.indice-grupo:first-of-type {
  margin-top: 0;
}

.indice-categoria {
  margin: 0 0 8px;
  color: var(--texto-2);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.indice-lista {
  margin: 0;
  padding: 0;
  list-style: none;
}

.indice-item {
  border-bottom: 1px solid var(--borda);
}

.indice-link {
  display: block;
  padding: 16px 14px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.indice-link:hover {
  background: var(--superficie);
  border-left-color: var(--destaque);
}

.indice-link-titulo {
  display: block;
  color: var(--texto);
  font-family: var(--fonte-titulo);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.indice-link-resumo {
  display: block;
  max-width: 72ch;
  margin-top: 5px;
  color: var(--texto-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

.indice-vazio {
  color: var(--texto-2);
}

/* Artigo */

.artigo {
  max-width: 1150px;
}

.artigo-cabecalho {
  max-width: 78ch;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--borda);
}

.artigo-categoria {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--texto-2);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.artigo-categoria::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--destaque);
}

.artigo-titulo {
  max-width: 22ch;
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.04em;
  scroll-margin-top: calc(var(--topo-altura) + 20px);
}

.artigo-titulo:focus {
  outline-offset: 6px;
}

.artigo-resumo {
  max-width: 68ch;
  margin: 0;
  color: var(--texto-2);
  font-size: 1.04rem;
  line-height: 1.65;
}

.artigo-layout {
  display: grid;
  grid-template-columns: minmax(0, 72ch) minmax(180px, 224px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.artigo-layout.sem-toc {
  display: block;
}

.artigo-conteudo {
  min-width: 0;
  max-width: 72ch;
}

/* Texto dos artigos */

.conteudo-rico {
  font-size: 1rem;
  line-height: 1.7;
}

.conteudo-rico > :first-child {
  margin-top: 0;
}

.conteudo-rico h2 {
  margin: 2.4em 0 0.7em;
  padding-left: 12px;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--destaque);
  scroll-margin-top: calc(var(--topo-altura) + 24px);
}

.conteudo-rico h3 {
  margin: 1.9em 0 0.55em;
  color: var(--texto);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.05em;
  scroll-margin-top: calc(var(--topo-altura) + 24px);
}

.conteudo-rico h2:focus,
.conteudo-rico h3:focus {
  outline-offset: 5px;
}

.conteudo-rico p {
  margin: 0 0 1.25em;
}

.conteudo-rico strong {
  color: #ffffff;
  font-weight: 700;
}

.conteudo-rico em {
  color: var(--texto);
}

.conteudo-rico a {
  color: var(--texto);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--destaque);
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.conteudo-rico a:hover {
  color: var(--destaque-hover);
  text-decoration-color: var(--destaque-hover);
}

.conteudo-rico ul,
.conteudo-rico ol {
  margin: 0 0 1.35em;
  padding-left: 1.45em;
}

.conteudo-rico li {
  margin-bottom: 0.45em;
}

.conteudo-rico li::marker {
  color: var(--destaque);
}

.conteudo-rico blockquote {
  margin: 1.7em 0;
  padding: 15px 18px;
  color: var(--texto);
  background: var(--superficie);
  border-left: 3px solid var(--destaque);
}

.conteudo-rico blockquote p:last-child {
  margin-bottom: 0;
}

.conteudo-rico code {
  padding: 2px 5px;
  color: var(--texto);
  background: var(--superficie-2);
  border: 1px solid var(--borda);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
}

.conteudo-rico sup,
.conteudo-rico sub {
  line-height: 0;
}

/* Tabelas */

.tabela-scroll {
  max-width: 100%;
  margin: 1.8em 0;
  overflow-x: auto;
  background: var(--superficie);
  border: 1px solid var(--borda);
}

.tabela-scroll:focus-visible {
  outline-offset: 2px;
}

.conteudo-rico table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

.conteudo-rico th,
.conteudo-rico td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
}

.conteudo-rico th:last-child,
.conteudo-rico td:last-child {
  border-right: 0;
}

.conteudo-rico thead th {
  color: var(--texto);
  background: var(--superficie-2);
  border-bottom: 2px solid var(--destaque);
  font-family: var(--fonte-titulo);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conteudo-rico tbody tr:nth-child(odd) {
  background: #0a0a0a;
}

.conteudo-rico tbody tr:nth-child(even) {
  background: #101010;
}

.conteudo-rico tbody tr:last-child td {
  border-bottom: 0;
}

/* Avisos, selos e tiers */

.callout {
  margin: 1.8em 0;
  padding: 15px 18px;
  color: var(--texto);
  background: var(--superficie);
  border-left: 3px solid var(--destaque);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout.aviso {
  background: rgba(179, 18, 31, 0.1);
  border: 1px solid var(--destaque);
  border-left-width: 3px;
}

.selo {
  display: inline-block;
  padding: 2px 7px;
  color: var(--texto);
  background: rgba(179, 18, 31, 0.1);
  border: 1px solid var(--destaque);
  font-family: var(--fonte-titulo);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid transparent;
  font-family: var(--fonte-titulo);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-s {
  color: #ffffff;
  background: var(--destaque);
  border-color: var(--destaque);
}

.tier-a {
  color: var(--destaque);
  background: transparent;
  border-color: var(--destaque);
}

.tier-b {
  color: var(--texto);
  background: transparent;
  border-color: var(--texto);
}

.tier-d {
  color: var(--texto-2);
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.tier-f {
  color: #6a6a6a;
  background: var(--superficie-2);
  border-color: var(--superficie-2);
  text-decoration: line-through;
}

/* Índice do artigo */

.toc {
  position: sticky;
  top: calc(var(--topo-altura) + 28px);
  max-height: calc(100vh - var(--topo-altura) - 56px);
  overflow-y: auto;
  padding-left: 16px;
  border-left: 1px solid var(--borda);
}

.toc-titulo {
  margin: 0 0 12px;
  color: var(--texto-2);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.toc-lista {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-item {
  margin: 0;
}

.toc-item--3 {
  margin-left: 10px;
}

.toc-link {
  display: block;
  padding: 6px 8px 6px 10px;
  color: var(--texto-2);
  font-size: 12.5px;
  line-height: 1.45;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.toc-link:hover {
  color: var(--texto);
}

.toc-link.is-ativo {
  color: var(--texto);
  border-left-color: var(--destaque);
}

/* Paginação */

.paginacao {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 72ch;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--borda);
}

.pager {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 240px);
  padding: 14px 18px;
  color: var(--texto);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--borda);
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.pager:hover {
  color: #ffffff;
  background: var(--destaque);
  border-color: var(--destaque);
  box-shadow: var(--brilho);
}

.pager-rotulo {
  color: var(--texto-2);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.pager:hover .pager-rotulo {
  color: #ffffff;
}

.pager-titulo {
  font-family: var(--fonte-titulo);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pager-proximo {
  margin-left: auto;
  text-align: right;
}

/* Artigo não encontrado */

.nao-encontrado {
  max-width: 72ch;
  padding-top: 12px;
}

.nao-encontrado h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

.nao-encontrado p {
  color: var(--texto-2);
}

.voltar-inicio {
  display: inline-block;
  margin-top: 10px;
  padding: 11px 16px;
  color: var(--texto);
  border: 1px solid var(--borda);
  font-family: var(--fonte-titulo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.voltar-inicio:hover {
  color: #ffffff;
  background: var(--destaque);
  border-color: var(--destaque);
  box-shadow: var(--brilho);
}

/* Rodapé */

.rodape {
  flex: 0 0 auto;
  width: 100%;
  padding: 24px;
  color: var(--texto-2);
  border-top: 1px solid var(--borda);
  text-align: center;
  font-family: var(--fonte-corpo);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-transform: none;
}

.rodape p {
  max-width: 72ch;
  margin: 0 auto;
}

.rodape-creditos {
  margin-top: 6px !important;
  color: var(--texto-2);
}

.rodape-creditos a {
  color: var(--texto);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--destaque);
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.rodape-creditos a:hover {
  color: var(--destaque-hover);
  text-decoration-color: var(--destaque-hover);
}

/* Telas médias: o índice lateral do artigo sai de cena */

@media (max-width: 1100px) {
  .artigo-layout {
    display: block;
  }

  .toc {
    display: none;
  }
}

/* Navegação em gaveta */

@media (max-width: 900px) {
  .topo-interno {
    gap: 16px;
    padding: 0 16px;
  }

  .botao-menu {
    display: inline-flex;
  }

  .estrutura {
    display: block;
  }

  .menu-lateral {
    position: fixed;
    top: var(--topo-altura);
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(330px, 88vw);
    height: auto;
    padding: 24px 18px 40px 20px;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 160ms ease, visibility 0s linear 160ms;
  }

  .menu-lateral.is-aberto {
    visibility: visible;
    transform: translateX(0);
    transition: transform 160ms ease, visibility 0s linear 0s;
  }

  .menu-fundo {
    position: fixed;
    top: var(--topo-altura);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: block;
    background: rgba(0, 0, 0, 0.72);
  }

  body.menu-aberto {
    overflow: hidden;
  }

  .conteudo {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 720px) {
  :root {
    --topo-altura: 108px;
  }

  .topo-interno {
    flex-wrap: wrap;
    align-content: center;
    gap: 10px 12px;
    padding: 10px 16px;
  }

  .marca {
    font-size: 20px;
  }

  .marca::before {
    height: 21px;
  }

  .busca-area {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
  }

  .busca-input {
    height: 36px;
  }

  .busca-resultados {
    max-height: 58vh;
  }

  .conteudo {
    padding: 28px 18px 60px;
  }

  .home-cabecalho {
    margin-bottom: 30px;
    padding-bottom: 24px;
  }

  .home-titulo {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .artigo-cabecalho {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .artigo-titulo {
    max-width: none;
  }

  .paginacao {
    flex-direction: column;
    margin-top: 44px;
  }

  .pager {
    width: 100%;
    min-width: 0;
  }

  .pager-proximo {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .topo-interno {
    padding-right: 12px;
    padding-left: 12px;
  }

  .conteudo {
    padding-right: 14px;
    padding-left: 14px;
  }

  .artigo-categoria {
    font-size: 10px;
  }

  .conteudo-rico table {
    min-width: 480px;
  }

  .conteudo-rico th,
  .conteudo-rico td {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
