/*
 * Author archives and the Блоги index (T-038).
 *
 * Every rule here is the old site's own, recovered from the private backup of the production code
 * (`Vectornewstestprod`, the `jnews-child` theme) and moved out of the markup it was embedded in:
 *
 *   - the `.archive.author` block is the <style> element inside `jnews-child/author.php`, which that
 *     template printed on every author page. `jnews-child/style.css` carried an earlier, weaker
 *     duplicate of the same idea (`.archive.author .jeg_posts` without the media queries, with
 *     `gap: 16px` on the card); the template's version is the one that was certainly rendered, and it
 *     is the one kept here. The two were not blended.
 *   - the `.authors-grid` / `.author-card` block is the <style> the `[authors_grid]` shortcode in
 *     `jnews-child/functions.php` echoed once per page, which is the Блоги index's own design.
 *
 * It lives in the plugin rather than in a theme for the reason overlay-contrast.css and
 * mobile-logo-text.css do: JNews is vendored unmodified (D-002), and behaviour belongs to the plugin
 * so a theme swap does not lose it. It is enqueued only on author archives and on the page that
 * carries the index.
 */

/* --- the author archive's three-column card grid (jnews-child/author.php) --------------------- */

.archive.author .jeg_posts > .jeg_posts {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
}

@media (max-width: 991px) {
	.archive.author .jeg_posts > .jeg_posts {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.archive.author .jeg_posts > .jeg_posts {
		grid-template-columns: 1fr;
	}
}

.archive.author .jeg_posts .jeg_post {
	display: flex;
	flex-direction: column;
	border: 1px solid #0000001a;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 0;
}

.archive.author .jeg_postblock_content {
	padding: 24px 16px;
}

.archive.author .jeg_pl_md_2 .jeg_thumb {
	width: 100%;
	margin-right: 0;
}

.jeg_archive_search {
	margin-bottom: 24px;
}

/* --- the Блоги index (jnews-child/functions.php, [authors_grid]) ------------------------------- */

.authors-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	margin-bottom: 64px;
}

.jeg_share_top_container {
	display: none;
}

.author-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	background: #fff;
}

.author-card .avatar {
	width: 96px;
	height: 96px;
	border-radius: 9999px;
	object-fit: cover;
	margin: 0 auto 12px;
	display: block;
}

.author-card .name {
	font-weight: 600;
	font-size: 18px;
	margin: 4px 0 6px;
}

.author-card .meta {
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 8px;
}

.author-card .bio {
	color: #374151;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 14px;
	min-height: 40px;
}

.author-card .btn {
	padding: 10px 14px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	margin: 0 auto;
	text-transform: none;
}

.author-card .btn:focus,
.author-card .btn:hover {
	text-decoration: none;
	opacity: .9;
}

/*
 * The empty author archive. The old site had no such state — every author there had articles — so
 * this part is new, and T-038 is why: no recovered post can be attributed to any of these seven
 * authors, so every one of these archives ships empty and the empty page is the page.
 */

.vn-authors-empty {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
	background: #fff;
}

.vn-authors-empty__lead {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px;
}

.vn-authors-empty__hint {
	color: #6b7280;
	font-size: 14px;
	margin: 0 0 16px;
}

.vn-authors-empty__more {
	margin: 0;
}

.vn-authors-empty__more a {
	padding: 10px 14px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	display: inline-block;
}

.vn-authors-empty__more a:focus,
.vn-authors-empty__more a:hover {
	text-decoration: none;
	opacity: .9;
}
