/* DigestPress Author Box — editorial palette: deep green (#1B4332) + warm cream (#FDFBF7). */
/* v2.1.0: compact premium box — smaller photo, tighter spacing, soft shadow. */

.dpa-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 32px 0 0;
	padding: 20px 22px;
	background: #FDFBF7;
	border: 1px solid #E7E2D5;
	border-top: 3px solid #1B4332;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(27, 67, 50, 0.08);
	box-sizing: border-box;
}

.dpa-author-photo {
	flex: 0 0 72px;
}

.dpa-author-photo img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #1B4332;
	display: block;
}

.dpa-author-main {
	flex: 1 1 auto;
	min-width: 0;
}

.dpa-author-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1B4332;
	margin: 0 0 4px;
}

.dpa-author-box .dpa-author-name {
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: #1B4332;
	margin: 0 0 3px;
}

.dpa-author-box .dpa-author-name a {
	color: #1B4332;
	text-decoration: none;
}

.dpa-author-box .dpa-author-name a:hover {
	color: #2D6A4F;
	text-decoration: none !important;
}

.dpa-verified-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: 6px;
	background: #1B4332;
	border-radius: 50%;
	vertical-align: middle;
}

.dpa-verified-badge svg {
	display: block;
}

.dpa-author-role {
	font-size: 13px;
	line-height: 1.5;
	color: #5C665F;
	margin: 0 0 8px;
}

.dpa-author-bio {
	font-size: 14px;
	line-height: 1.7;
	color: #333;
	margin: 0 0 12px;
}

.dpa-author-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.dpa-author-box .dpa-author-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #0a66c2;
	text-decoration: none;
}

.dpa-author-box .dpa-author-linkedin:hover {
	color: #004182;
	text-decoration: none !important;
}

.dpa-author-box .dpa-author-linkedin svg {
	flex: 0 0 auto;
}

.dpa-author-box .dpa-author-posts {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: #1B4332;
	border-radius: 4px;
	padding: 7px 14px;
	text-decoration: none;
}

.dpa-author-box .dpa-author-posts:hover {
	color: #fff;
	background: #143325;
	text-decoration: none !important;
}

@media (max-width: 600px) {
	.dpa-author-box {
		padding: 16px;
		gap: 12px;
	}

	.dpa-author-photo {
		flex-basis: 56px;
	}

	.dpa-author-photo img {
		width: 56px;
		height: 56px;
	}

	.dpa-author-box .dpa-author-name {
		font-size: 17px;
	}
}

/* v2.0 additions: social icons. */

.dpa-author-box .dpa-social-icon,
.dpa-author-page .dpa-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #1B4332;
	background: #E9EFEA;
	border-radius: 50%;
	text-decoration: none;
}

.dpa-author-box .dpa-social-icon:hover,
.dpa-author-page .dpa-social-icon:hover {
	color: #fff;
	background: #1B4332;
	text-decoration: none !important;
}

.dpa-author-box .dpa-social-text,
.dpa-author-page .dpa-social-text {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #1B4332;
	text-decoration: none;
}

.dpa-author-box .dpa-social-text:hover,
.dpa-author-page .dpa-social-text:hover {
	color: #2D6A4F;
	text-decoration: none !important;
}

.dpa-author-box .dpa-author-email,
.dpa-author-page .dpa-author-email {
	font-size: 13px;
	color: #1B4332;
	text-decoration: none;
}

.dpa-author-box .dpa-author-email:hover,
.dpa-author-page .dpa-author-email:hover {
	color: #2D6A4F;
	text-decoration: none !important;
}

/* Author page (single dp_author). */

.dpa-author-page {
	margin: 0 0 36px;
	padding: 28px;
	background: #FDFBF7;
	border: 1px solid #E7E2D5;
	border-top: 3px solid #1B4332;
	border-radius: 8px;
	box-sizing: border-box;
}

.dpa-author-hero {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin: 0 0 20px;
}

.dpa-author-hero-photo {
	flex: 0 0 120px;
}

.dpa-author-hero-photo img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #1B4332;
	display: block;
}

.dpa-author-hero-main {
	flex: 1 1 auto;
	min-width: 0;
}

.dpa-author-page .dpa-author-hero-main h1 {
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: #1B4332;
	margin: 0 0 6px;
}

