/* ============================================
   LEADERS CONDENSED
   A list, not a grid. Each leader sits as a horizontal
   row-card — small avatar, editorial index numeral, name,
   role eyebrow, single-line bio. Hairline rules between
   leaders make the section read as a quiet roster rather
   than a presentation. Two-up on tablet, three-up on
   desktop, but always row-shaped, never portrait-stacked.
   Swiss-Grid Editorial × Mediterranean warmth.
   ============================================ */

.lcd {
  position: relative;
  overflow: hidden;
}

/* ─── Header ────────────────────────────────────────────── */
.lcd__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 720px;
  margin: 0 0 var(--space-xl);
}

@media (min-width: 1024px) {
  .lcd__header {
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
  }
}

.lcd__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-primary);
  line-height: 1.4;
}

.lcd__heading {
  margin: 0;
  font-size: clamp(1.875rem, 3.5vw + 0.5rem, 2.75rem);
  line-height: 1.0;
  letter-spacing: 0.015em;
  color: var(--clr-primary);
  display: flex;
  flex-direction: column;
  text-wrap: balance;
}

.lcd__heading-line1 {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
}

.lcd__heading-line2 {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.85em;
  line-height: 1.05;
  margin-top: 4px;
}

.lcd__body {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.65;
  color: var(--clr-text-secondary);
  text-wrap: pretty;
  max-width: 60ch;
}

/* ─── Leader list ──────────────────────────────────────── */
/* Mobile: single column, stacked rows separated by hairlines.
   Tablet (≥640px): two columns.
   Desktop (≥1024px): three columns.
   The grid uses borders rather than gap so the rules act as
   structural dividers — Swiss editorial pattern. */
.lcd__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid rgba(60, 66, 46, 0.16);
}

@media (min-width: 640px) {
  .lcd__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lcd__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── Single leader row ────────────────────────────────── */
.lcd__leader {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(60, 66, 46, 0.16);
}

@media (min-width: 640px) {
  .lcd__leader {
    padding: var(--space-md);
    /* Vertical rule between columns on tablet/desktop */
    border-right: 1px solid rgba(60, 66, 46, 0.16);
  }
  /* Last column drops the right border */
  .lcd__leader:nth-child(2n) {
    border-right: none;
  }
}

@media (min-width: 1024px) {
  .lcd__leader {
    padding: var(--space-lg) var(--space-md);
  }
  /* Reset the tablet rule, then drop on every 3rd */
  .lcd__leader:nth-child(2n) {
    border-right: 1px solid rgba(60, 66, 46, 0.16);
  }
  .lcd__leader:nth-child(3n) {
    border-right: none;
  }
}

/* ─── Editorial index numeral ──────────────────────────── */
.lcd__index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--clr-text-muted);
  line-height: 1;
  align-self: flex-start;
  padding-top: 4px;
}

@media (min-width: 1024px) {
  .lcd__index {
    font-size: 12px;
  }
}

/* ─── Avatar ───────────────────────────────────────────── */
.lcd__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(60, 66, 46, 0.06);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .lcd__avatar {
    width: 72px;
    height: 72px;
  }
}

/* Square variant — set on the section root */
.lcd[data-avatar="square"] .lcd__avatar,
.lcd .lcd__avatar.lcd__avatar--square {
  border-radius: var(--radius-md);
}

.lcd__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lcd__avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--clr-primary);
  background: linear-gradient(135deg, rgba(60, 66, 46, 0.10) 0%, rgba(60, 66, 46, 0.04) 100%);
}

/* ─── Text stack ───────────────────────────────────────── */
.lcd__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lcd__nameplate {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lcd__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-primary);
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .lcd__name { font-size: 16px; }
}

.lcd__role {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  line-height: 1.4;
}

.lcd__bio {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--clr-text-secondary);
  text-wrap: pretty;
  /* Single-line condensed feel — clamp at two lines so a slightly
     longer sentence still reads cleanly without breaking the row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .lcd__bio {
    font-size: 14px;
  }
}

/* ============================================
   DARK BACKGROUND VARIANT — bg-accent-dark
   ============================================ */
.lcd.bg-accent-dark .lcd__eyebrow {
  color: var(--clr-brand-accent);
}

.lcd.bg-accent-dark .lcd__heading-line1 {
  color: var(--clr-text-inverse);
}

.lcd.bg-accent-dark .lcd__heading-line2 {
  color: var(--clr-brand-accent);
}

.lcd.bg-accent-dark .lcd__body {
  color: var(--clr-text-inverse);
  opacity: 0.82;
}

.lcd.bg-accent-dark .lcd__list,
.lcd.bg-accent-dark .lcd__leader {
  border-color: rgba(253, 252, 250, 0.16);
}

.lcd.bg-accent-dark .lcd__index {
  color: var(--clr-text-inverse);
  opacity: 0.55;
}

.lcd.bg-accent-dark .lcd__avatar {
  background: rgba(253, 252, 250, 0.05);
}

.lcd.bg-accent-dark .lcd__avatar-placeholder {
  color: var(--clr-text-inverse);
  background: linear-gradient(135deg, rgba(253, 252, 250, 0.10) 0%, rgba(253, 252, 250, 0.04) 100%);
}

.lcd.bg-accent-dark .lcd__name {
  color: var(--clr-text-inverse);
}

.lcd.bg-accent-dark .lcd__role {
  color: var(--clr-text-inverse);
  opacity: 0.6;
}

.lcd.bg-accent-dark .lcd__bio {
  color: var(--clr-text-inverse);
  opacity: 0.75;
}
