/*
 * Central de Ajuda ALPHA ERP — mesmo padrão visual do Gerencial (gerencial/src/index.css + components/ui.tsx + layout/AppLayout.tsx):
 * paleta "tinta" (preto do PDV), "marca" (verde #78b93a), "perigo"; Inter no texto, Montserrat nos títulos;
 * topo escuro com filete verde de 3px, navegação em pílulas (ativa em verde), cartões brancos rounded-xl com borda tinta-100,
 * cabeçalho de tabela escuro com texto branco em caixa alta, alertas no tom dos avisos do Gerencial.
 */

:root {
  --tinta-950: #101114;
  --tinta-900: #1a1c20;
  --tinta-800: #2a2d33;
  --tinta-700: #3a3e46;
  --tinta-600: #52565f;
  --tinta-500: #6b6f78;
  --tinta-400: #9296a0;
  --tinta-300: #c2c4c9;
  --tinta-200: #dfe0e3;
  --tinta-100: #eeeff1;
  --tinta-50: #f7f7f8;

  --marca-50: #f1f8e9;
  --marca-100: #dff0c8;
  --marca-200: #c6e3a0;
  --marca-300: #a7d16f;
  --marca-400: #8dc650;
  --marca-500: #78b93a;
  --marca-600: #66a62e;
  --marca-700: #528625;
  --marca-800: #416a1f;
  --marca-900: #2f4c17;

  --perigo-50: #fdecea;
  --perigo-500: #d93025;
  --perigo-600: #b92318;

  --fonte: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fonte-titulo: "Montserrat", "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --fonte-mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;

  /* papéis (claro) */
  --fundo: var(--tinta-50);
  --superficie: #fff;
  --superficie-2: var(--tinta-50);
  --borda: var(--tinta-100);
  --borda-forte: var(--tinta-200);
  --borda-campo: var(--tinta-300);
  --texto: var(--tinta-900);
  --texto-2: var(--tinta-700);
  --texto-suave: var(--tinta-500);
  --link: var(--marca-800);
  --link-hover: var(--marca-900);
  --realce: var(--marca-50);
  --marca-fundo: var(--marca-500);
  --marca-texto: var(--tinta-900);
  --foco: var(--marca-700);
  --sombra: 0 1px 2px rgb(16 17 20 / 0.04);
  --sombra-alta: 0 12px 32px -8px rgb(16 17 20 / 0.18), 0 2px 6px rgb(16 17 20 / 0.06);

  --tecla-fundo: #fff;
  --tecla-borda: var(--tinta-300);
  --tecla-base: var(--tinta-300);
  --tecla-texto: var(--tinta-900);

  --dica-fundo: #ecfdf5;
  --dica-borda: #6ee7b7;
  --dica-texto: #065f46;
  --atencao-fundo: #fffbeb;
  --atencao-borda: #fcd34d;
  --atencao-texto: #78350f;
  --imp-fundo: var(--perigo-50);
  --imp-borda: #f5a7a1;
  --imp-texto: #8f1b12;
  --nota-fundo: #f0f9ff;
  --nota-borda: #7dd3fc;
  --nota-texto: #075985;

  --codigo-fundo: var(--tinta-100);
  --pre-fundo: var(--tinta-900);
  --pre-texto: var(--tinta-100);

  --raio: 0.75rem;
  --raio-p: 0.5rem;
  --largura: 80rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) {
    --fundo: var(--tinta-950);
    --superficie: var(--tinta-900);
    --superficie-2: #15171a;
    --borda: var(--tinta-800);
    --borda-forte: var(--tinta-700);
    --borda-campo: var(--tinta-600);
    --texto: var(--tinta-100);
    --texto-2: var(--tinta-300);
    --texto-suave: var(--tinta-400);
    --link: var(--marca-300);
    --link-hover: var(--marca-200);
    --realce: rgb(120 185 58 / 0.12);
    --foco: var(--marca-400);
    --sombra: none;
    --sombra-alta: 0 12px 32px -8px rgb(0 0 0 / 0.6);
    --tecla-fundo: var(--tinta-800);
    --tecla-borda: var(--tinta-600);
    --tecla-base: var(--tinta-600);
    --tecla-texto: var(--tinta-50);
    --dica-fundo: rgb(16 185 129 / 0.1);
    --dica-borda: rgb(16 185 129 / 0.45);
    --dica-texto: #a7f3d0;
    --atencao-fundo: rgb(245 158 11 / 0.1);
    --atencao-borda: rgb(245 158 11 / 0.45);
    --atencao-texto: #fde68a;
    --imp-fundo: rgb(217 48 37 / 0.12);
    --imp-borda: rgb(217 48 37 / 0.5);
    --imp-texto: #fecaca;
    --nota-fundo: rgb(14 165 233 / 0.1);
    --nota-borda: rgb(14 165 233 / 0.45);
    --nota-texto: #bae6fd;
    --codigo-fundo: var(--tinta-800);
    --pre-fundo: #0b0c0e;
    color-scheme: dark;
  }
}
:root[data-theme="escuro"] {
  --fundo: var(--tinta-950);
  --superficie: var(--tinta-900);
  --superficie-2: #15171a;
  --borda: var(--tinta-800);
  --borda-forte: var(--tinta-700);
  --borda-campo: var(--tinta-600);
  --texto: var(--tinta-100);
  --texto-2: var(--tinta-300);
  --texto-suave: var(--tinta-400);
  --link: var(--marca-300);
  --link-hover: var(--marca-200);
  --realce: rgb(120 185 58 / 0.12);
  --foco: var(--marca-400);
  --sombra: none;
  --sombra-alta: 0 12px 32px -8px rgb(0 0 0 / 0.6);
  --tecla-fundo: var(--tinta-800);
  --tecla-borda: var(--tinta-600);
  --tecla-base: var(--tinta-600);
  --tecla-texto: var(--tinta-50);
  --dica-fundo: rgb(16 185 129 / 0.1);
  --dica-borda: rgb(16 185 129 / 0.45);
  --dica-texto: #a7f3d0;
  --atencao-fundo: rgb(245 158 11 / 0.1);
  --atencao-borda: rgb(245 158 11 / 0.45);
  --atencao-texto: #fde68a;
  --imp-fundo: rgb(217 48 37 / 0.12);
  --imp-borda: rgb(217 48 37 / 0.5);
  --imp-texto: #fecaca;
  --nota-fundo: rgb(14 165 233 / 0.1);
  --nota-borda: rgb(14 165 233 / 0.45);
  --nota-texto: #bae6fd;
  --codigo-fundo: var(--tinta-800);
  --pre-fundo: #0b0c0e;
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--fundo);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
main {
  flex: 1;
  outline: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--marca-500);
  color: var(--tinta-900);
  padding: 0.6rem 1rem;
  border-radius: var(--raio-p);
  font-weight: 600;
  text-decoration: none;
}
.pular:focus {
  top: 0.75rem;
}
.icone {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.largura {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 2rem;
}
.largura.estreita {
  max-width: 56rem;
}

/* ------------------------------------------------------------ topo (AppLayout.tsx) */

.topo {
  background: var(--tinta-900);
  border-bottom: 3px solid var(--marca-500);
  color: #fff;
  position: relative;
  z-index: 30;
}
.topo-linha {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem 0.5rem;
}
.marca {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.marca:hover {
  color: #fff;
}
.marca img {
  height: 2.25rem;
  width: auto;
}
.marca-nome {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.marca-sub {
  font-size: 0.75rem;
  color: var(--marca-400);
  font-weight: 600;
  padding-left: 0.625rem;
  border-left: 1px solid rgb(255 255 255 / 0.2);
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem 1.25rem 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--raio-p);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}
.nav-link.ativo {
  background: var(--marca-500);
  color: var(--tinta-900);
}
.topo :focus-visible {
  outline-color: #fff;
}
.tema {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.375rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: transparent;
  color: rgb(255 255 255 / 0.75);
  cursor: pointer;
  flex-shrink: 0;
}
.tema:hover {
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}
.tema .icone {
  width: 1.125rem;
  height: 1.125rem;
}
.tema-sol {
  display: none !important;
}
:root[data-theme="escuro"] .tema-sol {
  display: block !important;
}
:root[data-theme="escuro"] .tema-lua {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .tema-sol {
    display: block !important;
  }
  :root:not([data-theme="claro"]) .tema-lua {
    display: none !important;
  }
}

/* busca do topo */
.busca-topo {
  position: relative;
  display: flex;
  align-items: center;
  width: min(24rem, 40vw);
}
.busca-topo .busca-lupa {
  position: absolute;
  left: 0.75rem;
  color: rgb(255 255 255 / 0.55);
  pointer-events: none;
}
.busca-topo input {
  width: 100%;
  height: 2.375rem;
  border-radius: var(--raio-p);
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  padding: 0 4rem 0 2.25rem;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.busca-topo input::placeholder {
  color: rgb(255 255 255 / 0.55);
}
.busca-topo input:focus {
  border-color: var(--marca-500);
  background: rgb(255 255 255 / 0.12);
  box-shadow: 0 0 0 3px rgb(120 185 58 / 0.3);
}
.busca-topo .busca-dica {
  position: absolute;
  right: 0.5rem;
  font-family: var(--fonte);
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0.3rem;
  padding: 0.05rem 0.4rem;
  pointer-events: none;
  background: transparent;
  min-width: 0;
  line-height: 1.5;
  vertical-align: baseline;
}
.busca-topo input::-webkit-search-cancel-button {
  filter: invert(1);
}

/* ------------------------------------------------------------ botões / selos (ui.tsx: Botao, Badge) */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--raio-p);
  padding: 0.5rem 0.875rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--marca-500);
  color: var(--tinta-900);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}
