/* modalidad40.css — modalidad 40 y pensión Ley 73 (México, 24-10-2026).
   Se carga DETRÁS de herramientas.css, laboral.css y prestaciones.css. Solo lo propio, con el prefijo `lt-herr-m40__`.
   Sin colores nuevos: tokens --herr-*. Nada de estilos en línea (CSP). */

/* Campos de la modalidad 40: solo con «Sí». Sin :has se ven siempre y el servidor los ignora con «No». */
.lt-herr--m40 .lt-herr__form:has(input[name="mod40"][value="no"]:checked) .lt-herr-m40__si-mod40 { display: none; }

.lt-herr-m40__ymyl { margin-top: 14px; }
.lt-herr-m40__sin-derecho { margin: 12px 0; }

/* Sin y con modalidad 40 */
.lt-herr-m40__comparar { margin-top: 16px; overflow-x: auto; }
.lt-herr-m40__tabla { width: 100%; }
.lt-herr-m40__tabla { table-layout: auto; }
.lt-herr-m40__tabla th[scope="row"] { white-space: normal; min-width: 8.5em; }
.lt-herr-m40__tabla thead th { white-space: normal; }
.lt-herr-m40__tabla td { white-space: nowrap; font-variant-numeric: tabular-nums; }

.lt-herr-m40__mod { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.lt-herr-m40__mod div {
  min-width: 0; padding: 10px 12px; border: 1px solid var(--herr-divider); border-radius: 12px; background: var(--herr-canvas);
}
.lt-herr-m40__mod dt { margin: 0; font-size: 13px; font-weight: 600; color: var(--herr-text-2); }
.lt-herr-m40__mod dd {
  margin: 2px 0 0; font-family: var(--herr-font-head); font-size: 18px; font-weight: 700; color: var(--herr-ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

/* Requisitos */
.lt-herr-m40__requisitos { list-style: none; margin: 8px 0 18px; padding: 0; }
.lt-herr-m40__req { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; font-size: 15px; line-height: 1.45; color: var(--herr-ink); }
.lt-herr-m40__req-marca { flex: 0 0 18px; font-weight: 700; text-align: center; }
.lt-herr-m40__req--no .lt-herr-m40__req-marca { color: var(--herr-ink); }
.lt-herr-m40__req--revisar .lt-herr-m40__req-marca { color: var(--herr-text-2); }
.lt-herr-m40__req-norma { font-size: 13px; color: var(--herr-text-2); }
.lt-herr-m40__grupo { margin: 6px 0 10px; font-size: 15px; line-height: 1.5; color: var(--herr-text-2); }

@media (max-width: 479.98px) {
  .lt-herr-m40__mod { grid-template-columns: 1fr; }
  .lt-herr-m40__tabla th, .lt-herr-m40__tabla td { padding-left: 8px; padding-right: 8px; font-size: 14px; }
}
