/* TDL — normas en mobile. Solo celulares. */
@media (max-width: 767px) {

  /* Barra "Ir a la norma": una sola fila compacta y bien debajo del header */
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps.tdl-fixed {
    top: calc(var(--tdl-mhead-h, 122px) + 6px) !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps > span { display: none !important; }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps ol {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 2px !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps ol::-webkit-scrollbar { display: none !important; }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps ol li { flex: 0 0 auto !important; scroll-snap-align: start; }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps ol li a {
    width: 38px !important;
    height: 38px !important;
    min-height: 0 !important;
    font-size: 15px !important;
  }
  /* Botón de cupos: corto, al lado de los números */
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps .tdl-limits-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 38px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    gap: 6px !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps .tdl-limits-btn i { font-size: 14px !important; }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-jumps .tdl-limits-btn::after {
    content: "Cupos";
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-entry,
  html body.page-normas:not(#x):not(#y):not(#z) #cupos-por-especie {
    scroll-margin-top: calc(var(--tdl-mhead-h, 122px) + 70px) !important;
  }

  /* Normas: más ancho para el texto */
  html body.page-normas:not(#x):not(#y):not(#z) .normas-entry {
    grid-template-columns: 34px minmax(0,1fr) !important;
  }

  /* Cupos por especie: 3 por fila, compactos */
  html body.page-normas:not(#x):not(#y):not(#z) .normas-cupos-grupo dl {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 8px !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-cupos-grupo .tdl-cupo {
    padding: 8px 6px 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    text-align: center !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-cupos-grupo .tdl-cupo img {
    height: 62px !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto 6px !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-cupos-grupo .tdl-cupo dt {
    display: block !important;
    max-width: 100% !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-cupos-grupo .tdl-cupo dd {
    font-size: 10.5px !important;
    margin-top: 2px !important;
  }
  html body.page-normas:not(#x):not(#y):not(#z) .normas-cupos-grupo .tdl-cupo dd b { font-size: 18px !important; }
}