.botao:hover {
  background: var(--marca-600);
  color: var(--tinta-900);
}
.botao-secundario {
  background: var(--superficie);
  color: var(--texto-2);
  border-color: rgb(26 28 32 / 0.7);
}
.botao-secundario:hover {
  background: var(--realce);
  color: var(--texto);
}
:root[data-theme="escuro"] .botao-secundario {
  border-color: var(--tinta-500);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .botao-secundario {
    border-color: var(--tinta-500);
  }
}
.botao-pequeno {
  padding: 0.3rem 0.7rem;
  font-size: 0.8125rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-verde {
  background: var(--marca-100);
  color: var(--marca-900);
}
.badge-amarelo {
  background: #fef3c7;
  color: #78350f;
}
.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  background: var(--superficie-2);
  border: 1px solid var(--borda);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}
.selo a {
  font-weight: 600;
}

/* ------------------------------------------------------------ cartões (ui.tsx: Card) */

.cartao {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.vazio {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--texto-suave);
}
.vazio-texto {
  color: var(--texto-suave);
  font-size: 0.875rem;
  margin: 0;
}

/* trilha (breadcrumb) */
.trilha ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}
.trilha li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--tinta-400);
}
.trilha a {
  color: var(--texto-suave);
}
.trilha a:hover {
  color: var(--texto);
}

