/*
 * Lamari Diarios · Legibilidad y objetivos táctiles globales v1.40.654
 * Capa final conservadora: sube el suelo tipográfico y refuerza controles sin
 * alterar iconos, creatividades, jerarquías de héroe ni tamaños de títulos.
 */
:root{
  --kd-readable-body:15px;
  --kd-readable-meta:12.5px;
  --kd-readable-control:14px;
  --kd-readable-line:1.58;
}

/* Texto corriente dentro de módulos Lamari: evita 11/12/13 px heredados. */
body :where([class^="kd-"],[class*=" kd-"]) :where(p,li,dd,td,blockquote){
  font-size:var(--kd-readable-body)!important;
  line-height:var(--kd-readable-line)!important;
  font-weight:500;
  text-rendering:optimizeLegibility;
}

/* Metadatos: siguen siendo secundarios, pero dejan de ser microtexto. */
body :where([class^="kd-"],[class*=" kd-"]) :where(small,time,figcaption){
  font-size:var(--kd-readable-meta)!important;
  line-height:1.45!important;
  font-weight:600;
}

/* Excepciones visuales deliberadas: badges compactos y creatividades. */
body :where(.kd-grow-menu-badge,.kd-topbar-badge,.kd-sponsored-section-hero-label,.kd-ad-slot-copy,.kd-promo-stage-mark) :where(small,span){
  font-size:inherit!important;
  line-height:inherit!important;
}

/* Campos legibles y estables, especialmente en móviles. */
body :where([class^="kd-"],[class*=" kd-"]) :where(input:not([type="checkbox"]):not([type="radio"]),textarea,select){
  font-size:var(--kd-readable-control)!important;
  line-height:1.4!important;
  font-weight:500;
}

/* El foco de teclado nunca desaparece bajo estilos de terceros. */
body :where([class^="kd-"],[class*=" kd-"]) :where(a,button,input,textarea,select):focus-visible{
  outline:3px solid currentColor!important;
  outline-offset:3px!important;
}

/* En pantallas táctiles, acciones reales >=44 px sin agrandar enlaces de texto. */
@media (pointer:coarse), (max-width:782px){
  body :where([class^="kd-"],[class*=" kd-"]) :where(button,[role="button"],.kd-button,a[class*="-button"],a[class*="-action"],a[class*="-cta"]){
    min-height:44px;
  }
  body :where([class^="kd-"],[class*=" kd-"]) :where(input:not([type="checkbox"]):not([type="radio"]),textarea,select){
    min-height:44px;
    font-size:16px!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body :where([class^="kd-"],[class*=" kd-"]) *,
  body :where([class^="kd-"],[class*=" kd-"]) *::before,
  body :where([class^="kd-"],[class*=" kd-"]) *::after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
