/* ============================================================================
   The follow lists — /u/<handle>/followers|following and the owner-facing
   /account/followers|following (follow_list.html). Ported from
   Sigrix_new/Marketplace - Seller.html (.sf-* block), the storefront's
   previous generation, whose page shell (.sf-page, .sf-empty) the lists reuse.

   Nothing else draws that generation any more: the public storefront moved onto
   Seller profile v2 (design repo, 103c6c7) and its own sheet,
   css/sx-storefront.css (.sv-*), and the store editor's live preview draws that
   hero through its macro and sheet (components/sx_seller_hero.html,
   seller_hero_preview). The previous hero, its cover, avatar, rows and
   announcement strip, went with the preview; the public page's tabs, grid, rail
   cards, figures, Share button, contact dialog and FAQ went with the page. So
   did the `:root` tokens this sheet once defined for them (`--sx-font-num`, read
   now only with its own fallback, and the shadows, which the `.sx` scope
   declares).

   Theme note: the prototype scoped light-mode tweaks as `.sx[data-theme=...]`
   because its `.sx` wrapper carried the theme. In production `data-theme`
   lives on <html> and `.sx` on <body>, so those rules become a bare
   `[data-theme="light"] …` ancestor match. Everything else themes for free
   through the --sx-* custom properties.
   ========================================================================== */

.sf-page { padding: 28px 0 0; position: relative; }
/* A follow list with nobody in it. */
.sf-empty { padding: 48px; text-align: center; color: var(--sx-text-3); font-size: 14px; overflow-wrap: anywhere; }

/* ============================================================================
   Follower / following lists (.fl-*) — /u/<handle>/followers|following and the
   owner-facing /account/followers|following. Shares this stylesheet because it
   reuses the storefront shell (.sf-page / .sf-empty) and the same --sx-* tokens.
   ========================================================================== */
.fl-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.fl-head-id { min-width: 0; }
.fl-title {
  margin: 0; font-size: 26px; font-weight: 650;
  letter-spacing: -0.02em; color: var(--sx-text);
}
.fl-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--sx-text-3); line-height: 1.5; }

.fl-tabs {
  display: flex; gap: 4px; margin-bottom: 18px;
  border-bottom: 1px solid var(--sx-line); padding-bottom: 12px;
}
.fl-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px; border-radius: var(--sx-r-sm);
  font-size: 13px; font-weight: 500; color: var(--sx-text-2);
  background: transparent; text-decoration: none;
  transition: background 120ms, color 120ms;
}
.fl-tab:hover { color: var(--sx-text); }
.fl-tab.is-active { background: var(--sx-surface); color: var(--sx-text); box-shadow: 0 0 0 1px var(--sx-line) inset; }
.fl-tab-count {
  font-family: var(--sx-font-mono); font-size: 11px; color: var(--sx-text-3);
  font-variant-numeric: tabular-nums;
}
.fl-tab.is-active .fl-tab-count { color: var(--sx-brand-3); }
[data-theme="light"] .fl-tab.is-active .fl-tab-count { color: var(--sx-brand); }
.fl-tab:focus-visible { outline: 2px solid var(--sx-brand-3); outline-offset: 2px; }
[data-theme="light"] .fl-tab:focus-visible { outline-color: var(--sx-brand); }

.fl-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.fl-item { min-width: 0; }
.fl-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--sx-r-lg);
  background: var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  text-decoration: none; color: inherit; min-width: 0;
  transition: box-shadow 120ms;
}
a.fl-row:hover { box-shadow: 0 0 0 1px var(--sx-line-2) inset; }
a.fl-row:focus-visible { outline: 2px solid var(--sx-brand-3); outline-offset: 2px; }
[data-theme="light"] a.fl-row:focus-visible { outline-color: var(--sx-brand); }

.fl-avatar {
  /* The avatar stops (base.css), deepened where white initials need it. */
  background: linear-gradient(135deg, var(--sx-grad-av-a, var(--sx-grad-a)), var(--sx-grad-av-b, var(--sx-grad-b)));
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff; font-weight: 650; font-size: 14px;
  letter-spacing: 0.02em;
}
.fl-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.fl-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.fl-name {
  font-size: 14px; font-weight: 600; color: var(--sx-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Truncated like the name above it: a long handle ran past the card at 320px. */
.fl-handle {
  font-size: 12.5px; color: var(--sx-text-3); font-family: var(--sx-font-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fl-tagline {
  font-size: 12.5px; color: var(--sx-text-2); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fl-meta {
  flex: 0 0 auto; font-size: 11px; color: var(--sx-text-3);
  font-family: var(--sx-font-mono); font-variant-numeric: tabular-nums;
}
.fl-note { margin: 16px 0 0; font-size: 12.5px; color: var(--sx-text-3); text-align: center; }

@media (max-width: 760px) {
  .fl-grid { grid-template-columns: 1fr; }
  .fl-title { font-size: 22px; }
}