/* cabeçalho de página (ui.tsx: PageHeader) */
.cabeca-pagina {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.cabeca-pagina h1 {
  font-family: var(--fonte-titulo);
  font-size: 1.625rem;
  font-weight: 700;
}
.cabeca-pagina p {
  margin: 0.25rem 0 0;
  color: var(--texto-suave);
  font-size: 0.9375rem;
  max-width: 48rem;
}
.cabeca-pagina.simples {
  margin-top: 2rem;
}
.modulo-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--tinta-900);
  color: var(--marca-500);
  flex-shrink: 0;
  box-shadow: 0 6px 14px -6px rgb(26 28 32 / 0.35);
}
.modulo-icone .icone {
  width: 1.375rem;
  height: 1.375rem;
}
.modulo-icone.grande {
  width: 3.25rem;
  height: 3.25rem;
}
.modulo-icone.grande .icone {
  width: 1.625rem;
  height: 1.625rem;
}
:root[data-theme="escuro"] .modulo-icone {
  background: var(--tinta-800);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .modulo-icone {
    background: var(--tinta-800);
  }
}

/* ------------------------------------------------------------ início */

.hero {
  background: var(--superficie);
  border-bottom: 1px solid var(--borda);
  padding: 3.25rem 0 2.5rem;
}
.hero-interno {
  max-width: 52rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}
.hero-sub {
  margin: 0.5rem 0 1.75rem;
  color: var(--texto-suave);
  font-size: 1.0625rem;
}

/* campo de busca grande (ui.tsx: classeInput, em tamanho maior) */
.busca-grande {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.busca-grande .busca-lupa {
  position: absolute;
  left: 1.1rem;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--texto-suave);
  pointer-events: none;
}
.busca-grande input {
  flex: 1;
  min-width: 0;
  height: 3.5rem;
  border-radius: var(--raio);
  border: 1px solid var(--borda-campo);
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  font-size: 1.125rem;
  padding: 0 1rem 0 3.25rem;
  outline: none;
  box-shadow: var(--sombra);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.busca-hero input {
  height: 3.75rem;
  padding-right: 5.5rem;
  box-shadow: 0 10px 30px -14px rgb(26 28 32 / 0.25);
}
.busca-grande input::placeholder {
  color: var(--tinta-400);
}
.busca-grande input:focus {
  border-color: var(--marca-500);
  box-shadow: 0 0 0 3px rgb(120 185 58 / 0.25);
}
.busca-grande .botao {
  height: 3.5rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}
.busca-grande .busca-dica {
  position: absolute;
  right: 1rem;
  font-family: var(--fonte);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--texto-suave);
  border: 1px solid var(--borda-forte);
  border-bottom-width: 2px;
  border-radius: 0.35rem;
  padding: 0.1rem 0.45rem;
  pointer-events: none;
}

