/* Companion stylesheet to CDN Tailwind. Mobile-first; only adds rules. */

/* Responsive table -> stacked cards on phones (matches Tailwind's md breakpoint). */
@media (max-width: 767.98px) {
  table.rtable, table.rtable tbody, table.rtable tr, table.rtable td { display: block; width: 100%; }
  table.rtable thead { display: none; }
  table.rtable tr {
    border: 1px solid #334155;        /* slate-700 */
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  table.rtable td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    border: 0;
    text-align: right;
    max-width: none;                  /* override Tailwind max-w-xs/md truncation */
    white-space: normal;
    overflow: visible;
  }
  table.rtable td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #94a3b8;                   /* slate-400 */
    text-align: left;
    white-space: nowrap;
  }
  table.rtable td:not([data-label])::before,
  table.rtable td[data-label=""]::before { content: none; }
}
