/* Piloto acotado: las tablas originales permanecen accesibles sin JavaScript. */
.obr-convenio-lectura .entry-content table { display:table; white-space:normal; table-layout:auto; }
.obr-convenio-lectura .entry-content td,
.obr-convenio-lectura .entry-content th { white-space:normal; overflow-wrap:break-word; word-break:normal; }
@media(min-width:641px) {
  .obr-convenio-lectura .entry-content table :is(td,th):first-child { min-width:7.5rem; }
  .obr-convenio-lectura .entry-content table:has(thead th:nth-child(2):last-child) :is(td,th):first-child { width:24%; }
}
.obr-convenio-lectura .entry-content .wp-block-table { max-width:100%; overflow-x:auto; }
.obr-convenio-lectura .entry-content .obr-quick-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0 1.5rem; }
.obr-convenio-lectura .obr-quick-nav a { border:1px solid #c7d6df; border-radius:6px; padding:.55rem .8rem; color:#164665; background:#f2f7fa; font-weight:700; text-decoration:none; }
.obr-convenio-lectura .entry-content :is(h2,h3,[id]) { scroll-margin-top:1.3rem; }
.obr-salary-picker { margin:1.2rem 0; padding:1.2rem; border:1px solid #bdcfda; border-top:4px solid #1b4f72; border-radius:8px; background:#f5f9fc; }
.obr-salary-picker label { display:block; font-weight:700; color:#1b4f72; margin-bottom:.5rem; }
.obr-salary-picker select { display:block; box-sizing:border-box; width:100%; max-width:100%; min-height:48px; padding:.7rem; border:1px solid #819aaa; border-radius:5px; background:white; color:#22292e; font-size:1rem; }
.obr-salary-picker .obr-salary-picker__help { font-size:.9rem; margin:.6rem 0 0; }
.obr-salary-card { margin-top:1rem; border-top:1px solid #bdcfda; padding-top:1rem; }
.obr-salary-card dl { margin:0; }
.obr-salary-card dt { font-weight:700; color:#1b4f72; margin-top:.8rem; }
.obr-salary-card dd { margin:.3rem 0 .7rem; }
.obr-salary-card ul { margin:0; padding-left:1.25rem; }
.obr-convenio-lectura .entry-content .obr-salary-card li { margin-bottom:.3rem; }
.obr-salary-table-hint { font-size:.88rem; color:#4b5e6a; }
.obr-convenio-promo { box-sizing:border-box; clear:both; margin:1.8rem 0; border:1px solid #b8d9cf; border-left:4px solid #26745d; border-radius:8px; padding:1.2rem 1.35rem; background:#f1faf6; }
.obr-convenio-lectura .entry-content .obr-convenio-promo p { margin:0 0 .65rem; }
.obr-convenio-promo__label { font-size:.74rem; line-height:1.4; font-weight:700; color:#426757; }
.obr-convenio-promo__title { font-size:1.15rem; color:#194d3c; }
.obr-convenio-lectura .entry-content .obr-convenio-promo__link { display:inline-block; min-height:44px; box-sizing:border-box; padding:.5rem .85rem; background:#1c654d; color:white; font-weight:700; border-radius:5px; text-decoration:none; }
.obr-convenio-lectura :is(.obr-convenio-promo__link,.obr-quick-nav a,select):focus-visible { outline:3px solid #a64c00; outline-offset:3px; }
.obr-convenio-lectura .entry-content .obr-convenio-promo__link:hover { background:#144d3b; color:white; }
@media(max-width:640px) {
  .obr-convenio-lectura h1.entry-title { font-size:1.65rem; line-height:1.23; }
  .obr-convenio-lectura .entry-content { font-size:1rem; }
  .obr-convenio-lectura .entry-content :is(td,th) { padding:.6rem; }
  .obr-convenio-lectura .entry-content table { font-size:.9rem; }
  .obr-convenio-lectura .entry-content table.obr-mobile-cards { display:block; width:100%; border:0; }
  .obr-mobile-cards thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .obr-mobile-cards tbody, .obr-mobile-cards tbody tr { display:block; }
  .obr-mobile-cards tbody tr { margin-bottom:1rem; border:1px solid #cddae2; border-radius:6px; overflow:hidden; }
  .obr-convenio-lectura .entry-content .obr-mobile-cards tbody td { display:block; box-sizing:border-box; width:100%; border:0; border-bottom:1px solid #e0e7eb; padding:.65rem .8rem; }
  .obr-mobile-cards tbody td:last-child { border-bottom:0; }
  .obr-mobile-cards tbody td::before { content:attr(data-column); display:block; font-weight:700; color:#1b4f72; margin-bottom:.2rem; }
  .obr-convenio-promo { padding:1rem; }
}
@media print {
  .obr-quick-nav, .obr-salary-picker, .obr-convenio-promo, .obr-salary-table-hint { display:none!important; }
  .obr-convenio-lectura .entry-content table { display:table!important; font-size:9pt; table-layout:fixed; }
  .obr-convenio-lectura .entry-content thead { display:table-header-group; position:static; width:auto; height:auto; clip-path:none; }
  .obr-convenio-lectura .entry-content tbody { display:table-row-group; }
  .obr-convenio-lectura .entry-content tr { display:table-row; break-inside:avoid; }
  .obr-convenio-lectura .entry-content :is(th,td) { display:table-cell!important; }
  .obr-convenio-lectura .entry-content td::before { display:none; }
}
.obr-convenio-lectura .obr-jornada-link {margin:1.5rem 0;padding:1.1rem;border:1px solid #c9d5dd;border-left:4px solid #17577c;border-radius:6px;background:#f2f6f8;}
.obr-convenio-lectura .obr-jornada-link p {margin:.35rem 0 .6rem;}
.obr-convenio-lectura .obr-jornada-link a {display:inline-block;padding:.5rem 0;min-height:44px;font-weight:700;}