/* lista suspensa de resultados */
.busca-lista {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  text-align: left;
  background: var(--superficie);
  color: var(--texto);
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio);
  box-shadow: var(--sombra-alta);
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}
.busca-topo .busca-lista {
  min-width: 26rem;
  left: auto;
}
.busca-lista li a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--raio-p);
  text-decoration: none;
  color: var(--texto);
}
.busca-lista li[aria-selected="true"] a,
.busca-lista li a:hover {
  background: var(--realce);
}
.busca-lista li[aria-selected="true"] a {
  box-shadow: inset 3px 0 0 var(--marca-500);
}
.res-titulo {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}
.res-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-top: 0.1rem;
}
.res-trecho {
  display: block;
  font-size: 0.8125rem;
  color: var(--texto-2);
  margin-top: 0.15rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.busca-lista .res-todos a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--link);
  border-top: 1px solid var(--borda);
  border-radius: 0;
  margin-top: 0.25rem;
}
.busca-lista .res-vazio {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--texto-suave);
}
mark {
  background: rgb(120 185 58 / 0.28);
  color: inherit;
  border-radius: 0.2rem;
  padding: 0 0.1rem;
}

/* teclas (assinatura da ajuda: o PDV é todo no teclado) */
kbd,
.texto kbd {
  display: inline-block;
  min-width: 1.85em;
  padding: 0.05em 0.45em 0.1em;
  font-family: var(--fonte);
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: var(--tecla-texto);
  background: var(--tecla-fundo);
  border: 1px solid var(--tecla-borda);
  border-bottom-width: 3px;
  border-bottom-color: var(--tecla-base);
  border-radius: 0.4em;
  vertical-align: 0.08em;
  white-space: nowrap;
}
.atalho {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  white-space: nowrap;
}
.atalho .mais {
  font-size: 0.8em;
  color: var(--texto-suave);
}
.teclas-hero {
  margin-top: 1.5rem;
}
.teclas-rotulo {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--texto-suave);
}
.teclas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.teclas a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--borda-forte);
  background: var(--superficie);
  color: var(--texto-2);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: border-color 0.15s, background-color 0.15s;
}
.teclas a:hover {
  border-color: var(--marca-500);
  background: var(--realce);
  color: var(--texto);
}
.teclas kbd {
  font-size: 0.875rem;
}

.secao {
  margin: 2.5rem 0 1.5rem;
}
.secao-titulo {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-suave);
  margin-bottom: 0.875rem;
}
/* 5 módulos: 3 em cima (o dia a dia da loja), 2 embaixo */
.grade-modulos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.grade-modulos > li {
  grid-column: span 2;
}
.grade-modulos > li:nth-child(5n + 4),
.grade-modulos > li:nth-child(5n + 5) {
  grid-column: span 3;
}
@media (max-width: 1000px) {
  .grade-modulos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grade-modulos > li,
  .grade-modulos > li:nth-child(5n + 4),
  .grade-modulos > li:nth-child(5n + 5) {
    grid-column: auto;
  }
}
.modulo {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modulo:hover {
  border-color: var(--marca-300);
  box-shadow: 0 8px 24px -14px rgb(26 28 32 / 0.3);
}
.modulo-link {
  display: flex;
  gap: 0.875rem;
  color: var(--texto);
  text-decoration: none;
}
.modulo-link:hover {
  color: var(--texto);
}
.modulo-link strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.0625rem;
  font-weight: 700;
}
.modulo-link:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--marca-500);
  text-decoration-thickness: 2px;
}
.modulo-textos > span {
  display: block;
  font-size: 0.875rem;
  color: var(--texto-suave);
  margin-top: 0.15rem;
  line-height: 1.5;
}
.modulo-cats {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.modulo-cats a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--superficie-2);
  border: 1px solid var(--borda);
  color: var(--texto-2);
  text-decoration: none;
}
.modulo-cats a:hover {
  border-color: var(--marca-400);
  color: var(--texto);
}
.modulo-rodape {
  margin: auto 0 0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}
.modulo-rodape a {
  color: var(--texto-suave);
}
.modulo-rodape a:hover {
  color: var(--texto);
}

.grade-dupla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 3rem;
}
.bloco {
  padding: 1.25rem;
}
.bloco-cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.bloco-cab h2 {
  font-size: 0.9375rem;
  font-weight: 600;
}
.bloco-cab a {
  font-size: 0.75rem;
  color: var(--texto-suave);
}
.bloco-cab a:hover {
  color: var(--texto);
}

