/* Author page (author.php): profile hero, then the author's articles. Cards and pagination come from blog.css. */

.author-hero {
	padding: clamp(40px, 6vw, 88px) var(--pad-x) clamp(48px, 7vw, 104px);
	background: radial-gradient(120% 90% at 85% 0%, var(--brand-soft) 0%, var(--surface) 55%, var(--bg) 100%);
	border-bottom: 1px solid var(--border);
}
.author-hero__inner {
	display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.author-hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); }
}
.author-hero__text { display: grid; justify-items: start; gap: var(--s-4); min-width: 0; }
.author-hero__back {
	display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
	color: var(--muted); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
}
.author-hero__back:hover { color: var(--brand-strong); }
.author-hero__name { font-size: var(--fs-h1); line-height: 1.05; color: var(--ink); overflow-wrap: anywhere; }
.author-hero__title { color: var(--brand-strong); font-weight: 600; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.author-hero__bio { display: grid; gap: var(--s-3); max-width: 62ch; color: var(--text); font-size: var(--fs-body); }
.author-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-2); }
.author-hero__count { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }

.author-hero__media { display: grid; place-items: center; }
.avatar.avatar--hero {
	width: clamp(160px, 26vw, 320px); height: auto; aspect-ratio: 1; border-radius: var(--r-xl);
	font-size: clamp(3rem, 2rem + 4vw, 6rem); box-shadow: var(--shadow-lg);
}
@media (max-width: 899px) {
	.author-hero__media { order: -1; justify-items: start; place-items: start; }
	.avatar.avatar--hero { width: clamp(112px, 32vw, 160px); border-radius: var(--r-lg); }
}

.author-list__head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5);
	margin-bottom: var(--s-6);
}
.author-list__head > div { display: grid; justify-items: start; gap: var(--s-3); min-width: 0; }
.author-list__head .blog-list__title { margin: 0; }

/* All authors (/author/, archive-efo_author.php) */
.author-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.author-card {
	position: relative; display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-5);
	background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
	transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.author-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.avatar.avatar--card { width: 88px; height: 88px; border-radius: var(--r-md); font-size: 1.75rem; }
.author-card__name { font-size: var(--fs-h3); color: var(--ink); }
.author-card__link { color: inherit; text-decoration: none; }
.author-card__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */
.author-card__link:focus-visible { outline: none; }
.author-card:has(.author-card__link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.author-card__title { color: var(--brand-strong); font-weight: 600; font-size: var(--fs-sm); }
.author-card__bio { color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.author-card__count { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
