/* Tablas y píldoras de red del blog. Vive fuera de /css (sugerido: /blog/blog-tables.css, junto a blog-covers.css).
   Todo va bajo .bpost .bbody para no afectar otras páginas. Tokens de /ds/colors_and_type.css y /assets/empresas.css:
   lilac #F1EDFD, violet #7D4FF6, ink #1D1E20, text #46474F, línea de tabla #e6e1f5, Causten, píldora 999px. */

/* 1. Píldoras de red: neutras, iguales para todas, sin colores de marca */
.bpost .bbody .network-pill{
  display:inline-block;
  margin:2px 0;
  padding:3px 10px;
  border-radius:999px;
  background:#F1EDFD;
  color:#1D1E20;
  font-family:'Causten',var(--font-sans,system-ui,sans-serif);
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:0;
  white-space:nowrap;
  vertical-align:baseline;
}
/* Grupos «Recibe» / «Envía» dentro de una misma celda */
.bpost .bbody .network-group{display:block}
.bpost .bbody .network-group+.network-group{margin-top:10px}
.bpost .bbody .network-label{display:block;margin:0 0 2px;font-size:13px;font-weight:600;color:#46474F}

/* 2. Tablas en tarjetas apiladas a 640 px o menos.
   Wrapper: <div class="btable btable-cards"> (comparativa) o <div class="btable btable-cards btable-rank"> (¿Cuánto recibes?).
   Cada <td> lleva data-label con el texto de su encabezado. Por encima de 640 px se mantiene la tabla actual del blog. */
@media (max-width:640px){
  .bpost .bbody .btable-cards{overflow:visible;margin:20px 0}
  .bpost .bbody .btable-cards table,
  .bpost .bbody .btable-cards tbody,
  .bpost .bbody .btable-cards tr,
  .bpost .bbody .btable-cards td{display:block;width:auto;min-width:0;max-width:none}
  .bpost .bbody .btable-cards table{border:0;font-size:15px;line-height:1.45}
  .bpost .bbody .btable-cards thead{
    position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;
    overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
  }
  .bpost .bbody .btable-cards tbody{display:flex;flex-direction:column;gap:12px}
  .bpost .bbody .btable-cards tr{background:#F1EDFD;border-radius:20px;padding:16px 18px}
  .bpost .bbody .btable-cards td{
    position:static;left:auto;z-index:auto;background:none;box-shadow:none;
    border:0;border-top:1px solid rgba(125,79,246,.16);
    padding:10px 0;text-align:left!important;overflow-wrap:break-word;
  }
  .bpost .bbody .btable-cards td:last-child{padding-bottom:0}
  .bpost .bbody .btable-cards td::before{
    content:attr(data-label);
    display:block;margin:0 0 2px;
    font-size:13px;font-weight:700;line-height:1.3;color:#7D4FF6;
  }
  /* Primera celda = título de la tarjeta */
  .bpost .bbody .btable-cards td:first-child{
    border-top:0;padding:0 0 10px;
    font-size:17px;font-weight:700;line-height:1.3;color:#1D1E20;
  }
  .bpost .bbody .btable-cards td:first-child::before{content:none}
  /* Sobre la tarjeta lila, la píldora pasa a blanco */
  .bpost .bbody .btable-cards .network-pill{background:#fff}

  /* Variante ranking (Puesto | Plataforma | Recibes | De dónde sale) */
  .bpost .bbody .btable-rank td:first-child{
    display:inline-block;margin:0 0 10px;padding:3px 10px;border-radius:999px;
    background:#7D4FF6;color:#fff;font-size:13px;line-height:1.4;
  }
  .bpost .bbody .btable-rank td:not(:first-child){
    display:grid;grid-template-columns:104px minmax(0,1fr);column-gap:12px;align-items:baseline;
  }
  .bpost .bbody .btable-rank td:not(:first-child)::before{display:inline;margin:0}
  .bpost .bbody .btable-rank td:nth-child(2),
  .bpost .bbody .btable-rank td:nth-child(3){font-weight:700;color:#1D1E20}
  .bpost .bbody .btable-rank td:nth-child(4){font-size:14px;color:#46474F}
}
@media (min-width:641px){
  .bpost .bbody .btable-cards:not(.btable-rank){overflow:visible;margin:24px 0}
  .bpost .bbody .btable-cards:not(.btable-rank) table,.bpost .bbody .btable-cards:not(.btable-rank) tbody,.bpost .bbody .btable-cards:not(.btable-rank) td{display:block;width:auto;min-width:0;max-width:none}
  .bpost .bbody .btable-cards:not(.btable-rank) table{border:0;font-size:15px;line-height:1.45}
  .bpost .bbody .btable-cards:not(.btable-rank) thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
  .bpost .bbody .btable-cards:not(.btable-rank) tbody{display:flex;flex-direction:column;gap:16px}
  .bpost .bbody .btable-cards:not(.btable-rank) tr{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));column-gap:24px;background:#F1EDFD;border-radius:20px;padding:20px 24px}
  .bpost .bbody .btable-cards:not(.btable-rank) td{position:static;background:none;box-shadow:none;border:0;border-top:1px solid rgba(125,79,246,.16);padding:12px 0;text-align:left!important}
  .bpost .bbody .btable-cards:not(.btable-rank) td::before{content:attr(data-label);display:block;margin:0 0 2px;font-size:13px;font-weight:700;color:#7D4FF6}
  .bpost .bbody .btable-cards:not(.btable-rank) td:first-child{grid-column:1/-1;border-top:0;padding:0 0 4px;font-size:18px;font-weight:700;color:#1D1E20}
  .bpost .bbody .btable-cards:not(.btable-rank) td:first-child::before{content:none}
  .bpost .bbody .btable-cards:not(.btable-rank) .network-pill{background:#fff}
}