/* listas de artigos */
.lista-artigos {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lista-artigos li + li {
  border-top: 1px solid var(--borda);
}
.lista-artigos a {
  display: block;
  padding: 0.75rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: var(--raio-p);
  text-decoration: none;
  color: var(--texto);
}
.lista-artigos a:hover {
  background: var(--realce);
}
.lista-artigos strong {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}
.lista-artigos a:hover strong {
  color: var(--link);
}
.lista-artigos span {
  display: block;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  margin-top: 0.1rem;
}
.lista-artigos.compacta a {
  padding: 0.55rem 0.5rem;
}

.mini-versoes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-versoes li + li {
  border-top: 1px solid var(--borda);
}
.mini-versoes a {
  display: block;
  padding: 0.65rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: var(--raio-p);
  text-decoration: none;
  color: var(--texto);
}
.mini-versoes a:hover {
  background: var(--realce);
}
.versao-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.versao-num {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.versao-data {
  font-size: 0.8125rem;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
}
.versao-resumo {
  display: block;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  margin-top: 0.15rem;
}

/* ------------------------------------------------------------ módulo */

.pagina-modulo,
main > .largura:first-child {
  padding-top: 1.75rem;
}
.pilulas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.pilulas a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--raio-p);
  padding: 0.45rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--superficie);
  color: var(--texto-2);
  border: 1px solid var(--borda-forte);
  text-decoration: none;
}
.pilulas a:hover {
  background: var(--realce);
  color: var(--texto);
}
.pilulas span {
  font-size: 0.75rem;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
}
.categorias {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-bottom: 3rem;
}
.categoria {
  padding: 1.25rem;
  scroll-margin-top: 1rem;
}
.categoria h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--marca-500);
  display: inline-block;
}

/* ------------------------------------------------------------ artigo */

.artigo-grade {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr) 13rem;
  gap: 2.5rem;
  align-items: start;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}
.lateral {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  font-size: 0.875rem;
}
.lateral-caixa > summary {
  list-style: none;
  cursor: default;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-suave);
  padding: 0.25rem 0 0.75rem;
  pointer-events: none;
}
.lateral-caixa > summary::-webkit-details-marker {
  display: none;
}
.lateral-caixa > summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lateral-grupo + .lateral-grupo {
  margin-top: 0.25rem;
}
.lateral-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.25rem 0.35rem 0;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--texto);
  cursor: pointer;
  list-style: none;
  border-radius: 0.375rem;
}
.lateral-titulo::-webkit-details-marker {
  display: none;
}
.lateral-titulo::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--texto-suave);
  border-bottom: 1.5px solid var(--texto-suave);
  transform: rotate(-45deg);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.lateral-grupo[open] > .lateral-titulo::before {
  transform: rotate(45deg);
}
.lateral-titulo:hover {
  color: var(--link);
}
.lateral-qtd {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
}
.lateral-grupo > ul {
  margin: 0.15rem 0 0.6rem 0.2rem;
}
.lateral ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  border-left: 1px solid var(--borda-forte);
}
.lateral li a {
  display: block;
  padding: 0.3rem 0.5rem;
  margin-left: -0.75rem;
  border-left: 3px solid transparent;
  padding-left: calc(0.75rem - 1px);
  color: var(--texto-suave);
  text-decoration: none;
  line-height: 1.4;
}
.lateral li a:hover {
  color: var(--texto);
}
.lateral li a[aria-current="page"] {
  color: var(--texto);
  font-weight: 600;
  border-left-color: var(--marca-500);
  background: var(--realce);
  border-radius: 0 0.375rem 0.375rem 0;
}

.artigo {
  min-width: 0;
}
.artigo-cabeca {
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--borda-forte);
}
.artigo-cabeca h1 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  letter-spacing: -0.005em;
}
.artigo-resumo {
  margin: 0.625rem 0 0;
  font-size: 1.125rem;
  color: var(--texto-2);
  max-width: 44rem;
}
.artigo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.artigo-meta .botao {
  margin-left: auto;
}

.toc-col {
  position: sticky;
  top: 1rem;
}
.toc {
  font-size: 0.8125rem;
  padding-left: 0.875rem;
  border-left: 1px solid var(--borda-forte);
}
.toc-titulo {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-suave);
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li + li {
  margin-top: 0.4rem;
}
.toc a {
  color: var(--texto-suave);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.toc a:hover,
.toc a.ativo {
  color: var(--texto);
}
.toc a.ativo {
  font-weight: 600;
}

/* texto do artigo */
.texto {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 46rem;
  color: var(--texto);
}
.texto > * + * {
  margin-top: 1rem;
}
.texto p,
.texto ul,
.texto ol {
  margin-bottom: 0;
}
.texto h2 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.375rem;
  margin-top: 2.25rem;
  padding-top: 0.25rem;
  scroll-margin-top: 1rem;
}
.texto h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.75rem;
  scroll-margin-top: 1rem;
}
.texto h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
}
.texto > h2:first-child,
.texto > h3:first-child {
  margin-top: 0;
}
.ancora {
  margin-left: 0.5rem;
  color: var(--tinta-400);
  text-decoration: none;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.15s;
}
h2:hover .ancora,
h3:hover .ancora,
.ancora:focus-visible {
  opacity: 1;
}
.texto ul,
.texto ol {
  padding-left: 1.5rem;
}
.texto li + li {
  margin-top: 0.4rem;
}
.texto li > ul,
.texto li > ol {
  margin-top: 0.4rem;
}
.texto li > p + p {
  margin-top: 0.5rem;
}
.texto li > p {
  margin: 0;
}
.texto li::marker {
  color: var(--texto-suave);
}
/* passo a passo: números em círculo */
.texto > ol {
  list-style: none;
  counter-reset: passo var(--inicio, 0);
  padding-left: 0;
}
.texto > ol > li {
  counter-increment: passo;
  position: relative;
  padding-left: 2.5rem;
  min-height: 1.75rem;
}
.texto > ol > li + li {
  margin-top: 0.75rem;
}
.texto > ol > li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--tinta-900);
  color: var(--marca-400);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="escuro"] .texto > ol > li::before {
  background: var(--tinta-800);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) .texto > ol > li::before {
    background: var(--tinta-800);
  }
}
.texto strong {
  font-weight: 700;
}
.texto code {
  font-family: var(--fonte-mono);
  font-size: 0.875em;
  background: var(--codigo-fundo);
  border-radius: 0.3rem;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
.texto pre.codigo {
  background: var(--pre-fundo);
  color: var(--pre-texto);
  border-radius: var(--raio-p);
  padding: 1rem 1.125rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.55;
}
.texto pre.codigo code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  overflow-wrap: normal;
}
.texto hr {
  border: 0;
  border-top: 1px solid var(--borda-forte);
  margin: 2rem 0;
}
.texto blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--borda-forte);
  color: var(--texto-2);
}
.link-quebrado {
  text-decoration: underline dotted;
  text-decoration-color: var(--tinta-400);
}

