/* ============================================================================================
   author-overage.css - canonical contributor entity pages (2026-09-22)

   Author pages reuse the marketing grid and library cards. This sheet owns only the centred
   contributor identity and the transition into authored or reviewed article relationships.
   ============================================================================================ */

.author-hero {
  background: var(--grad-page);
}

.author-hero > .container {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  text-align: center;
}

.author-hero .eyebrow {
  margin-bottom: var(--s-2);
}

.author-portrait {
  width: var(--sp-120);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--r-circle);
  background: var(--bg-2);
  box-shadow: var(--menu-shadow);
}

.author-hero h1 {
  max-width: 18ch;
  margin-top: var(--s-2);
}

.author-title {
  color: var(--muted);
  font-size: var(--fs-lead-sm);
  line-height: var(--lh-sub);
}

.author-bio {
  max-width: 68ch;
  color: var(--body);
  font-size: var(--fs-reading);
  line-height: var(--lh-loose);
}

.author-bio + .author-bio {
  margin-top: var(--s-2);
}

.author-social a {
  color: var(--ink);
  font-size: var(--fs-ui);
  text-decoration: underline;
  text-decoration-color: var(--orange-border);
  text-underline-offset: 3px;
}

.author-social a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.author-expertise {
  border-block: 1px solid var(--border);
  background: var(--bg);
  padding-block: var(--s-8);
}

.author-expertise h2 {
  margin-bottom: var(--s-6);
  text-align: center;
  font-size: var(--fs-subhead);
  line-height: var(--lh-tight);
}

.author-expertise-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.author-expertise-groups > div {
  min-width: 0;
  padding-inline: var(--s-6);
}

.author-expertise-groups > div + div {
  border-left: 1px solid var(--border);
}

.author-expertise-groups dt {
  margin-bottom: var(--s-4);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

.author-expertise-groups dd {
  margin: 0;
}

.author-expertise-groups ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.author-section-head h2 {
  font-size: var(--fs-subhead);
  line-height: var(--lh-tight);
}

.author-section-head p {
  flex: none;
  color: var(--muted);
  font-size: var(--fs-ui);
}

.author-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .author-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .author-expertise {
    padding-block: var(--s-6);
  }

  .author-expertise-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }

  .author-expertise-groups > div {
    padding-inline: 0;
  }

  .author-expertise-groups > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
    padding-top: var(--s-5);
  }

  .author-section-head {
    display: grid;
    gap: var(--s-2);
  }

  .author-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
