/* Author box — single post articles */
.htr-author-box {
	margin: 2.5rem 0 0;
	padding: 1.5rem 1.75rem;
	border: 1px solid #e8e6df;
	border-radius: 12px;
	background: #f7f9f8;
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.htr-author-box__avatar {
	flex-shrink: 0;
}

.htr-author-box__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #17706e;
}

.htr-author-box__body {
	flex: 1;
	min-width: 0;
}

.htr-author-box__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #17706e;
	margin: 0 0 0.35rem;
}

.htr-author-box__name {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.htr-author-box__name a {
	color: #1a1a18 !important;
	text-decoration: none !important;
}

.htr-author-box__name a:hover {
	color: #17706e !important;
}

.htr-author-box__bio {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #5a5a56;
}

.htr-author-box__link a {
	font-size: 0.88rem;
	font-weight: 600;
	color: #17706e !important;
	text-decoration: none !important;
}

.htr-author-box__link a:hover {
	text-decoration: underline !important;
}

/* Homepage stats footnote */
.htr-stats-note {
	text-align: center;
	font-size: 0.78rem;
	line-height: 1.55;
	color: #8a7960;
	margin: 0.85rem auto 0;
	max-width: 640px;
}

.htr-stats-note a {
	color: #17706e !important;
	font-weight: 600;
}

/* Homepage trust cards — expanded copy */
.htr-trust p {
	font-size: 0.88rem;
	line-height: 1.6;
	color: #5a7472;
	margin: 0.5rem 0 0;
	text-align: left;
}

.htr-trust p a {
	color: #17706e !important;
	font-weight: 600;
	text-decoration: none !important;
}

.htr-trust p a:hover {
	text-decoration: underline !important;
}

@media (max-width: 600px) {
	.htr-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* Archive card author row */
.htr-archive-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin: 0.35rem 0 0.5rem;
	font-size: 0.82rem;
	color: #8a7960;
}

.htr-archive-author {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none !important;
	color: #17706e !important;
	font-weight: 600;
}

.htr-archive-author:hover .htr-archive-author__name {
	text-decoration: underline;
}

.htr-archive-author__photo {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e8e6df;
}

.htr-archive-author__name {
	font-size: 0.82rem;
}

.htr-archive-time,
.htr-archive-updated {
	color: #8a7960;
}

.htr-archive-time::before {
	content: "·";
	margin-right: 0.65rem;
	color: #d4cfc4;
}

/* Hide duplicate Astra author line on archive cards */
.archive .entry-meta .posted-by,
.category .entry-meta .posted-by,
.blog .entry-meta .posted-by,
.home .entry-meta .posted-by {
	display: none !important;
}

/* About page author grid */
.htr-authors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 8px;
}

.htr-author-card {
	padding: 20px;
	border: 1px solid #e8e6df;
	border-radius: 12px;
	background: #f7f9f8;
	text-align: center;
}

.htr-author-card__photo-wrap {
	margin-bottom: 12px;
}

.htr-author-card__photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #17706e;
}

.htr-author-card__name {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.htr-author-card__name a {
	color: #1a1a18 !important;
	text-decoration: none !important;
}

.htr-author-card__name a:hover {
	color: #17706e !important;
}

.htr-author-card__role {
	margin: 0 0 8px;
	font-size: 0.88rem;
	color: #17706e;
	font-weight: 600;
}

.htr-author-card__bio {
	margin: 0;
	font-size: 0.92rem;
	color: #5a5a56;
	line-height: 1.55;
	text-align: left;
}

/* Single post header author link */
.htr-post-meta-author-link {
	display: inline-flex;
	flex-shrink: 0;
}

.htr-meta-author a {
	color: #333 !important;
	text-decoration: none !important;
	font-weight: 600;
}

.htr-meta-author a:hover {
	color: #17706e !important;
}

/* Homepage category grid — live counts */
.htr-grid-cats {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 1.5rem 2rem !important;
	width: 100% !important;
	max-width: 900px !important;
	margin: 2rem auto 0 !important;
	padding: 0 !important;
}

.htr-cat-item {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-decoration: none !important;
	gap: 0.35rem !important;
	padding: 1rem 0.5rem !important;
	border-radius: 12px !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.htr-cat-item:hover {
	transform: translateY(-4px) !important;
}

.htr-cat-icon {
	width: 60px !important;
	height: 60px !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, #17706e 0%, #1a8a87 100%) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 1.8rem !important;
	flex-shrink: 0 !important;
}

.htr-cat-label {
	margin: 0.4rem 0 0 !important;
	color: #17706e !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	text-align: center !important;
	line-height: 1.2 !important;
}

.htr-cat-count {
	font-size: 0.72rem !important;
	color: #8a7960 !important;
	font-weight: 500 !important;
}

@media (max-width: 767px) {
	.htr-grid-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 480px) {
	.htr-grid-cats {
		grid-template-columns: 1fr !important;
	}
}
