/* MarketPup batch 13: styles for the Launch Listings fit check, the white-label margin calculator and the review scorecard.
   Loaded only on those pages, next to the unchanged tools7.css. Only the site's colour tokens are used,
   so light and dark mode both follow styles.css. No fixed widths: everything fits a 360px phone. */

/* Review scorecard: one box per business */
.t13-biz { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.t13-biz legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }

/* Review scorecard: the side-by-side table */
.t13-table-wrap { border: 1px solid var(--line); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.t13-table { width: 100%; border-collapse: collapse; }
.t13-table th, .t13-table td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.t13-table tr:last-child td { border-bottom: 0; }
.t13-table thead th { background: var(--bg-soft); font-weight: 600; font-size: .9rem; }
.t13-table tr.is-you td { font-weight: 600; background: var(--glow); }
.t13-table tbody:empty { display: none; }

/* On phones each table row becomes a card with its labels, so nothing scrolls sideways at 360px */
@media (max-width: 640px) {
  .t13-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .t13-stack, .t13-stack tbody, .t13-stack tr, .t13-stack td { display: block; width: 100%; }
  .t13-stack tr { border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .t13-stack tr:last-child { border-bottom: 0; }
  .t13-stack td { border-bottom: 0; padding: .25rem .8rem; }
  .t13-stack td::before { content: attr(data-label); display: block; font-weight: 600; font-size: .8rem; color: var(--ink-2); }
}

/* Fit check: the source list quotes our own pages */
.t7-sources b { font-weight: 600; }