/* tabelas (ui.tsx: Th/Td — cabeçalho escuro, texto branco) */
.tabela {
  overflow-x: auto;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--superficie);
}
.tabela:focus-visible {
  outline-offset: 2px;
}
.tabela table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.tabela thead {
  background: var(--tinta-900);
}
.tabela th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.9);
  white-space: nowrap;
}
.tabela td {
  padding: 0.7rem 1rem;
  color: var(--texto-2);
  border-top: 1px solid var(--borda);
  vertical-align: top;
}
.tabela tbody tr:nth-child(even) td {
  background: var(--superficie-2);
}
.tabela td:first-child {
  color: var(--texto);
  font-weight: 500;
}
.tabela kbd {
  font-size: 0.8125rem;
}

/* caixas coloridas (ui.tsx: AlertaErro / AvisoSucesso) */
.caixa {
  border-radius: var(--raio-p);
  border: 1px solid;
  border-left-width: 4px;
  padding: 0.75rem 1rem 0.85rem;
  font-size: 0.9875rem;
  line-height: 1.6;
}
.caixa-rotulo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.caixa-rotulo svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.caixa-corpo > * + * {
  margin-top: 0.5rem;
}
.caixa-corpo p {
  margin: 0;
}
.caixa-corpo ul,
.caixa-corpo ol {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}
.caixa-dica {
  background: var(--dica-fundo);
  border-color: var(--dica-borda);
  color: var(--dica-texto);
}
.caixa-atencao {
  background: var(--atencao-fundo);
  border-color: var(--atencao-borda);
  color: var(--atencao-texto);
}
.caixa-importante {
  background: var(--imp-fundo);
  border-color: var(--imp-borda);
  color: var(--imp-texto);
}
.caixa-nota {
  background: var(--nota-fundo);
  border-color: var(--nota-borda);
  color: var(--nota-texto);
}
.caixa a {
  color: inherit;
  font-weight: 600;
}
.caixa code {
  background: rgb(0 0 0 / 0.06);
}

/* veja também / paginação */
.relacionados {
  margin-top: 3rem;
  max-width: 46rem;
}
.relacionados h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-suave);
  margin-bottom: 0.75rem;
}
.lista-cartoes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.cartao-link {
  display: block;
  height: 100%;
  padding: 0.875rem 1rem;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  text-decoration: none;
  color: var(--texto);
  transition: border-color 0.15s;
}
.cartao-link:hover {
  border-color: var(--marca-400);
  color: var(--texto);
}
.cartao-link strong {
  display: block;
  font-size: 0.9375rem;
  margin-top: 0.15rem;
}
.cartao-modulo {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-suave);
}
.cartao-resumo {
  display: block;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  margin-top: 0.2rem;
  line-height: 1.45;
}
.paginacao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borda-forte);
  max-width: 46rem;
}
.paginacao a {
  display: block;
  padding: 0.875rem 1rem;
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio);
  background: var(--superficie);
  text-decoration: none;
  color: var(--texto);
}
.paginacao a:hover {
  border-color: var(--marca-500);
}
.paginacao span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--texto-suave);
}
.paginacao strong {
  display: block;
  font-size: 0.9375rem;
  margin-top: 0.15rem;
}
.pag-prox {
  text-align: right;
}

/* ------------------------------------------------------------ versões */

