/* ==========================================================================
   mahapps.com - category, tag/author archives, search, 404
   Text header band, then a two-column flow of horizontal rows (thumbnail left) beside
   the local sidebar on wide screens; one column on mobile.
   ========================================================================== */

.cat-head {
	padding-block: clamp(24px, 4vw, 48px);
	background: var(--pale);
	border-bottom: 1px solid var(--line);
}
.cat-head__kicker { margin-bottom: 12px; }
.cat-head__label { margin-bottom: 12px; }
.cat-head__title { margin-bottom: 12px; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.025em; }
.cat-head__page { margin-left: 10px; color: var(--muted); font-size: 0.5em; font-weight: 600; }
.cat-head__desc { max-width: 68ch; color: var(--muted); font-size: var(--fs-md); }
.cat-head__desc p:last-child { margin-bottom: 8px; }
.cat-head__stats { margin-top: 4px; }
.cat-head--compact .cat-head__title { font-size: var(--fs-2xl); }

.cat-body { padding-top: clamp(28px, 4vw, 48px); }

.cat-layout { display: grid; gap: var(--gap-lg); }
@media (min-width: 1200px) {
	.cat-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.cat-side { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (min-width: 700px) and (max-width: 1199px) {
	.cat-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.flow { display: grid; gap: 0 var(--gap-lg); }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card--flow {
	--thumb: 150px;
	padding-block: 20px;
	border-bottom: 1px solid var(--line);
}
.card--flow .card__title { font-size: 1.0625rem; }
@media (min-width: 900px) {
	.flow > .card--flow:nth-child(-n+2) { padding-top: 0; }
}
@media (max-width: 899px) {
	.flow > .card--flow:first-child { padding-top: 0; }
}
@media (max-width: 599px) {
	.card--flow { --thumb: 104px; }
}

/* Generic archives & search use the single-column feed. */
.archive-main { max-width: 860px; }
.archive-main .card--feed { --thumb: 180px; }

.search-filters {
	display: grid;
	gap: 12px;
	margin-top: 20px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.search-filters p { margin: 0; }
.search-filters label { display: block; margin-bottom: 4px; color: var(--midnight); font-size: var(--fs-xs); font-weight: 650; }
.search-filters input, .search-filters select { width: 100%; height: 44px; }
.search-filters__submit { align-self: end; }
.search-filters__submit .btn { width: 100%; }
@media (min-width: 900px) {
	.search-filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
}

.not-found__head { max-width: 720px; margin-bottom: var(--gap-lg); }
.not-found__title { font-size: var(--fs-3xl); font-weight: 800; }
.not-found__text { color: var(--muted); font-size: var(--fs-md); }
.not-found__search { margin-block: 20px; }
.cat-grid { display: grid; gap: var(--gap); }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