.dpa-author-hero-role {
	font-size: 15px;
	line-height: 1.5;
	color: #5C665F;
	margin: 0 0 4px;
}

.dpa-author-hero-org {
	font-size: 14px;
	margin: 0 0 4px;
}

.dpa-author-hero-org a {
	color: #1B4332;
	text-decoration: none;
}

.dpa-author-hero-org a:hover {
	text-decoration: none !important;
}

.dpa-author-hero-location {
	font-size: 13px;
	color: #5C665F;
	margin: 0 0 12px;
}

.dpa-author-hero-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.dpa-author-hero-links .dpa-author-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #0a66c2;
	text-decoration: none;
}

.dpa-author-hero-links .dpa-author-linkedin:hover {
	color: #004182;
	text-decoration: none !important;
}

.dpa-author-page-bio {
	font-size: 15px;
	line-height: 1.75;
	color: #333;
}

.dpa-author-page-bio p:last-child {
	margin-bottom: 0;
}

.dpa-author-details {
	margin: 20px 0 0;
	border-top: 1px solid #E7E2D5;
	padding: 16px 0 0;
	display: grid;
	gap: 10px;
}

.dpa-author-detail {
	display: flex;
	gap: 12px;
	font-size: 14px;
	line-height: 1.6;
}

.dpa-author-detail-label {
	flex: 0 0 90px;
	font-weight: 700;
	color: #1B4332;
}

.dpa-author-detail-value {
	color: #333;
}

.dpa-author-posts-list {
	margin: 0 0 20px;
}

.dpa-author-posts-list h2 {
	font-size: 20px;
	color: #1B4332;
	margin: 0 0 16px;
}

.dpa-author-post-item {
	padding: 16px 0;
	border-top: 1px solid #E7E2D5;
}

.dpa-author-post-item h3 {
	font-size: 17px;
	line-height: 1.4;
	margin: 0 0 4px;
}

.dpa-author-post-item h3 a {
	color: #1B4332;
	text-decoration: none;
}

.dpa-author-post-item h3 a:hover {
	color: #2D6A4F;
	text-decoration: none !important;
}

.dpa-author-post-meta {
	font-size: 13px;
	color: #5C665F;
	margin: 0 0 6px;
}

.dpa-author-post-item p {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

.dpa-author-pagination {
	margin: 20px 0 0;
}

/* Authors archive grid. */

.dpa-authors-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.dpa-author-card {
	padding: 24px;
	background: #FDFBF7;
	border: 1px solid #E7E2D5;
	border-top: 3px solid #1B4332;
	border-radius: 8px;
	box-sizing: border-box;
	text-align: center;
}

.dpa-author-card-photo img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #1B4332;
	margin: 0 auto 12px;
	display: block;
}

.dpa-authors-grid .dpa-author-card-name {
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 4px;
}

.dpa-authors-grid .dpa-author-card-name a {
	color: #1B4332;
	text-decoration: none;
}

.dpa-authors-grid .dpa-author-card-name a:hover {
	color: #2D6A4F;
	text-decoration: none !important;
}

.dpa-author-card-role {
	font-size: 13px;
	color: #5C665F;
	margin: 0 0 10px;
}

.dpa-author-card-bio {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin: 0 0 14px;
}

@media (max-width: 600px) {
	.dpa-author-hero {
		flex-direction: column;
		gap: 16px;
	}

	.dpa-author-hero-photo {
		flex-basis: auto;
	}

	.dpa-author-hero-photo img {
		width: 96px;
		height: 96px;
	}

	.dpa-authors-grid {
		grid-template-columns: 1fr;
	}

	.dpa-author-detail {
		flex-direction: column;
		gap: 2px;
	}
}

/* v3.0.0: author header on the WordPress author archive (/author/name/).
   The theme already prints the page title, so the hero name is an h2,
   and the hero sits in a card above the post list. */
.dpa-author-archive-hero {
	margin-bottom: 28px;
}
.dpa-author-archive-hero .dpa-author-hero {
	padding-bottom: 0;
	border-bottom: none;
	margin-bottom: 0;
}
.dpa-author-archive-hero .dpa-author-hero-name {
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 6px;
	color: #1B4332;
}
.dpa-author-archive-hero .dpa-author-page-bio {
	margin-top: 20px;
}
.dpa-author-archive-hero .dpa-author-details {
	margin-top: 20px;
}
