/**
 * Estilos específicos para la ficha de autor (bundle: autor).
 * Mantiene Bootstrap 5 como base y solo añade lo que utilities no cubren:
 * recorte circular de la foto, lista de redes y "pills" de áreas de conocimiento.
 */

.autor-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.autor-header {
  text-align: center;
}

.autor-avatar {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.autor-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.autor-main-job {
  font-size: 1.25rem;
  font-weight: 500;
  color: #212529;
  margin-bottom: 0.25rem;
}

.autor-jobtitle {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.autor-org {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.autor-org a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.autor-social {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.autor-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #212529;
  background: #f5f5f5;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.autor-social a:hover,
.autor-social a:focus {
  background: #212529;
  color: #fff;
  transform: translateY(-2px);
}

.autor-bio {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.autor-bio p:last-child {
  margin-bottom: 0;
}

.autor-knows {
  margin-top: 3rem;
}

.autor-knows-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 1rem;
}

.autor-knows-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.autor-knows-list li {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #212529;
}

.view-articulos-de-autor .views-row {
  padding-bottom: 0;
  border-bottom: 1px solid #e9e9e9;
}

.view-articulos-de-autor .views-row:last-child {
  border-bottom: 0;
}

.author-list-item {
  margin: 0;
}

.author-list-item__link {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.author-list-item__link:hover,
.author-list-item__link:focus {
  color: inherit;
  background-color: #fafafa;
  text-decoration: none;
}

.author-list-item__thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f1f1;
}

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

.author-list-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.author-list-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  color: #212529;
}

.author-list-item__link:hover .author-list-item__title,
.author-list-item__link:focus .author-list-item__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-list-item__meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.author-list-item__sep {
  margin: 0 0.4rem;
}

@media (max-width: 575.98px) {
  .author-list-item__link {
    gap: 0.85rem;
    padding: 0.75rem 0;
  }
  .author-list-item__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
  .author-list-item__title {
    font-size: 1rem;
  }
  .author-list-item__meta {
    font-size: 0.75rem;
  }
}

/* Listado público de autores (/autores) — tarjetas en rejilla. */
.view-autores-listado {
  padding: 3rem 0;
}

.view-autores-listado .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem 1.5rem;
}

.view-autores-listado .views-row {
  display: flex;
  justify-content: center;
}

.autor-teaser {
  width: 100%;
  text-align: center;
}

.autor-teaser__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.autor-teaser__link:hover,
.autor-teaser__link:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.autor-teaser__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.autor-teaser__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #212529;
}

.autor-teaser__link:hover .autor-teaser__name,
.autor-teaser__link:focus .autor-teaser__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.autor-teaser__main-job {
  font-size: 0.95rem;
  color: #212529;
  margin: 0;
  line-height: 1.3;
}

.autor-teaser__jobtitle {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}