.directory-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ── Dashboard section head ────────────────────────────── */

.dashboard-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* ── Dashboard filter chip strip ───────────────────────── */

.dashboard-filters {
  margin-bottom: var(--sp-4);
}

/* ── Dossier table ──────────────────────────────────────── */

.dashboard-directories {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-paper);
  border-radius: var(--r-3);
  overflow: hidden;
  /* `border-collapse: collapse` + `overflow: hidden` + `border-radius`
     suppresses the table's own `border` entirely — even a solid 2px
     border never paints (verified in a headless browser). Draw the
     hairline as the first box-shadow layer: a 0-offset 1px spread ring
     follows the border-radius and is immune to the collapsing-border
     model. The second layer is the drop shadow that lifts the card.
     `overflow: hidden` clips the cells to the radius but never the
     element's own box-shadow. */
  box-shadow:
    0 0 0 1px var(--color-rule),
    var(--shadow-1);
}

.dashboard-directories thead th {
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  color: var(--color-ink-muted);
  text-align: left;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--color-rule);
}

.dashboard-directories tbody tr {
  border-bottom: 1px solid var(--color-rule);
}

.dashboard-directories tbody tr:last-child {
  border-bottom: none;
}

.dashboard-directories tbody td {
  padding: var(--sp-3);
  vertical-align: middle;
  /* Pico paints `th, td { background-color: var(--pico-background-color) }`
     (sand) with a bare element selector — it covers the table's white card
     and any tr-level hover. Recolor the opaque cell layer here; the class
     selector outranks Pico's element rule regardless of load order. */
  background: var(--color-paper);
}

.dashboard-directories tbody tr:hover td {
  background: var(--color-surface);
}
