/* Estilos limitados al shortcode de lecciones; no afectan Home ni LearnDash. */
.nc-leccion-embed{width:100%;max-width:1120px;margin:0 auto;padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box;min-width:0;overflow-anchor:none;--nc-lesson-top-offset:0px}
.nc-leccion-embed>iframe[data-neurochess-leccion="1"]{display:block;width:100%;max-width:100%;height:560px;min-height:0;border:0;background:#fff;border-radius:16px;box-shadow:none;overflow-anchor:none}
.nc-leccion-error{padding:12px;color:#8b2525}
@media (max-width:600px) {
  /* Keep a margin inside the page padding even with WordPress constrained layouts. */
  .nc-leccion-embed[data-nc-mobile-room] {
    width:calc(100% + var(--nc-mobile-extra) + var(--nc-mobile-extra));
    max-width:none;
    margin-inline:calc(0px - var(--nc-mobile-extra))!important;
  }
}
