/*
 * Escala tipográfica común de SAD Consulting.
 *
 * Se mantiene el texto de lectura en su tamaño original para preservar
 * legibilidad y accesibilidad. Esta hoja normaliza únicamente los niveles de
 * títulos y se carga después de los estilos base de cada página.
 */

/* Páginas corporativas y de índice. */
.site-page main h1[class*="lg:text-5xl"] {
  font-size: clamp(1.75rem, 3.25vw, 2.625rem);
  line-height: 1.16;
}

.site-page main h2[class*="md:text-3xl"] {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.28;
}

.site-page main h3[class~="text-xl"] {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.4;
}

/* Índice de estudios: títulos de las fichas más compactos. */
.site-page.study-index-page main h2 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  line-height: 1.3;
}

/* Plantilla compartida de los estudios publicados y futuros. */
.study-detail-page main h1 {
  max-width: 56rem;
  font-size: clamp(1.8125rem, 3.2vw, 2.625rem);
  line-height: 1.16;
}

.study-detail-page .markdown-body h2,
.study-detail-page .report-section-title,
.study-detail-page .territory-title,
.study-detail-page .index-title {
  font-size: clamp(1.25rem, 2vw, 1.46875rem);
  line-height: 1.32;
}

.study-detail-page .markdown-body h3,
.study-detail-page .territory-subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.15625rem);
  line-height: 1.42;
}

.study-detail-page .markdown-body h4 {
  font-size: 1rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .study-detail-page main h1 {
    max-width: none;
  }
}
