/* ========== Token-aware table styles ========== */

/* Wrapper adds horizontal scroll on phones */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto 24px;
  max-width: 1000px;
  border-radius: 14px;
}

/* The table itself */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;             /* clip rounded corners */
  box-shadow: var(--shadow);
}

/* Cells */
.table th,
.table td {
  padding: .75rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

/* Remove bottom border on last row */
.table tr:last-child > * { border-bottom: 0; }

/* Header */
.table thead th {
  font-weight: 700;
  text-align: left;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border-bottom: 1px solid var(--border);
}

/* Zebra body rows */
.table tbody tr:nth-child(odd) td {
  background: color-mix(in oklab, var(--surface) 92%, var(--bg));
}

/* Links inside tables */
.table a {
  color: var(--primary);
  text-decoration: underline;
}

/* Key–Value variant (for the Project Info section) */
.kv-table thead { display: none; }
.kv-table th[scope="row"] {
  width: 34%;
  font-weight: 600;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-right: 1px solid var(--border);
}

/* Headings above tables */
.table-title {
  max-width: 1000px;
  margin: 32px auto 12px;
  text-align: center;
}
