@media (max-width: 1000px) {
  .table-wrap { display: block !important; overflow-x: auto; }
  .cards, .card-list, #cards { display: none !important; }
  table.grape-table, table.wine-table, table.region-table { min-width: 0 !important; width: 100% !important; }

  /* Compact: show only first 3 columns */
  table.wine-table th:nth-child(n+4),
  table.wine-table td:nth-child(n+4),
  table.region-table th:nth-child(n+4),
  table.region-table td:nth-child(n+4),
  table.grape-table th:nth-child(n+4),
  table.grape-table td:nth-child(n+4) { display: none !important; }

  /* Mobile card box */
  #mobile-card-box { display: block !important; margin: 8px 0 16px; }
  #mobile-card-box .detail-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  #mobile-card-box .detail-grid > div {
    display: block;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #faf8f4;
    box-sizing: border-box;
  }
  #mobile-card-box .detail-grid dt { font-weight: bold; font-size: .78rem; color: #555; }
  #mobile-card-box .detail-grid dd { margin: 2px 0 0; word-break: break-word; font-size: .85rem; }
}
