/* Páginas de autor (/autores/ y /autores/<slug>/) */

.author-page .breadcrumb {
  /* El bloque de perfil arranca en el mismo x que el breadcrumb. */
  padding-left: 0;
  padding-right: 0;
}

.author-page h1 {
  font-size: clamp(2.25rem, 3.4vw, 3.25rem) !important;
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 1.125rem;
  line-height: 1.4;
  color: #475569;
  margin-bottom: 0.25rem;
}

.author-meta {
  color: #64748b;
  font-size: 0.95rem;
}

/* Fallback sin foto: iniciales sobre el azul de marca. */
.author-photo--initials,
.author-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00356b;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.author-photo--initials {
  font-size: 3rem;
  line-height: 1;
}

.author-avatar-initials {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
  border-radius: 50%;
}

.author-photo {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio {
  /* 66 caracteres reales: `ch` mide el glifo «0» (10.07px), no el promedio
     (8.08px), así que 66ch daba ~82 caracteres por línea. 33rem = 528px ≈ 65. */
  max-width: 33rem;
  color: #334155;
}

.author-bio p {
  margin-bottom: 1rem;
}

.author-articles {
  list-style: none;
  padding: 0;
  max-width: 66ch;
}

.author-articles li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.author-articles a {
  font-weight: 600;
  text-decoration: none;
}

.author-articles time {
  color: #64748b;
  font-size: 0.875rem;
  white-space: nowrap;
}

.author-verified {
  max-width: 66ch;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.9rem;
}

.author-card {
  height: 100%;
}

@media (max-width: 767.98px) {
  .author-page h1 {
    font-size: 1.75rem !important;
  }

  .author-photo {
    width: 88px;
    height: 88px;
  }

  .author-bio {
    font-size: 1.125rem;
  }

  .author-role {
    font-size: 1rem;
  }

  .author-articles li {
    flex-direction: column;
    gap: 0.15rem;
  }
}
