/* Axler · Matemática Abierta. Solo afecta a los contenidos dentro de
   .axler-edicion. Paleta aproximada al PDF: amarillo para definiciones y
   notaciones; azul para teoremas. Adaptación editorial para modo oscuro. */
.axler-edicion {
  --axler-azul: #1267ad;
  --axler-amarillo: #fff8bf;
  --axler-azul-caja: #dceefd;
  --axler-texto: #202124;
  --axler-texto-recuadro: #171717;
  --axler-secundario: #39424d;
  --axler-borde: #67717d;
  --axler-divisor: #787878;
  --axler-nota: #f3f5f8;
  --axler-enlace: #075a9c;
  max-width: 900px;
  margin-inline: auto;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--axler-texto);
  line-height: 1.64;
}
/* Quarto y Bootstrap señalan el tema oscuro a través de estas clases
   o del atributo data-bs-theme. No se cambia el tema del resto del sitio. */
body.quarto-dark .axler-edicion,
html.quarto-dark .axler-edicion,
html[data-bs-theme="dark"] .axler-edicion,
body[data-bs-theme="dark"] .axler-edicion {
  --axler-azul: #9bd0ff;
  --axler-amarillo: #44391c;
  --axler-azul-caja: #1d3550;
  --axler-texto: #e9edf4;
  --axler-texto-recuadro: #f2f4f8;
  --axler-secundario: #c7d0da;
  --axler-borde: #87929e;
  --axler-divisor: #8b96a2;
  --axler-nota: #242d38;
  --axler-enlace: #9bd0ff;
}
.axler-edicion .axler-prefacio-hero {
  background: var(--axler-amarillo);
  border-bottom: 5px solid var(--axler-azul);
  padding: 2.1rem 2rem 1.6rem;
  margin: 0 0 2.2rem;
}
.axler-edicion .axler-prefacio-hero h1 {
  color: var(--axler-azul);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  margin: 0;
}
.axler-edicion > p { margin: 0 0 1rem; }
.axler-edicion .axler-atribucion {
  border-top: 1px solid var(--axler-borde);
  font: .93rem/1.5 system-ui, sans-serif;
  color: var(--axler-secundario);
  padding: .9rem .3rem;
  margin: 1.8rem 0;
}
.axler-edicion .axler-recuadro {
  color: var(--axler-texto-recuadro);
  border: 1px solid var(--axler-borde);
  border-radius: 18px;
  padding: 1rem 1.4rem;
  margin: 1.2rem 0;
  overflow-x: auto;
}
.axler-edicion .axler-recuadro p:first-child {
  border-bottom: 1px solid var(--axler-divisor);
  padding-bottom: .5rem;
  margin-top: 0;
}
.axler-edicion .axler-recuadro p:last-child { margin-bottom: 0; }
.axler-edicion .axler-definicion,
.axler-edicion .axler-notacion { background: var(--axler-amarillo); }
.axler-edicion .axler-teorema { background: var(--axler-azul-caja); }
.axler-edicion .axler-demo-nota {
  border-left: 4px solid var(--axler-azul);
  background: var(--axler-nota);
  padding: .8rem 1rem;
  font: .9rem/1.5 system-ui, sans-serif;
}
.axler-edicion a { color: var(--axler-enlace); }
.axler-edicion hr { border: 0; border-top: 1px solid var(--axler-borde); }
@media (max-width: 620px) {
  .axler-edicion .axler-prefacio-hero { padding: 1.3rem 1rem; }
  .axler-edicion .axler-recuadro { padding: .8rem 1rem; border-radius: 14px; }
}
