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

/* ── Dashboard hero ─────────────────────────────────────── */

.dashboard-hero {
  background: var(--color-surface);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  border-radius: var(--r-3);
}

.dashboard-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono);
  color: var(--color-ink-muted);
  margin: 0 0 var(--sp-1);
}

.dashboard-hero__count {
  font-family: var(--font-serif);
  font-size: var(--fs-64);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  color: var(--color-ink);
  margin: 0 0 var(--sp-2);
}

.dashboard-hero__summary {
  font-size: var(--fs-15);
  color: var(--color-ink-muted);
  margin: 0 0 var(--sp-5);
}

/* ── 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);
}
