/**
 * Byline + author box — ONLY singular blog posts (post type: post).
 * body.forageplus-post-meta-active is added only when is_singular( 'post' ).
 * Stylesheet is enqueued only on single posts.
 */

/* Hide theme default author vcard; custom box prints after post_meta. */
body.forageplus-post-meta-active.single-post .vcard.author {
	display: none !important;
}

/* Highlighted byline block */
body.forageplus-post-meta-active.single-post .forageplus-byline {
	margin: 0 0 1.35rem;
	padding: 1rem 1.15rem 1.05rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #334155;
	background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 55%, #fff 100%);
	border: 1px solid #cfe2f8;
	border-left: 4px solid #2271b1;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
	box-sizing: border-box;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__line {
	margin: 0 0 0.5rem;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__line:last-child {
	margin-bottom: 0;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__label {
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #475569;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sep {
	color: #94a3b8;
	font-weight: 400;
	padding: 0 0.15rem;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__date {
	font-weight: 500;
	color: #1e293b;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__accent {
	font-size: 0.98rem;
	font-weight: 500;
	color: #0f172a;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__accent a {
	color: #0066cc;
	font-weight: 600;
	text-decoration: none;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__accent a:hover,
body.forageplus-post-meta-active.single-post .forageplus-byline__accent a:focus {
	text-decoration: underline;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__line--review .forageplus-byline__accent--review {
	font-size: 0.98rem;
}

/* References / sources (same byline card, below meta lines; collapsible) */
body.forageplus-post-meta-active.single-post .forageplus-byline__sources {
	margin-top: 0.85rem;
	padding-top: 0.9rem;
	border-top: 1px solid #d4e4f7;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-details {
	margin: 0;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-summary {
	cursor: pointer;
	list-style: none;
	font-size: 0.92rem;
	text-decoration: underline;
	color: #0066cc;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 500;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-summary::-webkit-details-marker {
	display: none;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.05rem;
	height: 1.05rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	font-size: 0.8rem;
	line-height: 1;
	text-decoration: none;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-list {
	margin: 0.65rem 0 0;
	padding-left: 1.2rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #334155;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-list li {
	margin: 0.25rem 0;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-list a {
	color: #0066cc;
	font-weight: 500;
	text-decoration: none;
}

body.forageplus-post-meta-active.single-post .forageplus-byline__sources-list a:hover,
body.forageplus-post-meta-active.single-post .forageplus-byline__sources-list a:focus {
	text-decoration: underline;
}

/* Author box: desktop row, mobile stack; fixed circle avatar (no stretch) */
body.forageplus-post-meta-active.single-post .forageplus-author-box {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 1.5rem;
	width: 100%;
	max-width: 100%;
	margin-top: 2rem;
	margin-bottom: 30px;
	padding: 1.75rem 2rem;
	background-color: #fdf2f2;
	border-radius: 12px;
	box-sizing: border-box;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar {
	flex: 0 0 auto;
	width: 112px;
	min-width: 0;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar-inner {
	display: block;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #eee;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar-inner img,
body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__main {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: 100%;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__headline {
	margin: 0 0 0.75rem;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #222;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__name {
	font-weight: 700;
	color: inherit;
	text-decoration: none;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__name:hover,
body.forageplus-post-meta-active.single-post .forageplus-author-box__name:focus {
	text-decoration: underline;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__role {
	font-weight: 700;
	color: #333;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__bio {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #333;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__bio p {
	margin: 0 0 0.75rem;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__bio p:last-child {
	margin-bottom: 0;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__sources {
	margin: 0.85rem 0 0;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__sources-summary {
	cursor: pointer;
	list-style: none;
	font-size: 0.95rem;
	text-decoration: underline;
	color: #1e73be;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__sources-summary::-webkit-details-marker {
	display: none;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__sources-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	font-size: 0.85rem;
	line-height: 1;
	text-decoration: none;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__sources-list {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #333;
}

body.forageplus-post-meta-active.single-post .forageplus-author-box__sources-list a {
	color: #1e73be;
}

/* Small tablets / large phones */
@media screen and (max-width: 782px) {
	body.forageplus-post-meta-active.single-post .forageplus-author-box {
		flex-direction: column;
		align-items: flex-start;
		flex-wrap: nowrap;
		gap: 1.1rem;
		padding: 1.35rem 1.25rem;
	}

	body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar {
		width: 96px;
		max-width: none;
	}

	body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar-inner {
		width: 96px;
		height: 96px;
	}

	body.forageplus-post-meta-active.single-post .forageplus-author-box__main {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}
}

/* Narrow phones */
@media screen and (max-width: 480px) {
	body.forageplus-post-meta-active.single-post .forageplus-byline {
		padding: 0.9rem 1rem;
		font-size: 0.9rem;
	}

	body.forageplus-post-meta-active.single-post .forageplus-author-box {
		padding: 1.15rem 1rem;
	}

	body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar {
		width: 88px;
	}

	body.forageplus-post-meta-active.single-post .forageplus-author-box__avatar-inner {
		width: 88px;
		height: 88px;
	}
}
