/*--------------------------------------------------------------
# Authors page (template-authors.php)
# Cards match the author box at the end of posts.
--------------------------------------------------------------*/

.authors-intro {
	float: left;
	width: 100%;
	margin-bottom: 30px;
}

.authors-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	float: left;
	width: 100%;
	margin: 0 0 60px;
	padding: 0;
	list-style: none;
}

.authors-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	margin: 0;
	padding: 30px;
	background: #fcfcfc;
	border: 1px solid #eee;
	border-top: 4px solid var(--tw-gold);
}

.authors-card__name {
	margin: 0 0 5px;
	color: var(--tw-dark-blue);
}

.authors-card__count {
	margin: 0 0 15px;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tw-gold-text);
}

.authors-card__bio {
	margin: 0 0 20px;
}

/* Buttons line up along the bottom of each row */
.authors-card .authors-card__link {
	margin: auto 0 0;
	align-self: flex-start;
}

@media (max-width: 900px) {
	.authors-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.authors-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.authors-card {
		padding: 25px 20px;
	}

	.authors-card .authors-card__link {
		align-self: stretch;
		text-align: center;
	}
}

/* "Load More": matches the button on category archives */
.authors-card[hidden],
.authors-load-more-wrap[hidden] {
	display: none;
}

/* The list keeps its 60px bottom margin; the button sits 50px below it. */
.authors-load-more-wrap {
	float: left;
	width: 100%;
	margin: -10px 0 60px;
}

button#authors-load-more {
	margin: 0;
	color: var(--tw-dark-blue);
	background: var(--tw-gold);
	padding: 10px 16px;
	font-size: 0.8em;
}

button#authors-load-more:hover {
	background: var(--tw-dark-blue);
	color: #fff;
}

@media (max-width: 600px) {
	button#authors-load-more {
		padding: 12px 40px;
		font-size: 0.9em;
	}
}