/* ============================================================
   PROJECT LIST — Figma "Filters and list" (33:6204).
   Filters column (183px) + table: PROJECT | ARTIST | YEAR (204px each)
   | ROLE (rest) | + . Rows 18px Book, headings 16px Bold.
   ============================================================ */

.projects {
  display: grid;
  grid-template-columns: var(--filters-w) 1fr;
  column-gap: 1.25rem; /* 20px: 1200 − 183 − 997 */
  align-items: start;
}

/* ---- Filters ---- */
.filters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter {
  all: unset;
  cursor: pointer;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--color-muted);
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.filter:hover,
.filter[aria-pressed="true"] { color: var(--color-text); }
.filter:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---- Table ---- */
.project-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--fs-text);
  line-height: var(--lh-body);
  text-align: left;
}

.project-table col.is-fixed { width: var(--col-w); }
.project-table col.is-action { width: 1.25rem; } /* 20px */

.project-table th {
  padding: 0 0 calc(var(--list-head-gap) - var(--row-pad));
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  vertical-align: top;
}

.project-table td {
  padding: var(--row-pad) 0;
  border-bottom: var(--line-thin);
  vertical-align: top;
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* One-line summary under the title — shown on phones only (responsive.css) */
.row-meta { display: none; }

/* Long titles/artists wrap before reaching the next column (columns stay aligned) */
.project-table td:nth-child(1),
.project-table td:nth-child(2) { padding-right: 2rem; }

/* Filter active: rows that don't match go gray (text + line) */
.project-table tr.is-dimmed td {
  color: var(--color-muted);
  border-bottom-color: var(--color-muted);
}

/* "+" at the row end (Figma: right-aligned, 12px from the edge).
   Rows WITH a detail use a <button class="row-toggle"> (project-detail.css).
   .row-plus = rows whose detail content isn't written yet: same look, no action. */
.project-table .cell-action { text-align: right; padding-right: 0; }
.row-plus {
  padding-right: 0.75rem;
  font-size: var(--fs-small); /* Figma: 16px */
}
