/**
 * Poets Directory — /poets page styles.
 *
 * Editorial register: Charter serif names on a white field, hairline rules,
 * sans-medium eyebrows, persimmon for name links. Follows DESIGN.md
 * component.section_eyebrow, component.list_row, component.role, and
 * component.avatar conventions exactly.
 */

/* ── Page wrapper ──────────────────────────────────────────────────────── */
.np-poets {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  font-family: var(--np-font-sans);
  color: var(--np-text-primary);
  line-height: 1.5;
}

/* ── Section skeleton ──────────────────────────────────────────────────── */
.np-poets__section {
  margin-bottom: 48px;
}

/* section_eyebrow: sans-medium 11px uppercase, hairline rule above */
.np-poets__eyebrow {
  font-family: var(--np-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--np-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  padding-top: 10px;
  border-top: 0.5px solid var(--np-border-tertiary);
}

/* Charter serif h2 below the eyebrow */
.np-poets__section-title {
  font-family: var(--np-font-serif);
  font-size: 24px;
  font-weight: 400;          /* Charter Regular — never synthesize bold */
  font-synthesis: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--np-text-primary);
  margin: 0 0 20px;
}

/* ── Featured card (Section 1) ─────────────────────────────────────────── */
.np-poets__featured-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--np-bg-primary, #FFFFFF);
  border: 0.5px solid var(--np-border-tertiary, rgba(0,0,0,0.15));
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 160ms cubic-bezier(0.2,0,0.2,1);
}

.np-poets__featured-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ── Poet row list (Sections 2–4) ──────────────────────────────────────── */
.np-poets__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-poets__row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--np-border-tertiary, rgba(0,0,0,0.15));
  transition: background-color 160ms cubic-bezier(0.2,0,0.2,1);
}

.np-poets__row:last-child {
  border-bottom: none;
}

.np-poets__row:hover {
  background-color: var(--np-bg-secondary, #F8F6F2);
  margin-left: -8px;
  padding-left: 8px;
  margin-right: -8px;
  padding-right: 8px;
  border-radius: 4px;
}

/* ── Avatar circle ─────────────────────────────────────────────────────── */
/* Plain circles per DESIGN.md component.avatar — no rings, no role borders */
.np-poets__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--np-font-serif);
  font-size: 14px;
  font-weight: 400;
  font-synthesis: none;
  text-decoration: none;
  line-height: 1;
  background: var(--np-bg-secondary, #F8F6F2);
  color: var(--np-text-primary);
}

/* Featured section uses a slightly larger avatar */
.np-poets__featured-card .np-poets__avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

/* ── Poet body (name + roles + meta) ───────────────────────────────────── */
.np-poets__body {
  flex: 1;
  min-width: 0;
}

/* Charter serif name — persimmon link per DESIGN.md (member display-names
   that are links to their profile use --np-text-link) */
.np-poets__name {
  font-family: var(--np-font-serif);
  font-size: 17px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.35;
  color: var(--np-text-link, #D85A30);
  text-decoration: none;
  display: inline;
}

.np-poets__name:hover {
  color: var(--np-text-link-hover, #B84422);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.np-poets__featured-card .np-poets__name {
  font-size: 20px;
}

/* ── Role badges — text-only, sans, muted role colors ──────────────────── */
/* Mirrors DESIGN.md component.role and profile.css conventions exactly */
.np-poets__roles {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0 10px;
  padding: 0;
  vertical-align: baseline;
}

.np-poets__role {
  font-family: var(--np-font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-role-member, #5F5E5A);
  white-space: nowrap;
}

/* Role color mappings — same palette as profile.css */
.np-poets__role[data-role="workshop-leaders"],
.np-poets__role[data-role="workshop-coordinator"] {
  color: var(--np-role-workshop-leader, #4A3A82);
}

.np-poets__role[data-role="guide"],
.np-poets__role[data-role="advocate"] {
  color: var(--np-role-guide, #2F6F4F);
}

.np-poets__role[data-role="premium"] {
  color: var(--np-role-premium, #B07A1F);
}

.np-poets__role[data-role="administrative-council-member"],
.np-poets__role[data-role="ac-chair"],
.np-poets__role[data-role="director"],
.np-poets__role[data-role="trustee"],
.np-poets__role[data-role="cofounder"] {
  color: var(--np-role-administrative, #8E2A2A);
}

.np-poets__role[data-role="new-member"],
.np-poets__role[data-role="recent-new-member"] {
  color: var(--np-role-new-member, #185FA5);
}

/* ── Meta line ─────────────────────────────────────────────────────────── */
.np-poets__meta {
  font-family: var(--np-font-sans);
  font-size: 13px;
  color: var(--np-text-tertiary, #888780);
  margin-top: 3px;
}

/* Featured stat line is slightly more prominent */
.np-poets__stat {
  font-family: var(--np-font-sans);
  font-size: 13px;
  color: var(--np-text-secondary, #5F5E5A);
  margin-top: 4px;
}

/* ── "View profile →" quiet link ───────────────────────────────────────── */
.np-poets__profile-link {
  font-family: var(--np-font-sans);
  font-size: 13px;
  color: var(--np-text-tertiary, #888780);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
  transition: color 160ms cubic-bezier(0.2,0,0.2,1);
}

.np-poets__profile-link:hover {
  color: var(--np-text-link, #D85A30);
}

/* Featured card profile link sits in the body column, below the stat */
.np-poets__featured-card .np-poets__profile-link {
  display: inline-block;
  margin: 8px 0 0;
}

/* ── Calm empty state ───────────────────────────────────────────────────── */
/* Per DESIGN.md component.empty_state.calm: italic Charter, white field,
   no inset surface (use on calm-required / white-field sections). */
.np-poets__empty {
  font-family: var(--np-font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--np-text-tertiary, #888780);
  padding: 20px 0;
  border-top: 0.5px solid var(--np-border-tertiary, rgba(0,0,0,0.15));
}

/* ── Name + roles inline arrangement on one line ──────────────────────── */
.np-poets__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  line-height: 1.4;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .np-poets__featured-card {
    flex-direction: column;
    gap: 12px;
  }

  .np-poets__section-title {
    font-size: 20px;
  }

  .np-poets__profile-link {
    display: none; /* rows are tappable; quiet link is redundant on phone */
  }
}

/* ── Dark mode ───────────────────────────────────────────────────────────── */
/* Tokens already shift; we only need to reinforce border affordance since
   shadows disappear on dark surfaces (per DESIGN.md dark_mode.shadow). */
@media (prefers-color-scheme: dark) {
  .np-poets__featured-card {
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
  }

  .np-poets__row {
    border-bottom-color: rgba(255,255,255,0.12);
  }

  .np-poets__empty {
    border-top-color: rgba(255,255,255,0.12);
  }
}
