/*
 * Archive pages (category, tag, author, date, search).
 * Website HQ, 2026-11-24. Loaded only on those pages, from lib/archive-layout.php.
 * Matches the Blog page: Commuters Sans caps, Otama heading, light cards, gold accents.
 */

.content-sidebar-wrap {
	box-sizing: border-box;
	max-width: 1110px;
	margin: 0 auto;
	padding: 64px 24px 88px;
}

.content-sidebar-wrap *,
.content-sidebar-wrap *::before,
.content-sidebar-wrap *::after {
	box-sizing: border-box;
}

.content-sidebar-wrap > .content {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	font-family: "Commuters Sans", sans-serif;
	color: #252620;
}

/* Heading block */
.content > .archive-description,
.content > .author-box,
.content > .archive-pagination,
.content > div.entry,
.content > .breadcrumb {
	grid-column: 1 / -1;
}

.archive-description {
	margin: 0 0 24px;
	text-align: center;
}

.archive-description .archive-title {
	margin: 0 0 14px;
	font-family: "Otama-ep", Georgia, serif;
	font-size: 46px;
	font-weight: 400;
	line-height: 1.15;
	color: #9a7738;
}

.archive-description p {
	max-width: 720px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
	color: #746553;
}

.archive-description .archive-title + p,
.archive-description > p:first-of-type {
	margin-top: 0;
}

/* Cards */
.content > .entry {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	background: #f6f6f5;
	overflow: hidden;
}

.content > .entry .entry-image-link {
	display: block;
	line-height: 0;
}

.content > .entry .entry-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 0;
}

.content > .entry .entry-header {
	padding: 22px 20px 0;
}

.content > .entry .entry-title {
	margin: 0 0 10px;
	font-family: "Commuters Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.content > .entry .entry-title a {
	color: #252620;
	text-decoration: none;
}

.content > .entry .entry-title a:hover,
.content > .entry .entry-title a:focus-visible {
	color: #9a7738;
}

.content > .entry .entry-meta {
	margin: 0;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #746553;
}

.content > .entry .entry-content:empty {
	display: none;
}

.content > .entry .entry-footer {
	margin-top: auto;
	padding: 18px 20px 22px;
}

.whq-read-more {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #8a6a2c;
	text-decoration: none;
}

.whq-read-more::after {
	content: " \2197";
	letter-spacing: 0;
}

.whq-read-more:hover,
.whq-read-more:focus-visible {
	color: #252620;
	text-decoration: underline;
}

.content a:focus-visible {
	outline: 2px solid #9a7738;
	outline-offset: 3px;
}

/* No posts in this category yet */
.content > div.entry {
	padding: 32px 24px;
	text-align: center;
	background: none;
	font-size: 16px;
	line-height: 1.6;
	color: #252620;
}

.content > div.entry a {
	color: #8a6a2c;
}

/* Author box on author pages */
.author-box {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 24px;
	background: #f6f6f5;
	font-size: 15px;
	line-height: 1.6;
}

.author-box img {
	border-radius: 50%;
	flex: none;
}

.author-box-title {
	margin: 0 0 6px;
	font-family: "Otama-ep", Georgia, serif;
	font-size: 24px;
	font-weight: 400;
}

/* Page numbers */
.archive-pagination {
	margin-top: 32px;
	text-align: center;
}

.archive-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.archive-pagination li {
	margin: 0;
}

.archive-pagination a {
	display: inline-block;
	min-width: 44px;
	padding: 12px 14px;
	border: 1px solid #d8cfbd;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #252620;
	text-decoration: none;
}

.archive-pagination .active a,
.archive-pagination a:hover,
.archive-pagination a:focus-visible {
	background: #252620;
	border-color: #252620;
	color: #fff;
}

.archive-pagination .pagination-omission {
	padding: 12px 6px;
}

/* Screen-reader text Genesis prints (no theme stylesheet hides it) */
.content-sidebar-wrap .screen-reader-text,
.content-sidebar-wrap .screen-reader-shortcut {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1024px) {
	.content-sidebar-wrap > .content {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.content-sidebar-wrap {
		padding: 40px 16px 64px;
	}

	.content-sidebar-wrap > .content {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.archive-description .archive-title {
		font-size: 34px;
	}
}
