/* HireZone v3.2 — tablas que no se cortan y barra lateral sólo en PC.
   Esta hoja se carga DESPUÉS del CSS del tema y del módulo v3.0. */
body.single-post .hz30-page,
body.single-post .hz30-layout,
body.single-post .hz30-main,
body.single-post .hz30-entry-content{
  min-width:0;
  max-width:100%;
}
body.single-post .hz30-entry-content :is(table, figure.wp-block-table, .hz-table-wrap){max-width:100%;}

/* La barra lateral se mantiene únicamente en escritorios. */
@media (max-width:1023px){
  body.single-post .hz30-page .hz30-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
  }
  body.single-post .hz30-page .hz-article-sidebar.hz30-sidebar,
  body.single-post .hz30-page .hz30-sidebar,
  body.single-post .hz30-page aside.hz-article-sidebar{
    display:none!important;
  }
}

/* En móviles los datos de cada fila pasan a ser fichas legibles y completas.
   Se respeta el contenido original, sin convertir ni modificar el HTML guardado. */
@media (max-width:767px){
  body.single-post .hz30-entry-content{
    width:100%;
    min-width:0;
    overflow-wrap:anywhere;
  }
  body.single-post .hz30-entry-content .hz-table-wrap,
  body.single-post .hz30-entry-content .wp-block-table,
  body.single-post .hz30-entry-content .wp-block-table.is-style-stripes{
    display:block;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    padding:0!important;
    margin:20px 0 28px;
    border:0!important;
    border-radius:0;
  }
  body.single-post .hz30-entry-content table{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:auto!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    margin:0!important;
    font-size:14px;
    line-height:1.55;
  }
  body.single-post .hz30-entry-content table colgroup{display:none!important;}
  body.single-post .hz30-entry-content table thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    clip-path:inset(50%)!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    border:0!important;
  }
  body.single-post .hz30-entry-content table :is(tbody,tfoot){
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  body.single-post .hz30-entry-content table tbody>tr,
  body.single-post .hz30-entry-content table tfoot>tr{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0 0 14px!important;
    padding:0!important;
    background:#fff!important;
    border:1px solid #ded5fc!important;
    border-radius:15px!important;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(55,31,118,.075);
  }
  body.single-post .hz30-entry-content table tbody>tr:last-child,
  body.single-post .hz30-entry-content table tfoot>tr:last-child{margin-bottom:0!important;}
  body.single-post .hz30-entry-content table :is(td, tbody th, tfoot th){
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    padding:13px 15px!important;
    margin:0!important;
    border:0!important;
    background:#fff!important;
    color:#413b5d;
    font-size:13.5px;
    font-weight:500;
    line-height:1.65;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal;
  }
  body.single-post .hz30-entry-content table :is(td, tbody th, tfoot th):not(:last-child){
    border-bottom:1px solid #eee9fc!important;
  }
  body.single-post .hz30-entry-content table tbody tr :is(td,th):first-child,
  body.single-post .hz30-entry-content table tfoot tr :is(td,th):first-child{
    background:linear-gradient(110deg,#f2edff,#fbfaff)!important;
    color:#291d65!important;
    font-weight:800;
  }
  body.single-post .hz30-entry-content table td[data-hz32-label]::before{
    content:attr(data-hz32-label);
    display:block;
    margin-bottom:5px;
    font-size:10px;
    font-weight:900;
    line-height:1.4;
    letter-spacing:.075em;
    text-transform:uppercase;
    color:#6b4be9;
    white-space:normal;
  }
  body.single-post .hz30-entry-content table td :is(a,span,strong,em),
  body.single-post .hz30-entry-content table th :is(a,span,strong,em){
    max-width:100%;
    overflow-wrap:anywhere;
  }
  body.single-post .hz30-entry-content table :is(td,th) :is(img,iframe){
    max-width:100%;
    height:auto;
  }
  body.single-post .hz30-entry-content table :is(td,th) p{margin:0 0 8px;}
  body.single-post .hz30-entry-content table :is(td,th) p:last-child{margin-bottom:0;}
}
