
  :root{
    /* change this to whatever header color you want */
    --heading-bg: var(--accent-color);
    /* --heading-color: #ffffff; */
    --table-heading-color: #ffffff;
    --row-odd-bg: #ffffff;
    --row-even-bg: #e9e8e6;
    --cell-padding: 14px 16px;
    --border-radius: 12px;
    --table-max-width: 900px;
  }

  /* Container so table can be centered and constrained */
  .tbl-wrap {
    max-width: var(--table-max-width);
    margin: 22px auto;
    padding: 0 12px;
  }

  /* Base table styles */
  .modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    box-shadow: 0 6px 20px rgba(12, 14, 20, 0.06);
    overflow: hidden;
    border-radius: var(--border-radius);
    background: white;
  }

  /* Header */
  .modern-table thead th {
    background: var(--heading-bg);
    color: var(--table-heading-color);
    text-align: left;
    font-weight: 600;
    padding: var(--cell-padding);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
  }

  /* Keep header row visually separated on mobile by making it sticky on larger screens */
  @media (min-width: 720px) {
    .modern-table thead th {
      position: sticky;
      top: 0;
      z-index: 2;
    }
  }

  /* Body cells */
  .modern-table tbody td {
    padding: var(--cell-padding);
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    font-size: 0.95rem;
  }

  /* Zebra stripes */
  .modern-table tbody tr:nth-child(odd) {
    background: var(--row-odd-bg);
  }
  .modern-table tbody tr:nth-child(even) {
    background: var(--row-even-bg);
  }

  /* Subtle hover */
  .modern-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(12, 14, 20, 0.04);
  }

  /* Make first column a bit bolder to act like a label */
  .modern-table tbody td:first-child {
    font-weight: 600;
  }

  /* Responsive behaviour: on narrow screens convert rows to stacked cards */
  @media (max-width: 600px) {
    .modern-table,
    .modern-table thead,
    .modern-table tbody,
    .modern-table th,
    .modern-table td,
    .modern-table tr {
      display: block;
      width: 100%;
    }

    .modern-table thead {
      display: none; /* hide header on small screens (labels shown per cell) */
    }

    .modern-table tbody tr {
      margin: 10px 0;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(12, 14, 20, 0.03);
    }

    .modern-table tbody td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 14px;
      border-top: none;
    }

    /* Show label for each cell using data-label attr (copied from header text) */
    .modern-table tbody td::before {
      content: attr(data-label);
      flex: 0 0 40%;
      text-transform: none;
      font-weight: 600;
      padding-right: 8px;
      opacity: 0.85;
    }

    .modern-table tbody td:first-child::before {
      padding-top: 2px;
    }
  }

  /* Small accessibility tweak: focus styles for keyboard users */
  .modern-table tbody tr:focus-within,
  .modern-table tbody tr:focus {
    outline: 2px solid rgba(59,130,246,0.18);
    outline-offset: 2px;
  }