/* ==========================================================================
   Autores: listado (rejilla) y ficha de un autor.
   Usa la paleta teal del sitio (--twe-teal definida en style.css).
   ========================================================================== */

/* --------------------------------------------------------------------------
   LISTADO DE AUTORES (plantilla «Autores (listado)»)
   -------------------------------------------------------------------------- */
.twe-authors-page__header {
	text-align: center;
	margin-bottom: 2.5em;
}

.twe-authors-page__intro {
	max-width: 720px;
	margin: 1em auto 0;
	color: #555;
}

.twe-authors-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 2em 1.5em;
}

.twe-authors-grid li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.twe-author-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.twe-author-card__photo {
	display: block;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	overflow: hidden;
	background: #eef3f4;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	transition: transform .25s ease, box-shadow .25s ease;
}

.twe-author-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.twe-author-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--twe-teal);
}

.twe-author-card__placeholder .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
}

.twe-author-card__link:hover .twe-author-card__photo {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.twe-author-card__name {
	display: block;
	margin-top: 1em;
	font-weight: 700;
	font-size: 1.05em;
	color: #222;
}

.twe-author-card__link:hover .twe-author-card__name {
	color: var(--twe-teal);
}

.twe-author-card__subtitle {
	display: block;
	margin-top: .15em;
	font-size: .85em;
	color: #777;
}

/* --------------------------------------------------------------------------
   FICHA DE UN AUTOR
   -------------------------------------------------------------------------- */
.twe-author-hero {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 2.5em;
	background: var(--twe-teal);
	color: #fff;
}

.twe-author-hero--bg {
	background-size: cover;
	background-position: center;
}

/* Velo para que el texto sea legible sobre la foto de fondo. */
.twe-author-hero--bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(19, 127, 146, .55), rgba(19, 127, 146, .85));
}

.twe-author-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.75em;
	padding: 2.25em;
}

.twe-author-hero__photo {
	flex: 0 0 auto;
}

.twe-author-hero__img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.twe-author-hero__name {
	margin: 0;
	color: #fff;
	font-size: 2em;
	line-height: 1.15;
}

.twe-author-hero__subtitle {
	margin: .35em 0 0;
	font-style: italic;
	font-size: 1.1em;
	color: rgba(255, 255, 255, .92);
}

.twe-author-hero__meta {
	margin: .5em 0 0;
	font-size: .9em;
	color: rgba(255, 255, 255, .85);
}

.twe-author-social {
	display: flex;
	gap: .5em;
	margin-top: .9em;
}

.twe-author-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	transition: background .2s ease;
}

.twe-author-social__link:hover {
	background: #fff;
	color: var(--twe-teal);
}

.twe-author-bio {
	max-width: 820px;
	margin: 0 auto 2.5em;
	line-height: 1.7;
	color: #444;
}

.twe-author-books__title {
	margin: 0 0 1.25em;
	padding-bottom: .4em;
	border-bottom: 2px solid var(--twe-teal);
}

.twe-author-books__empty {
	color: #777;
}

@media (max-width: 600px) {
	.twe-author-hero__inner {
		flex-direction: column;
		text-align: center;
		padding: 1.75em;
	}

	.twe-author-social {
		justify-content: center;
	}
}
