/* ============================================================================
 * PAGE — Scholars
 * ----------------------------------------------------------------------------
 * The directory grid, and the few things a scholar's page adds to the shared
 * public-profile layout. Everything else on /s/… is public-profile.css, because
 * a scholar's page and a member's page answer the same three questions and
 * should not be two stylesheets that drift.
 * ========================================================================== */

.scholar-count {
  margin-block-end: var(--sp-4);
  color: var(--ink-soft);
}

.scholar-count strong {
  font-size: var(--fs-xl);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.scholar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.scholar-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.scholar-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--sh-2);
}

.scholar-card__body { flex: 1 1 auto; min-inline-size: 0; }

.scholar-card__name {
  display: block;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  unicode-bidi: isolate;
}

/* The title is not part of the name — see the column note in migration 036 —
   so it is set quieter and smaller rather than run together with it. */
.scholar-card__honorific,
.scholar-honorific {
  color: var(--ink-muted);
  font-weight: var(--fw-normal);
  font-size: var(--fs-sm);
}

.scholar-card__arabic,
.scholar-arabic {
  display: block;
  font-family: var(--font-arabic);
  color: var(--ink-soft);
  unicode-bidi: isolate;
}

.scholar-card__arabic { font-size: var(--fs-sm); }

.scholar-arabic {
  margin-block-start: var(--sp-1);
  font-size: var(--fs-lg);
}

.scholar-card__headline {
  display: block;
  margin-block-start: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: var(--lh-snug);
  unicode-bidi: isolate;
}

.scholar-card__meta {
  display: block;
  margin-block-start: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* -- the ticks -------------------------------------------------------------
 * Small, stacked, and never coloured like an award. Each one names a single
 * checked claim; the page says so in a line beneath them, and the shape of
 * these is deliberately closer to a footnote than to a medal.
 * ----------------------------------------------------------------------- */

.scholar-card__ticks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  color: var(--brand);
}

.scholar-badges {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.scholar-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink);
}

.scholar-badge .icon { color: var(--brand); flex: none; }

.scholar-badge__none,
.scholar-badge__note {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  line-height: var(--lh-normal);
}

.scholar-badge__note { margin-block-start: var(--sp-3); }

.entry__source {
  display: inline-block;
  margin-block-start: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--brand-ink);
}
