/* Preserve desktop tables; keep each complete record readable on a phone. */
@media (max-width:700px){
  .mobile-card-scroll{max-width:100%;min-width:0;overflow:visible}
  .mobile-card-table{position:relative;display:block;width:100%;min-width:0;max-width:100%;border-collapse:separate}
  /* Headers remain available to assistive technology alongside explicit roles. */
  .mobile-card-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
  .mobile-card-table tbody{display:block;width:100%;min-width:0}
  .mobile-card-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px;min-width:0;width:100%;padding:19px 0;border:0;border-bottom:1px solid var(--line)}
  .mobile-card-table tbody tr:first-child{padding-top:9px}
  .mobile-card-table tbody tr:last-child{border-bottom:0}
  .mobile-card-table tbody td{display:block;min-width:0!important;max-width:100%;width:auto;padding:0!important;border:0;white-space:normal!important;overflow-wrap:anywhere;text-align:left;vertical-align:top;font-size:.875rem;line-height:1.6}
  .mobile-card-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:5px;color:var(--muted);font-size:.75rem;line-height:1.4;font-weight:600}
  .mobile-card-table td.mobile-cell-wide,.mobile-card-table td[colspan]{grid-column:1/-1}
  .mobile-card-table .mobile-cell-heading{color:var(--ink);font-weight:600}
  .mobile-card-table .mobile-cell-heading .source-tag{font-weight:400}
  .mobile-card-table .draw-date-button{justify-content:flex-start;min-height:44px;max-width:100%;margin:0;padding:5px 0;white-space:normal;text-align:left}
  .mobile-card-table .mobile-cell-numbers .balls{justify-content:flex-start;flex-wrap:nowrap;gap:clamp(4px,1.5vw,7px);max-width:100%;padding:2px 0}
  .mobile-card-table .mobile-cell-numbers .ball{width:clamp(28px,8vw,34px);height:clamp(28px,8vw,34px);font-size:.8125rem}
  .mobile-card-table .source-link{display:flex;align-items:center;min-height:44px;max-width:100%;line-height:1.5;overflow-wrap:anywhere}
  .mobile-card-table .source-tag,.mobile-card-table .field-provenance{white-space:normal;overflow-wrap:anywhere}
  .mobile-card-table .pill{min-width:0;max-width:100%;white-space:normal}
  .mobile-card-table button.small{min-height:44px}
  .mobile-results-table tbody tr,.mobile-results-table tbody tr:first-child{padding:18px 16px}
  .mobile-practice-table td:last-child{min-width:0}
  .mobile-card-table .run-details{min-width:0;max-width:100%}
  .mobile-card-table .run-details summary{min-height:44px;white-space:normal;overflow-wrap:anywhere}
  .mobile-card-table .run-detail-content{min-width:0;max-width:100%;padding-top:5px;overflow-wrap:anywhere}
  .mobile-card-table .run-detail-content ul{padding-left:18px}
}
