/* Misma jerarquía que los apartados contiguos, también en las guías con vídeo. */
@media screen {
  main article .guide-video-strip h2.guide-video-heading {
    font-size: var(--pb-prose-h2-size, clamp(1.33rem, 2vw, 1.62rem)) !important;
    line-height: 1.22 !important;
    margin: 0 0 .75rem !important;
  }
  main table[data-pb-lectura-tabla] {
    width: 100%;
    min-width: 0 !important;
    font-variant-numeric: tabular-nums;
  }
  main table[data-pb-lectura-tabla] :is(th, td, caption, .pb-cifras-valor) {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  main .pb-figure-sheet table[data-pb-lectura-tabla] :is(th, td, .pb-cifras-valor) {
    text-align: start !important;
  }
  main .pb-figure-sheet table[data-pb-lectura-tabla] .pb-cifras-valor { font-weight: 400 !important; }
  main table[data-pb-lectura-tabla] :is(td, th)[data-pb-cantidad] {
    text-align: center !important;
    hyphens: none;
  }
}

@media screen and (max-width: 740px) {
  main table[data-pb-lectura-tabla] :is(th, td, caption) {
    padding: .62rem .55rem !important;
    font-size: .91rem !important;
    line-height: 1.46 !important;
    vertical-align: top;
  }
  main table[data-pb-lectura-tabla="par"] { table-layout: auto !important; }
  main table[data-pb-lectura-tabla="par"] tr > :is(th, td) {
    width: auto !important;
    padding-inline: clamp(.35rem, 1.6vw, .7rem) !important;
    overflow-wrap: normal !important;
  }

  /* La cabecera sigue asociada a las celdas. Cada fila muestra sus rótulos en móvil. */
  main table[data-pb-lectura-tabla="filas"],
  main table[data-pb-lectura-tabla="filas"] :is(caption, tbody, tr) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
  }
  main table[data-pb-lectura-tabla="filas"] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  main table[data-pb-lectura-tabla="filas"] tbody tr {
    border: 1px solid #cbd8d1;
    border-radius: .62rem;
    background: #fffcf7;
  }
  main table[data-pb-lectura-tabla="filas"] tbody tr + tr { margin-top: .8rem; }
  main table[data-pb-lectura-tabla="filas"] tbody tr > :is(th, td) {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    padding: .52rem .78rem !important;
    border: 0 !important;
    color: #102e3c !important;
    background: transparent !important;
    text-align: start;
    font-weight: 400;
  }
  main table[data-pb-lectura-tabla="filas"] tbody tr > :first-child {
    background: #e6efe8 !important;
    border-radius: .55rem .55rem 0 0;
    font-weight: 650;
  }
  main table[data-pb-lectura-tabla="filas"] :is(.pb-campo-movil, .pb-cifras-label) {
    display: block !important;
    margin-bottom: .16rem;
    color: #235246;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
  }
  main table[data-pb-lectura-tabla="filas"] tbody a {
    color: #13483f !important;
    text-decoration: underline;
    text-underline-offset: .15em;
  }
}
