/* Authors — the portrait and link chips shared by the article byline and the
   author page (views/site/_components/Author.tsx), then the author page itself
   (views/site/author/AuthorTemplate.tsx). Its hero reuses the article hero's
   rule and glows; its lists reuse the blog's cards and "Load more". */

/* --- portrait ------------------------------------------------------------ */
.au-av {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; background: var(--so-avatar); color: var(--color-primary);
}
.au-av__img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
/* No portrait: a person silhouette, never initials. */
.au-av__ph { opacity: .4; }
.au-av--lg { width: 52px; height: 52px; }
.au-av--xl {
  width: 112px; height: 112px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(131, 87, 249, .25), 0 12px 30px rgba(48, 28, 110, .14);
}
/* The reviewer's green check. */
.au-av__tick {
  position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--color-sale); color: #fff; border: 2px solid var(--tint-1);
  display: grid; place-items: center; font-size: var(--text-2xs);
}

/* --- links --------------------------------------------------------------- */
.au-links { display: flex; gap: 8px; flex-wrap: wrap; }
.au-chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: var(--text-xs); font-weight: 500; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-field); color: var(--ink-600); background: #fff; text-decoration: none;
}
.au-chip__in { width: 13px; height: 13px; color: #0a66c2; }

/* --- author page --------------------------------------------------------- */
.au { background: #fff; }
.au-hero { position: relative; background: var(--tint-1); }
.au-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 34px 20px 30px; }
.au-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.au-head__text { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.au-eyebrow {
  font-size: var(--text-2xs); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--color-primary);
}
.au-name { font-size: var(--text-h2); font-weight: 600; color: var(--ink-900); letter-spacing: -.6px; line-height: 1.15; margin: 0; }
.au-role { font-size: var(--text-sm); color: var(--ink-500); font-weight: 500; margin-top: -4px; }
.au-bio { font-size: var(--text-sm); line-height: 1.7; color: var(--ink-600); max-width: 620px; margin: 0; }
.au-facts {
  margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; max-width: 760px;
}
.au-fact {
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line-tinted); border-radius: var(--r-lg);
  padding: 10px 12px; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0;
}
.au-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.au-fact dt { font-size: var(--text-xs); color: var(--ink-500); }
.au-fact dd { margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink-800); line-height: 1.35; }

.au-body { max-width: 1200px; margin: 0 auto; padding: 16px 20px 44px; display: grid; gap: 40px; }
.au-sec__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.au-sec__head h2 { font-size: var(--text-xl); font-weight: 600; color: var(--ink-800); margin: 0; }
.au-count {
  font-size: var(--text-xs); font-weight: 600; color: var(--color-primary);
  background: var(--tint-3); border-radius: var(--r-pill); padding: 2px 10px;
}

@media (max-width: 599px) {
  .au-av { width: 36px; height: 36px; }
  .au-av--lg { width: 52px; height: 52px; }
  .au-av--xl { width: 76px; height: 76px; }
  .au-hero__inner { padding: 22px 18px 22px; }
}

@media (min-width: 700px) {
  .au-head { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .au-bio { font-size: var(--text-base); }
  .au-facts { margin: 26px 0 0 140px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .au-fact { padding: 12px 16px; }
  .au-fact:last-child:nth-child(odd) { grid-column: auto; }
  .au-fact dd { font-size: var(--text-base); }
}
