/* ============================================================================
   OFFIQA — Author Bio Component (E-E-A-T)
   Auto-injected on editorial & expertise pages: blog, guide, how-to, comparison,
   roundup, glossary, workflow, template, use case, solution, feature, pain hub,
   trust, update. Signals: author name, role, bio, publish/updated dates,
   rel="author", schema.org/Person microdata.
   ============================================================================ */

.author-bio {
  margin: var(--space-7) 0 var(--space-5);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

/* ---- Inner layout: avatar + text ---- */
.author-bio-inner {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

/* ---- Avatar initials circle ---- */
.author-avatar {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #F4F0E7;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(22, 70, 59, 0.22);
  user-select: none;
}

/* ---- Text block ---- */
.author-info {
  flex: 1;
  min-width: 0;
}

.author-eyebrow {
  margin: 0 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.author-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}
.author-name:hover { color: var(--green-600); text-decoration: none; }

.author-role {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.author-role .author-dot { margin: 0 0.35rem; color: var(--faint); }

.author-bio-text {
  margin: 0 0 var(--space-3);
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink-2);
}

/* ---- Action links ---- */
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
.author-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-600);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(27, 83, 70, 0.3);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.author-links a:hover {
  color: var(--green-700);
  border-bottom-color: var(--green-700);
}

/* ---- Date / page meta strip ---- */
.author-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.author-meta-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.author-page-meta time { color: var(--muted); }

/* "Updated" reads as the fresher, more authoritative signal — give it a subtle pill. */
.author-meta-updated {
  padding: 0.12rem 0.5rem;
  border-radius: var(--r-sm);
  background: rgba(27, 83, 70, 0.08);
  color: var(--green-600);
}
.author-meta-updated time { color: var(--green-700); }

/* ---- Compact variant — for sidebar use ---- */
.author-bio.author-bio--compact {
  margin: 0;
  padding: var(--space-4);
  border-radius: var(--r-sm);
  border-top-width: 2px;
}
.author-bio--compact .author-avatar   { width: 42px; height: 42px; font-size: 1rem; }
.author-bio--compact .author-name     { font-size: 1.04rem; }
.author-bio--compact .author-bio-text { display: none; }
.author-bio--compact .author-links    { gap: 0.3rem 0.8rem; }

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .author-bio { padding: var(--space-4) var(--space-4); }
  .author-bio-inner { flex-direction: column; gap: var(--space-3); }
  .author-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
  .author-bio-text { font-size: 0.9rem; }
}
