/* ============================================================
 * /portal additions to Fundivi's product shell (Task 6.3b).
 * ============================================================ */

/* JavaScript off: no menu button to toggle, so every nav link shows
   as a wrapping row (product-nav.js never runs to collapse it). */
.no-js .product-nav-menu { display: none; }
.no-js .product-nav { display: flex; flex-wrap: wrap; overflow: visible; }

/* Cards fit a 360 px phone. */
@media (max-width: 400px) {
  .product-main { padding-left: var(--s3); padding-right: var(--s3); }
  .product-main .card,
  .product-main .panel { padding: var(--s3); }
}

/* Tables become definition lists under 640 px: each cell shows its
   column heading from data-label. */
@media (max-width: 640px) {
  .product-main table.data-table,
  .product-main table.data-table tbody,
  .product-main table.data-table tr,
  .product-main table.data-table td { display: block; width: 100%; }
  .product-main table.data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .product-main table.data-table tr { border-bottom: 1px solid var(--line); padding: var(--s2) 0; }
  .product-main table.data-table td { display: grid; grid-template-columns: 40% 1fr; gap: var(--s2); border: 0; padding: var(--s1) 0; }
  .product-main table.data-table td::before { content: attr(data-label); color: var(--mute); font-size: var(--fs-sm); }
}