.versoes-acoes {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: -0.5rem 0 1rem;
}
.linha-tempo {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0 0 0 1.5rem;
  position: relative;
}
.linha-tempo::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--borda-forte);
}
.versao-item {
  position: relative;
  scroll-margin-top: 1rem;
}
.versao-item + .versao-item {
  margin-top: 0.75rem;
}
.versao-item details {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}
.versao-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.875rem 1.125rem;
  border-radius: var(--raio);
}
.versao-item summary::-webkit-details-marker {
  display: none;
}
.versao-item summary:hover {
  background: var(--realce);
}
.versao-item summary::after {
  content: "";
  position: absolute;
  right: 1.125rem;
  top: 1.2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--texto-suave);
  border-bottom: 2px solid var(--texto-suave);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.versao-item details[open] > summary::after {
  transform: rotate(225deg);
  top: 1.4rem;
}
.versao-ponto {
  position: absolute;
  left: -1.5rem;
  top: 1.05rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--superficie);
  border: 3px solid var(--tinta-400);
}
.versao-item:first-child .versao-ponto {
  border-color: var(--marca-500);
  background: var(--marca-500);
}
.versao-item .versao-num {
  font-size: 1.0625rem;
}
.versao-item .versao-resumo {
  padding-right: 1.5rem;
}
.versao-corpo {
  padding: 0.25rem 1.125rem 1.25rem;
  border-top: 1px solid var(--borda);
  font-size: 0.9875rem;
  max-width: none;
}
.versao-corpo > :first-child {
  margin-top: 1rem;
}
.versao-corpo h2 {
  font-size: 1.125rem;
}
.versao-corpo h3 {
  font-size: 1rem;
}
.versao-link {
  font-size: 0.875rem;
}

/* ------------------------------------------------------------ busca */

.busca-status {
  font-size: 0.875rem;
  color: var(--texto-suave);
  margin: 1rem 0 0.5rem;
  min-height: 1.4em;
}
.resultados {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}
.resultados li + li {
  margin-top: 0.625rem;
}
.resultados a {
  display: block;
  padding: 1rem 1.125rem;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  text-decoration: none;
  color: var(--texto);
}
.resultados a:hover,
.resultados a:focus-visible {
  border-color: var(--marca-500);
}
.resultados .res-titulo {
  font-size: 1.0625rem;
  color: var(--link);
}
.resultados .res-trecho {
  -webkit-line-clamp: 3;
  font-size: 0.875rem;
  margin-top: 0.3rem;
}
.resultados .res-vazio {
  padding: 1.5rem;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  color: var(--texto-2);
}
.resultados .res-vazio ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

/* 404 */
.pagina-404 {
  margin: 3rem 0;
}
.pagina-404 h1 {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  color: var(--texto);
}
.pagina-404 .busca-grande {
  max-width: 32rem;
  margin: 1.5rem auto;
  text-align: left;
}
.codigo-404 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 3rem;
  margin: 0;
  color: var(--marca-500);
  line-height: 1;
}

/* rodapé */
.rodape {
  border-top: 1px solid var(--borda);
  background: var(--superficie);
  font-size: 0.8125rem;
  color: var(--texto-suave);
}
.rodape-linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.rodape-links {
  display: flex;
  gap: 1.25rem;
}
.rodape a {
  color: var(--texto-suave);
}
.rodape a:hover {
  color: var(--texto);
}

/* ------------------------------------------------------------ responsivo */

