/* Estilos propios de source.html y diff.html */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#messages:empty { display: none; }
#messages p { color: #b00020; }

/* Bloque de código con números de línea */
.src-block {
  display: flex;
  overflow-x: auto;
  margin: 0.5em 0 2em;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
  background: #f7f7f8;
}

.src-block pre {
  margin: 0;
  padding: 0.8em 1em;
  border: 0;
  background: transparent;
  font-size: 0.85em;
  line-height: 1.45;
}

.src-block .lines {
  border-right: 1px solid #e1e1e8;
  color: #6b6b6b; /* contraste AA sobre #f7f7f8 */
  text-align: right;
  user-select: none;
}

.src-block .code { flex: 1; }
.src-block .code:focus-visible { outline: 2px solid #2156a5; outline-offset: -2px; }

.src-block code.hljs {
  padding: 0;
  overflow: visible;
  background: transparent;
}

/* Página de comparación (no usa asciidoctor.css) */
.diff-page {
  margin: 0;
  padding: 1em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.diff-page h1 {
  margin: 0 0 0.75em;
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