@media (max-width: 1180px) {
  .artigo-grade {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
  .toc-col {
    display: none;
  }
}
@media (max-width: 900px) {
  .largura {
    padding: 0 1.25rem;
  }
  .artigo-grade {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-top: 1rem;
  }
  .lateral {
    position: static;
    max-height: none;
    order: 2;
    border-top: 1px solid var(--borda-forte);
    padding-top: 1.5rem;
  }
  .lateral-caixa > summary {
    pointer-events: auto;
    cursor: pointer;
  }
  .categorias,
  .grade-dupla {
    grid-template-columns: minmax(0, 1fr);
  }
  .busca-topo {
    width: auto;
    flex: 1;
    max-width: 22rem;
  }
  .busca-topo .busca-lista {
    min-width: 0;
    left: 0;
    position: fixed;
    top: 3.6rem;
    left: 0.75rem;
    right: 0.75rem;
  }
  .marca-sub {
    display: none;
  }
}
@media (max-width: 600px) {
  .largura {
    padding: 0 1rem;
  }
  .topo-linha {
    flex-wrap: wrap;
    padding: 0.625rem 1rem 0.375rem;
    gap: 0.625rem;
  }
  .busca-topo {
    order: 3;
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .busca-topo .busca-dica {
    display: none;
  }
  .busca-topo input {
    padding-right: 0.75rem;
  }
  .busca-topo .busca-lista {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
  }
  .nav {
    padding: 0.25rem 1rem 0.625rem;
  }
  .hero {
    padding: 2rem 0 1.75rem;
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  .busca-hero input {
    height: 3.375rem;
    font-size: 1rem;
    padding-right: 1rem;
  }
  .busca-grande .busca-dica {
    display: none;
  }
  .busca-grande .botao {
    padding: 0 1rem;
  }
  .teclas {
    justify-content: flex-start;
  }
  .teclas-rotulo {
    text-align: left;
  }
  .grade-modulos {
    grid-template-columns: minmax(0, 1fr);
  }
  .lista-cartoes,
  .paginacao {
    grid-template-columns: minmax(0, 1fr);
  }
  .pag-prox {
    text-align: left;
  }
  .cabeca-pagina h1 {
    font-size: 1.375rem;
  }
  .modulo-icone.grande {
    width: 2.75rem;
    height: 2.75rem;
  }
  .texto {
    font-size: 1rem;
  }
  .artigo-meta .botao {
    margin-left: 0;
  }
  .linha-tempo {
    padding-left: 1.25rem;
  }
  .versao-ponto {
    left: -1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------ impressão */

@media print {
  :root,
  :root[data-theme="escuro"] {
    --fundo: #fff;
    --superficie: #fff;
    --superficie-2: #f5f5f5;
    --texto: #000;
    --texto-2: #222;
    --texto-suave: #444;
    --borda: #ccc;
    --borda-forte: #999;
    --link: #000;
    color-scheme: light;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .topo,
  .pular,
  .lateral,
  .toc-col,
  .paginacao,
  .relacionados,
  .rodape,
  .artigo-meta .botao,
  .ancora,
  .versoes-acoes,
  .busca-grande,
  .trilha {
    display: none !important;
  }
  .largura {
    max-width: none;
    padding: 0;
  }
  .artigo-grade {
    display: block;
    padding: 0;
  }
  .texto {
    max-width: none;
    font-size: 11pt;
  }
  .texto a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
  .texto h2,
  .texto h3 {
    break-after: avoid;
  }
  .caixa,
  .tabela,
  pre,
  .texto > ol > li {
    break-inside: avoid;
  }
  .caixa {
    background: #fff !important;
    color: #000 !important;
    border-color: #555 !important;
  }
  .tabela thead {
    background: #e5e5e5;
  }
  .tabela th {
    color: #000;
  }
  .texto > ol > li::before {
    background: #fff;
    color: #000;
    border: 1.5px solid #000;
  }
  kbd {
    background: #fff;
    color: #000;
    border-color: #555;
  }
  .texto pre.codigo {
    background: #f3f3f3;
    color: #000;
    border: 1px solid #ccc;
  }
  .versao-item details > summary::after,
  .versao-ponto {
    display: none;
  }
  .linha-tempo {
    padding: 0;
  }
  .linha-tempo::before {
    display: none;
  }
}

/* destaques da versão (front matter "destaques") */
.versao-destaques {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.versao-destaques li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--superficie-2);
  border: 1px solid var(--borda);
  color: var(--texto-2);
}

.teclas-mais {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
}
.teclas-mais a {
  color: var(--texto-suave);
}
.teclas-mais a:hover {
  color: var(--texto);
}
.tecla-rotulo {
  font-weight: 500;
}
@media (max-width: 600px) {
  .teclas-mais {
    text-align: left;
  }
}

/* ------------------------------------------------------------ download dos instaladores */
.aviso-download {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.aviso-download p {
  margin: 0;
  flex: 1 1 18rem;
  color: var(--texto-2);
  font-size: 0.875rem;
}
.bloco-download {
  margin: 0 0 0.75rem;
}
.botao svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}


/* imagens dos artigos (![alt](imagem:pdv/x.png "legenda") no Markdown → <figure class="figura">) */
.figura {
  margin: 1rem 0 1.25rem;
  max-width: 100%;
}
li > .figura {
  margin: 0.6rem 0 0.9rem;
}
.figura-link {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio-p);
  overflow: hidden;
  background: var(--superficie);
  box-shadow: var(--sombra-alta);
  cursor: zoom-in;
  line-height: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.figura-link:hover {
  border-color: var(--marca-400);
}
.figura-link:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
}
.figura img {
  display: block;
  max-width: 100%;
  height: auto;
  /* janelas altas (pagamento, cupom) não ocupam a tela inteira; o clique abre em tamanho real */
  max-height: 640px;
  width: auto;
}
.figura figcaption {
  margin-top: 0.45rem;
  color: var(--texto-suave);
  font-size: 0.8125rem;
  line-height: 1.4;
}
@media print {
  .figura {
    break-inside: avoid;
  }
  .figura-link {
    box-shadow: none;
  }
  .figura img {
    max-height: 9cm;
    width: auto;
  }
}
